Adding missing -fexception CFLAGS
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
2
3         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
4         * misc/Makefile (CFLAGS-select.c): Define.
5         * posix/Makefile (CFLAGS-pause.c): Define.
6
7 2012-11-13  David S. Miller  <davem@davemloft.net>
8
9         * crypt/Makefile: Move test targets after toplevel Rules
10         inclusion.  Grab any necessary sysdep routines when linking.
11         * crypt/md5.c (md5_process_block): Remove define, we will always
12         name it __md5_process_block.
13         (md5_finish_ctx): Update md5_process_block call.
14         (md5_stream): Likewise.
15         (md5_process_bytes): Likewise.
16         (md5_process_block): Rename to __md5_process_block and move to ...
17         * crypt/md5-block.c: ... here.
18         * crypt/sha256.c (sha256_process_block): Move to ...
19         * crypt/sha256-block.c: ... here.
20         * crypt/sha512.c (sha512_process_block): Move to ...
21         * crypt/sha512-block.c: ... here.
22         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
23         path.
24         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
25         * sysdeps/sparc/sparc64/multiarch/Makefile
26         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
27         crypt subdir.
28         (localedef-aux): Add md5 crypto assembler when in locale subdir.
29         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
30         multiarch changes.
31         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
32         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
33         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
34         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
35         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
36         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
37         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
38         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
39         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
40         file.
41         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
42         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
43         file.
44         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
45
46 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
47
48         * timezone/tzselect.ksh: Update from tzcode git revision
49         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
50         * timezone/zdump.c: Likewise.
51         * timezone/zic.c: Likewise.
52         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
53         in TZVERSION setting, not $(PKGVERSION).
54         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
55         REPORT_BUGS_TO settings.
56
57         [BZ #14838]
58         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
59         macro.
60
61 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
62
63         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
64         detection to immediately after _FP_ROUND().
65         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
66         bits are 0.
67
68 2012-11-11  David S. Miller  <davem@davemloft.net>
69
70         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
71         inttypes.h
72         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
73         __close rather than their public counterparts.
74
75 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
76
77         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
78         file.
79         [UNIX98] (sem_timedwait): Do not expect.
80         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
81         [XPG4 || UNIX98] (sockatmark): Do not expect.
82         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
83         (clock_getcpuclockid): Do not expect.
84         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
85         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
86         Do not expect.
87         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
88         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
89         [UNIX98] (vwscanf): Likewise.
90         [UNIX98] (vswscanf): Likewise.
91
92 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
93
94         * timezone/version.h: Remove file.
95         * timezone/README: Do not refer to version.h.
96         * timezone/Makefile ($(objpfx)zic.o): New dependency on
97         $(objpfx)version.h.
98         ($(objpfx)zdump.o): Likewise.
99         ($(objpfx)version.h): New target.
100
101         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
102         2012i.
103         * timezone/README: Don't mention modification to tzselect.ksh.
104         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
105         work on unmodified tzselect.ksh.  Substitute version numbers in
106         tzselect.ksh.
107
108         * Makefile (format-me): Remove.
109         (INSTALL): Adjust indentation.  Use commands directly instead of
110         using $(format-me).
111
112         * aclocal.m4 (ACX_PKGVERSION): New macro.
113         (ACX_BUGURL): Likewise.
114         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
115         (PKGVERSION): New AC_DEFINE_UNQUOTED.
116         (REPORT_BUGS_TO): Likewise.
117         * configure: Regenerated.
118         * config.h.in (PKGVERSION): New macro.
119         (REPORT_BUGS_TO): Likewise.
120         * config.make.in (PKGVERSION): New variable.
121         (PKGVERSION_TEXI): Likewise.
122         (REPORT_BUGS_TO): Likewise.
123         (REPORT_BUGS_TEXI): Likewise.
124         * Makefile (format-me): Use -I$(common-objpfx)manual.
125         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
126         ($(common-objpfx)manual/%): New target.
127         (manual/%): Remove target.
128         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
129         (print_version): Use PKGVERSION.
130         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
131         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
132         and REPORT_BUGS_TO.
133         ($(objpfx)xtrace): Likewise.
134         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
135         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
136         (print_version): Use PKGVERSION.
137         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
138         (do_version): Use PKGVERSION.
139         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
140         REPORT_BUGS_TO.
141         (common-ldd-rewrite): Likewise.
142         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
143         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
144         (print_version): Use PKGVERSION.
145         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
146         * elf/pldd.c (argp_program_bug_address): Remove variable.
147         (more_help): New function.
148         (argp): Use more_help.
149         (print_version): Use PKGVERSION.
150         * elf/sln.c (main): Use PKGVERSION.
151         (usage): Use REPORT_BUGS_TO.
152         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
153         (top level): Use PKGVERSION.
154         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
155         (print_version): Use PKGVERSION.
156         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
157         (print_version): Use PKGVERSION.
158         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
159         (print_version): Use PKGVERSION.
160         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
161         (print_version): Use PKGVERSION.
162         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
163         (print_version): Use PKGVERSION.
164         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
165         (print_version): Use PKGVERSION.
166         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
167         and BUGURL.
168         ($(objpfx)memusage): Likewise.
169         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
170         (do_version): Use PKGVERSION.
171         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
172         (print_version): Use PKGVERSION.
173         * malloc/mtrace.pl ($PACKAGE): Remove variable.
174         ($PKGVERSION): New variable.
175         ($REPORT_BUGS_TO): Likewise.
176         (usage): Use $REPORT_BUGS_TO.
177         (top level): Use $PKGVERSION.
178         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
179         ($(objpfx)pkgvers.texi): New rule.
180         ($(objpfx)stamp-pkgvers): Likewise.
181         * manual/install.texi: Include pkgvers.texi.
182         (--with-pkgversion): Document new configure option.
183         (--with-bugurl): Likewise.
184         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
185         than necessarily for this particular distribution.  Use
186         REPORT_BUGS_TO for where to report bugs.
187         * INSTALL: Regenerated.
188         * manual/libc.texinfo: Include pkgvers.texi.
189         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
190         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
191         (print_version): Use PKGVERSION.
192         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
193         (print_version): Use PKGVERSION.
194         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
195         (print_version): Use PKGVERSION.
196         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
197         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
198         macro.
199         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
200         (print_version): Use PKGVERSION.
201         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
202         (print_version): Use PKGVERSION.
203         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
204         and PKGVERSION.
205
206         * timezone/checktab.awk: Update from tzcode 2012i.
207         * timezone/ialloc.c: Likewise.
208         * timezone/private.h: Likewise.
209         * timezone/scheck.c: Likewise.
210         * timezone/tzfile.h: Likewise.
211         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
212         (TZVERSION): Hardcode tzcode version number.
213         * timezone/zdump.c: Update from tzcode 2012i.
214         * timezone/zic.c: Likewise.
215         * timezone/version.h: New file.
216         * timezone/README: Describe version.h.  Update upstream location.
217
218         [BZ #14824]
219         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
220         (mktemp): Enable declaration.
221         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
222         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
223         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
224         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
225         Likewise.
226         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
227         Likewise.
228         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
229         Likewise.
230         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
231         Likewise.
232         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
233         Likewise.
234         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
235         Likewise.
236
237         [BZ #14821]
238         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
239         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
240         for copies of such integer values.
241         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
242         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
243
244 2012-11-09  Andreas Jaeger  <aj@suse.de>
245
246         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
247         definitions and declarations that are provided by
248         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
249
250 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
251
252         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
253         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
254         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
255         definition.
256
257 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
258
259         * elf/elf.h: Update comment before AArch64 relocations.
260
261 2012-11-07  David S. Miller  <davem@davemloft.net>
262
263         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
264         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
265         (__start_context): Declare.
266         (__makecontext_ret): Delete.
267         (__makecontext): Hook up __start_context instead of
268         __makecontext_ret.
269         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
270         (sysdep_routines): Add __start_context when in stdlib.
271
272 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
273
274         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
275         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
276         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
277         hardcoded "nm".
278         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
279         (READELF): New variable.  Use it instead of hardcoded "readelf".
280
281 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
282
283         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
284         * sysdeps/x86/Makefile: Here.
285         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
286         * sysdeps/x86/tst-xmmymm.sh: This.
287
288 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
289
290         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
291         expectations.
292         [UNIX98] (pthread_barrier_t): Do not expect.
293         [UNIX98] (pthread_barrierattr_t): Likewise.
294         [UNIX98] (pthread_spinlock_t): Likewise.
295         [UNIX98] (pthread_barrier_destroy): Likewise.
296         [UNIX98] (pthread_barrier_init): Likewise.
297         [UNIX98] (pthread_barrier_wait): Likewise.
298         [UNIX98] (pthread_barrierattr_destroy): Likewise.
299         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
300         [UNIX98] (pthread_barrierattr_init): Likewise.
301         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
302         [UNIX98] (pthread_getcpuclockid): Likewise.
303         [UNIX98] (pthread_mutex_timedlock): Likewise.
304         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
305         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
306         [UNIX98] (pthread_sigmask): Likewise.
307         [UNIX98] (pthread_spin_destroy): Likewise.
308         [UNIX98] (pthread_spin_init): Likewise.
309         [UNIX98] (pthread_spin_lock): Likewise.
310         [UNIX98] (pthread_spin_trylock): Likewise.
311         [UNIX98] (pthread_spin_unlock): Likewise.
312         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
313         Do not expect.
314         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
315         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
316         [XPG3 || XPG4] (pthread_cond_t): Likewise.
317         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
318         [XPG3 || XPG4] (pthread_key_t): Likewise.
319         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
320         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
321         [XPG3 || XPG4] (pthread_once_t): Likewise.
322         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
323         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
324         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
325         [XPG3 || XPG4] (pthread_t): Likewise.
326
327         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
328         not expect.
329         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
330
331         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
332         Change function return type to int.
333
334         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
335         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
336         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
337         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
338         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
339         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
340         [!POSIX] (posix_madvise): Likewise.
341         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
342         && !UNIX98].
343         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
344         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
345         (mode_t): Likewise.
346         (posix_mem_offset): Likewise.
347         (posix_typed_mem_get_info): Likewise.
348         (posix_typed_mem_open): Likewise.
349
350         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
351         Change condition to [XOPEN2K8].
352
353         * conform/conformtest.pl: Preprocess allow-header data with -x c
354         instead of from stdin.
355         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
356         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
357         [C99-based standards] (cerfc): Likewise.
358         [C99-based standards] (cexp2): Likewise.
359         [C99-based standards] (cexpm1): Likewise.
360         [C99-based standards] (clog10): Likewise.
361         [C99-based standards] (clog1p): Likewise.
362         [C99-based standards] (clog2): Likewise.
363         [C99-based standards] (clgamma): Likewise.
364         [C99-based standards] (ctgamma): Likewise.
365         [C99-based standards] (cerff): Likewise.
366         [C99-based standards] (cerfcf): Likewise.
367         [C99-based standards] (cexp2f): Likewise.
368         [C99-based standards] (cexpm1f): Likewise.
369         [C99-based standards] (clog10f): Likewise.
370         [C99-based standards] (clog1pf): Likewise.
371         [C99-based standards] (clog2f): Likewise.
372         [C99-based standards] (clgammaf): Likewise.
373         [C99-based standards] (ctgammaf): Likewise.
374         [C99-based standards] (cerfl): Likewise.
375         [C99-based standards] (cerfcl): Likewise.
376         [C99-based standards] (cexp2l): Likewise.
377         [C99-based standards] (cexpm1l): Likewise.
378         [C99-based standards] (clog10l): Likewise.
379         [C99-based standards] (clog1pl): Likewise.
380         [C99-based standards] (clog2l): Likewise.
381         [C99-based standards] (clgammal): Likewise.
382         [C99-based standards] (ctgammal): Likewise.
383         * conform/data/inttypes.h-data [C99-based standards]: Include
384         stdint.h-data.  Remove all expectations for stdint.h contents.
385         [C99-based standards] (PRI*): Do not allow.
386         [C99-based standards] (SCN*): Likewise.
387         [C99-based standards] (*_t): Likewise.
388         [C99-based-standards] (PRId8): Expect macro.
389         [C99-based-standards] (PRIi8): Likewise.
390         [C99-based-standards] (PRIo8): Likewise.
391         [C99-based-standards] (PRIu8): Likewise.
392         [C99-based-standards] (PRIx8): Likewise.
393         [C99-based-standards] (PRIX8): Likewise.
394         [C99-based-standards] (SCNd8): Likewise.
395         [C99-based-standards] (SCNi8): Likewise.
396         [C99-based-standards] (SCNo8): Likewise.
397         [C99-based-standards] (SCNu8): Likewise.
398         [C99-based-standards] (SCNx8): Likewise.
399         [C99-based-standards] (PRIdLEAST8): Likewise.
400         [C99-based-standards] (PRIiLEAST8): Likewise.
401         [C99-based-standards] (PRIoLEAST8): Likewise.
402         [C99-based-standards] (PRIuLEAST8): Likewise.
403         [C99-based-standards] (PRIxLEAST8): Likewise.
404         [C99-based-standards] (PRIXLEAST8): Likewise.
405         [C99-based-standards] (SCNdLEAST8): Likewise.
406         [C99-based-standards] (SCNiLEAST8): Likewise.
407         [C99-based-standards] (SCNoLEAST8): Likewise.
408         [C99-based-standards] (SCNuLEAST8): Likewise.
409         [C99-based-standards] (SCNxLEAST8): Likewise.
410         [C99-based-standards] (PRIdFAST8): Likewise.
411         [C99-based-standards] (PRIiFAST8): Likewise.
412         [C99-based-standards] (PRIoFAST8): Likewise.
413         [C99-based-standards] (PRIuFAST8): Likewise.
414         [C99-based-standards] (PRIxFAST8): Likewise.
415         [C99-based-standards] (PRIXFAST8): Likewise.
416         [C99-based-standards] (SCNdFAST8): Likewise.
417         [C99-based-standards] (SCNiFAST8): Likewise.
418         [C99-based-standards] (SCNoFAST8): Likewise.
419         [C99-based-standards] (SCNuFAST8): Likewise.
420         [C99-based-standards] (SCNxFAST8): Likewise.
421         [C99-based-standards] (PRId16): Likewise.
422         [C99-based-standards] (PRIi16): Likewise.
423         [C99-based-standards] (PRIo16): Likewise.
424         [C99-based-standards] (PRIu16): Likewise.
425         [C99-based-standards] (PRIx16): Likewise.
426         [C99-based-standards] (PRIX16): Likewise.
427         [C99-based-standards] (SCNd16): Likewise.
428         [C99-based-standards] (SCNi16): Likewise.
429         [C99-based-standards] (SCNo16): Likewise.
430         [C99-based-standards] (SCNu16): Likewise.
431         [C99-based-standards] (SCNx16): Likewise.
432         [C99-based-standards] (PRIdLEAST16): Likewise.
433         [C99-based-standards] (PRIiLEAST16): Likewise.
434         [C99-based-standards] (PRIoLEAST16): Likewise.
435         [C99-based-standards] (PRIuLEAST16): Likewise.
436         [C99-based-standards] (PRIxLEAST16): Likewise.
437         [C99-based-standards] (PRIXLEAST16): Likewise.
438         [C99-based-standards] (SCNdLEAST16): Likewise.
439         [C99-based-standards] (SCNiLEAST16): Likewise.
440         [C99-based-standards] (SCNoLEAST16): Likewise.
441         [C99-based-standards] (SCNuLEAST16): Likewise.
442         [C99-based-standards] (SCNxLEAST16): Likewise.
443         [C99-based-standards] (PRIdFAST16): Likewise.
444         [C99-based-standards] (PRIiFAST16): Likewise.
445         [C99-based-standards] (PRIoFAST16): Likewise.
446         [C99-based-standards] (PRIuFAST16): Likewise.
447         [C99-based-standards] (PRIxFAST16): Likewise.
448         [C99-based-standards] (PRIXFAST16): Likewise.
449         [C99-based-standards] (SCNdFAST16): Likewise.
450         [C99-based-standards] (SCNiFAST16): Likewise.
451         [C99-based-standards] (SCNoFAST16): Likewise.
452         [C99-based-standards] (SCNuFAST16): Likewise.
453         [C99-based-standards] (SCNxFAST16): Likewise.
454         [C99-based-standards] (PRId32): Likewise.
455         [C99-based-standards] (PRIi32): Likewise.
456         [C99-based-standards] (PRIo32): Likewise.
457         [C99-based-standards] (PRIu32): Likewise.
458         [C99-based-standards] (PRIx32): Likewise.
459         [C99-based-standards] (PRIX32): Likewise.
460         [C99-based-standards] (SCNd32): Likewise.
461         [C99-based-standards] (SCNi32): Likewise.
462         [C99-based-standards] (SCNo32): Likewise.
463         [C99-based-standards] (SCNu32): Likewise.
464         [C99-based-standards] (SCNx32): Likewise.
465         [C99-based-standards] (PRIdLEAST32): Likewise.
466         [C99-based-standards] (PRIiLEAST32): Likewise.
467         [C99-based-standards] (PRIoLEAST32): Likewise.
468         [C99-based-standards] (PRIuLEAST32): Likewise.
469         [C99-based-standards] (PRIxLEAST32): Likewise.
470         [C99-based-standards] (PRIXLEAST32): Likewise.
471         [C99-based-standards] (SCNdLEAST32): Likewise.
472         [C99-based-standards] (SCNiLEAST32): Likewise.
473         [C99-based-standards] (SCNoLEAST32): Likewise.
474         [C99-based-standards] (SCNuLEAST32): Likewise.
475         [C99-based-standards] (SCNxLEAST32): Likewise.
476         [C99-based-standards] (PRIdFAST32): Likewise.
477         [C99-based-standards] (PRIiFAST32): Likewise.
478         [C99-based-standards] (PRIoFAST32): Likewise.
479         [C99-based-standards] (PRIuFAST32): Likewise.
480         [C99-based-standards] (PRIxFAST32): Likewise.
481         [C99-based-standards] (PRIXFAST32): Likewise.
482         [C99-based-standards] (SCNdFAST32): Likewise.
483         [C99-based-standards] (SCNiFAST32): Likewise.
484         [C99-based-standards] (SCNoFAST32): Likewise.
485         [C99-based-standards] (SCNuFAST32): Likewise.
486         [C99-based-standards] (SCNxFAST32): Likewise.
487         [C99-based-standards] (PRId64): Likewise.
488         [C99-based-standards] (PRIi64): Likewise.
489         [C99-based-standards] (PRIo64): Likewise.
490         [C99-based-standards] (PRIu64): Likewise.
491         [C99-based-standards] (PRIx64): Likewise.
492         [C99-based-standards] (PRIX64): Likewise.
493         [C99-based-standards] (SCNd64): Likewise.
494         [C99-based-standards] (SCNi64): Likewise.
495         [C99-based-standards] (SCNo64): Likewise.
496         [C99-based-standards] (SCNu64): Likewise.
497         [C99-based-standards] (SCNx64): Likewise.
498         [C99-based-standards] (PRIdLEAST64): Likewise.
499         [C99-based-standards] (PRIiLEAST64): Likewise.
500         [C99-based-standards] (PRIoLEAST64): Likewise.
501         [C99-based-standards] (PRIuLEAST64): Likewise.
502         [C99-based-standards] (PRIxLEAST64): Likewise.
503         [C99-based-standards] (PRIXLEAST64): Likewise.
504         [C99-based-standards] (SCNdLEAST64): Likewise.
505         [C99-based-standards] (SCNiLEAST64): Likewise.
506         [C99-based-standards] (SCNoLEAST64): Likewise.
507         [C99-based-standards] (SCNuLEAST64): Likewise.
508         [C99-based-standards] (SCNxLEAST64): Likewise.
509         [C99-based-standards] (PRIdFAST64): Likewise.
510         [C99-based-standards] (PRIiFAST64): Likewise.
511         [C99-based-standards] (PRIoFAST64): Likewise.
512         [C99-based-standards] (PRIuFAST64): Likewise.
513         [C99-based-standards] (PRIxFAST64): Likewise.
514         [C99-based-standards] (PRIXFAST64): Likewise.
515         [C99-based-standards] (SCNdFAST64): Likewise.
516         [C99-based-standards] (SCNiFAST64): Likewise.
517         [C99-based-standards] (SCNoFAST64): Likewise.
518         [C99-based-standards] (SCNuFAST64): Likewise.
519         [C99-based-standards] (SCNxFAST64): Likewise.
520         [C99-based-standards] (PRIdMAX): Likewise.
521         [C99-based-standards] (PRIiMAX): Likewise.
522         [C99-based-standards] (PRIoMAX): Likewise.
523         [C99-based-standards] (PRIuMAX): Likewise.
524         [C99-based-standards] (PRIxMAX): Likewise.
525         [C99-based-standards] (PRIXMAX): Likewise.
526         [C99-based-standards] (SCNdMAX): Likewise.
527         [C99-based-standards] (SCNiMAX): Likewise.
528         [C99-based-standards] (SCNoMAX): Likewise.
529         [C99-based-standards] (SCNuMAX): Likewise.
530         [C99-based-standards] (SCNxMAX): Likewise.
531         [C99-based-standards] (PRIdPTR): Likewise.
532         [C99-based-standards] (PRIiPTR): Likewise.
533         [C99-based-standards] (PRIoPTR): Likewise.
534         [C99-based-standards] (PRIuPTR): Likewise.
535         [C99-based-standards] (PRIxPTR): Likewise.
536         [C99-based-standards] (PRIXPTR): Likewise.
537         [C99-based-standards] (SCNdPTR): Likewise.
538         [C99-based-standards] (SCNiPTR): Likewise.
539         [C99-based-standards] (SCNoPTR): Likewise.
540         [C99-based-standards] (SCNuPTR): Likewise.
541         [C99-based-standards] (SCNxPTR): Likewise.
542         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
543         allow.
544         * conform/data/stdint.h-data: Update comments to clarify
545         requirements.
546         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
547         type.
548         [C99-based standards] (INT8_MAX): Likewise.
549         [C99-based standards] (INT16_MIN): Likewise.
550         [C99-based standards] (INT16_MAX): Likewise.
551         [C99-based standards] (INT32_MIN): Likewise.
552         [C99-based standards] (INT32_MAX): Likewise.
553         [C99-based standards] (INT64_MIN): Likewise.
554         [C99-based standards] (INT64_MAX): Likewise.
555         [C99-based standards] (UINT8_MAX): Likewise.
556         [C99-based standards] (UINT16_MAX): Likewise.
557         [C99-based standards] (UINT32_MAX): Likewise.
558         [C99-based standards] (UINT64_MAX): Likewise.
559         [C99-based standards] (INT_LEAST8_MIN): Likewise.
560         [C99-based standards] (INT_LEAST8_MAX): Likewise.
561         [C99-based standards] (INT_LEAST16_MIN): Likewise.
562         [C99-based standards] (INT_LEAST16_MAX): Likewise.
563         [C99-based standards] (INT_LEAST32_MIN): Likewise.
564         [C99-based standards] (INT_LEAST32_MAX): Likewise.
565         [C99-based standards] (INT_LEAST64_MIN): Likewise.
566         [C99-based standards] (INT_LEAST64_MAX): Likewise.
567         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
568         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
569         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
570         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
571         [C99-based standards] (INT_FAST8_MIN): Likewise.
572         [C99-based standards] (INT_FAST8_MAX): Likewise.
573         [C99-based standards] (INT_FAST16_MIN): Likewise.
574         [C99-based standards] (INT_FAST16_MAX): Likewise.
575         [C99-based standards] (INT_FAST32_MIN): Likewise.
576         [C99-based standards] (INT_FAST32_MAX): Likewise.
577         [C99-based standards] (INT_FAST64_MIN): Likewise.
578         [C99-based standards] (INT_FAST64_MAX): Likewise.
579         [C99-based standards] (UINT_FAST8_MAX): Likewise.
580         [C99-based standards] (UINT_FAST16_MAX): Likewise.
581         [C99-based standards] (UINT_FAST32_MAX): Likewise.
582         [C99-based standards] (UINT_FAST64_MAX): Likewise.
583         [C99-based standards] (INTPTR_MIN): Likewise.
584         [C99-based standards] (INTPTR_MAX): Likewise.
585         [C99-based standards] (UINTPTR_MAX): Likewise.
586         [C99-based standards] (INTMAX_MIN): Likewise.
587         [C99-based standards] (INTMAX_MAX): Likewise.
588         [C99-based standards] (UINTMAX_MAX): Likewise.
589         [C99-based standards] (PTRDIFF_MIN): Likewise.
590         [C99-based standards] (PTRDIFF_MAX): Likewise.
591         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
592         [C99-based standards] (SIZE_MAX): Likewise.
593         [C99-based standards] (WCHAR_MAX): Likewise.
594         [C99-based standards] (WINT_MAX): Likewise.
595         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
596         constraint on value.
597         [C99-based standards] (WCHAR_MIN): Likewise.
598         [C99-based standards] (WINT_MIN): Likewise.
599         [C99-based standards] (*_t): Allow.
600         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
601         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
602         Include math.h-data and complex.h-data.  Remove all expectations
603         of math.h and complex.h contents.
604         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
605         at end of line.
606         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
607         (struct tm): Expect tag.
608         [C99-based-standards] (wcstof): Expect function.
609         [C99-based-standards] (wcstold): Likewise.
610         [C99-based-standards] (wcstoll): Likewise.
611         [C99-based-standards] (wcstoull): Likewise.
612         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
613         macro-int-constant.  Specify type.
614         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
615         constraint on value.
616         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
617         Specify type.
618         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
619         Specify value.
620         [ISO C standards]: Do not allow headers.
621         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
622         wcs[abcdefghijklmnopqrstuvwxyz]*.
623         [ISO C standards] (*_t): Do not allow.
624         * conform/data/wctype.h-data [C99-based standards] (iswblank):
625         Expect function.
626         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
627         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
628         Specify type.
629         [ISO C standards]: Do not allow headers.
630         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
631         is[abcdefghijklmnopqrstuvwxyz]*.
632         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
633         to[abcdefghijklmnopqrstuvwxyz]*.
634         [ISO C standards] (*_t): Do not allow.
635         * conform/data/stdalign.h-data: New file.
636         * conform/data/stdbool.h-data: Likewise.
637         * conform/data/stdnoreturn.h-data: Likewise.
638
639 2012-11-07  Andreas Jaeger  <aj@suse.de>
640
641         [BZ #14809]
642         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
643         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
644         guards are changed.  Only define if not yet defined, #undef back
645         after including linux/sysctl.h if defined here.
646
647 2012-11-07  Roland McGrath  <roland@hack.frob.com>
648
649         [BZ #14815]
650         * manual/filesys.texi (Directory Entries): Typo fix.
651         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
652
653 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
654
655         * elf/elf.h (EM_AARCH64): New macro.
656         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
657         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
658         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
659         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
660         (R_AARCH64_TLSDESC): Likewise.
661         (NT_ARM_TLS): Likewise.
662         (NT_ARM_HW_BREAK): Likewise.
663         (NT_ARM_HW_WATCH): Likewise.
664
665 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
666
667         [BZ #14811]
668         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
669         (__ieee754_powl): Saturate nonzero exponents with absolute value
670         below 0x1p-79 to +/- 0x1p-79.
671         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
672         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
673         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
674         nonzero exponents with absolute value below 0x1p-32 to +/-
675         0x1p-32.
676         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
677         (__ieee754_powl): Saturate nonzero exponents with absolute value
678         below 0x1p-79 to +/- 0x1p-79.
679         * math/libm-test.inc (pow_test): Add more tests.
680
681 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
682
683         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
684         _dl_s390_cap_flags with kernel. Increase string length.
685         (_dl_s390_platforms): Add z196 and zEC12.
686
687 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
688
689         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
690         Change XOPEN21K to XOPEN2K.
691
692 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
693
694         * string/memmove.c: Use memcpy when possible.
695
696 2012-11-06  Andreas Jaeger  <aj@suse.de>
697
698         * po/eo.po: Update from translation team.
699
700 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
701
702         [BZ #14793]
703         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
704         exponent and small x and y exponents, scale x or y up.  Increase
705         by 2 the exponent used in scaling up.
706         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
707         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
708         * math/libm-test.inc (fma_test): Add more tests.
709         (fma_test_towardzero): Likewise.
710         (fma_test_downward): Likewise.
711         (fma_test_upward): Likewise.
712
713 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
714
715         [BZ #14805]
716         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
717         fenv_t *.
718
719         [BZ #14801]
720         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
721         namespace for names of struct fields.
722         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
723         fenv_t fields.
724         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
725         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
726
727 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
728
729         [BZ #3665]
730         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
731
732 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
733
734         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
735         PTR_DEMANGLE.
736
737         [BZ #5246]
738         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
739         PTR_DEMANGLE.
740
741 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
742
743         [BZ #14797]
744         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
745         definitely overflow as x * y not x * y + z.
746         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
747         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
748         * math/libm-test.inc (fma_test): Add more tests.
749         (fma_test_towardzero): Likewise.
750         (fma_test_downward): Likewise.
751         (fma_test_upward): Likewise.
752
753 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
754
755         [BZ #157]
756
757         * include/stub-tag.h: Remove file.
758         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
759         '#include' of it.
760         * manual/maint.texi (Porting): Don't reference it.
761         * Makerules ($(objpfx)stubs): Likewise.
762         * dirent/closedir.c: Don't include <stub-tag.h>.
763         * dirent/dirfd.c: Likewise.
764         * dirent/fdopendir.c: Likewise.
765         * dirent/getdents.c: Likewise.
766         * dirent/getdents64.c: Likewise.
767         * dirent/opendir.c: Likewise.
768         * dirent/readdir.c: Likewise.
769         * dirent/readdir64.c: Likewise.
770         * dirent/readdir64_r.c: Likewise.
771         * dirent/readdir_r.c: Likewise.
772         * dirent/rewinddir.c: Likewise.
773         * dirent/seekdir.c: Likewise.
774         * dirent/telldir.c: Likewise.
775         * gmon/profil.c: Likewise.
776         * grp/setgroups.c: Likewise.
777         * inet/if_index.c: Likewise.
778         * io/access.c: Likewise.
779         * io/chdir.c: Likewise.
780         * io/chmod.c: Likewise.
781         * io/chown.c: Likewise.
782         * io/close.c: Likewise.
783         * io/dup.c: Likewise.
784         * io/dup2.c: Likewise.
785         * io/dup3.c: Likewise.
786         * io/euidaccess.c: Likewise.
787         * io/faccessat.c: Likewise.
788         * io/fchdir.c: Likewise.
789         * io/fchmod.c: Likewise.
790         * io/fchmodat.c: Likewise.
791         * io/fchown.c: Likewise.
792         * io/fchownat.c: Likewise.
793         * io/fcntl.c: Likewise.
794         * io/flock.c: Likewise.
795         * io/fstatfs.c: Likewise.
796         * io/fstatfs64.c: Likewise.
797         * io/fstatvfs.c: Likewise.
798         * io/fstatvfs64.c: Likewise.
799         * io/futimens.c: Likewise.
800         * io/fxstat.c: Likewise.
801         * io/fxstat64.c: Likewise.
802         * io/fxstatat.c: Likewise.
803         * io/fxstatat64.c: Likewise.
804         * io/getcwd.c: Likewise.
805         * io/isatty.c: Likewise.
806         * io/lchmod.c: Likewise.
807         * io/lchown.c: Likewise.
808         * io/link.c: Likewise.
809         * io/linkat.c: Likewise.
810         * io/lseek.c: Likewise.
811         * io/lseek64.c: Likewise.
812         * io/lxstat64.c: Likewise.
813         * io/mkdir.c: Likewise.
814         * io/mkdirat.c: Likewise.
815         * io/mkfifo.c: Likewise.
816         * io/mkfifoat.c: Likewise.
817         * io/open.c: Likewise.
818         * io/open64.c: Likewise.
819         * io/openat.c: Likewise.
820         * io/openat64.c: Likewise.
821         * io/pipe.c: Likewise.
822         * io/pipe2.c: Likewise.
823         * io/poll.c: Likewise.
824         * io/posix_fadvise.c: Likewise.
825         * io/posix_fadvise64.c: Likewise.
826         * io/posix_fallocate.c: Likewise.
827         * io/posix_fallocate64.c: Likewise.
828         * io/read.c: Likewise.
829         * io/readlink.c: Likewise.
830         * io/readlinkat.c: Likewise.
831         * io/rmdir.c: Likewise.
832         * io/sendfile.c: Likewise.
833         * io/sendfile64.c: Likewise.
834         * io/statfs.c: Likewise.
835         * io/statfs64.c: Likewise.
836         * io/statvfs.c: Likewise.
837         * io/statvfs64.c: Likewise.
838         * io/symlink.c: Likewise.
839         * io/symlinkat.c: Likewise.
840         * io/ttyname.c: Likewise.
841         * io/ttyname_r.c: Likewise.
842         * io/umask.c: Likewise.
843         * io/unlink.c: Likewise.
844         * io/unlinkat.c: Likewise.
845         * io/utime.c: Likewise.
846         * io/utimensat.c: Likewise.
847         * io/write.c: Likewise.
848         * io/xmknod.c: Likewise.
849         * io/xmknodat.c: Likewise.
850         * io/xstat.c: Likewise.
851         * io/xstat64.c: Likewise.
852         * login/getpt.c: Likewise.
853         * login/grantpt.c: Likewise.
854         * login/unlockpt.c: Likewise.
855         * math/e_acoshl.c: Likewise.
856         * math/e_acosl.c: Likewise.
857         * math/e_asinl.c: Likewise.
858         * math/e_atan2l.c: Likewise.
859         * math/e_atanhl.c: Likewise.
860         * math/e_coshl.c: Likewise.
861         * math/e_expl.c: Likewise.
862         * math/e_fmodl.c: Likewise.
863         * math/e_gammal_r.c: Likewise.
864         * math/e_hypotl.c: Likewise.
865         * math/e_j0l.c: Likewise.
866         * math/e_j1l.c: Likewise.
867         * math/e_jnl.c: Likewise.
868         * math/e_lgammal_r.c: Likewise.
869         * math/e_log10l.c: Likewise.
870         * math/e_log2l.c: Likewise.
871         * math/e_logl.c: Likewise.
872         * math/e_powl.c: Likewise.
873         * math/e_rem_pio2l.c: Likewise.
874         * math/e_sinhl.c: Likewise.
875         * math/e_sqrtl.c: Likewise.
876         * math/fclrexcpt.c: Likewise.
877         * math/fedisblxcpt.c: Likewise.
878         * math/feenablxcpt.c: Likewise.
879         * math/fegetenv.c: Likewise.
880         * math/fegetexcept.c: Likewise.
881         * math/fegetround.c: Likewise.
882         * math/feholdexcpt.c: Likewise.
883         * math/fesetenv.c: Likewise.
884         * math/fesetround.c: Likewise.
885         * math/feupdateenv.c: Likewise.
886         * math/fgetexcptflg.c: Likewise.
887         * math/fraiseexcpt.c: Likewise.
888         * math/fsetexcptflg.c: Likewise.
889         * math/ftestexcept.c: Likewise.
890         * math/k_cosl.c: Likewise.
891         * math/k_rem_pio2l.c: Likewise.
892         * math/k_sinl.c: Likewise.
893         * math/k_tanl.c: Likewise.
894         * math/s_asinhl.c: Likewise.
895         * math/s_atanl.c: Likewise.
896         * math/s_cbrtl.c: Likewise.
897         * math/s_erfl.c: Likewise.
898         * math/s_expm1l.c: Likewise.
899         * math/s_log1pl.c: Likewise.
900         * math/s_tanhl.c: Likewise.
901         * misc/acct.c: Likewise.
902         * misc/brk.c: Likewise.
903         * misc/chflags.c: Likewise.
904         * misc/chroot.c: Likewise.
905         * misc/fchflags.c: Likewise.
906         * misc/fgetxattr.c: Likewise.
907         * misc/flistxattr.c: Likewise.
908         * misc/fremovexattr.c: Likewise.
909         * misc/fsetxattr.c: Likewise.
910         * misc/fsync.c: Likewise.
911         * misc/ftruncate.c: Likewise.
912         * misc/futimes.c: Likewise.
913         * misc/futimesat.c: Likewise.
914         * misc/getdomain.c: Likewise.
915         * misc/getdtsz.c: Likewise.
916         * misc/gethostid.c: Likewise.
917         * misc/gethostname.c: Likewise.
918         * misc/getloadavg.c: Likewise.
919         * misc/getpagesize.c: Likewise.
920         * misc/getsysstats.c: Likewise.
921         * misc/getxattr.c: Likewise.
922         * misc/gtty.c: Likewise.
923         * misc/ioctl.c: Likewise.
924         * misc/lgetxattr.c: Likewise.
925         * misc/listxattr.c: Likewise.
926         * misc/llistxattr.c: Likewise.
927         * misc/lremovexattr.c: Likewise.
928         * misc/lsetxattr.c: Likewise.
929         * misc/lutimes.c: Likewise.
930         * misc/madvise.c: Likewise.
931         * misc/mincore.c: Likewise.
932         * misc/mlock.c: Likewise.
933         * misc/mlockall.c: Likewise.
934         * misc/mmap.c: Likewise.
935         * misc/mprotect.c: Likewise.
936         * misc/msync.c: Likewise.
937         * misc/munlock.c: Likewise.
938         * misc/munlockall.c: Likewise.
939         * misc/munmap.c: Likewise.
940         * misc/preadv.c: Likewise.
941         * misc/preadv64.c: Likewise.
942         * misc/ptrace.c: Likewise.
943         * misc/pwritev.c: Likewise.
944         * misc/pwritev64.c: Likewise.
945         * misc/readv.c: Likewise.
946         * misc/reboot.c: Likewise.
947         * misc/remap_file_pages.c: Likewise.
948         * misc/removexattr.c: Likewise.
949         * misc/revoke.c: Likewise.
950         * misc/select.c: Likewise.
951         * misc/setdomain.c: Likewise.
952         * misc/setegid.c: Likewise.
953         * misc/seteuid.c: Likewise.
954         * misc/sethostid.c: Likewise.
955         * misc/sethostname.c: Likewise.
956         * misc/setregid.c: Likewise.
957         * misc/setreuid.c: Likewise.
958         * misc/setxattr.c: Likewise.
959         * misc/sstk.c: Likewise.
960         * misc/stty.c: Likewise.
961         * misc/swapoff.c: Likewise.
962         * misc/swapon.c: Likewise.
963         * misc/sync.c: Likewise.
964         * misc/syncfs.c: Likewise.
965         * misc/syscall.c: Likewise.
966         * misc/truncate.c: Likewise.
967         * misc/ualarm.c: Likewise.
968         * misc/usleep.c: Likewise.
969         * misc/ustat.c: Likewise.
970         * misc/utimes.c: Likewise.
971         * misc/vhangup.c: Likewise.
972         * misc/writev.c: Likewise.
973         * posix/_exit.c: Likewise.
974         * posix/alarm.c: Likewise.
975         * posix/execve.c: Likewise.
976         * posix/fexecve.c: Likewise.
977         * posix/fork.c: Likewise.
978         * posix/fpathconf.c: Likewise.
979         * posix/getaddrinfo.c: Likewise.
980         * posix/getegid.c: Likewise.
981         * posix/geteuid.c: Likewise.
982         * posix/getgid.c: Likewise.
983         * posix/getgroups.c: Likewise.
984         * posix/getlogin.c: Likewise.
985         * posix/getlogin_r.c: Likewise.
986         * posix/getpgid.c: Likewise.
987         * posix/getpid.c: Likewise.
988         * posix/getppid.c: Likewise.
989         * posix/getresgid.c: Likewise.
990         * posix/getresuid.c: Likewise.
991         * posix/getsid.c: Likewise.
992         * posix/getuid.c: Likewise.
993         * posix/glob64.c: Likewise.
994         * posix/nanosleep.c: Likewise.
995         * posix/pathconf.c: Likewise.
996         * posix/pause.c: Likewise.
997         * posix/posix_madvise.c: Likewise.
998         * posix/pread.c: Likewise.
999         * posix/pread64.c: Likewise.
1000         * posix/pwrite.c: Likewise.
1001         * posix/pwrite64.c: Likewise.
1002         * posix/sched_getaffinity.c: Likewise.
1003         * posix/sched_getp.c: Likewise.
1004         * posix/sched_gets.c: Likewise.
1005         * posix/sched_primax.c: Likewise.
1006         * posix/sched_primin.c: Likewise.
1007         * posix/sched_rr_gi.c: Likewise.
1008         * posix/sched_setaffinity.c: Likewise.
1009         * posix/sched_setp.c: Likewise.
1010         * posix/sched_sets.c: Likewise.
1011         * posix/sched_yield.c: Likewise.
1012         * posix/setgid.c: Likewise.
1013         * posix/setlogin.c: Likewise.
1014         * posix/setpgid.c: Likewise.
1015         * posix/setresgid.c: Likewise.
1016         * posix/setresuid.c: Likewise.
1017         * posix/setsid.c: Likewise.
1018         * posix/setuid.c: Likewise.
1019         * posix/sleep.c: Likewise.
1020         * posix/spawni.c: Likewise.
1021         * posix/sysconf.c: Likewise.
1022         * posix/times.c: Likewise.
1023         * posix/wait.c: Likewise.
1024         * posix/wait3.c: Likewise.
1025         * posix/wait4.c: Likewise.
1026         * posix/waitpid.c: Likewise.
1027         * resolv/gai_sigqueue.c: Likewise.
1028         * resource/getpriority.c: Likewise.
1029         * resource/getrlimit.c: Likewise.
1030         * resource/getrusage.c: Likewise.
1031         * resource/nice.c: Likewise.
1032         * resource/setpriority.c: Likewise.
1033         * resource/setrlimit.c: Likewise.
1034         * resource/ulimit.c: Likewise.
1035         * rt/aio_cancel.c: Likewise.
1036         * rt/aio_fsync.c: Likewise.
1037         * rt/aio_read.c: Likewise.
1038         * rt/aio_sigqueue.c: Likewise.
1039         * rt/aio_suspend.c: Likewise.
1040         * rt/aio_write.c: Likewise.
1041         * rt/clock_getres.c: Likewise.
1042         * rt/clock_gettime.c: Likewise.
1043         * rt/clock_nanosleep.c: Likewise.
1044         * rt/clock_settime.c: Likewise.
1045         * rt/lio_listio.c: Likewise.
1046         * rt/mq_close.c: Likewise.
1047         * rt/mq_getattr.c: Likewise.
1048         * rt/mq_notify.c: Likewise.
1049         * rt/mq_open.c: Likewise.
1050         * rt/mq_receive.c: Likewise.
1051         * rt/mq_send.c: Likewise.
1052         * rt/mq_setattr.c: Likewise.
1053         * rt/mq_timedreceive.c: Likewise.
1054         * rt/mq_timedsend.c: Likewise.
1055         * rt/mq_unlink.c: Likewise.
1056         * rt/shm_open.c: Likewise.
1057         * rt/shm_unlink.c: Likewise.
1058         * rt/timer_create.c: Likewise.
1059         * rt/timer_delete.c: Likewise.
1060         * rt/timer_getoverr.c: Likewise.
1061         * rt/timer_gettime.c: Likewise.
1062         * rt/timer_settime.c: Likewise.
1063         * setjmp/__longjmp.c: Likewise.
1064         * setjmp/setjmp.c: Likewise.
1065         * signal/kill.c: Likewise.
1066         * signal/killpg.c: Likewise.
1067         * signal/raise.c: Likewise.
1068         * signal/sigaction.c: Likewise.
1069         * signal/sigaltstack.c: Likewise.
1070         * signal/sigblock.c: Likewise.
1071         * signal/sigignore.c: Likewise.
1072         * signal/sigintr.c: Likewise.
1073         * signal/signal.c: Likewise.
1074         * signal/sigpause.c: Likewise.
1075         * signal/sigpending.c: Likewise.
1076         * signal/sigqueue.c: Likewise.
1077         * signal/sigreturn.c: Likewise.
1078         * signal/sigset.c: Likewise.
1079         * signal/sigsetmask.c: Likewise.
1080         * signal/sigstack.c: Likewise.
1081         * signal/sigsuspend.c: Likewise.
1082         * signal/sigtimedwait.c: Likewise.
1083         * signal/sigvec.c: Likewise.
1084         * signal/sigwait.c: Likewise.
1085         * signal/sigwaitinfo.c: Likewise.
1086         * signal/sysv_signal.c: Likewise.
1087         * socket/accept.c: Likewise.
1088         * socket/accept4.c: Likewise.
1089         * socket/bind.c: Likewise.
1090         * socket/connect.c: Likewise.
1091         * socket/getpeername.c: Likewise.
1092         * socket/getsockname.c: Likewise.
1093         * socket/getsockopt.c: Likewise.
1094         * socket/isfdtype.c: Likewise.
1095         * socket/listen.c: Likewise.
1096         * socket/recv.c: Likewise.
1097         * socket/recvfrom.c: Likewise.
1098         * socket/recvmsg.c: Likewise.
1099         * socket/send.c: Likewise.
1100         * socket/sendmsg.c: Likewise.
1101         * socket/sendto.c: Likewise.
1102         * socket/setsockopt.c: Likewise.
1103         * socket/shutdown.c: Likewise.
1104         * socket/sockatmark.c: Likewise.
1105         * socket/socket.c: Likewise.
1106         * socket/socketpair.c: Likewise.
1107         * stdio-common/ctermid.c: Likewise.
1108         * stdio-common/cuserid.c: Likewise.
1109         * stdio-common/remove.c: Likewise.
1110         * stdio-common/rename.c: Likewise.
1111         * stdio-common/renameat.c: Likewise.
1112         * stdio-common/tempname.c: Likewise.
1113         * stdlib/getcontext.c: Likewise.
1114         * stdlib/makecontext.c: Likewise.
1115         * stdlib/setcontext.c: Likewise.
1116         * stdlib/swapcontext.c: Likewise.
1117         * stdlib/system.c: Likewise.
1118         * streams/fattach.c: Likewise.
1119         * streams/fdetach.c: Likewise.
1120         * streams/getmsg.c: Likewise.
1121         * streams/getpmsg.c: Likewise.
1122         * streams/putmsg.c: Likewise.
1123         * streams/putpmsg.c: Likewise.
1124         * sysdeps/unix/bsd/getpt.c: Likewise.
1125         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1126         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1127         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1129         Likewise.
1130         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1131         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1132         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1133         * sysvipc/msgctl.c: Likewise.
1134         * sysvipc/msgget.c: Likewise.
1135         * sysvipc/msgrcv.c: Likewise.
1136         * sysvipc/msgsnd.c: Likewise.
1137         * sysvipc/semctl.c: Likewise.
1138         * sysvipc/semget.c: Likewise.
1139         * sysvipc/semop.c: Likewise.
1140         * sysvipc/semtimedop.c: Likewise.
1141         * sysvipc/shmat.c: Likewise.
1142         * sysvipc/shmctl.c: Likewise.
1143         * sysvipc/shmdt.c: Likewise.
1144         * sysvipc/shmget.c: Likewise.
1145         * termios/tcdrain.c: Likewise.
1146         * termios/tcflow.c: Likewise.
1147         * termios/tcflush.c: Likewise.
1148         * termios/tcgetattr.c: Likewise.
1149         * termios/tcgetpgrp.c: Likewise.
1150         * termios/tcsendbrk.c: Likewise.
1151         * termios/tcsetattr.c: Likewise.
1152         * termios/tcsetpgrp.c: Likewise.
1153         * time/adjtime.c: Likewise.
1154         * time/clock.c: Likewise.
1155         * time/getitimer.c: Likewise.
1156         * time/gettimeofday.c: Likewise.
1157         * time/setitimer.c: Likewise.
1158         * time/settimeofday.c: Likewise.
1159         * time/stime.c: Likewise.
1160         * time/time.c: Likewise.
1161
1162 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1163
1164         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1165         /usr/old/bin.
1166
1167         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1168         instead of spaces.
1169         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1170
1171 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1172
1173         [BZ #14796]
1174         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1175         FE_TONEAREST before applying Dekker multiplication and Knuth
1176         addition.  Clear inexact exceptions and check for exact zero
1177         results afterwards.
1178         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1179         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1180         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1181         * math/libm-test.inc (fma_test): Add more tests.
1182         (fma_test_towardzero): Likewise.
1183         (fma_test_downward): Likewise.
1184         (fma_test_upward): Likewise.
1185         * sysdeps/generic/math_private.h (default_libc_fesetround): New
1186         function.
1187         (libc_fesetround): New macro.
1188         (libc_fesetroundf): Likewise.
1189         (libc_fesetroundl): Likewise.
1190         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1191         function.
1192         (libc_fesetround_387): Likewise.
1193         (libc_fesetroundf): New macro.
1194         (libc_fesetround): Likewise.
1195         (libc_fesetroundl): Likewise.
1196         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1197         function.
1198         (libc_fesetroundf): New macro.
1199         (libc_fesetround): Likewise.
1200         (libc_fesetroundl): Likewise.
1201         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1202         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1203         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1204         libm_hidden_ver.
1205         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1206         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1207         libm_hidden_def.
1208         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1209         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1210         libm_hidden_ver.
1211         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1212         libm_hidden_def.
1213
1214         [BZ #3439]
1215         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1216         integer constant usable in #if and use that to give value to enum
1217         constant.
1218         (FE_DIVBYZERO): Likewise.
1219         (FE_UNDERFLOW): Likewise.
1220         (FE_OVERFLOW): Likewise.
1221         (FE_INVALID): Likewise.
1222         (FE_INVALID_SNAN): Likewise.
1223         (FE_INVALID_ISI): Likewise.
1224         (FE_INVALID_IDI): Likewise.
1225         (FE_INVALID_ZDZ): Likewise.
1226         (FE_INVALID_IMZ): Likewise.
1227         (FE_INVALID_COMPARE): Likewise.
1228         (FE_INVALID_SOFTWARE): Likewise.
1229         (FE_INVALID_SQRT): Likewise.
1230         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1231         (FE_TONEAREST): Likewise.
1232         (FE_TOWARDZERO): Likewise.
1233         (FE_UPWARD): Likewise.
1234         (FE_DOWNWARD): Likewise.
1235         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1236         (FE_DIVBYZERO): Likewise.
1237         (FE_OVERFLOW): Likewise.
1238         (FE_UNDERFLOW): Likewise.
1239         (FE_INEXACT): Likewise.
1240         (FE_TONEAREST): Likewise.
1241         (FE_DOWNWARD): Likewise.
1242         (FE_UPWARD): Likewise.
1243         (FE_TOWARDZERO): Likewise.
1244         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1245         (FE_UNDERFLOW): Likewise.
1246         (FE_OVERFLOW): Likewise.
1247         (FE_DIVBYZERO): Likewise.
1248         (FE_INVALID): Likewise.
1249         (FE_TONEAREST): Likewise.
1250         (FE_TOWARDZERO): Likewise.
1251         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1252         (FE_OVERFLOW): Likewise.
1253         (FE_UNDERFLOW): Likewise.
1254         (FE_DIVBYZERO): Likewise.
1255         (FE_INEXACT): Likewise.
1256         (FE_TONEAREST): Likewise.
1257         (FE_TOWARDZERO): Likewise.
1258         (FE_UPWARD): Likewise.
1259         (FE_DOWNWARD): Likewise.
1260         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1261         (FE_DIVBYZERO): Likewise.
1262         (FE_OVERFLOW): Likewise.
1263         (FE_UNDERFLOW): Likewise.
1264         (FE_INEXACT): Likewise.
1265         (FE_TONEAREST): Likewise.
1266         (FE_DOWNWARD): Likewise.
1267         (FE_UPWARD): Likewise.
1268         (FE_TOWARDZERO): Likewise.
1269
1270 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1271
1272         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1273
1274 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1275
1276         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1277         commands.  Quote $PWD.
1278         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1279         -x" by "export".
1280         (remove_newlines): Remove.
1281
1282 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1283
1284         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1285         * stdlib/stdlib.h (atof): Moved to ...
1286         * include/bits/stdlib-float.h: Here.  New file.
1287         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1288         * stdlib/bits/stdlib-float.h: New file.
1289         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1290         -mno-sse -mno-mmx.
1291         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1292         <xmmintrin.h>.
1293
1294 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1295
1296         * conform/conformtest.pl (@headers): Add fenv.h.
1297         * conform/data/fenv.h-data: New file.
1298         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1299         include of <math/fenv.h>.
1300
1301         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1302         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1303         && !UNIX98].  Enables tests for XOPEN2K8.
1304         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1305         POSIX2008]: Likewise.
1306
1307         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1308         (struct rusage): Do not expect type or its members.
1309
1310         [BZ #3439]
1311         * math/math.h (FP_NAN): Define macro to integer constant usable in
1312         #if and use that to give value to enum constant.
1313         (FP_INFINITE): Likewise.
1314         (FP_ZERO): Likewise.
1315         (FP_SUBNORMAL): Likewise.
1316         (FP_NORMAL): Likewise.
1317
1318 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1319
1320         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1321         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1322         arguments.
1323
1324 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1325
1326         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1327         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1328         autoconf-time if not.
1329         * configure.in: Remove AC_PREREQ.
1330
1331 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1332
1333         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1334         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1335         of the internal implementation.
1336
1337 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1338
1339         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1340         except include of <misc/sys/syslog.h>.
1341
1342 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1343
1344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1345         function returns with a NULL context exit with zero.
1346
1347 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1348
1349         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1350
1351 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1352
1353         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1354         (run_program_cmd): This.
1355         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1356         (tst_langinfo): New variable.  Use it.
1357
1358 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1359
1360         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1361         floating point opcodes.
1362
1363 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1364
1365         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1366         variable.
1367
1368         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1369
1370         * sysdeps/mach/hurd/powerpc: Remove directory.
1371         * sysdeps/mach/powerpc: Likewise.
1372
1373 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1374
1375         * scripts/check-local-headers.sh: Ignore c++ headers.
1376
1377 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1378
1379         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1380         __libc_cleanup_region_start argument.
1381
1382 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1383
1384         [BZ #14784]
1385         [BZ #14785]
1386         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1387         x * y using scaling, not as x * y + z.
1388         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1389         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1390         * math/libm-test.inc (fma_test): Add more tests.
1391         (fma_test_towardzero): Likewise.
1392         (fma_test_downward): Likewise.
1393         (fma_test_upward): Likewise.
1394
1395 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1396
1397         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1398
1399 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1400
1401         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1402         New variable.
1403
1404 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1405
1406         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1407
1408 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1409
1410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1411         Fix sort order.
1412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1413         Likewise.
1414
1415 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1416
1417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1418         Fix the order of the list for glibc 2.17.
1419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1420         Likewise.
1421
1422 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1423
1424         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1425
1426 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1427
1428         [BZ #14610]
1429         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1430         for low part of x being zero before using __atanl (y).
1431         * math/libm-test.inc (atan2_test): Add another test.
1432
1433         * manual/install.texi (Configuring and compiling): Document
1434         general use of test-wrapper and test-wrapper-env.
1435         * INSTALL: Regenerated.
1436
1437         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1438         (__fma): Do not extract and scale down low bits on after-rounding
1439         systems when result rounded to normal precision would have normal
1440         exponent.
1441         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1442         (__fmal): Do not extract and scale down low bits on after-rounding
1443         systems when result rounded to normal precision would have normal
1444         exponent.
1445         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1446         (__fmal): Do not extract and scale down low bits on after-rounding
1447         systems when result rounded to normal precision would have normal
1448         exponent.
1449         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1450         macro.
1451         (fma_test): Add more tests.
1452         (fma_test_towardzero): Likewise.
1453         (fma_test_downward): Likewise.
1454         (fma_test_upward): Likewise.
1455
1456 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1457
1458         * sysdeps/i386/tininess.h: Renamed to ...
1459         * sysdeps/x86/tininess.h: This.
1460         * sysdeps/x86_64/tininess.h: Removed.
1461
1462 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1463
1464         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1465         input.  Use $(build-program-cmd).
1466         ($(objpfx)tst-array1-static.out): Likewise.
1467         ($(objpfx)tst-array2.out): Likewise.
1468         ($(objpfx)tst-array3.out): Likewise.
1469         ($(objpfx)tst-array4.out): Likewise.
1470         ($(objpfx)tst-array5.out): Likewise.
1471         ($(objpfx)tst-array5-static.out): Likewise.
1472
1473 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1474
1475         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1476         if defined.
1477
1478         * nss/nsswitch.h (nss_interface_function): Provide new
1479         macro for use with NSS functions.
1480         * grp/initgroups.c: Use new macro.
1481         * nss/getXXbyYY.c: Likewise.
1482         * nss/getXXbyYY_r.c: Likewise.
1483         * nss/getXXent.c: Likewise.
1484         * nss/getXXent_r.c: Likewise.
1485         * sysdeps/posix/getaddrinfo.c: Likewise.
1486
1487 2012-10-30  Andreas Jaeger  <aj@suse.de>
1488
1489         * po/ru.po: Update Russion translation from translation project.
1490
1491 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1492
1493         [BZ #14152]
1494         [BZ #14783]
1495         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1496         result and shift together with sticky bit instead of replicating
1497         round-to-nearest rounding.
1498         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1499         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1500         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1501         missing underflow exceptions.
1502         (fma_test_towardzero): Add more tests.
1503         (fma_test_downward): Likewise.
1504         (fma_test_upward): Likewise.
1505
1506         [BZ #14047]
1507         * sysdeps/generic/tininess.h: New file.
1508         * sysdeps/i386/tininess.h: Likewise.
1509         * sysdeps/sh/tininess.h: Likewise.
1510         * sysdeps/x86_64/tininess.h: Likewise.
1511         * stdlib/tst-strtod-underflow.c: Likewise.
1512         * stdlib/tst-tininess.c: Likewise.
1513         * stdlib/strtod_l.c: Include <tininess.h>.
1514         (round_and_return): Do not set errno for exact underflow cases.
1515         Force an underflow exception when setting errno for underflow.
1516         Determine underflow based on rounding to normal precision if
1517         TININESS_AFTER_ROUNDING.
1518         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1519         ERANGE for exact underflow cases.
1520         * stdlib/Makefile (tests): Add tst-tininess and
1521         tst-strtod-underflow.
1522         ($(objpfx)tst-tininess): Use $(link-libm).
1523         ($(objpfx)tst-strtod-underflow): Likewise.
1524
1525 2012-10-30  Andreas Jaeger  <aj@suse.de>
1526
1527         [BZ#14767]
1528         * elf/Makefile (tests): Remove conditional for have-initfini-array
1529         since this is now always required and the variable does not exist
1530         anymore.
1531         (tests-static): Likewise.
1532         (modules-names): Likewise.
1533
1534         * po/eo.po: Add Esperanto translation from translation project.
1535
1536         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1537         merged with constructor/destructor.
1538         (init_array): Likewise.
1539         * elf/tst-array2dep.c (fini_array): Likewise.
1540         (init_array): Likewise.
1541
1542 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1543
1544         * manual/message.texi: Delete @cartouche tags.
1545
1546 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1547
1548         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1549         EOPNOTSUPP.
1550         * sysdeps/mach/hurd/fsync.c: Likewise.
1551
1552         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1553         [_POSIX_REALTIME_SIGNALS]: Change condition to
1554         [_POSIX_REALTIME_SIGNALS > 0].
1555
1556 2012-10-27  Andreas Jaeger  <aj@suse.de>
1557
1558         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1559         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1560         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1561         [__WORDSIZE != 64]: Likewise.
1562
1563 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1564
1565         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1566         *  iconvdata/tst-tables.sh: Likewise.
1567
1568 2012-10-25  David S. Miller  <davem@davemloft.net>
1569
1570         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1571         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1572         of strtoull.
1573
1574         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1575         ifunc-impl-list.c
1576         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1577         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1578         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1579         file.
1580
1581 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1582
1583         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1584         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1585         __getdirentries.
1586
1587 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1588             Jim Blandy  <jimb@codesourcery.com>
1589
1590         * scripts/cross-test-ssh.sh: New file.
1591         * manual/install.texi (Configuring and compiling): Document use of
1592         cross-test-ssh.sh.
1593         * INSTALL: Regenerated.
1594
1595 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1596
1597         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1598         EOPNOTSUPP.
1599
1600 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1601
1602         * Makeconfig (run-program-prefix): Fix comment.
1603
1604 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1605             Jim Blandy  <jimb@codesourcery.com>
1606
1607         * Makeconfig (test-wrapper): New variable,
1608         (test-wrapper-env): Likewise.
1609         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1610         (run-built-tests): Define to yes.
1611         (run-program-prefix): Use $(test-wrapper).
1612         (built-program-cmd): Likewise.
1613         * Rules (make-test-out): Use $(test-wrapper-env) and
1614         $(host-built-program-cmd).
1615         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1616         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1617         tst-pathopt.sh.
1618         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1619         $(test-wrapper-env) to tst-rtld-load-self.sh.
1620         ($(objpfx)order2.out): Use $(test-wrapper).
1621         ($(objpfx)tst-initorder.out): Likewise.
1622         ($(objpfx)tst-initorder2.out): Likewise.
1623         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1624         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1625         (test_wrapper_env): New variable.  Use it to run ld.so.
1626         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1627         Use it to run ld.so.
1628         (test_wrapper_env): Likewise.
1629         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1630         $(test-wrapper) to run-iconv-test.sh.
1631         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1632         (ICONV): Use $test_wrapper.
1633         * posix/Makefile ($(objpfx)globtest.out): Pass
1634         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1635         globtest.sh, not $(run-program-prefix).
1636         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1637         (test_wrapper): Likewise.
1638         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1639         set together with run_via_rtld_prefix.
1640         (run_program_prefix): Define in terms of test_wrapper and
1641         run_via_rtld_prefix.
1642
1643 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1644
1645         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1646         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1647         Targets removed.
1648
1649         [BZ #14743]
1650         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1651         Declare __clock_getres, __clock_gettime, __clock_settime,
1652         __clock_nanosleep, and __clock_getcpuclockid.
1653         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1654         Remove librt_hidden_def (clock_gettime).
1655         * sysdeps/unix/clock_gettime.c: Likewise.
1656         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1657         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1658         * rt/clock_getres.c: Define __clock_getres as an alias.
1659         * sysdeps/posix/clock_getres.c: Likewise.
1660         * rt/clock_settime.c: Define __clock_settime as an alias.
1661         * sysdeps/unix/clock_settime.c: Likewise.
1662         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1663         * sysdeps/unix/clock_nanosleep.c: Likewise.
1664         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1665         * rt/clock-compat.c: New file.
1666         * rt/Makefile (librt-routines): Add clock-compat and move
1667         $(clock-routines) to ...
1668         (routines): ... here, new variable.
1669         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1670         Don't add get_clockfreq here.
1671         * rt/Versions (libc: GLIBC_2.17): New version set.
1672         Add clock_* symbols here.
1673         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1674         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1675         (GLIBC_2.17): Add clock_* symbols.
1676         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1677         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1678         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1680         Likewise.
1681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1682         Likewise.
1683         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1684         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1685         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1686         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1687         * NEWS: Mention the move.
1688
1689         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1690         Use __open, __read, __close rather than their public counterparts.
1691         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1692         (__get_clockfreq_via_cpuinfo): Likewise.
1693         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1694         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1695
1696         * config.h.in (HAVE_IFUNC): New #undef.
1697         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1698         was successful.
1699         * configure: Regenerated.
1700
1701 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1702
1703         * configure.in: Move READELF check to start of file.
1704         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1705         libc_cv_asm_gnu_indirect_function in the process.
1706         * configure: Regenerated.
1707
1708 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1709
1710         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1711         send the output to /dev/null.
1712         (libc_cv_cc_with_libunwind): Likewise.
1713         (libc_cv_as_noexecstack): Likewise.
1714         * configure: Regenerate.
1715
1716 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1717
1718         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1719
1720         * posix/globtest.sh (TMPDIR): Do not set.
1721         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1722         (testout): Likewise.
1723
1724 2012-10-24  Andreas Jaeger  <aj@suse.de>
1725
1726         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1727         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1728         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1729         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1730         posix_fadvise64, posix_fallocate64.
1731
1732         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1733         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1734         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1735         Likewise.
1736         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1737         Likewise.
1738         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1739
1740         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1741         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1742         <bits/fcntl-linux.h>.
1743         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1744
1745         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1746         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1747         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1748         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1749         [__WORDSIZE != 64]: Likewise.
1750
1751 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1752
1753         * Makeconfig (run-built-tests): New variable.
1754         * Rules [$(cross-compiling) = yes]: Change condition to
1755         [$(run-built-tests) = no].
1756         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1757         to [$(run-built-tests) = yes].
1758         * elf/Makefile [$(cross-compiling) = no]: Likewise
1759         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1760         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1761         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1762         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1763         * io/Makefile [$(cross-compiling) = no]: Likewise.
1764         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1765         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1766         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1767         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1768         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1769         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1770         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1771         * string/Makefile [$(cross-compiling) = no]: Likewise.
1772
1773         * posix/Makefile ($(objpfx)globtest.out): Pass
1774         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1775         $(rtld-installed-name).
1776         * posix/globtest.sh (elf_objpfx): Remove variable.
1777         (rtld_installed_name): Likewise.
1778         (library_path): Likewise.
1779         (run_program_prefix): New variable.  Use for running globtest
1780         binary.
1781
1782 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1783             Joseph Myers  <joseph@codesourcery.com>
1784
1785         * Makeconfig (host-built-program-cmd): New variable.
1786         * elf/Makefile (tst-stackguard1-ARGS): Use
1787         $(host-built-program-cmd).
1788         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1789         (tst-spawn-ARGS): Likewise.
1790         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1791
1792 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1793             Jim Blandy  <jimb@codesourcery.com>
1794
1795         * Makeconfig (run-via-rtld-prefix): New variable.
1796         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1797         (built-program-cmd): Likewise.
1798
1799 2012-10-22  Andreas Jaeger  <aj@suse.de>
1800
1801         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1802         __O_RSYNC if it exists, otherwise to O_SYNC.
1803
1804 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1805             Joseph Myers  <joseph@codesourcery.com>
1806
1807         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1808         /dev/null.
1809         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1810         from /dev/null
1811         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1812         /dev/null.
1813
1814 2012-10-22  Andreas Jaeger  <aj@suse.de>
1815
1816         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1817         Define always.
1818         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1819
1820         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1821         bits/fcntl-linux.h.
1822
1823         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1824         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1825
1826         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1827         to __O_LARGEFILE.
1828         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1829         to __O_LARGEFILE.
1830
1831 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1832             Joseph Myers  <joseph@codesourcery.com>
1833
1834         * config.make.in (NM): New variable.
1835
1836 2012-10-21  Andreas Jaeger  <aj@suse.de>
1837
1838         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1839         definitions and declarations that are provided by
1840         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1841
1842 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1843
1844         [BZ #14683]
1845         * elf/Makefile (tests-static): Add tst-leaks1-static.
1846         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1847         ($(objpfx)tst-leaks1-static): New rule.
1848         ($(objpfx)tst-leaks1-static-mem): Likewise.
1849         (tst-leaks1-static-ENV): New macro.
1850         * elf/dl-open.c (dl_open_worker): Check the main application
1851         only if SHARED is defined.
1852         * elf/tst-leaks1-static.c: New file.
1853
1854 2012-10-20  Andreas Jaeger  <aj@suse.de>
1855
1856         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1857         generic values for Linux.
1858         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1859         and declarations that are provided by <bits/fcntl-linux.h> and
1860         include <bits/fcntl-linux.h>.
1861         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1862         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1863
1864 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1865
1866         * io/fcntl.h: Move include of <bits/types.h> to the top and
1867         include it unconditionally.
1868
1869 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1870
1871         * wcsmbs/Makefile (tests-ifunc): New variable.
1872         (tests): Add $(tests-ifunc).
1873         * wcsmbs/test-wcschr-ifunc.c: New file.
1874         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1875         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1876         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1877         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1878         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1879
1880         * string/Makefile (tests-ifunc): New variable.
1881         (tests): Add $(tests-ifunc).
1882         * string/test-memccpy.c (TEST_NAME): New macro.
1883         * string/test-memchr.c (TEST_NAME): Likewise.
1884         * string/test-memcmp.c (TEST_NAME): Likewise.
1885         * string/test-memcpy.c (TEST_NAME): Likewise.
1886         * string/test-memmem.c (TEST_NAME): Likewise.
1887         * string/test-memmove.c (TEST_NAME): Likewise.
1888         * string/test-memset.c (TEST_NAME): Likewise.
1889         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1890         * string/test-stpcpy.c (TEST_NAME): Likewise.
1891         * string/test-stpncpy.c (TEST_NAME): Likewise.
1892         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1893         * string/test-strcasestr.c (TEST_NAME): Likewise.
1894         * string/test-strcat.c (TEST_NAME): Likewise.
1895         * string/test-strchr.c (TEST_NAME): Likewise.
1896         * string/test-strcmp.c(TEST_NAME): Likewise.
1897         * string/test-strcpy.c (TEST_NAME): Likewise.
1898         * string/test-strcspn.c (TEST_NAME): Likewise.
1899         * string/test-strlen.c (TEST_NAME): Likewise.
1900         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1901         * string/test-strncmp.c (TEST_NAME): Likewise.
1902         * string/test-strncpy.c (TEST_NAME): Likewise.
1903         * string/test-strnlen.c (TEST_NAME): Likewise.
1904         * string/test-strpbrk.c (TEST_NAME): Likewise.
1905         * string/test-strrchr.c (TEST_NAME): Likewise.
1906         * string/test-strspn.c (TEST_NAME): Likewise.
1907         * string/test-strstr.c (TEST_NAME): Likewise.
1908         * string/test-bcopy-ifunc.c: New file.
1909         * string/test-bzero-ifunc.c: Likewise.
1910         * string/test-memccpy-ifunc.c: Likewise.
1911         * string/test-memchr-ifunc.c: Likewise.
1912         * string/test-memcmp-ifunc.c: Likewise.
1913         * string/test-memcpy-ifunc.c: Likewise.
1914         * string/test-memmem-ifunc.c: Likewise.
1915         * string/test-memmove-ifunc.c: Likewise.
1916         * string/test-mempcpy-ifunc.c: Likewise.
1917         * string/test-memset-ifunc.c: Likewise.
1918         * string/test-rawmemchr-ifunc.c: Likewise.
1919         * string/test-stpcpy-ifunc.c: Likewise.
1920         * string/test-stpncpy-ifunc.c: Likewise.
1921         * string/test-strcasecmp-ifunc.c: Likewise.
1922         * string/test-strcasestr-ifunc.c: Likewise.
1923         * string/test-strcat-ifunc.c: Likewise.
1924         * string/test-strchr-ifunc.c: Likewise.
1925         * string/test-strchrnul-ifunc.c: Likewise.
1926         * string/test-strcmp-ifunc.c: Likewise.
1927         * string/test-strcpy-ifunc.c: Likewise.
1928         * string/test-strcspn-ifunc.c: Likewise.
1929         * string/test-strlen-ifunc.c: Likewise.
1930         * string/test-strncasecmp-ifunc.c: Likewise.
1931         * string/test-strncat-ifunc.c: Likewise.
1932         * string/test-strncmp-ifunc.c: Likewise.
1933         * string/test-strncpy-ifunc.c: Likewise.
1934         * string/test-strnlen-ifunc.c: Likewise.
1935         * string/test-strpbrk-ifunc.c: Likewise.
1936         * string/test-strrchr-ifunc.c: Likewise.
1937         * string/test-strspn-ifunc.c: Likewise.
1938         * string/test-strstr-ifunc.c: Likewise.
1939
1940         * debug/Makefile (tests-ifunc): New variable.
1941         (tests): Add $(tests-ifunc).
1942         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1943         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1944         * debug/test-stpcpy_chk-ifunc.c: New file.
1945         * debug/test-strcpy_chk-ifunc.c: Likewise.
1946
1947 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1948
1949         [BZ #13601]
1950         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1951         header is not read in.
1952
1953 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1954
1955         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1956         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1957         directly.  Pass built executable to script as
1958         $(built-program-cmd).
1959         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1960         $testprogram without using LD_LIBRARY_PATH and $ldso.
1961
1962         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1963         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1964         $(rtld-installed-name).
1965         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1966         (rtld_installed_name): Likewise.
1967         (library_path): Likewise.
1968         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1969         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1970         $(run-program-prefix) to tst-tables.sh.
1971         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1972         it to run tst-table-from and tst-table-to.
1973         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1974         Pass it to tst-table.sh.
1975         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1976         $(run-program-prefix) to tst-gettext.sh.
1977         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1978         tst-translit.sh.
1979         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1980         tst-gettext2.sh.
1981         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1982         to run tst-gettext.
1983         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1984         to run tst-gettext2.
1985         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1986         to run tst-translit.
1987         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1988         $(run-program-prefix) to tst-mtrace.sh.
1989         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1990         to run tst-mtrace.
1991         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1992         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1993         $(rtld-installed-name).
1994         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1995         (rtld_installed_name): Likewise.
1996         (run_program_prefix): New variable.  Use it to run wordexp-test.
1997
1998         * Makeconfig (ARCH): Remove all definitions.
1999         (machine): Likewise.
2000         [ARCH]: Remove conditional code.
2001         [!objdir]: Give error.
2002         [!objdir] (objpfx): Remove.
2003         [!objdir] (common-objpfx): Likewise.
2004         [!objdir] (common-objdir): Likewise.
2005         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2006         AC_CONFIG_FILES call.
2007         * configure: Regenerated.
2008
2009         [BZ #13888]
2010         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2011         or TMPDIR.
2012         (testout): Likewise.
2013
2014         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2015         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2016         $(rtld-installed-name).
2017         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2018         (rtld_installed_name): Likwise.
2019         (runit): Remove function.
2020         (run_getconf): New variable,  Use it for running getconf binary.
2021
2022 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2023
2024         [BZ #14716]
2025         * string/test-memmem.c (check_result): New function.
2026         (do_one_test): Use it.
2027         (check1): New function.
2028         (test_main): Use it.
2029
2030 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2031
2032         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2033
2034 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2035
2036         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2037         (_G_LSEEK64): Likewise.
2038         (_G_MMAP64): Likewise.
2039         (_G_FSTAT64): Likewise.
2040         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2041         (_G_LSEEK64): Likewise.
2042         (_G_MMAP64): Likewise.
2043         (_G_FSTAT64): Likewise.
2044         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2045         unconditional.  Call __mmap64 directly.
2046         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2047         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2048         __lseek64 directly.
2049         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2050         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2051         __mmap64 directly.
2052         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2053         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2054         __lseek64 directly.
2055         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2056         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2057         __lseek64 directly.
2058         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2059         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2060         __lseek64 directly.
2061         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2062         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2063         __fxstat64 directly.
2064         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2065         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2066         unconditional.
2067         (freopen64) [!_G_OPEN64]: Remove conditional code.
2068         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2069         unconditional.
2070         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2071         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2072         unconditional.
2073         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2074         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2075         unconditional.
2076         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2077         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2078         unconditional.
2079         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2080         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2081         unconditional.
2082         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2083         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2084         unconditional.
2085         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2086         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2087         unconditional.
2088         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2089
2090 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2091
2092         [BZ #12140]
2093         * manual/memory.texi (Malloc Tunable Parameters): Add note
2094         about free list pointers overwriting some perturb bytes.
2095         Wording suggested by Roland McGrath.
2096
2097 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2098
2099         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2100         (lgamma_test): Likewise.
2101         (tgamma_test): Likewise.
2102
2103 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2104
2105         [BZ #14700]
2106         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2107         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2108
2109 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2110
2111         * NEWS: Mention BZ #14716.
2112         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2113         when removing AVAILABLE1_USES_J macro.
2114
2115 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2116
2117         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2118         (__bswap_64): __uint64_t for unsigned 64-bit int.
2119
2120 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2121
2122         * include/string.h (memmem): Declare libc hidden alias.
2123         * string/memmem.c (memmem): Define libc hidden alias.
2124         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2125         __read, __close instead of open, read, close.
2126
2127 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2128
2129         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2130         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2131         global and hidden.
2132         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2133         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2134         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2135         Likewise.
2136         (__rawmemchr_sse2): Likewise.
2137         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2138         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2139         (__strchr_sse2): Likewise.
2140         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2141         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2142         (__strcasecmp_sse2): Likewise.
2143         (__strncasecmp_sse2): Likewise.
2144         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2145         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2146         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2147         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2148         (__strrchr_sse2): Likewise.
2149         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2150         ifunc-impl-list.c.
2151         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2152         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2153         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2154         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2155         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2156         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2157         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2158         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2159         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2160         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2161         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2162         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2163         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2164         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2165         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2166         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2167         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2168         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2169         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2170         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2171         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2172         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2173         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2174         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2175         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2176         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2177         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2178         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2179         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2180         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2181
2182         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2183         global and hidden.
2184         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2185         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2186         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2187         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2188         Likewise.
2189         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2190         Likewise.
2191         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2192         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2193         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2194         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2195         ifunc-impl-list.c.
2196         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2197         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2198         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2199         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2200         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2201         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2202         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2203         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2204         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2205         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2206         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2207         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2208         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2209         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2210         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2211         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2212         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2213         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2214         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2215         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2216         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2217         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2218         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2219         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2220         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2221         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2222         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2223         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2224         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2225         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2226         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2227         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2228         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2229         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2230         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2231         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2232         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2233         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2234         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2235         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2236         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2237
2238         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2239         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2240         * include/ifunc-impl-list.h: New file.
2241         * misc/ifunc-impl-list.c: Likewise.
2242         * misc/Makefile (routines): Add ifunc-impl-list.
2243         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2244         * string/test-string.h: Include <ifunc-impl-list.h>.
2245         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2246         impl_array): New variables.
2247         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2248         are defined.
2249         (test_init): Call __libc_ifunc_impl_list to initialize
2250         func_list if TEST_IFUNC and TEST_NAME are defined.
2251
2252         * string/Makefile (strop-tests): Add bcopy and bzero.
2253         * string/test-bcopy.c: New file.
2254         * string/test-bzero.c: Likewise.
2255         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2256         defined.
2257         * string/test-memset.c: Support bzero test if TEST_BZERO is
2258         defined.
2259         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2260         __libc_memmove.
2261         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2262         __libc_memset.
2263         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2264         of memset.
2265
2266 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2267
2268         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2269         * configure: Regenerated.
2270
2271         * Makeconfig (+link-static-before-libc): Don't include
2272         $(link-static-libc).
2273
2274         * libio/libio.h (_IO_pos_t): Remove.
2275
2276 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2277
2278         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2279         McGrath.
2280
2281 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2282
2283         * crypt/crypt-entry.c: Include fips-private.h.
2284         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2285         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2286         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2287         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2288
2289 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2290
2291         * crypt/crypt-private.h: Include stdbool.h.
2292         (_ufc_setup_salt_r): Return bool.
2293         * crypt/crypt-entry.c: Include errno.h.
2294         (__crypt_r): Return NULL with EINVAL for bad salt.
2295         * crypt/crypt_util.c (bad_for_salt): New.
2296         (_ufc_setup_salt_r): Check that salt is long enough and within
2297         the specified alphabet.
2298         * crypt/badsalttest.c: New file.
2299         * crypt/Makefile (tests): Add it.
2300         ($(objpfx)badsalttest): New.
2301
2302 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2303
2304         * NEWS: Add entry for BZ #14602.
2305
2306 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2307
2308         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2309         type-generic.
2310         * math/libm-test.inc: Update comment listing what functions and
2311         macros are tested.
2312         (isgreater_test): New function.
2313         (isgreaterequal_test): Likewise.
2314         (isless_test): Likewise.
2315         (islessequal_test): Likewise.
2316         (islessgreater_test): Likewise.
2317         (isunordered_test): Likewise.
2318         (main): Call the new functions.
2319
2320 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2321
2322         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2323         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2324         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2325         * sysdeps/i386/configure: Regenerated.
2326         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2327         * sysdeps/mach/configure: Regenerated.
2328         * sysdeps/mach/hurd/configure: Regenerated.
2329         * sysdeps/powerpc/configure: Regenerated.
2330         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2331         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2332         * sysdeps/s390/s390-32/configure: Regenerated.
2333         * sysdeps/s390/s390-64/configure: Regenerated.
2334         * sysdeps/sh/configure: Regenerated.
2335         * sysdeps/sparc/configure: Regenerated.
2336         * sysdeps/unix/sysv/linux/configure: Regenerated.
2337         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2338         * sysdeps/x86_64/configure: Regenerated.
2339
2340         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2341         defined.  Don't check if MAP is NULL.
2342
2343 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2344
2345         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2346         (_G_stat64): Likewise.
2347         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2348         (_G_stat64): Likewise.
2349         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2350         instead of struct _G_stat64.
2351         * libio/fileops.c (mmap_remap_check): Likewise.
2352         (decide_maybe_mmap): Likewise.
2353         (_IO_new_file_seekoff): Likewise.
2354         (_IO_file_stat): Likewise.
2355         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2356         _G_off64_t.
2357         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2358         instead of struct _G_stat64.
2359         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2360
2361 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2362
2363         [BZ #14602]
2364         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2365         Replace with ...
2366         (CHECK_EOL): New macro.
2367         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2368         CHECK_EOL.
2369         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2370         Replace with CHECK_EOL.
2371         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2372         Replace with CHECK_EOL.
2373
2374 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2375
2376         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2377         type-generic.
2378         * math/libm-test.inc: Update comment listing what functions and
2379         macros are tested.
2380         (finite_test): New function.
2381         (isinf_test): Likewise.
2382         (isnan_test): Likewise.
2383         (fpclassify_test): Test subnormal input.
2384         (isfinite_test): Likewise.
2385         (isnormal_test): Likewise.
2386         (main): Call the new functions.
2387
2388 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2389
2390         [BZ #14660]
2391         * Makerules (%.dynsym): Force C locale when running
2392         $(OBJDUMP) --dynamic-syms.
2393
2394 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2395
2396         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2397         <stdint.h>.
2398
2399 2012-10-06  David S. Miller  <davem@davemloft.net>
2400
2401         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2402         upper 32-bits of the length value in %o2 since we use branch-on-register
2403         tests which consider the entire 64-bit register.
2404
2405 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2406
2407         * string/test-strstr.c (check2): Add a test for page boundary.
2408
2409 2012-10-05  David S. Miller  <davem@davemloft.net>
2410
2411         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2412         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2413         file.
2414         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2415         sysdep_routines.
2416         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2417         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2418         and bzero when HWCAP_SPARC_CRYPTO is present.
2419
2420 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2421
2422         [BZ #14602]
2423         * string/test-strstr.c (check2): New function.
2424         (test_main): Call check2.
2425
2426         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2427         and bug-strchr1.
2428         * string/bug-strcasestr1.c (do_test): Moved to ...
2429         * string/test-strcasestr.c (check1): Here.  New function.
2430         (do_one_test): Break out result checking code into ...
2431         (check_result): This.  New function.
2432         (do_one_test): Call check_result.
2433         (test_main): Call check1.
2434         * string/bug-strchr1.c (do_test): Moved to ...
2435         * string/test-strchr.c (check1): Here.  New function.
2436         (do_one_test): Break out result checking code into ...
2437         (check_result): This.  New function.
2438         (do_one_test): Call check_result.
2439         (test_main): Call check1.
2440         * string/bug-strstr1.c (main): Moved to ...
2441         * string/test-strchr.c (check1): Here.  New function.
2442         (do_one_test): Break out result checking code into ...
2443         (check_result): This.  New function.
2444         (do_one_test): Call check_result.
2445         (test_main): Call check1.
2446         * string/bug-strcasestr1.c: Removed.
2447         * string/bug-strchr1.c: Likewise.
2448         * string/bug-strstr1.c: Likewise.
2449
2450         * elf/Makefile (dl-routines): Add hwcaps.
2451         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2452         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2453         (_dl_important_hwcaps): Moved to ...
2454         * elf/dl-hwcaps.c: Here.  New file.
2455         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2456
2457         [BZ #14557]
2458         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2459         if IS_IN_rtld isn't defined.
2460
2461         * elf/dl-support.c (_dl_sysinfo_map): New.
2462         Include "get-dynamic-info.h" and "setup-vdso.h".
2463         (_dl_non_dynamic_init): Call setup_vdso.
2464         * elf/dynamic-link.h: Don't include <assert.h>.
2465         (elf_get_dynamic_info): Moved to ...
2466         * elf/get-dynamic-info.h: Here.  New file.
2467         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2468         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2469         * elf/setup-vdso.h: Here.  New file.
2470         * elf/rtld.c: Include "setup-vdso.h".
2471         (dl_main): Call setup_vdso.
2472
2473 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2474
2475         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2476         creal in comment listing functions tested.  List finite, isinf,
2477         isnan, isless, islessequal, isgreater, isgreaterequal,
2478         islessgreater, isunordered, lgamma_r and pow10 as functions and
2479         macros not tested.  Mention which functions not tested are aliases
2480         for other functions.  Fix typo.  Note that signs of NaNs are not
2481         tested.
2482
2483         * scripts/config.guess: Update from config.git.
2484         * scripts/config.sub: Likewise.
2485
2486 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2487
2488         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2489         * misc/madvise.c (madvise): Renamed to __madvise.
2490         Make madvise a weak alias.
2491         * include/sys/mman.h: Declare __madvise.
2492         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2493         * sysdeps/unix/syscalls.list
2494         (madvise): Make __madvise the strong name, and madvise a weak alias.
2495         * sysdeps/unix/sysv/linux/syscalls.list
2496         (madvise, mmap): Remove redundant entries.
2497         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2498         * malloc/malloc.c (mtrim): Likewise.
2499         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2500
2501 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2502
2503         * sysdeps/mach/hurd/dl-cache.c: File removed.
2504         * config.h.in (USE_LDCONFIG): New #undef.
2505         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2506         * configure: Regenerated.
2507         * elf/Makefile (dl-routines): Add dl-cache only under
2508         [$(use-ldconfig) = yes].
2509         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2510         cache on [USE_LDCONFIG].
2511         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2512         [USE_LDCONFIG].
2513         * elf/rtld.c (dl_main): Likewise.
2514
2515 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2516
2517         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2518         _SC_LEVEL4_CACHE_LINESIZE.
2519
2520 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2521
2522         * sysdeps/unix/bsd/confstr.h: File removed.
2523
2524 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2525
2526         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2527         sys/sdt-config.h.
2528
2529 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2530
2531         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2532         Make 'mapoff' field ElfW(Off) rather than off_t.
2533
2534 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2535
2536         * nscd/Makefile: Remove nscd-cflags and all its users.
2537         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2538         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2539
2540         [BZ #10631]
2541         * malloc.c (malloc_printerr): Clarify error message.
2542
2543 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2544
2545         [BZ #14648]
2546         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2547         Set bit_FMA_Usable if FMA is supported.
2548         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2549         macro.
2550         (bit_FMA4_Usable): Updated.
2551         (index_FMA_Usable): New macro.
2552         (CPUID_FMA): Likewise
2553         (HAS_FMA): Defined with bit_FMA_Usable.
2554
2555 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2556
2557         * bits/types.h (__swblk_t): Type removed.
2558         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2559         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2560         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2561         (__SWBLK_T_TYPE): Likewise.
2562         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2563         (__SWBLK_T_TYPE): Likewise.
2564         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2565         (__SWBLK_T_TYPE): Likewise.
2566         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2567         (__SWBLK_T_TYPE): Likewise.
2568
2569 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2570             Honza Horak <hhorak@redhat.com>
2571
2572         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2573         (xdr_mapname): Use YPMAXMAP as maxsize.
2574         (xdr_peername): Use YPMAXPEER as maxsize.
2575         (xdr_keydat): Use YPAXRECORD as maxsize.
2576         (xdr_valdat): Use YPMAXRECORD as maxsize.
2577
2578 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2579
2580         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2581
2582         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2583         * csu/init-first.c: ... here.
2584         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2585         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2586         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2587         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2588         * sysdeps/i386/init-first.c: File removed.
2589         * sysdeps/sh/init-first.c: File removed.
2590
2591 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2592
2593         [BZ #14645]
2594         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2595         if x * y might underflow to zero and z is zero.
2596         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2597         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2598         * math/libm-test.inc (min_subnorm_value): New variable.
2599         (fma_test): Add more tests.
2600         (fma_test_towardzero): Likewise.
2601         (fma_test_downward): Likewise
2602         (fma_test_upward): Likewise.
2603         (initialize): Set min_subnorm_value.
2604
2605 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2606
2607         [BZ #14638]
2608         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2609         0 + 0.
2610         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2611         mode for addition resulting in exact zero.
2612         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2613         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2614         exact 0 + 0.
2615         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2616         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2617         * math/libm-test.inc (fma_test): Add more tests.
2618         (fma_test_towardzero): New function.
2619         (fma_test_downward): Likewise.
2620         (fma_test_upward): Likewise.
2621         (main): Call the new functions.
2622
2623 2012-09-28  David S. Miller  <davem@davemloft.net>
2624
2625         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2626
2627 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2628
2629         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2630         instead of SIGALRM.
2631
2632         * sysdeps/gnu/_G_config.h: Moved to ...
2633         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2634         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2635         * sysdeps/generic/_G_config.h: ... here.
2636
2637         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2638
2639         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2640
2641         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2642         Conditionalize target on [libnss_test1.so-version].
2643
2644         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2645
2646         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2647         (elfobjdir): Move out of conditionals.
2648
2649         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2650         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2651         (__nss_lookup_function): Conditionalize label remove_from_tree on
2652         [!DO_STATIC_NSS || SHARED], matching its only use.
2653
2654 2012-09-28  David S. Miller  <davem@davemloft.net>
2655
2656         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2657         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2658         file.
2659         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2660         sysdep_routines.
2661         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2662         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2663         when HWCAP_SPARC_CRYPTO is present.
2664
2665 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2666
2667         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2668
2669 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2670
2671         [BZ #6530]
2672         * stdio-common/vfprintf.c (process_string_arg): Revert
2673         2000-07-22 change.
2674
2675 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2676
2677         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2678         for testcase.
2679         * stdio-common/tst-sprintf.c: Include <locale.h>
2680         (main): Test sprintf's handling of incomplete multibyte
2681         characters.
2682
2683 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2684
2685         * elf/dl-runtime.c (VERSYMIDX): Removed.
2686         * elf/dl-version.c (VERSYMIDX): Likewise.
2687         * elf/do-rel.h (VERSYMIDX): Likewise.
2688         (VALIDX): Likewise.
2689         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2690         * elf/rtld.c (VALIDX): Likewise.
2691         (ADDRIDX): Likewise.
2692         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2693         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2694         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2695         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2696         (VALIDX): Likewise.
2697         (ADDRIDX): Likewise.
2698
2699 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2700
2701         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2702
2703 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2704
2705         [BZ #11438]
2706         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2707         to global scope.
2708         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2709         addresses are in the same scope as 192.0.2/24.
2710         * posix/gai.conf: Document new scope table defaults.
2711
2712 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2713
2714         [BZ #5298]
2715         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2716         for ftell.  Compute offsets from write pointers instead.
2717         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2718
2719 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2720
2721         [BZ #14543]
2722         * libio/Makefile (tests): New test case tst-fseek.
2723         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2724         combination works in wide mode.
2725         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2726         state when the external buffer state changes.
2727
2728 2012-09-27  David S. Miller  <davem@davemloft.net>
2729
2730         [BZ #14376]
2731         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2732         pass reloc->r_addend in as the 'high' argument to
2733         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2734
2735         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2736
2737 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2738
2739         * rt/tst-aio2.c: Include <pthread.h>.
2740         * rt/tst-aio3.c: Likewise.
2741
2742 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2743
2744         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2745
2746 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2747
2748         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2749         contents on [SHARED].
2750
2751 2012-09-26  Marek Polacek  <polacek@redhat.com>
2752
2753         [BZ #14530]
2754         [BZ #13741]
2755         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2756         for C++ and GCC <4.3 as well as for non GCC compilers.
2757
2758 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2759
2760         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2761
2762 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2763
2764         * Makefile.in (all, install): Declare with .PHONY.
2765         Reported by Michael Hope <michael.hope@linaro.org>.
2766
2767 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2768
2769         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2770         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2771         system header.
2772         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2773         Likewise.
2774         (sydep_routines): Add the new and the internal functions.
2775         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2776         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2778         (GLIBC_2.17): Add the new function.
2779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2780         (GLIBC_2.17): Likewise.
2781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2782         (GLIBC_2.17): Likewise.
2783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2784         (GLIBC_2.17): Likewise.
2785         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2786
2787 2012-09-25  Alan Modra  <amodra@gmail.com>
2788
2789         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2790         Add release barrier before setting once_control to say
2791         initialisation is done.  Add hints on lwarx.  Use macro in
2792         place of isync.
2793         (clear_once_control): Add release barrier.
2794
2795 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2796
2797         [BZ #13629]
2798         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2799         specially.
2800         * math/s_clog10.c (__clog10): Likewise.
2801         * math/s_clog10f.c (__clog10f): Likewise.
2802         * math/s_clog10l.c (__clog10l): Likewise.
2803         * math/s_clogf.c (__clogf): Likewise.
2804         * math/s_clogl.c (__clogl): Likewise.
2805         * math/Makefile (libm-calls): Add x2y2m1.
2806         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2807         (__x2y2m1): Likewise.
2808         (__x2y2m1l): Likewise.
2809         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2810         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2811         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2812         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2813         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2814         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2815         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2816         * sysdeps/i386/fpu/libm-test-ulps: Update.
2817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2818
2819         [BZ #14621]
2820         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2821         int as type of variable DEPTH.
2822         (glob): Use size_t instead of int as type of variables NEWCOUNT
2823         and OLD_PATHC.
2824
2825 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2826
2827         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2828         Add s_sincosf-sse2.
2829         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2830         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2831         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2832         macros for using routine as __sincosf_ia32.
2833         Use macro for function declaration and weak_alias.
2834         * sysdeps/i386/fpu/libm-test-ulps: Update.
2835
2836         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2837         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2838
2839         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2840         subnormal argument.
2841         * math/s_cexpf.c (__cexpf): Likewise.
2842         * math/s_csinf.c (__csinf): Likewise.
2843         * math/s_csinhf.c (__csinhf): Likewise.
2844         * math/s_ctanf.c (__ctanf): Likewise.
2845         * math/s_ctanhf.c (__ctanhf): Likewise.
2846         * math/s_ccosh.c (__ccoshf): Likewise.
2847         * math/s_cexp.c (__cexpl): Likewise.
2848         * math/s_csin.c (__csin): Likewise.
2849         * math/s_csinh.c (__csinh): Likewise.
2850         * math/s_ctan.c (__ctan): Likewise.
2851         * math/s_ctanh.c (ctanh): Likewise.
2852         * math/s_ccoshl.c (__ccoshl): Likewise.
2853         * math/s_cexpl.c (__cexpl): Likewise.
2854         * math/s_csinl.c (__csinl): Likewise.
2855         * math/s_csinhl.c (__csinhl): Likewise.
2856         * math/s_ctanl.c (__ctanl): Likewise.
2857         * math/s_ctanhl.c (__ctanhl): Likewise.
2858
2859 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2860
2861         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2862         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2863         (_IO_off_t): Define to __off_t, not _G_off_t.
2864         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2865         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2866         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2867         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2868         type of __dummy and __dummy2 fields.
2869         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2870         (_G_ssize_t): Likewise.
2871         (_G_off_t): Likewise.
2872         (_G_pid_t): Likewise.
2873         (_G_uid_t): Likewise.
2874         (_G_wchar_t): Likewise.
2875         (_G_wint_t): Likewise.
2876         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2877         (_G_ssize_t): Likewise.
2878         (_G_off_t): Likewise.
2879         (_G_pid_t): Likewise.
2880         (_G_uid_t): Likewise.
2881         (_G_wchar_t): Likewise.
2882         (_G_wint_t): Likewise.
2883         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2884         (_G_ssize_t): Likewise.
2885         (_G_off_t): Likewise.
2886         (_G_pid_t): Likewise.
2887         (_G_uid_t): Likewise.
2888         (_G_wchar_t): Likewise.
2889         (_G_wint_t): Likewise.
2890
2891 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2892
2893         * malloc/arena.c: Include malloc-sysdep.h.
2894         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2895         is sufficient to shrink the heap or an unmap is needed.
2896         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2897         new function check_may_shrink_heap.
2898         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2899         new function check_may_shrink_heap.
2900
2901 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2902
2903         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2904         comments.
2905
2906 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2907
2908         * catgets/test-gencat.sh: Add "set -e".
2909         * elf/tst-pathopt.sh: Likewise.
2910         * grp/tst_fgetgrent.sh: Likewise.
2911         * iconvdata/run-iconv-test.sh: Likewise.
2912         * intl/tst-gettext.sh: Likewise.
2913         * intl/tst-gettext2.sh: Likewise.
2914         * intl/tst-gettext4.sh: Likewise.
2915         * intl/tst-gettext6.sh: Likewise.
2916         * intl/tst-translit.sh: Likewise.
2917         * io/ftwtest-sh: Likewise.
2918         * libio/test-freopen.sh: Likewise.
2919         * malloc/tst-mtrace.sh: Likewise.
2920         * posix/globtest.sh: Likewise.
2921         * posix/tst-getconf.sh: Likewise.
2922         * posix/wordexp-tst.sh: Likewise.
2923         * stdio-common/tst-printf.sh: Likewise.
2924         * stdio-common/tst-unbputc.sh: Likewise.
2925         * stdlib/tst-fmtmsg.sh: Likewise.
2926         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2927         * catgets/Makefile: Do not specify -e option when running
2928         testsuite shell scripts.
2929         * elf/Makefile: Likewise.
2930         * grp/Makefile: Likewise.
2931         * iconvdata/Makefile: Likewise.
2932         * intl/Makefile: Likewise.
2933         * io/Makefile: Likewise.
2934         * libio/Makefile: Likewise.
2935         * malloc/Makefile: Likewise.
2936         * posix/Makefile: Likewise.
2937         * stdio-common/Makefile: Likewise.
2938         * stdlib/Makefile: Likewise.
2939         * sysdeps/x86_64/Makefile: Likewise.
2940
2941         * io/ftwtest-sh: Add copyright header.
2942         * posix/globtest.sh: Likewise.
2943         * posix/tst-getconf.sh: Likewise.
2944         * posix/wordexp-tst.sh: Likewise.
2945         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2946
2947 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2948
2949         [BZ #13679]
2950         * Makeconfig (+link): Defined as $(+link-static) if
2951         $(build-shared) isn't yes.
2952         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2953         isn't yes.
2954         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2955
2956         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2957
2958         [BZ #14562]
2959         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2960         new chunk size with MALLOC_ALIGN_MASK.
2961
2962 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2963
2964         [BZ #5044]
2965         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2966         <rounding-mode.h>.
2967         (__printf_fphex): Determine rounding using get_rounding_mode and
2968         round_away.
2969         * stdio-common/tst-printf-round.c (struct hex_test): New
2970         structure.
2971         (hex_tests): New variable.
2972         (test_hex_in_one_mode): New function.
2973         (do_test): Also run tests for hex float output.
2974
2975 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2976
2977         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2978         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2979         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2980         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2981         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2982         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2983         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2984         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2985
2986 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2987
2988         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2989         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2990         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2991         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2992
2993 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2994
2995         [BZ #14579]
2996         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2997         mode only.
2998         * elf/tst-rtld-load-self.sh: New test.
2999         * elf/Makefile: Run it.
3000
3001 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3002
3003         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3004         (tst-writev-ENV): Remove.
3005         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3006
3007 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3008
3009         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3010
3011 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3012
3013         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3014         unconditional.
3015         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3016         Likewise.
3017         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3018         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3019         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3020         Likewise.
3021
3022 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3023
3024         [BZ #14587]
3025         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3026         * config.make.in (have-cpp-asm-debuginfo): Removed.
3027         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3028         * configure: Regenerated.
3029
3030 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3031
3032         [BZ #5044]
3033         * stdio-common/printf_fp.c: Include <stdbool.h> and
3034         <rounding-mode.h>.
3035         (___printf_fp): Determine rounding using get_rounding_mode and
3036         round_away.
3037         * stdio-common/tst-printf-round.c: New file.
3038         * stdio-common/Makefile (tests): Add tst-printf-round.
3039         (link-libm): New variable.
3040         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3041
3042 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3043
3044         [BZ #14576]
3045         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3046         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3047         Likewise.
3048         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3049         Likewise.
3050
3051 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3052
3053         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3054         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3055         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3056         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3057
3058 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3059
3060         [BZ #14518]
3061         * include/rounding-mode.h: New file.
3062         * sysdeps/generic/get-rounding-mode.h: Likewise.
3063         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3064         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3065         (MAX_VALUE): New macro.
3066         (MIN_VALUE): Likewise.
3067         (overflow_value): New function.
3068         (underflow_value): Likewise.
3069         (round_and_return): Use overflow_value and underflow_value to
3070         determine return values in overflow and underflow cases.  Use
3071         round_away to determine rounding depending on rounding mode.
3072         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3073         determine return values in overflow and underflow cases.
3074         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3075         (struct test_results): New structure.
3076         (struct test): Use struct test_results to store expected results
3077         for all rounding modes.
3078         (TEST): Include expected results for all rounding modes.
3079         (test_in_one_mode): New function.
3080         (do_test): Use test_in_one_mode to compute and check results.
3081         Check results for all rounding modes.
3082         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3083         $(link-libm).
3084
3085 2012-12-09  Allan McRae  <allan@archlinux.org>
3086
3087         * sysdeps/i386/fpu/libm-test-ulps: Update
3088
3089 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3090
3091         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3092         (_G_int32_t): Likewise.
3093         (_G_uint16_t): Likewise.
3094         (_G_uint32_t): Likewise.
3095         (_G_HAVE_BOOL): Likewise.
3096         (_G_HAVE_ATEXIT): Likewise.
3097         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3098         (_G_HAVE_IO_FILE_OPEN): Likewise.
3099         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3100         (_G_int32_t): Likewise.
3101         (_G_uint16_t): Likewise.
3102         (_G_uint32_t): Likewise.
3103         (_G_HAVE_BOOL): Likewise.
3104         (_G_HAVE_ATEXIT): Likewise.
3105         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3106         (_G_HAVE_IO_FILE_OPEN): Likewise.
3107         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3108         (_G_int32_t): Likewise.
3109         (_G_uint16_t): Likewise.
3110         (_G_uint32_t): Likewise.
3111         (_G_HAVE_BOOL): Likewise.
3112         (_G_HAVE_ATEXIT): Likewise.
3113         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3114         (_G_HAVE_IO_FILE_OPEN): Likewise.
3115
3116 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3117
3118         * csu/libc-tls.c: Update copyright years.
3119
3120 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3121
3122         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3123         [!_G_USING_THUNKS]: Remove conditional code.
3124         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3125         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3126
3127         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3128         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3129         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3130         (_G_VTABLE_LABEL_PREFIX): Likewise.
3131         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3132         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3133         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3134         (_G_VTABLE_LABEL_PREFIX): Likewise.
3135         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3136         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3137         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3138         (_G_VTABLE_LABEL_PREFIX): Likewise.
3139         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3140
3141 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3142
3143         * libio/Makefile: Include ../Makeconfig before tests.
3144         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3145         only if $(build-shared) is yes.
3146
3147         * iconv/gconv_db.c: Update copyright years.
3148
3149 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3150
3151         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3152         unwind info if defined PIC. Fix special cases description.
3153         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3154
3155         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3156         DP_HI_MASK entry.
3157         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3158
3159 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3160
3161         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3162
3163         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3164         is NULL.
3165
3166         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3167         (LDLIBS-tst-chk4): This.
3168         (LDFLAGS-tst-chk5): Renamed to ...
3169         (LDLIBS-tst-chk5): This.
3170         (LDFLAGS-tst-chk6): Renamed to ...
3171         (LDLIBS-tst-chk6): This.
3172         (LDFLAGS-tst-lfschk4): Renamed to ...
3173         (LDLIBS-tst-lfschk4): This.
3174         (LDFLAGS-tst-lfschk5): Renamed to ...
3175         (LDLIBS-tst-lfschk5): This.
3176         (LDFLAGS-tst-lfschk6): Renamed to ...
3177         (LDLIBS-tst-lfschk6): This.
3178
3179         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3180         on $(common-objpfx)soversions.mk.
3181
3182 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
3183
3184         [BZ #10014]
3185         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3186         example host name.
3187
3188 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3189
3190         * malloc/arena.c (arena_get_retry): New function that gets
3191         another arena for the caller to try its request on.
3192         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3193         current arena cannot fulfill the request.
3194         (__libc_memalign): Likewise.
3195         (__libc_memalign): Likewise.
3196         (__libc_pvalloc): Likewise.
3197         (__libc_calloc): Likewise.
3198
3199 2012-09-05  John Tobey  <john.tobey@gmail.com>
3200
3201         [BZ #13542]
3202         * manual/arith.texi (Operations on Complex): Fix description
3203         of carg branch cut.
3204
3205 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3206
3207         [BZ #10014]
3208         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3209         host name.
3210
3211         [BZ #10038]
3212         * manual/memory.texi (Memory): Make order of menu items match
3213         order of sections.
3214
3215 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3216
3217         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3218         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3219         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3220
3221 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3222
3223         * csu/libc-tls.c (static_dtv): Renamed to ...
3224         (_dl_static_dtv): This.  Make it global.
3225         (_dl_initial_dtv): Removed.
3226         (__libc_setup_tls): Updated.
3227         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3228         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3229         DL_INITIAL_DTV.
3230
3231 2012-09-06  Petr Machata  <pmachata@redhat.com>
3232
3233         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3234         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3235         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3236         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3237
3238 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3239
3240         [BZ #14545]
3241         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3242         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3243         freeing dtv[-1].
3244
3245 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3246
3247         [BZ #14544]
3248         * Makeconfig (link-static-before-libc): Replace $(+prector)
3249         with $(+prectorT).
3250         (link-static-after-libc): Replace $(+postctor) with
3251         $(+postctorT).
3252         (link-bounded): Replace $(+prector)/$(+postctor) with
3253         $(+prectorT)/$(+postctorT).
3254         (+prectorT): New macro.
3255         (+postctorT): Likewise.
3256
3257 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3258
3259         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3260         (round_str): Handle values above the maximum for IBM long double
3261         as inexact.
3262         * stdlib/tst-strtod-round.c (tests): Regenerated.
3263
3264 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3265
3266         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3267         assembler flag.
3268         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3269         zarch_nohighgprs around the zarch optimized routines.
3270         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3271         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3272         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3273         for zarch.
3274
3275 2012-09-05  David S. Miller  <davem@davemloft.net>
3276
3277         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3278
3279         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3280         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3281         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3282         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3283         entries.
3284
3285 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3286
3287         * malloc/arena.c: Fold copyright years.
3288         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3289
3290 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3291
3292         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3293
3294 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3295
3296         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3297
3298 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3299
3300         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3301         change internal state upon failure.
3302
3303 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3304
3305         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3306         * malloc/memusage.c (mmap): Likewise.
3307         (mmap64, mremap): Likewise.  Adjust name in comment.
3308
3309 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3310
3311         * libio/fileops.c: Fix typos in comments.
3312         * libio/oldfileops.c: Likewise.
3313         * libio/wfileops.c: Likewise.
3314
3315 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3316
3317         [BZ #1349]
3318         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3319         (tst-malloc-usable-ENV): Set environment for test case.
3320         * malloc/hooks.c (malloc_check_get_size): New function to get
3321         requested size.
3322         * malloc/malloc.c (musable): Use malloc_check_get_size.
3323         * malloc/tst-malloc-usable.c: New test case.
3324
3325 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3326
3327         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3328
3329 2012-09-05  Allan McRae  <allan@archlinux.org>
3330
3331         [BZ #13966]
3332         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3333         determine header location.
3334         * configure: Regenerated.
3335
3336 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3337
3338         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3339         float format.
3340         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3341         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3342         format.
3343         (test): Regenerate.
3344
3345 2012-09-04  David S. Miller  <davem@davemloft.net>
3346
3347         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3348         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3349         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3350
3351 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3352
3353         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3354         failures.
3355
3356         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3357
3358 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3359
3360         [BZ #9914]
3361         * libio/iogetdelim.c: Include <limits.h>.
3362         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3363         + len + 1 would overflow.
3364
3365 2012-09-03  Andreas Jaeger  <aj@suse.de>
3366
3367         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3368         * sysdeps/i386/fpu/libm-test-ulps: Update.
3369
3370 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3371
3372         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3373         Add s_sinf-sse2, s_conf-sse2.
3374
3375         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3376         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3377         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3378         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3379
3380         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3381         for using routine as __sinf_ia32.
3382         Use macro for function declaration and weak_alias.
3383         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3384         for using routine as __cosf_ia32.
3385         Use macro for function declaration and weak_alias.
3386
3387         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3388         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3389
3390         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3391         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3392         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3393
3394         * math/libm-test.inc (cos_test): Add more test cases.
3395         (sin_test): Likewise.
3396         (sincos_test): Likewise.
3397
3398 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3399
3400         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3401         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3402         hidden.
3403         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3404
3405 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3406
3407         [BZ #14538]
3408         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3409         first element of the GOT.
3410         (elf_machine_load_address): Return the difference between
3411         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3412
3413 2012-09-01  Allan McRae  <allan@archlinux.org>
3414
3415         [BZ #13412]
3416         * configure.in (AWK): Require gawk version 3.0 or later.
3417         * configure: Regenerated.
3418
3419 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3420
3421         * sysdeps/unix/sysv/linux/kernel-features.h
3422         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3423         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3424         [__NR_clock_getres]: Make code unconditional.
3425         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3426         (clock_getcpuclockid): Remove code left unreachable by removal of
3427         conditionals.
3428         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3429         code unconditional.
3430         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3431         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3432         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3433         Make code unconditional.
3434         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3435         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3436         * sysdeps/unix/sysv/linux/clock_settime.c
3437         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3438         conditional code.
3439         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3440         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3441
3442 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3443
3444         [BZ #14476]
3445         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3446         scripts/test-installation.pl.
3447
3448         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3449         and $ld_so_version if it is set.
3450
3451 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3452
3453         [BZ #14516]
3454         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3455         failure if reading from procfs failed.
3456         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3457
3458 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3459
3460         * sysdeps/unix/sysv/linux/kernel-features.h
3461         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3462         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3463         Remove conditional code.
3464         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3465         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3466         Remove conditional code.
3467         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3468         * sysdeps/unix/sysv/linux/i386/fxstat.c
3469         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3470         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3471         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3472         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3473         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3474         * sysdeps/unix/sysv/linux/i386/lxstat.c
3475         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3476         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3477         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3478         Remove conditional code.
3479         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3480         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3481         Remove conditional code.
3482         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3483         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3484         <kernel-features.h>.
3485         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3486         Remove.
3487         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3488         Remove conditional code.
3489         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3490         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3491         Remove conditional.
3492
3493 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3494
3495         [BZ #5400]
3496         * NEWS: Add fixed bug number.
3497
3498 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3499
3500         [BZ #14519]
3501         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3502         underflowing exponent in case of negative sign.
3503         * stdlib/tst-strtod-round-data: Add more tests.
3504         * stdlib/tst-strtod-round.c (tests): Regenerated.
3505
3506         [BZ #3479]
3507         * stdlib/strtod_l.c (NDIG): Remove.
3508         (HEXNDIG): Likewise.
3509         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3510         smallest representable value.
3511         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3512         lie within an exact representation of 1/2 ulp of the result.
3513         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3514         unconditionally.
3515         (TENS_P9_IDX): Define unconditionally.
3516         (TENS_P9_SIZE): Likewise.
3517         (TENS_P10_IDX): Likewise.
3518         (TENS_P10_SIZE): Likewise.
3519         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3520         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3521         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3522         entries for 10^2^13 and 10^2^14.
3523         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3524         (TENS_P13_IDX): Define.
3525         (TENS_P13_SIZE): Likewise.
3526         (TENS_P14_IDX): Likewise.
3527         (TENS_P14_SIZE): Likewise.
3528         (_fpioconst_pow10): Change array size to
3529         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3530         unconditional.
3531         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3532         1024]: Add entries for 10^2^13 and 10^2^14.
3533         [LAST_POW10 > _LAST_POW10]: Remove #error.
3534         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3535         (_fpioconst_pow10): Change array size to
3536         FPIOCONST_POW10_ARRAY_SIZE.
3537         * stdlib/gen-fpioconst.c: New file.
3538         * stdlib/gen-tst-strtod-round.c: Likewise.
3539         * stdlib/tst-strtod-round-data: Likewise.
3540         * stdlib/tst-strtod-round.c: Likewise.
3541         * stdlib/Makefile (tests): Add tst-strtod-round.
3542
3543         [BZ #14459]
3544         * stdlib/strtod_l.c: Include <stdint.h>.
3545         (NDEBUG): Do not define.
3546         (round_and_return): Change EXPONENT parameter to type intmax_t.
3547         Rearrange calculations to avoid internal overflow possibilities.
3548         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3549         Rearrange calculations to avoid internal overflow possibilities.
3550         Assert that number fits inside MPNSIZE limbs.
3551         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3552         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3553         calculations and add assertions to avoid internal overflow
3554         possibilities.  Add casts to avoid signed/unsigned operations.
3555         * stdlib/tst-strtod-overflow.c: New file.
3556         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3557
3558 2012-08-25  Marek Polacek  <polacek@redhat.com>
3559
3560         * time/time.h: Fix some typos in comments.
3561
3562 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3563
3564         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3565         * posix/tst-rfc3484-2.c: Likewise.
3566         * posix/tst-rfc3484-3.c: Likewise.
3567
3568 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3569
3570         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3571         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3572
3573 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3574
3575         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3576         #include of fxstatat64.c.
3577
3578 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3579
3580         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3581         * shadow/getspent_r.c: Likewise.
3582         * shadow/getspnam.c: Likewise.
3583         * shadow/getspnam_r.c: Likewise.
3584         * gshadow/getsgent.c: Likewise.
3585         * gshadow/getsgent_r.c: Likewise.
3586         * gshadow/getsgnam.c: Likewise.
3587         * gshadow/getsgnam_r.c: Likewise.
3588         * inet/getnetbyad.c: Likewise.
3589         * inet/getnetbyad_r.c: Likewise.
3590         * inet/getnetbynm.c: Likewise.
3591         * inet/getnetbynm_r.c: Likewise.
3592         * inet/getnetent.c: Likewise.
3593         * inet/getnetent_r.c: Likewise.
3594         * inet/getproto.c: Likewise.
3595         * inet/getproto_r.c: Likewise.
3596         * inet/getprtent.c: Likewise.
3597         * inet/getprtent_r.c: Likewise.
3598         * inet/getprtname.c: Likewise.
3599         * inet/getprtname_r.c: Likewise.
3600         * inet/getrpcbyname.c: Likewise.
3601         * inet/getrpcbyname_r.c: Likewise.
3602         * inet/getrpcbynumber.c: Likewise.
3603         * inet/getrpcbynumber_r.c: Likewise.
3604         * inet/getrpcent.c: Likewise.
3605         * inet/getrpcent_r.c: Likewise.
3606         * inet/getaliasent.c: Likewise.
3607         * inet/getaliasent_r.c: Likewise.
3608         * inet/getaliasname.c: Likewise.
3609         * inet/getaliasname_r.c: Likewise.
3610         * nscd/getgrgid_r.c: Likewise.
3611         * nscd/getgrnam_r.c: Likewise.
3612         * nscd/gethstbyad_r.c: Likewise.
3613         * nscd/gethstbynm3_r.c: Likewise.
3614         * nscd/getpwnam_r.c: Likewise.
3615         * nscd/getpwuid_r.c: Likewise.
3616         * nscd/getsrvbynm_r.c: Likewise.
3617         * nscd/getsrvbypt_r.c: Likewise.
3618         * nscd/gai.c: Likewise.
3619
3620         * configure.in (build_nscd): New substituted variable, set
3621         by --disable-build-nscd and defaults to $use_nscd.
3622         * configure: Regenerated.
3623         * config.make.in (build-nscd): New substituted variable.
3624         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3625         Change conditional to require [$(build-nscd) = yes] as well.
3626         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3627
3628         [BZ# 13696]
3629         * configure.in (use_nscd): New substituted variable, set by
3630         --disable-nscd.  If enabled, define USE_NSCD.
3631         * configure: Regenerated.
3632         * config.h.in: Add USE_NSCD.
3633         * config.make.in (use-nscd): New substituted variable.
3634         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3635         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3636         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3637         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3638         (CFLAGS-getgrnam_r.c): Likewise.
3639         (CFLAGS-initgroups.c): Likewise.
3640         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3641         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3642         Variables removed.
3643         * inet/getnetgrent_r.c
3644         (nscd_setnetgrent): New function, broken out of ...
3645         (setnetgrent): ... here.  Call it.
3646         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3647         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3648         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3649         * nscd/Makefile (routines, aux): Move definitions after include of
3650         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3651         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3652         Conditionalize on [USE_NSCD].
3653         (is_nscd, nscd_init_cb): Likewise.
3654         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3655         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3656         * nss/nss_db/db-init.c: Likewise.
3657         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3658         [USE_NSCD].
3659         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3660         (make_request): Use it.
3661         (cache_valid_p): New function.
3662         (__check_pf): Use it.
3663         * NEWS: Add item for --disable-nscd.
3664
3665 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3666
3667         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3668         to support sed >= 4.2.1-20-ga9bf076.
3669         * configure: Regenerated.
3670
3671 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3672
3673         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3674         Conditionalize whole body on [IREL].
3675
3676 2012-08-22  Jeff Law <law@redhat.com>
3677
3678         [BZ #14505]
3679         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3680         if the family is PF_UNSPEC.
3681
3682 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3683
3684         * Makerules (lib-version): Rename from V.
3685         (install-lib-nosubdir): Change V to lib-version.
3686
3687 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3688
3689         [BZ #14252]
3690         * powerpc32/power6/wcschr.c: New file.
3691         * powerpc32/power6/wcscpy.c: New file.
3692         * powerpc32/power6/wcsrchr.c: New file.
3693         * powerpc64/power6/wcschr.c: New file.
3694         * powerpc64/power6/wcscpy.c: New file.
3695         * powerpc64/power6/wcsrchr.c: New file.
3696
3697 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3698
3699         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3700         (two_way_short_needle): Use it.
3701         * string/strstr.c (AVAILABLE1_USES_J): Define.
3702         * string/strcasestr.c: Likewise.
3703
3704         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3705         array references.
3706         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3707
3708         [BZ #11607]
3709         * NEWS: Add an entry.
3710         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3711         define their defaults.
3712         (two_way_short_needle): Detect end-of-string on-the-fly.
3713         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3714         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3715         * string/bug-strcasestr1.c: New test.
3716         * string/Makefile: Run it.
3717
3718 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3719
3720         [BZ #11607]
3721         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3722         the first character.
3723
3724 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3725
3726         * csu/elf-init.c (__libc_csu_irel): Function removed.
3727         * csu/libc-start.c (apply_irel): New function.
3728         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3729
3730 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3731
3732         * sysdeps/unix/sysv/linux/kernel-features.h
3733         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3734         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3735         <kernel-features.h>.
3736         [__NR_fadvise64_64]: Make code unconditional.
3737         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3738         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3739         !__NR_fadvise64_64)]: Likewise.
3740         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3741         !__NR_fadvise64_64))]: Likewise.
3742         [__NR_fadvise64]: Make code unconditional.
3743         [!__NR_fadvise64]: Remove conditional code.
3744         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3745         <kernel-features.h>.
3746         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3747         unconditional.
3748         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3749         conditional code.
3750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3751         not include <kernel-features.h>.
3752         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3753         unconditional.
3754         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3755         conditional code.
3756         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3757         include <kernel-features.h>.
3758         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3759         unconditional.
3760         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3761         conditional code.
3762
3763 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3764
3765         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3766         slight instruction rearrangements per scrollpipe analysis.
3767         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3768
3769 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3770
3771         * manual/syslog.texi (syslog; vsyslog, closelog):
3772         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3773         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3774
3775         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3776         DSOCAPS to match condition on defining it.
3777
3778 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3779
3780         * sysdeps/unix/sysv/linux/kernel-features.h
3781         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3783         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3784         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3786         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3787         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3789         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3790         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3791
3792         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3793         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3794
3795         * sysdeps/unix/sysv/linux/kernel-features.h
3796         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3797         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3798         unconditional.
3799         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3800         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3801         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3802         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3803         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3804         Make code unconditional.
3805         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3806         (__mmap64) [!__NR_mmap2]: Likewise.
3807         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3808         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3809         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3810         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3811         [__NR_mmap2]: Make code unconditional.
3812         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3813         (__mmap64) [!__NR_mmap2]: Likewise.
3814
3815 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3816
3817         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3818
3819 2012-08-18  Andreas Jaeger  <aj@suse.de>
3820
3821         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3822
3823 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3824
3825         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3826         * include/unistd.h (__have_sock_cloexec): Likewise.
3827         (__have_pipe2): Likewise.
3828         (__have_dup3): Likewise.
3829
3830 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3831
3832         [BZ #9685]
3833         * include/unistd.h (__have_pipe2): Change define into an extern int.
3834         (__have_dup3): Likewise.
3835         * socket/have_sock_cloexec.c: Include fcntl.h.
3836         (__have_pipe2): New variable.
3837         (__have_dup3): Likewise.
3838
3839 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3840
3841         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3842
3843 2012-08-17  Marek Polacek  <polacek@redhat.com>
3844
3845         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3846         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3847
3848 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3849
3850         * configure.in: Add AC_SUBST for sysheaders.
3851         * configure: Regenerated.
3852         * config.make.in (sysheaders): New substituted variable.
3853
3854         * sysdeps/unix/mkfifo.c: Moved ...
3855         * sysdeps/posix/mkfifo.c: ... here.
3856         * sysdeps/unix/mkfifoat.c: Moved ...
3857         * sysdeps/posix/mkfifoat.c: ... here.
3858
3859         * sysdeps/unix/utime.c: Moved ...
3860         * sysdeps/posix/utime.c: ... here.
3861
3862         * sysdeps/unix/time.c: Moved ...
3863         * sysdeps/posix/time.c: ... here.
3864         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3865         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3866
3867         * sysdeps/unix/nice.c: Moved ...
3868         * sysdeps/posix/nice.c: ... here.
3869
3870         * sysdeps/unix/alarm.c: Moved ...
3871         * sysdeps/posix/alarm.c: ... here.
3872
3873         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3874
3875 2012-08-17  Jeff Law <law@redhat.com>
3876
3877         * intl/Makefile (codeset_mo): New variable.
3878         ($(codeset_mo)): New target.
3879         (tst-codeset.out): Depend on that.  Remove explicit rule.
3880         (tst-gettext3.out, tst-gettext5.out): Likewise.
3881         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3882         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3883         * intl/tst-codeset.sh: Remove.
3884         * intl/tst-gettext3.sh: Likewise.
3885         * intl/tst-gettext5.sh: Likewise.
3886
3887 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3888
3889         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3890         * sysdeps/unix/syscalls.list: ... here.
3891
3892         * sysdeps/posix/getaddrinfo.c
3893         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3894         (gaiconf_init, gaiconf_reload): Use them.
3895         [!_STATBUF_ST_NSEC]
3896         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3897         Define using time_t rather than struct timespec.
3898
3899         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3900         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3901         Macros removed.
3902         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3903         [!NO_THREADS].
3904         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3905         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3906         Likewise.
3907
3908         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3909         __libc_cleanup_push argument.
3910
3911         * bits/param.h: New file.
3912         * misc/sys/param.h: New file.
3913         * include/sys/param.h: New file.
3914         * misc/Makefile (headers): Add bits/param.h.
3915         * sysdeps/generic/sys/param.h: File removed.
3916         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3917         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3918         * sysdeps/mach/hurd/bits/param.h: New file.
3919         * sysdeps/mach/hurd/sys/param.h: File removed.
3920
3921         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3922         last change.
3923
3924         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3925         [_IO_MTSAFE_IO].
3926         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3927         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3928         New macros.
3929
3930         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3931         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3932         rather than -D_IO_MTSAFE_IO conditionally.
3933         * stdio-common/Makefile (CPPFLAGS): Likewise.
3934         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3935         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3936         Use $(libio-mtsafe).
3937         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3938         of -D_IO_MTSAFE_IO.
3939         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3940         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3941         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3942         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3943         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3944         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3945         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3946         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3947         (CFLAGS-fread_u_chk.c): Likewise.
3948         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3949         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3950         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3951         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3952         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3953         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3954         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3955         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3956         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3957
3958         * libio/Makefile: Test [$(libc-reentrant) = yes]
3959         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3960
3961         * Makeconfig
3962         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3963         * sysdeps/pthread/configure: File removed.
3964         * sysdeps/pthread/Makeconfig: New file.
3965         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3966         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3967
3968 2012-08-16  Gary Benson  <gbenson@redhat.com>
3969
3970         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3971         unmapping the first object in a namespace.
3972
3973 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3974
3975         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3976         (__internal_setnetgrent): ... this.  Add internal_function to
3977         definition.  Add libc_hidden_def.
3978         (setnetgrent): Update caller.
3979         (internal_endnetgrent): Renamed to ...
3980         (__internal_endnetgrent): ... this.  Add internal_function to
3981         definition.  Add libc_hidden_def.
3982         (endnetgrent): Update caller.
3983         (internal_getnetgrent_r): Renamed to ...
3984         (__internal_getnetgrent_r): ... this.  Add internal_function to
3985         definition.  Add libc_hidden_def.
3986         (__getnetgrent_r): Update caller.
3987         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3988
3989 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3990
3991         * stdlib/longlong.h: Update from GCC.
3992
3993 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3994
3995         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3996         on _QL, which is set by umul_ppmm but never used.
3997         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3998         variables, which are set by GMP macros but never used.
3999         * stdio-common/_itowa.c (_itowa): Likewise.
4000         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4001         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4002
4003 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4004
4005         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4006         struct La_sh_regs is not constant.
4007         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4008         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4009         and struct La_sparc64_regs are not constant.
4010
4011 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4012
4013         * sysdeps/unix/sysv/linux/kernel-features.h
4014         (__ASSUME_POSIX_TIMERS): Remove.
4015         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4016         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4017         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4018         Make code unconditional.
4019         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4020         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4021         Make code unconditional.
4022         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4023         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4024         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4025         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4026         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4027         Make code unconditional.
4028         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4029         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4030         (__libc_missing_posix_timers): Remove.
4031
4032 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4033
4034         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4035         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4036
4037         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4038
4039         * elf/dl-sym.c: Include <stdlib.h>.
4040
4041         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4042         constants, which avoids warnings in 32-bit builds.
4043
4044         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4045         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4046
4047         * misc/lseek.c: File moved to ...
4048         * io/lseek.c: ... here.
4049
4050         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4051
4052         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4053         shifting LEN more than 31 bits at once.
4054
4055 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4056
4057         [BZ #14195]
4058         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4059         segmentation fault for a case of two empty input strings.
4060         * string/test-strncasecmp.c (check1): Renamed to...
4061         (bz12205): ...this.
4062         (bz14195): Add new testcase for two empty input strings and N > 0.
4063         (test_main): Call new testcase, adapt for renamed function.
4064
4065 2012-08-15  Andreas Jaeger  <aj@suse.de>
4066
4067         [BZ #14090]
4068         * crypt/md5test2.c: New test, based on test supplied by Serge
4069         Belyshev <belyshev@depni.sinp.msu.ru>.
4070         * crypt/Makefile (xtests): Add md5test-giant..
4071         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4072
4073 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4074
4075         [BZ #14090]
4076         * crypt/md5.c (md5_process_block): Don't assume the buffer
4077         length is less than 2**32.
4078         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4079         length is less than 2**64.
4080
4081 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4082
4083         * string/str-two-way.h: Include <sys/param.h>.
4084         (MAX): Macro removed.
4085
4086         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4087         Move #define and #undef of memmove to just before and after
4088         including <string.h>.
4089
4090         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4091         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4092         and after including <string.h>.  Move declarations of
4093         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4094         to before #include "string/memmove.c".
4095
4096         * include/dirent.h: Declare __getdirentries.
4097
4098         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4099         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4100
4101 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4102
4103         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4104         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4105         * sysdeps/i386/configure: Regenerated.
4106         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4107         STABS_CURRENT_FILE, and STABS_FUN.
4108         (END): Remove call to STABS_FUN_END.
4109         (STABS_CURRENT_FILE1): Delete.
4110         (STABS_CURRENT_FILE): Likewise.
4111         (STABS_FUN): Likewise.
4112         (STABS_FUN_END): Likewise.
4113         (STABS_FUN2): Likewise.
4114         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4115         * sysdeps/x86_64/configure: Regenerated.
4116
4117 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4118
4119         * elf/dl-open.c: Include <atomic.h>.
4120         * elf/dl-lookup.c: Likewise.
4121
4122 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4123
4124         * sysdeps/unix/sysv/linux/kernel-features.h
4125         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4126         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4127         unconditionally.
4128         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4129         unconditionally.
4130         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4131         condition on __ASSUME_CLONE_THREAD_FLAGS.
4132
4133 2012-08-14  Andreas Jaeger  <aj@suse.de>
4134
4135         * sysdeps/i386/fpu/libm-test-ulps: Update.
4136
4137 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4138
4139         * include/atomic.h (atomic_exchange_and_add): Split into ...
4140         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4141         New atomic macros.
4142
4143 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4144
4145         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4146
4147 2012-08-13  Jeff Law <law@redhat.com>
4148
4149         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4150         null byte in the output string.
4151
4152 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4153
4154         * sysdeps/unix/sysv/linux/kernel-features.h
4155         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4156         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4157         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4158         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4159         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4160         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4161         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4162
4163 2012-08-09  Jeff Law <law@redhat.com>
4164
4165         [BZ #13939]
4166         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4167         When avoid_arena is set, don't retry in the that arena.  Pick the
4168         next one, whatever it might be.
4169         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4170         (arena_lock): Pass in new parameter to arena_get2.
4171         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4172         arena_get2.
4173         (__libc_malloc): Unify retrying after main arena failure with
4174         __libc_memalign version.
4175         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4176
4177 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4178
4179         [BZ #14166]
4180         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4181         to __redirect_strstr.
4182         (__strstr_sse42): Use typeof __redirect_strstr.
4183         (__strstr_ia32): Likewise.
4184         (__libc_strstr): New prototype.
4185         (strstr): Renamed to ...
4186         (__libc_strstr): This.
4187         (strstr): New strong alias of __libc_strstr.
4188         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4189         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4190         __redirect_time.
4191         Include <time.h>.
4192         (__libc_time): New prototype.
4193         (time_ifunc): Replace time with __libc_time.
4194         (time): New strong alias and hidden definition of __libc_time.
4195         (__GI_time): Remove strong alias.
4196         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4197         Include <stddef.h>.
4198         (memmove): Redefined to __redirect_memmove.
4199         (__memmove_sse2): Use typeof __redirect_memmove.
4200         (__memmove_ssse3): Likewise.
4201         (__memmove_ssse3_back): Likewise.
4202         (__libc_memmove): New prototype.
4203         (memmove): Renamed to ...
4204         (__libc_memmove): This.
4205         (memmove): New strong alias of __libc_memmove.
4206
4207 2012-08-08  Mark Salter  <msalter@redhat.com>
4208
4209         * elf/elf.h
4210         (R_MN10300_TLS_GD): Define.
4211         (R_MN10300_TLS_LD): Likewise.
4212         (R_MN10300_TLS_LDO): Likewise.
4213         (R_MN10300_TLS_GOTIE): Likewise.
4214         (R_MN10300_TLS_IE): Likewise.
4215         (R_MN10300_TLS_LE): Likewise.
4216         (R_MN10300_TLS_DTPMOD): Likewise.
4217         (R_MN10300_TLS_DTPOFF): Likewise.
4218         (R_MN10300_TLS_TPOFF): Likewise.
4219         (R_MN10300_SYM_DIFF): Likewise.
4220         (R_MN10300_ALIGN): Likewise.
4221         (R_MN10300_NUM): Update.
4222
4223 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4224
4225         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4226         Remove.
4227
4228 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4229
4230         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4231
4232         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4233         sysdeps/unix -> sysdeps/posix move.
4234         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4235
4236 2012-08-07      Allan McRae     <allan@archlinux.org>
4237
4238         [BZ #14303]
4239         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4240         (SUNOS_CPP): Likewise.
4241         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4242         not found.
4243         (open_input): Call CPP using execvp.
4244
4245 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4246
4247         * sysdeps/unix/sysv/linux/kernel-features.h
4248         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4249         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4250         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4251         (__ASSUME_WAITID_SYSCALL): Likewise.
4252         * sysdeps/unix/sysv/linux/dl-execstack.c
4253         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4254         code unconditional.
4255         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4256         conditional code.
4257         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4258         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4259         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4260         code.
4261         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4262         unconditional.
4263         [__ASSUME_WAITID_SYSCALL]: Likewise.
4264         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4265
4266 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4267
4268         * sysdeps/unix/closedir.c: Renamed to ...
4269         * sysdeps/posix/closedir.c: ... here.
4270         * sysdeps/unix/dirfd.c: Renamed to ...
4271         * sysdeps/posix/dirfd.c: ... here.
4272         * sysdeps/unix/dirstream.h: Renamed to ...
4273         * sysdeps/posix/dirstream.h: ... here.
4274         * sysdeps/unix/fdopendir.c: Renamed to ...
4275         * sysdeps/posix/fdopendir.c: ... here.
4276         * sysdeps/unix/opendir.c: Renamed to ...
4277         * sysdeps/posix/opendir.c: ... here.
4278         * sysdeps/unix/readdir.c: Renamed to ...
4279         * sysdeps/posix/readdir.c: ... here.
4280         * sysdeps/unix/readdir_r.c: Renamed to ...
4281         * sysdeps/posix/readdir_r.c: ... here.
4282         * sysdeps/unix/rewinddir.c: Renamed to ...
4283         * sysdeps/posix/rewinddir.c: ... here.
4284         * sysdeps/unix/seekdir.c: Renamed to ...
4285         * sysdeps/posix/seekdir.c: ... here.
4286         * sysdeps/unix/telldir.c: Renamed to ...
4287         * sysdeps/posix/telldir.c: ... here.
4288         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4289         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4290         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4291         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4292
4293         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4294         * bits/fcntl.h: ... here.
4295
4296         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4297         not 0.
4298         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4299         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4300         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4301         (struct flock): Move l_start, l_len to the beginning.
4302         Use __pid_t for l_pid.
4303         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4304         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4305         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4306         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4307         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4308         [__USE_LARGEFILE64] (struct flock64): New type.
4309         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4310
4311         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4312         * bits/dirent.h: ... here.
4313
4314         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4315         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4316
4317 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4318
4319         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4320         Change from 2.6.0 to 2.6.16.
4321         * sysdeps/unix/sysv/linux/configure: Regenerated.
4322         * sysdeps/unix/sysv/linux/kernel-features.h
4323         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4324         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4325         version.
4326         (__ASSUME_UTIMES): Likewise.
4327         (__ASSUME_CLONE_STOPPED): Remove.
4328         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4329         architectures, not kernel version.
4330         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4331         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4332         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4333         (__ASSUME_WAITID_SYSCALL): Likewise.
4334         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4335         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4336         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4337         refer to older versions.
4338
4339 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4340
4341         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4342         Define alphasort64 as an alias.
4343         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4344         Define versionsort64 as an alias.
4345         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4346         Define scandir64 as an alias.
4347         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4348         Define scandirat64 as an alias.
4349         * dirent/alphasort64.c (alphasort64):
4350         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4351         * dirent/versionsort64.c: Likewise.
4352         * dirent/scandir64.c: Likewise.
4353         * dirent/scandirat64.c: Likewise.
4354         * sysdeps/wordsize-64/alphasort.c: File removed.
4355         * sysdeps/wordsize-64/alphasort64.c: File removed.
4356         * sysdeps/wordsize-64/scandir.c: File removed.
4357         * sysdeps/wordsize-64/scandir64.c: File removed.
4358         * sysdeps/wordsize-64/scandirat.c: File removed.
4359         * sysdeps/wordsize-64/scandirat64.c: File removed.
4360         * sysdeps/wordsize-64/versionsort.c: File removed.
4361         * sysdeps/wordsize-64/versionsort64.c: File removed.
4362         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4363         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4364         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4365         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4366         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4367         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4368         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4369         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4370
4371         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4372         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4373         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4374         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4375         [defined __arch64__ || defined __sparcv9]
4376         (__INO_T_MATCHES_INO64_T): New macro.
4377         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4378         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4379         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4380         * sysdeps/unix/sysv/linux/bits/dirent.h
4381         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4382         (_DIRENT_MATCHES_DIRENT64): New macro.
4383
4384         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4385         Define lockf64 as an alias.
4386         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4387         Define fseeko64 as an alias.
4388         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4389         Define ftello64 as an alias.
4390         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4391         Define _IO_fgetpos64 and fgetpos64 as aliases.
4392         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4393         Define _IO_fsetpos64 and fsetpos64 as aliases.
4394         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4395         Conditionalize body on this.
4396         * libio/fseeko64.c: Likewise.
4397         * libio/ftello64.c: Likewise.
4398         * libio/iofgetpos64.c: Likewise.
4399         * libio/iofsetpos64.c: Likewise.
4400         * sysdeps/wordsize-64/lockf.c: File removed.
4401         * sysdeps/wordsize-64/lockf64.c: File removed.
4402         * sysdeps/wordsize-64/fseeko.c: File removed.
4403         * sysdeps/wordsize-64/fseeko64.c: File removed.
4404         * sysdeps/wordsize-64/ftello.c: File removed.
4405         * sysdeps/wordsize-64/ftello64.c: File removed.
4406         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4407         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4408         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4409         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4410         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4411         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4412         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4413         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4414         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4415         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4416         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4417         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4418         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4419         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4420
4421         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4422         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4423         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4424         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4425         [defined __arch64__ || defined __sparcv9]
4426         (__OFF_T_MATCHES_OFF64_T): New macro.
4427         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4428         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4429         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4430         (__OFF_T_MATCHES_OFF64_T): New macro.
4431
4432 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4433
4434         * stdlib/secure-getenv.c (__secure_getenv): Replace
4435         GLIBC_2_16 with GLIBC_2_17.
4436
4437 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4438
4439         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4440         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4441
4442 2012-08-03  David S. Miller  <davem@davemloft.net>
4443
4444         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4445
4446 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4447
4448         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4449         Remove.
4450         (__ASSUME_CORRECT_SI_PID): Likewise.
4451         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4452         (__ASSUME_TMPFS_NAME): Likewise.
4453         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4454         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4455         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4456         (HAVE_AUX_SECURE): Make definition unconditional.
4457         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4458         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4459
4460 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4461
4462         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4463         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4464         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4465         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4466         __eloop_threshold instead of SYMLOOP_MAX.
4467
4468         * sysdeps/generic/eloop-threshold.h: New file.
4469         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4470         of MAXSYMLINKS.
4471         * elf/chroot_canon.c (chroot_canon): Likewise.
4472
4473 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4474
4475         [BZ #13717]
4476         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4477         Change to 2.6.0 everywhere.
4478         * sysdeps/unix/sysv/linux/configure: Regenerated.
4479         * sysdeps/unix/sysv/linux/kernel-features.h
4480         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4481         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4482         kernel versions.
4483         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4484         (__ASSUME_FUTEX_REQUEUE): Remove.
4485         (__ASSUME_STATFS64): Define unconditionally.
4486         (__ASSUME_AT_SECURE): Likewise.
4487         (__ASSUME_CORRECT_SI_PID): Likewise.
4488         (__ASSUME_TGKILL): Define without depending on kernel version for
4489         i386.
4490         (__ASSUME_UTIMES): Likewise.
4491         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4492         kernel version.
4493         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4494         (__ASSUME_TMPFS_NAME): Likewise.
4495         * README: Update reference to Linux kernel versions.
4496
4497 2012-08-02  Marek Polacek  <polacek@redhat.com>
4498
4499         [BZ# 14150]
4500         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4501         libc_cv_asm_type_prefix with %.
4502         * configure: Regenerated.
4503         * include/libc-symbols.h: Remove comment about
4504         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4505         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4506         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4507         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4508         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4509         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4510         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4511         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4512         * elf/tst-unique2mod1.c: Likewise.
4513         * elf/tst-unique1mod2.c: Likewise.
4514         * elf/tst-unique1mod1.c: Likewise.
4515         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4516         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4517         Replace ASM_TYPE_DIRECTIVE with .type.
4518         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4519         * sysdeps/i386/sysdep.h: Likewise.
4520         * sysdeps/x86_64/sysdep.h: Likewise.
4521         * sysdeps/sh/sysdep.h: Likewise.
4522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4523         Do not define ASM_TYPE_DIRECTIVE.
4524         * sysdeps/powerpc/sysdep.h: Likewise.
4525         * sysdeps/powerpc/powerpc32/sysdep.h:
4526         Replace ASM_TYPE_DIRECTIVE with .type.
4527         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4528         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4529         * sysdeps/i386/fpu/e_powf.S: Likewise.
4530         * sysdeps/i386/fpu/e_expl.S: Likewise.
4531         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4532         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4533         * sysdeps/i386/fpu/e_pow.S: Likewise.
4534         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4535         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4536         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4537         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4538         * sysdeps/i386/fpu/e_log2.S: Likewise.
4539         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4540         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4541         * sysdeps/i386/fpu/e_powl.S: Likewise.
4542         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4543         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4544         * sysdeps/i386/fpu/e_logl.S: Likewise.
4545         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4546         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4547         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4548         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4549         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4550         * sysdeps/i386/fpu/e_log.S: Likewise.
4551         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4552         * sysdeps/i386/fpu/e_logf.S: Likewise.
4553         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4554         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4555         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4556         * sysdeps/i386/fpu/e_log10.S: Likewise.
4557         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4558         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4559         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4560         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4561         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4562         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4563         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4564         * sysdeps/i386/i686/strtok.S: Likewise.
4565         * sysdeps/i386/i386-mcount.S: Likewise.
4566         * sysdeps/i386/strtok.S: Likewise.
4567         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4568         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4569         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4570         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4571         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4572         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4573         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4574         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4575         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4576         * sysdeps/x86_64/_mcount.S: Likewise.
4577         * sysdeps/x86_64/strtok.S: Likewise.
4578         * sysdeps/sh/_mcount.S: Likewise.
4579
4580 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4581
4582         * libio/iofopen.c: Include <fcntl.h>.
4583         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4584         (_IO_fopen64, fopen64): Define as aliases.
4585         * libio/iofopen64.c: Include <fcntl.h>.
4586         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4587         Conditionalize body on this.
4588         * sysdeps/wordsize-64/iofopen.c: File removed.
4589         * sysdeps/wordsize-64/iofopen64.c: File removed.
4590
4591 2012-08-01  Marek Polacek  <polacek@redhat.com>
4592
4593         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4594         Use dlfcn directly instead of a variable.
4595         (binfmt-subdir): Do not define.
4596         (dlfcn): Likewise.
4597
4598 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4599
4600         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4601         Remove all definitions.
4602         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4603         <kernel-features.h>.
4604         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4605         (miss_F_GETOWN_EX): Remove all definitions.
4606         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4607         macro definition.
4608         [!__ASSUME_FCNTL64]: Remove conditional code.
4609         [__ASSUME_FCNTL64]: Make code unconditional.
4610         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4611         <kernel-features.h>.
4612         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4613         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4614         (lockf64) [__NR_fcntl64]: Make code unconditional.
4615         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4616
4617         * sysdeps/unix/sysv/linux/kernel-features.h
4618         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4619         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4620         Make code unconditional.
4621         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4622         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4624         [__NR_vfork]: Make code unconditional.
4625         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4626         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4628         [__NR_vfork]: Make code unconditional.
4629         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4630         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4631
4632 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4633
4634         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4635         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4636
4637         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4638         Define mkstemp64 as an alias.
4639         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4640         Define mkstemps64 as an alias.
4641         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4642         Define mkostemp64 as an alias.
4643         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4644         Define mkostemps64 as an alias.
4645         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4646         Conditionalize body on this.
4647         * misc/mkostemp64.c: Likewise.
4648         * misc/mkostemps64.c: Likewise.
4649         * misc/mkstemps64.c: Likewise.
4650         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4651         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4652         * sysdeps/wordsize-64/mkostemp.c: File removed.
4653         * sysdeps/wordsize-64/mkstemp.c: File removed.
4654         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4655         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4656         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4657         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4658
4659         [BZ #14138]
4660         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4661         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4662         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4663         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4664
4665         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4666         compat_symbol macros from <shlib-compat.h> rather than the underlying
4667         default_symbol_version and symbol_version macros, so that DEFAULT
4668         lines in shlib-versions are respected.
4669         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4670
4671 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4672
4673         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4674         Declare with warn_unused_result.
4675         (setgid, setregid, setegid, setresgid): Likewise.
4676         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4677         Likewise.
4678         * WUR-REPORT: Remove set*id functions.
4679
4680 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4681
4682         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4683
4684 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4685
4686         * include/sys/socket.h (__libc_accept, __libc_accept4):
4687         Add attribute_hidden.
4688         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4689
4690         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4691         use of PTR_MANGLE.
4692         * inet/getnetgrent_r.c (setup): Likewise.
4693
4694         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4695
4696 2012-07-31  David S. Miller  <davem@davemloft.net>
4697
4698         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4699
4700 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4701
4702         [BZ #13629]
4703         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4704         value between 1.0 and 2.0 and smaller part has absolute value less
4705         than 1.0.
4706         * math/s_clog10.c (__clog10): Likewise.
4707         * math/s_clog10f.c (__clog10f): Likewise.
4708         * math/s_clog10l.c (__clog10l): Likewise.
4709         * math/s_clogf.c (__clogf): Likewise.
4710         * math/s_clogl.c (__clogl): Likewise.
4711         * math/libm-test.inc (clog_test): Add more tests.
4712         (clog10_test): Likewise.
4713         * sysdeps/i386/fpu/libm-test-ulps: Update.
4714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4715
4716 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4717
4718         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4719         Exit with zero in case no suitable GID is found, and write a
4720         message to standard error.
4721
4722 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4723
4724         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4725         rather than to 1.
4726         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4727         (MAXPATHLEN): Removed.
4728         (NOGROUP, NODEV): New macros.
4729         (setbit, clrbit, isset, isclr): New macros.
4730         (howmany, roundup, powerof2): New macros.
4731         (DEV_BSIZE): New macro.
4732
4733         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4734         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4735
4736         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4737         definition on [!__NO_LONG_DOUBLE_MATH].
4738
4739         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4740         PTR_MANGLE and PTR_DEMANGLE.
4741
4742         * socket/accept4.c (accept4): Rename to __libc_accept4.
4743         Define accept4 as a weak alias.
4744
4745         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4746         on [_DIRENT_HAVE_D_TYPE].
4747         * io/ftw.c (ftw_dir): Likewise.
4748
4749         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4750
4751         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4752
4753         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4754         Use the BSD numbers rather than the arbitrary ones we had.
4755         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4756         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4757         (SIGXCPU, SIGXFSZ): New macros.
4758         (_NSIG): Now 32.
4759
4760         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4761         initializer on [_LIBC_REENTRANT].
4762
4763         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4764         definitions inside [_POSIX_MAPPED_FILES].
4765
4766         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4767
4768         * dirent/opendir.c: Include <fcntl.h>.
4769
4770         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4771         (__libc_getspecific): Likewise.
4772         (__libc_key_create): Likewise.
4773
4774         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4775         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4776         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4777         (tmpfile64): Define as alias.
4778         * sysdeps/wordsize-64/tmpfile.c: File removed.
4779         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4780         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4781         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4782
4783         * stdio-common/vfscanf.c: Include <stdbool.h>.
4784         * nss/makedb.c: Likewise.
4785         * stdio-common/_i18n_number.h: Likewise.
4786         * argp/argp-help.c: Likewise.
4787         * posix/wordexp.c: Likewise.
4788         * sysdeps/posix/spawni.c: Likewise.
4789         * nss/nss_files/files-initgroups.c: Likewise.
4790         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4791         * nss/nss_files/files-initgroups.c: Likewise.
4792         * nss/nss_db/db-netgrp.c: Likewise.
4793         * nss/nss_db/db-initgroups.c: Likewise.
4794         * io/fchmodat.c: Include <sys/stat.h>.
4795
4796         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4797         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4798
4799         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4800         [HAVE_MMAP].
4801
4802         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4803         Add multiple inclusion protection.
4804
4805 2012-07-27  David S. Miller  <davem@davemloft.net>
4806
4807         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4808
4809 2012-07-27  Gary Benson  <gbenson@redhat.com>
4810
4811         [BZ #14298]
4812         * elf/rtld.c: Include <stap-probe.h>.
4813         (dl_main): Added static probes "init_start" and "init_complete".
4814         * elf/dl-load.c: Include <stap-probe.h>.
4815         (lose): Take new parameter "nsid".
4816         Added static probe "map_failed".
4817         (_dl_map_object_from_fd): Pass namespace id to lose.
4818         Added static probe "map_start".
4819         (open_verify): Pass namespace id to lose.
4820         * elf/dl-open.c: Include <stap-probe.h>.
4821         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4822         and "reloc_complete".
4823         * elf/dl-close.c: Include <stap-probe.h>.
4824         (_dl_close_worker): Added static probes "unmap_start" and
4825         "unmap_complete".
4826         * elf/rtld-debugger-interface.txt: New file documenting the above.
4827
4828 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4829
4830         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4831         rather than a string variable.
4832         * sunrpc/rpc_main.c (h_output): Likewise.
4833         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4834
4835 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4836
4837         * inet/check_native.c: New file.
4838
4839 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4840
4841         [BZ #13629]
4842         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4843         if larger part has absolute value 1.0.
4844         * math/s_clog10.c (__clog10): Likewise.
4845         * math/s_clog10f.c (__clog10f): Likewise.
4846         * math/s_clog10l.c (__clog10l): Likewise.
4847         * math/s_clogf.c (__clogf): Likewise.
4848         * math/s_clogl.c (__clogl): Likewise.
4849         * math/libm-test.inc (clog_test): Add more tests.
4850         (clog10_test): Likewise.
4851         * sysdeps/i386/fpu/libm-test-ulps: Update.
4852         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4853
4854         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4855         (pltexit): Likewise.
4856         (La_regs): Likewise.
4857         (La_retval): Likewise.
4858         (int_retval): Likewise.
4859         Update #error for removed macros to refer only to definitions in
4860         tst-audit.h.
4861         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4862         macro.
4863         (pltexit): Likewise.
4864         (La_regs): Likewise.
4865         (La_retval): Likewise.
4866         (int_retval): Likewise.
4867         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4868         macro.
4869         (pltexit): Likewise.
4870         (La_regs): Likewise.
4871         (La_retval): Likewise.
4872         (int_retval): Likewise.
4873         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4874         macro.
4875         (pltexit): Likewise.
4876         (La_regs): Likewise.
4877         (La_retval): Likewise.
4878         (int_retval): Likewise.
4879         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4880         macro.
4881         (pltexit): Likewise.
4882         (La_regs): Likewise.
4883         (La_retval): Likewise.
4884         (int_retval): Likewise.
4885         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4886         macro.
4887         (pltexit): Likewise.
4888         (La_regs): Likewise.
4889         (La_retval): Likewise.
4890         (int_retval): Likewise.
4891         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4892         macro.
4893         (pltexit): Likewise.
4894         (La_regs): Likewise.
4895         (La_retval): Likewise.
4896         (int_retval): Likewise.
4897         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4898         macro definitions in tst-audit.h.
4899         * sysdeps/i386/tst-audit.h: New file.
4900         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4901         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4902         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4903         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4904         * sysdeps/sh/tst-audit.h: Likewise.
4905         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4906         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4907         * sysdeps/x86_64/tst-audit.h: Likewise.
4908
4909 2012-07-26  Andreas Jaeger  <aj@suse.de>
4910
4911         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4912         ptrace.
4913
4914         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4915         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4916         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4917         PTRACE_O_MASK.
4918         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4919         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4920         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4921
4922         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4923         value.
4924
4925         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4926         _sigsys.
4927         (si_call_addr, si_syscall, si_arch): Define new macro.
4928         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4929         _sigsys.
4930         (si_call_addr, si_syscall, si_arch): Define new marcro.
4931         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4932         _sigsys.
4933         (si_call_addr, si_syscall, si_arch): Define new macro.
4934         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4935         _sigsys.
4936         (si_call_addr, si_syscall, si_arch): Define new macro.
4937
4938 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4939
4940         [BZ #13717]
4941         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4942         Change to 2.4.21 where previously 2.4.1.
4943         * sysdeps/unix/sysv/linux/configure: Regenerated.
4944         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4945         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4946         Linux kernel version.
4947         (__ASSUME_STD_AUXV): Remove.
4948         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4949         kernel version.
4950         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4951         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4952         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4953         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4954         (__ASSUME_NETLINK_SUPPORT): Likewise.
4955         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4956         (__no_netlink_support): Remove conditional definition.
4957         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4958         Remove.
4959         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4960         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4961         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4962         (if_nameindex_ioctl): Remove.
4963         (if_nameindex_netlink): Do not handle __no_netlink_support.
4964         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4965         code.
4966         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4967         Remove conditional code.
4968         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4969         code.
4970         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4971         unconditional.
4972         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4973         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4974         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4975         Remove.
4976         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4977         [!__ASSUME_STD_AUXV]: Remove conditional code.
4978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4979         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4980         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4982         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4983         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4984         code.
4985         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4987         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4988         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4989         conditional code.
4990         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4992         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4993         code.
4994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4995         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4996         conditional code.
4997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4998         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4999         code unconditional.
5000         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5001         conditional code.
5002         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5003         unconditional.
5004         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5005         conditional code.
5006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5007         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5008         unconditional.
5009         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5010         conditional code.
5011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5012         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5013         code unconditional.
5014         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5015         conditional code.
5016         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5017         unconditional.
5018         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5019         conditional code.
5020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5021         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5022         code unconditional.
5023         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5024         conditional code.
5025         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5026         unconditional.
5027         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5028         conditional code.
5029
5030 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5031
5032         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5033         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5034         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5035         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5036         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5037         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5038         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5039         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5040         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5041         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5042         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5043         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5044         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5045         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5046         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5047         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5048         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5049         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5050         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5051         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5052         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5053         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5054         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5055
5056 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5057
5058         * Versions.def: Add GLIBC_2.17.
5059         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5060         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5061         Introduce __libc_secure_getenv.
5062         * stdlib/Versions (2.17): Add secure_getenv
5063         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5064         * stdlib/secure-getenv.c: Rename __secure_getenv to
5065         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5066         symbol __secure_getenv for GLIBC_2.0.
5067         * stdlib/tst-secure-getenv.c: New.
5068         * stdlib/Makefile (tests): Add testcase.
5069         * manual/startup.texi (Environment Access): Document
5070         secure_getenv.
5071         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5072         __libc_secure_getenv.
5073         * inet/ruserpass.c (ruserpass): Likewise.
5074         * malloc/mtrace.c (mtrace): Likewise.
5075         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5076         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5077         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5078         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5079         HAVE_SECURE_GETENV.
5080         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5081         __secure_getenv to __libc_secure_getenv.
5082         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5084         Likewise.
5085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5086         Likewise.
5087         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5089         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5090         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5091         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5092         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5093         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5094
5095 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5096
5097         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5098         (struct La_i86_retval): Likewise.
5099         (struct La_x86_64_regs): Likewise.
5100         (struct La_x86_64_retval): Likewise.
5101         (struct La_x32_regs): Likewise.
5102         (struct La_x32_retval): Likewise.
5103         (struct La_ppc32_regs): Likewise.
5104         (struct La_ppc32_retval): Likewise.
5105         (struct La_ppc64_regs): Likewise.
5106         (struct La_ppc64_retval): Likewise.
5107         (struct La_sh_regs): Likewise.
5108         (struct La_sh_retval): Likewise.
5109         (struct La_s390_32_regs): Likewise.
5110         (struct La_s390_32_retval): Likewise.
5111         (struct La_s390_64_regs): Likewise.
5112         (struct La_s390_64_retval): Likewise.
5113         (struct La_sparc32_regs): Likewise.
5114         (struct La_sparc32_retval): Likewise.
5115         (struct La_sparc64_regs): Likewise.
5116         (struct La_sparc64_retval): Likewise.
5117         (struct audit_ifaces): Remove architecture-specific pltenter and
5118         pltexit members.
5119         * sysdeps/i386/ldsodefs.h: New file.
5120         * sysdeps/powerpc/ldsodefs.h: Likewise.
5121         * sysdeps/s390/ldsodefs.h: Likewise.
5122         * sysdeps/sh/ldsodefs.h: Likewise.
5123         * sysdeps/sparc/ldsodefs.h: Likewise.
5124         * sysdeps/x86_64/ldsodefs.h: Likewise.
5125
5126 2012-07-25  Marek Polacek  <polacek@redhat.com>
5127
5128         [BZ #6808]
5129         * math/libm-test.inc (yn_test): Add another test.
5130         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5131         to ERANGE when the result is +-Inf.
5132         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5133         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5134         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5135         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5136
5137 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5138
5139         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5140         equal to 0.
5141         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5142         clock_t.
5143         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5144
5145 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5146
5147         * configure.in <sysdeps resolving>: Correct printing
5148         Implies_before.
5149         * configure: Regenerate.
5150
5151 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5152
5153         * math/w_ilogb.c: Include <limits.h>.
5154         * math/w_ilogbl.c: Likewise.
5155
5156 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5157
5158         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5159         va_copy.  Document allowing for unavailable va_copy only as
5160         pre-C99 compatibility.
5161         * manual/string.texi (Copying and Concatenation): Use va_copy
5162         instead of __va_copy in concat example.
5163
5164 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5165
5166         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5167         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5168         it if not null.
5169
5170         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5171         with O_NOLINK passed to __file_name_lookup.
5172
5173         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5174         with O_NOLINK passed to __file_name_lookup.
5175
5176         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5177         negative N or less than NGIDS.
5178
5179         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5180         type to string_t.  Set ERANGE as errno and return it if NAME is not big
5181         enough.  Use memcpy instead of strncpy.
5182
5183 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5184
5185         * elf/Makefile (check-data): Remove.
5186         (localplt.data): New vpath directive.
5187         ($(objpfx)check-localplt.out): Use localplt.data from vpath
5188         instead of $(check-data).
5189         * scripts/data/localplt-generic.data: Move to ...
5190         * sysdeps/generic/localplt.data: ... here.
5191         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5192         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5193         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5195         ... here.
5196         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5198         ... here.
5199         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5200         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5201         ... here.
5202         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5203         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5204         ... here.
5205         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5206         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5207         ... here.
5208         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5209         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5210         ... here.
5211
5212 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5213
5214         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5215         PPC32 and PPC64 files.
5216         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5217         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5218
5219 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5220
5221         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5222         __makecontext_ret to ...
5223         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5224         ... here and call exit if uc_link is NULL.  New file.
5225         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5226         __makecontext_ret.S.
5227         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5228         __makecontext_ret to ...
5229         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5230         ... here and call exit if uc_link is NULL.  New file.
5231         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5232         __makecontext_ret.S.
5233
5234 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5235
5236         * elf/elf.h (R_390_IRELATIVE): New definition.
5237         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5238         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5239         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5240         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5241         (elf_machine_lazy_rel): Likewise.
5242         * sysdeps/s390/dl-irel.h: New file.
5243         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5244         * sysdeps/s390/s390-64/memset.S: New asm code.
5245         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5246         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5247         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5248         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5249         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5250         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5251         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5252         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5253         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5254         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5255         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5256         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5257         * sysdeps/s390/s390-32/memset.S: New asm code.
5258         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5259
5260 2012-07-17  Marek Polacek  <polacek@redhat.com>
5261
5262         [BZ #14349]
5263         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5264         * sysdeps/s390/s390-64/configure.in: Likewise.
5265         * sysdeps/sparc/configure.in: Likewise.
5266         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5267         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5268         * sysdeps/i386/configure.in: Likewise.
5269         * sysdeps/x86_64/configure.in: Likewise.
5270         * sysdeps/sh/configure.in: Likewise.
5271         * sysdeps/s390/s390-32/configure: Regenerated.
5272         * sysdeps/s390/s390-64/configure: Likewise.
5273         * sysdeps/x86_64/configure: Likewise.
5274         * sysdeps/sh/configure: Likewise.
5275         * sysdeps/powerpc/powerpc64/configure: Likewise.
5276         * sysdeps/powerpc/powerpc32/configure: Likewise.
5277         * sysdeps/sparc/configure: Likwise.
5278         * sysdeps/i386/configure: Likewise.
5279
5280         * elf/dl-open.c: Comment fixes.
5281
5282 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5283
5284         * Makefile [CXX] (check-data): Remove.
5285         [CXX] (c++-types.data): New vpath directive.
5286         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5287         vpath.  Do not allow for C++ type data being missing.
5288         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5289         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5290         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5291         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5292         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5293         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5294         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5296         ... here.
5297         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5299         ... here.
5300         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5301         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5302         ... here.
5303         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5305         ... here.
5306         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5307         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5308         ... here.
5309         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5310         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5311         ... here.
5312         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5313         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5314         ... here.
5315         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5316         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5317
5318         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5319         definitions to architecture-specific files.
5320         (TLS_IE): Likewise.
5321         (TLS_LD): Likewise.
5322         (TLS_GD): Likewise.
5323         * sysdeps/i386/tls-macros.h: New file.
5324         * sysdeps/powerpc/tls-macros.h: Likewise.
5325         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5326         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5327         * sysdeps/sh/tls-macros.h: Likewise.
5328         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5329         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5330         * sysdeps/x86_64/tls-macros.h: Likewise.
5331
5332 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5333
5334         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5335         zero value for regular exit case.
5336
5337         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5338         (__start_context): Preserve zero value for regular exit case.
5339
5340 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5341             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5342
5343         * manual/setjmp.texi (setcontext): Clarify normal process
5344         termination when uc_link is the null pointer.
5345         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5346         exit call.
5347
5348 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5349
5350         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5351         preprocessor.  Test for each exception mask separately.
5352
5353 2012-07-16  Andreas Jaeger  <aj@suse.de>
5354
5355         * po/ru.po: Update from translation team.
5356
5357 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5358
5359         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5360         equal to 0.
5361         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5362         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5363         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5364         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5365         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5366
5367 2012-07-13  Andreas Jaeger  <aj@suse.de>
5368
5369         * po/fr.po: Update from translation team.
5370
5371 2012-07-12  Marek Polacek  <polacek@redhat.com>
5372
5373         [BZ #14173]
5374         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5375         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5376         loop condition.
5377
5378 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5379
5380         [BZ #13717]
5381         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5382         Change to 2.4.1 where previously 2.4.0.
5383         * sysdeps/unix/sysv/linux/configure: Regenerated.
5384         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5385         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5386         version.
5387         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5388         (__ASSUME_AT_CLKTCK): Remove.
5389         (__ASSUME_AT_PAGESIZE): Likewise.
5390         (__ASSUME_AT_XID): Likewise.
5391         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5392         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5393         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5394         unconditionally.
5395         (HAVE_AUX_PAGESIZE): Likewise.
5396         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5397         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5398         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5399
5400 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5401
5402         [BZ #14307]
5403         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5404         the temporary buffer used to invoke __gethostbyname2_r,
5405         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5406         host_data / struct gaih_addrtuple.
5407         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5408         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5409         header file nss/nsswitch.h.
5410         * nss/nsswitch.h (global scope): Add definition of implementation
5411         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5412         resolv/nss_dns/dns-host.c).
5413
5414 2012-07-11  Andreas Jaeger  <aj@suse.de>
5415
5416         * po/fr.po: Update from translation team.
5417
5418         * po/sv.po: Update from translation team
5419         * po/fr.po: Another update from translation team.
5420
5421 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5422
5423         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5424         for subnormals or multiply small sinh result by itself.
5425         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5426         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5427
5428 2012-07-11  David S. Miller  <davem@davemloft.net>
5429
5430         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5431
5432 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5433
5434         [BZ #14347]
5435         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5436         (INTERNAL_MARK): Shift it here.
5437
5438 2012-07-10  Marek Polacek  <polacek@redhat.com>
5439
5440         [BZ #14151]
5441         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5442         libc_cv_asm_global_directive with .globl.
5443         * configure: Regenerated.
5444         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5445         with .globl.
5446         * sysdeps/i386/configure: Regenerated.
5447         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5448         with .globl.
5449         * sysdeps/x86_64/configure: Regenerated.
5450         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5451         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5452         * elf/tst-unique2mod2.c: Likewise.
5453         * elf/tst-unique2mod1.c: Likewise.
5454         * elf/tst-unique1mod2.c: Likewise.
5455         * elf/tst-unique1mod1.c: Likewise.
5456         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5457         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5458         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5459         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5460         * sysdeps/mach/sysdep.h: Likewise.
5461         * sysdeps/i386/sysdep.h: Likewise.
5462         * sysdeps/i386/i386-mcount.S: Likewise.
5463         * sysdeps/x86_64/_mcount.S: Likewise.
5464         * sysdeps/x86_64/sysdep.h: Likewise.
5465         * sysdeps/sh/_mcount.S: Likewise.
5466         * sysdeps/sh/sysdep.h: Likewise.
5467         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5468         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5469         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5470         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5471         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5472         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5473         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5474         * locale/localeinfo.h: Likewise.
5475         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5476         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5477
5478 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5479
5480         [BZ #14336]
5481         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5482         system".
5483         * manual/message.texi (The Uniforum approach): Likewise.
5484         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5485         (glibc iconv Implementation): Likewise.
5486
5487 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5488
5489         [BZ #14337]
5490         * math/s_clog.c (__clog): Avoid scaling a value down where that
5491         could result in underflow.
5492         * math/s_clog10.c (__clog10): Likewise.
5493         * math/s_clog10f.c (__clog10f): Likewise.
5494         * math/s_clog10l.c (__clog10l): Likewise.
5495         * math/s_clogf.c (__clogf): Likewise.
5496         * math/s_clogl.c (__clogl): Likewise.
5497         * math/libm-test.inc (clog_test): Add more tests.
5498         (clog10_test): Likewise.
5499         * sysdeps/i386/fpu/libm-test-ulps: Update.
5500         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5501
5502 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5503
5504         [BZ #14283]
5505         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5506         by 7 not 8 to examine high bit of fractional part.
5507
5508         [BZ #14042]
5509         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5510         for call to __mcount_internal.
5511         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5512         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5513         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5514
5515 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5516
5517         [BZ #14154]
5518         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5519         approximation for values within 0x1p-13f of an odd multiple of
5520         pi/4.
5521         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5522         exception.  Add more tests.
5523         * sysdeps/i386/fpu/libm-test-ulps: Update.
5524
5525         [BZ #6778]
5526         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5527         inputs and return -1 for them.  Do not check for +Inf in case not
5528         reachable for +Inf.
5529         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5530         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5531         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5532         and return -1 for them.  Do not check for +Inf in case not
5533         reachable for +Inf.
5534         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5535         define.
5536         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5537         and return -1 for them.  Do not check for +Inf in case not
5538         reachable for +Inf.
5539         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5540         spurious underflow.
5541         * sysdeps/i386/fpu/libm-test-ulps: Update.
5542         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5543
5544 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5545
5546         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5547
5548 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5549
5550         [BZ #14157]
5551         [BZ #14331]
5552         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5553         could result in spurious underflow.  Scale down values above
5554         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5555         * math/s_csqrtf.c (__csqrtf): Likewise.
5556         * math/s_csqrtl.c (__csqrtl): Likewise.
5557         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5558         spurious underflow.
5559         * sysdeps/i386/fpu/libm-test-ulps: Update.
5560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5561
5562 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5563
5564         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5565         xopen-msg.sed.
5566         * catgets/xopen-msg.awk: New file.
5567         * catgets/xopen-msg.sed: Removed.
5568
5569         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5570         po2text.sed.
5571         * intl/po2test.awk: New file.
5572         * intl/po2test.sed: Removed.
5573
5574 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5575
5576         [BZ #14328]
5577         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5578         or multiply small sinh result by itself.
5579         * math/s_ctanf.c (__ctanf): Likewise.
5580         * math/s_ctanh.c (__ctanh): Likewise.
5581         * math/s_ctanhf.c (__ctanhf): Likewise.
5582         * math/s_ctanhl.c (__ctanhl): Likewise.
5583         * math/s_ctanl.c (__ctanl): Likewise.
5584         * math/libm-test.inc (ctan_test_tonearest): New function.
5585         (ctan_test_towardzero): Likewise.
5586         (ctan_test_downward): Likewise.
5587         (ctan_test_upward): Likewise.
5588         (ctanh_test_tonearest): Likewise.
5589         (ctanh_test_towardzero): Likewise.
5590         (ctanh_test_downward): Likewise.
5591         (ctanh_test_upward): Likewise.
5592         (main): Call these new functions.
5593         * sysdeps/i386/fpu/libm-test-ulps: Update.
5594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5595
5596 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5597
5598         * .gitignore: Delete /ports entry.
5599
5600 2012-07-03  Andreas Jaeger  <aj@suse.de>
5601
5602         * po/bg.po: Update from translation team.
5603         * po/cs.po: Likewise.
5604         * po/de.po: Likewise.
5605         * po/hr.po: Likewise.
5606         * po/nl.pl: Likewise.
5607         * po/pl.po: Likewise.
5608         * po/vi.po: Likewise.
5609
5610 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5611
5612         * Makeconfig [!+link] (+link-before-libc): New variable.
5613         [!+link] (+link-after-libc): Likewise.
5614         [!+link] (+link-tests): Likewise.
5615         [!+link] (+link): Define in terms of $(+link-before-libc) and
5616         $(+link-after-libc).
5617         [!+link-static] (+link-static-before-libc): New variable.
5618         [!+link-static] (+link-static-after-libc): Likewise.
5619         [!+link-static] (+link-static-tests): Likewise.
5620         [!+link-static] (+link-static): Define in terms of
5621         $(+link-static-before-libc) and $(+link-static-after-libc).
5622         [build-shared] (link-libc-before-gnulib): New variable.
5623         [build-shared] (link-libc-tests): Likewise.
5624         [build-shared] (link-libc): Define in terms of
5625         $(link-libc-before-gnulib).
5626         [!build-shared] (link-libc-tests): New variable.
5627         (link-libc-static-tests): New variable.
5628         [!gnulib] (gnulib-arch): New variable.
5629         [!gnulib] (gnulib-tests): Likewise.
5630         [!gnulib] (static-gnulib-arch): Likewise.
5631         [!gnulib] (static-gnulib-tests): Likewise.
5632         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5633         Define with "=" instead of ":=".
5634         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5635         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5636         * Rules (binaries-all-notests): New variable.
5637         (binaries-all-tests): Likewise.
5638         (binaries-static-notests): Likewise.
5639         (binaries-static-tests): Likewise.
5640         (binaries-all): Define using $(binaries-all-notests) and
5641         $(binaries-all-tests).
5642         (binaries-static): Define using $(binaries-static-notests) and
5643         $(binaries-static-tests).
5644         (binaries-shared-tests): New variable.
5645         (binaries-shared-notests): Likewise.
5646         (binaries-shared): Remove variable.
5647         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5648         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5649         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5650         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5651         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5652         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5653         * elf/Makefile (sln-modules): New variable.
5654         (extra-objs): Add $(sln-modules:=.o).
5655         (ldconfig-modules): Add static-stubs.
5656         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5657         * elf/static-stubs.c: New file.
5658
5659         [BZ #14283]
5660         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5661         by 7 not 8 to examine high bit of fractional part.  Use volatile
5662         variables when splitting into final array of floats if
5663         __FLT_EVAL_METHOD__ != 0.
5664         * math/libm-test.inc (cos_test): Add another test.
5665         (sin_test): Likewise.
5666         * sysdeps/i386/fpu/libm-test-ulps: Update.
5667
5668         [BZ #14273]
5669         * math/libm-test.inc (cosh_test): Add more tests.
5670
5671         * version.h (RELEASE): Set to "development".
5672         (VERSION): Set to "2.16.90".
5673
5674 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5675
5676         * NEWS: Update copyright. Remove last-updated date.
5677         Mention math library bug fixes and timezone data changes.
5678         * README: Mention GNU/Hurd, x32, and HPPA support status.
5679
5680 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5681
5682         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5683
5684 2012-06-27  Andreas Jaeger  <aj@suse.de>
5685
5686         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5687
5688 2012-06-25  Andreas Jaeger  <aj@suse.de>
5689
5690         * sysdeps/s390/fpu/libm-test-ulps: Update.
5691
5692 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5693             Thomas Schwinge  <thomas@codesourcery.com>
5694
5695         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5696         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5697         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5698         fanotify_mark.
5699
5700 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5701
5702         * sysdeps/mach/start.c: Remove file.
5703         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5704         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5705         * sysdeps/sh/init-first.c: Likewise.
5706
5707         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5708         registers for frame unwinding purposes, add CFI directives.
5709         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5710         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5711         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5712         Likewise.
5713
5714         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5715         __fortify_fail returning.
5716         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5717
5718         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5719         sysdeps/sh/____longjmp_chk.S.
5720         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5721         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5722         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5723         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5724
5725         * sysdeps/sh/abort-instr.h: New file.
5726         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5727         process in case exit returns.
5728
5729         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5730         initialize the GOT register before use.
5731
5732         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5733         calculation of ARGC > 4.
5734
5735         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5736         meaningful names to some local labels.
5737
5738 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5739             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5740
5741         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5742         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5743         (__arch_compare_and_exchange_val_16_acq): Likewise.
5744         (__arch_compare_and_exchange_val_32_acq): Likewise.
5745         (atomic_exchange_and_add): Fix gUSA sequence.
5746         (atomic_add): Likewise.
5747         (atomic_add_negative): Likewise.
5748         (atomic_add_zero): Likewise.
5749         (atomic_bit_test_set): Likewise.
5750
5751 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5752
5753         [BZ #13579]
5754         * include/link.h (struct link_map): Add l_free_initfini.
5755         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5756         l_initfini.
5757         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5758         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5759         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5760         set.
5761
5762 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5763
5764         * configure.in: Use AC_LANG_SOURCE.
5765         * configure: Regenerate.
5766
5767 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5768
5769         * configure.in (libc_cv_localstatedir): New substituted variable.
5770         * configure: Regenerated.
5771         * config.make.in (localstatedir): New variable, substituted from
5772         libc_cv_localstatedir.
5773         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5774         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5775         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5776         * sysdeps/gnu/configure: Regenerated.
5777
5778 2012-06-21  Jeff Law  <law@redhat.com>
5779
5780         [BZ #14277]
5781         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5782         free.  Simplify list management for _LIBC case.
5783
5784 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5785
5786         [BZ #14273]
5787         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5788         Clear sign bit of 64-bit integer value before comparing against
5789         overflow value.
5790
5791         * sysdeps/mach/configure: Regenerated.
5792
5793 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5794
5795         [BZ #14278]
5796         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5797
5798 2012-06-21  Jeff Law  <law@redhat.com>
5799
5800         [BZ #13882]
5801         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5802         uint16_t for elements in the "seen" array to avoid char overflows.
5803         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5804         * elf/dl-open.c (dl_open_worker): Likewise.
5805
5806 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5807
5808         * scripts/list-sources.sh: Scan PORTS for translations.
5809         * po/libc.pot: Regenerated.
5810
5811 2012-06-21  Andreas Jaeger  <aj@suse.de>
5812
5813         [BZ #12194]
5814         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5815         warning.
5816         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5817         * bits/byteswap-16.h (__bswap_16): Likewise.
5818         * bits/byteswap.h (__bswap_constant_16): Likewise.
5819
5820 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5821
5822         [BZ #14117]
5823         * sysdeps/i386/fpu_control.h: Removed.
5824         * sysdeps/x86_64/fpu_control.h: Moved to ...
5825         * sysdeps/x86/fpu_control.h: Here.
5826
5827         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5828         (_FPU_SETCW): Likewise.
5829
5830 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5831
5832         [BZ #14117]
5833         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5834         * sysdeps/x86/fpu/bits/mathinline.h: This.
5835         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5836
5837         [BZ #14050]
5838         [BZ #14117]
5839         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5840         functions if __x86_64__ is defined.
5841
5842 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5843
5844         * string/endian.h: Add !__ASSEMBLER__ condition for including
5845         conversion interfaces.
5846
5847 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5848
5849         [BZ #14241]
5850         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5851         of ABS(x) in calculating zero to negative powers other than odd
5852         integers.
5853         * math/libm-test.inc (pow_test): Add more tests.
5854
5855 2012-06-15  Andreas Jaeger  <aj@suse.de>
5856
5857         * manual/contrib.texi (Contributors): Update entry of Liubov
5858         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5859         Machado Filho.
5860
5861 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5862
5863         * string/string.h: Add __wur to GNU version of strerror_r.
5864
5865 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5866
5867         [BZ #14229]
5868         * string/Makefile (tests): Add tst-strtok_r.
5869         * string/tst-strtok_r.c: New file.
5870         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5871         RAX_LP/RDX_LP on SAVE_PTR.
5872
5873 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5874
5875         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5876
5877 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5878
5879         * libm_test.inc (csqrt_test): Allow more spurious underflow
5880         exceptions.
5881         (j0_test): Likewise.
5882         (j1_test): Likewise.
5883         (y0_test): Likewise.
5884         (y1_test): Likewise.
5885
5886 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5887
5888         * po/Makefile (libc.pot): Use UTF-8 charset.
5889
5890 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5891
5892         [BZ #14210]
5893         Suppress sign-conversion warning from FD_SET.
5894         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5895         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5896         not unsigned long int.
5897         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5898
5899 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5900
5901         [BZ #14050]
5902         [BZ #14117]
5903         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5904         __extern_always_inline instead of __extern_inline.
5905         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5906         (__signbit): Likewise.
5907         (__signbitl): Support C++ namespace.
5908         (lrintf): New inline function.
5909         (lrint): Likewise.
5910         (llrintf): Likewise.
5911         (llrint): Likewise.
5912         (fmaxf): Likewise.
5913         (fmax): Likewise.
5914         (fminf): Likewise.
5915         (fmin): Likewise.
5916         (rint): Likewise.
5917         (rintf): Likewise.
5918         (ceil): Likewise.
5919         (ceilf): Likewise.
5920         (floor): Likewise.
5921         (floorf): Likewise.
5922         (nearbyint): Likewise.
5923         (nearbyintf): Likewise.
5924
5925 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5926
5927         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5928         non-default versions.
5929
5930 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5931
5932         [BZ #14218]
5933         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5934
5935 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5936
5937         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5938         (FE_UPWARD, FE_DOWNWARD): Don't define.
5939         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5940         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5941
5942         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5943         reading it.
5944         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5945         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5946
5947 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5948
5949         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5950         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5951         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5952         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5953
5954 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5955
5956         [BZ #14117]
5957         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5958         * sysdeps/i386/fpu/Implies: New file.
5959         * sysdeps/x86_64/fpu/Implies: Likewise.
5960         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5961         * sysdeps/x86/fpu/bits/fenv.h: This.
5962
5963         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5964         __SSE_MATH__.
5965
5966 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5967
5968         [BZ #14134]
5969         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5970         character 0xffff that matches the last element of the
5971         conversion table.
5972
5973 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5974
5975         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5976         fmodl commit.
5977
5978 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5979
5980         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5981         values higher than 25.6283.
5982
5983 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5984
5985         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5986         subnormal exponent extraction and add some __builtin_expect.
5987         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5988         Fix for subnormal mantissa calculation.
5989
5990 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5991
5992         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5993         cpu2 is -1 and errno is not ENOSYS.
5994
5995 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5996
5997         [BZ #14117]
5998         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5999         * sysdeps/x86/bits/string.h: This.
6000         * sysdeps/x86_64/bits/string.h: Removed.
6001
6002         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6003         if not compiling for x86-64, but compiling for >= i486.
6004
6005         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6006         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6007
6008         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6009         New macro from Linux kernel 3.4.0.
6010         (FP_XSTATE_MAGIC2): Likewise.
6011         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6012         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6013         (struct _fpx_sw_bytes): New struct.
6014         (struct _xsave_hdr): Likewise.
6015         (struct _ymmh_state): Likewise.
6016         (struct _xstate): Likewise.
6017
6018         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6019         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6020         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6021         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6022         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6023         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6024
6025         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6026         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6027         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6028         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6029         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6030         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6031
6032 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6033
6034         [BZ #13743]
6035         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6036         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6037         (sysdep_headers): Include sys/platform/ppc.h.
6038         * sysdeps/powerpc/test-gettimebase.c: Test for
6039         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6040         * manual/Makefile (appendices): Include platform.texi.
6041         * manual/contrib.texi (Contributors): Update @node pointers.
6042         * manual/maint.texi (Maintenance): Likewise.
6043         (Platform): New node.
6044         * manual/platform.texi: New file.  Document the new features.
6045
6046 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6047             Jakub Jelinek  <jakub@redhat.com>
6048
6049         [BZ #14188]
6050         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6051         where __builtin_expect is unavailable.
6052
6053 2012-06-03  David S. Miller  <davem@davemloft.net>
6054
6055         * stdlib/longlong.h: Updated from GCC.
6056
6057 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6058
6059         [BZ #14042]
6060         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6061         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6062         __mcount_internal.
6063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6064         (GLIBC_2.16): Likewise.
6065
6066 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6067
6068         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6069
6070 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6071
6072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6073         (default-abi): New variable.
6074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6075         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6076         variable.
6077         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6078         Likewise.
6079         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6080         Likewise.
6081         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6082         Likewise.
6083
6084         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6085         definition.  Document in comment.
6086
6087 2012-06-01  David S. Miller  <davem@davemloft.net>
6088
6089         * stdlib/longlong.h: Updated from GCC.
6090
6091 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6092
6093         [BZ #14117]
6094         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6095         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6096         sys/debugreg.h sys/io.h here.
6097         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6098         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6099         sys/io.h.
6100         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6101         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6102         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6103         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6104         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6105         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6106
6107         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6108         Define only if __x86_64__ is defined.
6109
6110 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6111
6112         [BZ #14048]
6113         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6114         Use int64_t for variable i.
6115         * math/libm-test.inc (fmod_test): Add more tests.
6116
6117         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6118         z computation is not scheduled after fetestexcept.
6119         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6120         Use math_force_eval instead of asm to ensure calculation scheduled
6121         before exception test.
6122         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6123         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6124
6125 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6126
6127         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6128         computation is not scheduled after fetestexcept.
6129
6130 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6131
6132         [BZ #14117]
6133         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6134         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6135
6136 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6137
6138         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6139         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6140
6141 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6142
6143         [BZ #14117]
6144         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6145         <bits/wordsize.h>.
6146         (__WCHAR_MIN): Support __WORDSIZE == 64.
6147         (__WCHAR_MAX): Likewise.
6148
6149         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6150         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6151
6152         [BZ #14183]
6153         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6154         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6155
6156         [BZ #14117]
6157         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6158         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6159
6160         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6161         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6162
6163         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6164         Defined to 1 if __x86_64__ isn't defined.
6165         (_STAT_VER_LINUX_OLD): New.
6166         (st_atime): Remove duplicate.
6167         (st_mtime): Likewise.
6168         (st_ctime): Likewise.
6169
6170 2012-05-31  David S. Miller  <davem@davemloft.net>
6171
6172         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6173         entries.
6174
6175 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6176
6177         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6178         gen-libm-test.pl.
6179
6180         [BZ #14132]
6181         * elf/dl-reloc.c: Include <_itoa.h>.
6182         (_dl_reloc_bad_type): Remove use of INTUSE.
6183         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6184         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6185         * stdio-common/psiginfo.c (psiginfo): Likewise.
6186         * stdio-common/psignal.c (psignal): Likewise.
6187         * string/strsignal.c (strsignal): Likewise.
6188         * include/signal.h (_sys_siglist): Declare hidden proto.
6189         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
6190         INTVARDEF with libc_hidden_data_def.
6191         * stdio-common/itoa-udigits.c: Likewise.
6192         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6193         (_itoa_lower_digits_internal): Remove declaration.
6194         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6195         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6196         (_sys_sigabbrev_internal): Remove aliases.
6197         (_sys_siglist): Define hidden alias.
6198
6199 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6200
6201         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6202         bits/sysctl.h.
6203
6204 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6205
6206         [BZ #14117]
6207         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6208         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6209
6210         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6211         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6212         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6213         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6214         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6215         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6216
6217         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6218         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6219         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6220
6221         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6222         with __addr.
6223         (insw): Likewise.
6224         (insl): Likewise.
6225         (outsb): Likewise.
6226         (outsw): Likewise.
6227         (outsl): Likewise.
6228
6229         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6230         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6231         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6232
6233         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6234         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6235         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6236         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6237         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6238         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6239
6240         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6241         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6242
6243         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6244         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6245
6246         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6247         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6248         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6249
6250         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6251         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6252         to ...
6253         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6254
6255         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6256         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6257         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6258
6259         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6260         for x86-64.
6261         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6262
6263 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6264
6265         * math/math.h (M_El): Use two more decimal places.
6266         (M_LOG2El): Likewise.
6267         (M_LOG10El): Likewise.
6268         (M_LN2l): Likewise.
6269         (M_LN10l): Likewise.
6270         (M_PIl): Likewise.
6271         (M_PI_2l): Likewise.
6272         (M_PI_4l): Likewise.
6273         (M_1_PIl): Likewise.
6274         (M_2_PIl): Likewise.
6275         (M_2_SQRTPIl): Likewise.
6276         (M_SQRT2l): Likewise.
6277         (M_SQRT1_2l): Likewise.
6278
6279 2012-05-31  David S. Miller  <davem@davemloft.net>
6280
6281         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6282         values between float registers.
6283         * sysdeps/sparc/sparc64/memset.S: Likewise.
6284         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6285
6286 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6287
6288         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6289         -D_FORTIFY_SOURCE=1.
6290         (CPPFLAGS-tst-longjmp_chk.c): Define.
6291         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6292         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6293         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6294         CFLAGS-tst-wchar-h.c.
6295
6296 2012-05-31  Marek Polacek  <polacek@redhat.com>
6297
6298         [BZ #14132]
6299         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6300         __endmntent_internal): Remove declaration.
6301         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6302         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6303         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6304
6305 2012-05-30  David S. Miller  <davem@davemloft.net>
6306
6307         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6308         (___Q_simulate_exceptions): Use real FP ops rather than writing
6309         into the %fsr.
6310         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6311         Likewise.
6312
6313 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6314
6315         [BZ #14117]
6316         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6317         * sysdeps/x86/bits/xtitypes.h: This.
6318
6319         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6320         * sysdeps/x86/bits/wordsize.h: This.
6321
6322         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6323         * sysdeps/x86/bits/huge_vall.h: This.
6324
6325         * sysdeps/i386/bits/select.h: Removed.
6326         * sysdeps/x86_64/bits/select.h: Renamed to ...
6327         * sysdeps/x86/bits/select.h: This.
6328
6329         * sysdeps/i386/bits/setjmp.h: Removed.
6330         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6331         * sysdeps/x86/bits/setjmp.h: This.
6332
6333         * sysdeps/i386/bits/mathdef.h: Removed.
6334         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6335         * sysdeps/x86/bits/mathdef.h: This.
6336
6337 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6338
6339         [BZ #14132]
6340         * include/sys/socket.h (__connect_internal)
6341         (__libc_sa_len_internal): Remove declaration.
6342         (__connect, __libc_sa_len): Declare hidden_proto.
6343         (SA_LEN): Remove use of INTUSE.
6344         * socket/connect.c: Add libc_hidden_def.
6345         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6346         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6347         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6348         alias.
6349         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6350         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6351         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6352         of adding _internal alias.
6353
6354 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6355
6356         [BZ #14117]
6357         * sysdeps/i386/bits/link.h: Removed.
6358         * sysdeps/i386/bits/linkmap.h: Likewise.
6359         * sysdeps/x86_64/bits/link.h: Renamed to ...
6360         * sysdeps/x86/bits/link.h: This.
6361         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6362         * sysdeps/x86/bits/linkmap.h: This.
6363
6364         * sysdeps/i386/bits/endian.h: Removed.
6365         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6366         * sysdeps/x86/bits/endian.h: This.
6367
6368         * sysdeps/i386/bits/byteswap.h: Removed.
6369         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6370         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6371         * sysdeps/x86/bits/byteswap.h: This.
6372         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6373         * sysdeps/x86/bits/byteswap-16.h: This.
6374         * sysdeps/i386/Implies: Add x86.
6375         * sysdeps/x86_64/Implies: Likewise.
6376
6377 2012-05-30  David S. Miller  <davem@davemloft.net>
6378
6379         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6380         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6381         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6382         (FP_TRAPPING_EXCEPTIONS): Define.
6383         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6384         (FP_TRAPPING_EXCEPTIONS): Define.
6385         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6386         subnormals only when inexact has been signalled or underflow
6387         exceptions are enabled.
6388         (_FP_PACK_CANONICAL): Likewise.
6389
6390 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6391
6392         [BZ #14183]
6393         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6394         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6395
6396 2012-05-30  Richard Henderson  <rth@twiddle.net>
6397
6398         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6399         with #ifndef NOT_IN_libc.
6400
6401         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6402         marked to avoid plt entry.
6403
6404 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6405
6406         [BZ #14112]
6407         * Makeconfig (default-abi): New macro.
6408         (abi-includes): Likewise.
6409         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6410         $(abi-$(default-abi)-lib-soname) for soname if defined.
6411         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6412         abi-variants.
6413         * Makefile (installed-stubs): Likewise.
6414         * include/stubs-biarch.h: Removed.
6415         * scripts/lib-names.awk: Only handle one library at a time.
6416         * scripts/soversions.awk: Remove WORDSIZE support.
6417         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6418         entries.
6419         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6420         Removed.
6421         (syscall-list-default-condition): Likewise.
6422         (syscall-list-default-condition): Likewise.
6423         (syscall-list-includes): Likewise.
6424         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6425         syscall-list-* with abi-*.  Handle undefined abi-variants.
6426         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6427         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6428         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6429         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6430         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6431         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6432         Removed.
6433         (syscall-list-32-options): Likewise.
6434         (syscall-list-32-condition): Likewise.
6435         (syscall-list-64-options): Likewise.
6436         (syscall-list-64-condition): Likewise.
6437         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6438         macro.
6439         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6440         Renamed to ...
6441         (abi-*): This.
6442         (abi-64-ld-soname): New macro.
6443         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6444         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6445         Renamed to ...
6446         (abi-*): This.
6447         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6448         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6449
6450 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6451
6452         * sysdeps/unix/sysv/linux/kernel-features.h
6453         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6454         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6455         include <kernel-features.h>.
6456         [!__NR_ftruncate64]: Remove conditional code.
6457         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6458         [__NR_ftruncate64]: Make code unconditional.
6459         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6460         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6461         include <kernel-features.h>.
6462         [!__NR_ftruncate64]: Remove conditional code.
6463         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6464         [__NR_ftruncate64]: Make code unconditional.
6465         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6467         include <kernel-features.h>.
6468         [!__NR_ftruncate64]: Remove conditional code.
6469         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6470         [__NR_ftruncate64]: Make code unconditional.
6471         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6473         include <kernel-features.h>.
6474         [!__NR_ftruncate64]: Remove conditional code.
6475         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6476         [__NR_ftruncate64]: Make code unconditional.
6477         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6478
6479         * configure.in (libc_cv_fpie): Weaken to a compile test using
6480         LIBC_TRY_CC_OPTION.
6481         * configure: Regenerated.
6482
6483 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6484
6485         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6486         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6487         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6489         Refreshed.
6490         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6491         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6492         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6493         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6494         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6495         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6496         Refreshed.
6497
6498 2012-05-27  David S. Miller  <davem@davemloft.net>
6499
6500         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6501         (___Q_zero): New.
6502         (__Q_simulate_exceptions): Return void.  Change to simulate
6503         exceptions by writing into the %fsr.
6504         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6505         (__Qp_handle_exceptions): Likewise.
6506         (numbers): Delete.
6507         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6508         __Qp_handle_exceptions.
6509         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6510         __Qp_handle_exceptions.
6511         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6512         as unused and give dummy FP_RND_NEAREST initializer.
6513         (FP_INHIBIT_RESULTS): Define.
6514         (___Q_simulate_exceptions): Update declaration.
6515         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6516         formatting.
6517         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6518         as unused and give dummy FP_RND_NEAREST initializer.
6519         (__Qp_handle_exceptions): Update declaration.
6520         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6521         formatting.
6522
6523 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6524
6525         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6526         the temporary FPU control word.
6527         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6528         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6529         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6530         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6531         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6532         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6533         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6534         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6535         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6536         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6537         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6538
6539 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6540
6541         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6542         fields.
6543
6544 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6545
6546         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6547         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6548         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6549         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6550         Likewise.
6551         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6552         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6553         Likewise.
6554
6555 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6556
6557         * po/h.po: Update from translation team.
6558
6559 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6560
6561         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6562
6563         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6564         handling of denormals.
6565         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6566         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6567         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6568         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6569         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6570         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6571         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6572         Likewise.
6573
6574 2012-05-26  Marek Polacek  <polacek@redhat.com>
6575
6576         [BZ #14152]
6577         * math/libm-test.inc (fma_test): Don't always expect underflow
6578         exception.
6579
6580 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6581
6582         [BZ #12416]
6583         * elf/tst-execstack.c: Include stackinfo.h.
6584         (do_test): Adjust test case to ensure that pthread_getattr_np
6585         behaviour remains the same after marking stack executable.
6586
6587 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6588
6589         * sysdeps/unix/sysv/linux/kernel-features.h
6590         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6591         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6592         kernel-features.h.
6593         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6594         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6595         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6596         kernel-features.h.
6597         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6598         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6599
6600 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6601
6602         * configure.in: Define the default includes to being none.
6603         * configure: Regenerated.
6604
6605 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6606
6607         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6608         * sysdeps/x86_64/setjmp.S: Likewise.
6609         * sysdeps/i386/bsd-setjmp.S: Likewise.
6610         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6611         * sysdeps/i386/setjmp.S: Likewise.
6612         * sysdeps/i386/__longjmp.S: Likewise.
6613         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6614         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6615
6616         * include/stap-probe.h: New file.
6617         * configure.in: Handle --enable-systemtap.
6618         * configure: Regenerated.
6619         * config.h.in (USE_STAP_PROBE): New #undef.
6620         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6621         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6622         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6623
6624 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6625
6626         [BZ #13717]
6627         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6628         to 2.4.0 where earlier.
6629         * sysdeps/unix/sysv/linux/configure: Regenerated.
6630         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6631         <kernel-features.h>.
6632         [__ASSUME_32BITUIDS]: Make code unconditional.
6633         [!__ASSUME_32BITUIDS]: Remove conditional code.
6634         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6635         <kernel-features.h>.
6636         [__ASSUME_32BITUIDS]: Make code unconditional.
6637         [!__ASSUME_32BITUIDS]: Remove conditional code.
6638         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6639         [__ASSUME_32BITUIDS]: Make code unconditional.
6640         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6641         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6642         <kernel-features.h>.
6643         [__ASSUME_32BITUIDS]: Make code unconditional.
6644         [!__ASSUME_32BITUIDS]: Remove conditional code.
6645         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6646         <kernel-features.h>.
6647         [__ASSUME_32BITUIDS]: Make code unconditional.
6648         [!__ASSUME_32BITUIDS]: Remove conditional code.
6649         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6650         <kernel-features.h>.
6651         [__ASSUME_32BITUIDS]: Make code unconditional.
6652         [!__ASSUME_32BITUIDS]: Remove conditional code.
6653         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6654         <kernel-features.h>.
6655         [__ASSUME_32BITUIDS]: Make code unconditional.
6656         [!__ASSUME_32BITUIDS]: Remove conditional code.
6657         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6658         <kernel-features.h>.
6659         [__ASSUME_32BITUIDS]: Make code unconditional.
6660         [!__ASSUME_32BITUIDS]: Remove conditional code.
6661         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6662         <kernel-features.h>.
6663         [__ASSUME_32BITUIDS]: Make code unconditional.
6664         [!__ASSUME_32BITUIDS]: Remove conditional code.
6665         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6666         <kernel-features.h>.
6667         [__ASSUME_32BITUIDS]: Make code unconditional.
6668         [!__ASSUME_32BITUIDS]: Remove conditional code.
6669         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6670         <kernel-features.h>.
6671         [__ASSUME_32BITUIDS]: Make code unconditional.
6672         [!__ASSUME_32BITUIDS]: Remove conditional code.
6673         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6674         <kernel-features.h>.
6675         [__ASSUME_32BITUIDS]: Make code unconditional.
6676         [!__ASSUME_32BITUIDS]: Remove conditional code.
6677         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6678         <kernel-features.h>.
6679         [__ASSUME_32BITUIDS]: Make code unconditional.
6680         [!__ASSUME_32BITUIDS]: Remove conditional code.
6681         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6682         <kernel-features.h>.
6683         [__NR_setresgid] (__setresgid): Do not declare.
6684         [__ASSUME_32BITUIDS]: Make code unconditional.
6685         [!__ASSUME_32BITUIDS]: Remove conditional code.
6686         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6687         <kernel-features.h>.
6688         [__NR_setresuid] (__setresuid): Do not declare.
6689         [__ASSUME_32BITUIDS]: Make code unconditional.
6690         [!__ASSUME_32BITUIDS]: Remove conditional code.
6691         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6692         <kernel-features.h>.
6693         [__ASSUME_32BITUIDS]: Make code unconditional.
6694         [!__ASSUME_32BITUIDS]: Remove conditional code.
6695         * sysdeps/unix/sysv/linux/i386/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/setuid.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/shmctl.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/kernel-features.h
6732         (__ASSUME_SETRESUID_SYSCALL): Remove.
6733         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6734         (__ASSUME_32BITUIDS): Likewise.
6735         (__ASSUME_LDT_WORKS): Likewise.
6736         (__ASSUME_O_DIRECTORY): Likewise.
6737         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6738         architecture but not kernel version.
6739         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6740         (__ASSUME_MMAP2_SYSCALL): Likewise.
6741         (__ASSUME_STAT64_SYSCALL): Likewise.
6742         (__ASSUME_IPC64): Likewise.
6743         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6744         <kernel-features.h>.
6745         [__ASSUME_32BITUIDS]: Make code unconditional.
6746         [!__ASSUME_32BITUIDS]: Remove conditional code.
6747         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6748         <kernel-features.h>.
6749         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6750         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6751         132096]: Remove conditional code.
6752         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6753         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/lchown.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/setegid.c: Do not include
6762         <kernel-features.h>.
6763         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6764         unconditional.
6765         (__setresgid): Do not declare.
6766         [__ASSUME_32BITUIDS]: Make code unconditional.
6767         [!__ASSUME_32BITUIDS]: Remove conditional code.
6768         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6769         <kernel-features.h>.
6770         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6771         unconditional.
6772         (__setresuid): Do not declare.
6773         [__ASSUME_32BITUIDS]: Make code unconditional.
6774         [!__ASSUME_32BITUIDS]: Remove conditional code.
6775         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6776         <kernel-features.h>.
6777         [__ASSUME_32BITUIDS]: Make code unconditional.
6778         [!__ASSUME_32BITUIDS]: Remove conditional code.
6779         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6780         <kernel-features.h>.
6781         [__ASSUME_32BITUIDS]: Make code unconditional.
6782         [!__ASSUME_32BITUIDS]: Remove conditional code.
6783
6784 2012-05-25  Richard Henderson  <rth@twiddle.net>
6785
6786         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6787         dl_hwcap to ifunc resolver.
6788         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6789         elf_ifunc_invoke.
6790         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6791         dl_hwcap to ifunc resolver.
6792         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6793
6794 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6795
6796         [BZ #14153]
6797         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6798         for |x| <= 2**-26, not 2**-57.
6799         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6800         exception.
6801
6802 2012-05-24  Jeff Law  <law@redhat.com>
6803
6804         * stdio-common/Makefile (tests): Add bug25.
6805         * stdio-common/bug25.c: New test.
6806
6807 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6808
6809         [BZ #13576]
6810         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6811         multiple of MALLOC_ALIGNMENT in size.
6812         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6813
6814 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6815
6816         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6817         Require >= 256.
6818         (FILENAME_MAX): Use macro-int-constant.
6819         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6820         (_IOFBF): Use macro-int-constant.
6821         (_IOLBF): Likewise.
6822         (_IONBF): Likewise.
6823         (SEEK_CUR): Likewise.
6824         (SEEK_END): Likewise.
6825         (SEEK_SET): Likewise.
6826         (TMP_MAX): Likewise.
6827         (EOF): Use macro-int-constant.  Require < 0.
6828         (NULL): Use macro-constant.  Require == 0.
6829         (stdin): Require type to be FILE *.
6830         (stdout): Likewise.
6831         (stderr): Likewise.
6832         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6833         macro-int-constant.
6834         (EXIT_SUCCESS): Likewise.
6835         (NULL): Use macro-constant.  Require == 0.
6836         (RAND_MAX): Use macro-int-constant.
6837         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6838         [C99-based standards] (strtof): Require function.
6839         [C99-based standards] (strtold): Likewise.
6840         [C99-based standards] (strtoll): Likewise.
6841         [C99-based standards] (strtoull): Likewise.
6842         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6843         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6844         [ISO || ISO99 || ISO11] (math.h): Likewise.
6845         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6846         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6847         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6848
6849 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6850
6851         [BZ #14132]
6852         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6853         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6854         * intl/dgettext.c (DCGETTEXT): Likewise.
6855         * intl/gettext.c (DCGETTEXT): Likewise.
6856         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6857         * posix/regex_internal.h (gettext): Likewise.
6858         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6859         Remove declaration.
6860         * include/argz.h (__argz_count_internal)
6861         (__argz_stringify_internal): Remove declaration.
6862         (__argz_count, __argz_stringify): Declare hidden proto.
6863         * intl/dcgettext.c: Remove use of INTDEF.
6864         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6865         * string/argz-stringify.c: Likewise.
6866         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6867         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6868         Declare hidden proto.
6869         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6870         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6871         Declare hidden proto.
6872         * include/stdio.h (__asprintf_internal): Don't declare.
6873         (__asprintf): Don't define as macro.  Declare hidden proto.
6874         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6875         (__fsetlocking): Declare hidden proto.
6876         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6877         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6878         hidden proto.
6879         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6880         (_IO_setlinebuf): Remove use of INTUSE.
6881         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6882         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6883         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6884         Remove declaration.
6885         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6886         (_IO_do_flush): Remove use of INTUSE.
6887         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6888         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6889         (_IO_adjust_column, _IO_least_wmarker)
6890         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6891         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6892         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6893         (_IO_default_doallocate, _IO_wdefault_doallocate)
6894         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6895         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6896         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6897         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6898         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6899         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6900         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6901         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6902         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6903         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6904         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6905         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6906         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6907         proto.
6908         (_IO_flush_all_internal, _IO_adjust_column_internal)
6909         (_IO_default_uflow_internal, _IO_default_finish_internal)
6910         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6911         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6912         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6913         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6914         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6915         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6916         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6917         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6918         (_IO_file_close_internal, _IO_file_close_it_internal)
6919         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6920         (_IO_file_init_internal, _IO_file_attach_internal)
6921         (_IO_file_fopen_internal, _IO_file_read_internal)
6922         (_IO_file_sync_internal, _IO_file_seek_internal)
6923         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6924         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6925         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6926         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6927         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6928         (_IO_list_all_internal, _IO_link_in_internal)
6929         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6930         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6931         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6932         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6933         (_IO_do_write_internal, _IO_padn_internal)
6934         (_IO_getline_info_internal, _IO_getline_internal)
6935         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6936         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6937         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6938         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6939         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6940         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6941         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6942         with libc_hidden_ver, remove use of INTUSE.
6943         * libio/genops.c: Likewise.
6944         * libio/freopen.c: Likewise.
6945         * libio/freopen64.c: Likewise.
6946         * libio/iofclose.c: Likewise.
6947         * libio/iofdopen.c: Likewise.
6948         * libio/iofflush.c: Likewise.
6949         * libio/iofflush_u.c: Likewise.
6950         * libio/iofgets.c: Likewise.
6951         * libio/iofgets_u.c: Likewise.
6952         * libio/iofopen.c: Likewise.
6953         * libio/iofopncook.c: Likewise.
6954         * libio/iofread.c: Likewise.
6955         * libio/iofread_u.c: Likewise.
6956         * libio/ioftell.c: Likewise.
6957         * libio/iofwrite.c: Likewise.
6958         * libio/iogetline.c: Likewise.
6959         * libio/iogets.c: Likewise.
6960         * libio/iogetwline.c: Likewise.
6961         * libio/iopadn.c: Likewise.
6962         * libio/iopopen.c: Likewise.
6963         * libio/ioseekoff.c: Likewise.
6964         * libio/ioseekpos.c: Likewise.
6965         * libio/iosetbuffer.c: Likewise.
6966         * libio/iosetvbuf.c: Likewise.
6967         * libio/ioungetc.c: Likewise.
6968         * libio/ioungetwc.c: Likewise.
6969         * libio/iovdprintf.c: Likewise.
6970         * libio/iovsprintf.c: Likewise.
6971         * libio/iovsscanf.c: Likewise.
6972         * libio/memstream.c: Likewise.
6973         * libio/obprintf.c: Likewise.
6974         * libio/oldfileops.c: Likewise.
6975         * libio/oldiofclose.c: Likewise.
6976         * libio/oldiofdopen.c: Likewise.
6977         * libio/oldiofopen.c: Likewise.
6978         * libio/oldiopopen.c: Likewise.
6979         * libio/oldstdfiles.c: Likewise.
6980         * libio/putc.c: Likewise.
6981         * libio/setbuf.c: Likewise.
6982         * libio/setlinebuf.c: Likewise.
6983         * libio/stdfiles.c: Likewise.
6984         * libio/strops.c: Likewise.
6985         * libio/vasprintf.c: Likewise.
6986         * libio/vscanf.c: Likewise.
6987         * libio/vsnprintf.c: Likewise.
6988         * libio/vswprintf.c: Likewise.
6989         * libio/wfiledoalloc.c: Likewise.
6990         * libio/wfileops.c: Likewise.
6991         * libio/wgenops.c: Likewise.
6992         * libio/wmemstream.c: Likewise.
6993         * libio/wstrops.c: Likewise.
6994         * libio/__fpurge.c: Likewise.
6995         * libio/__fsetlocking.c: Likewise.
6996         * assert/assert.c: Likewise.
6997         * debug/fgets_chk.c: Likewise.
6998         * debug/fgets_u_chk.c: Likewise.
6999         * debug/fread_chk.c: Likewise.
7000         * debug/fread_u_chk.c: Likewise.
7001         * debug/gets_chk.c: Likewise.
7002         * debug/obprintf_chk.c: Likewise.
7003         * debug/vasprintf_chk.c: Likewise.
7004         * debug/vdprintf_chk.c: Likewise.
7005         * debug/vsnprintf_chk.c: Likewise.
7006         * debug/vsprintf_chk.c: Likewise.
7007         * malloc/mtrace.c: Likewise.
7008         * misc/error.c: Likewise.
7009         * misc/syslog.c: Likewise.
7010         * stdio-common/asprintf.c: Likewise.
7011         * stdio-common/fxprintf.c: Likewise.
7012         * stdio-common/getw.c: Likewise.
7013         * stdio-common/isoc99_fscanf.c: Likewise.
7014         * stdio-common/isoc99_scanf.c: Likewise.
7015         * stdio-common/isoc99_vfscanf.c: Likewise.
7016         * stdio-common/isoc99_vscanf.c: Likewise.
7017         * stdio-common/isoc99_vsscanf.c: Likewise.
7018         * stdio-common/printf-prs.c: Likewise.
7019         * stdio-common/printf_fp.c: Likewise.
7020         * stdio-common/printf_fphex.c: Likewise.
7021         * stdio-common/printf_size.c: Likewise.
7022         * stdio-common/putw.c: Likewise.
7023         * stdio-common/scanf.c: Likewise.
7024         * stdio-common/sprintf.c: Likewise.
7025         * stdio-common/tmpfile.c: Likewise.
7026         * stdio-common/vfprintf.c: Likewise.
7027         * stdio-common/vfscanf.c: Likewise.
7028         * stdlib/strfmon_l.c: Likewise.
7029         * sunrpc/openchild.c: Likewise.
7030         * sunrpc/xdr_stdio.c: Likewise.
7031         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7032         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7033
7034 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7035
7036         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7037
7038         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7039         in the third column, to generate for the shared library an IFUNC
7040         that uses _dl_vdso_vsym.
7041         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7042         * Makeconfig (object-suffixes-noshared): New variable.
7043
7044         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7045         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7046         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7047         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7048
7049         [BZ #14132]
7050         * include/sys/time.h (__gettimeofday): Remove macro.
7051         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7052         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7053         Remove INTDEF.
7054         (__gettimeofday): Add libc_hidden_def.
7055         (gettimeofday): Add libc_hidden_weak.
7056         * sysdeps/mach/gettimeofday.c: Likewise.
7057         * sysdeps/posix/gettimeofday.c: Likewise.
7058         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7059         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7060         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7061         (__gettimeofday_internal): Remove strong_alias.
7062         (__gettimeofday): Add libc_hidden_def.
7063         (gettimeofday): Add libc_hidden_weak.
7064         * sysdeps/unix/syscalls.list (gettimeofday):
7065         Remove __gettimeofday_internal alias.
7066
7067 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7068             H.J. Lu  <hongjiu.lu@intel.com>
7069
7070         [BZ #12495]
7071         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7072         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7073         (largebin_index_32_big): New.
7074         (largebin_index): Use it for 16-byte alignment.
7075         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7076         correction with front_misalign.
7077
7078 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7079
7080         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7081         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7082         Likewise.
7083         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7084         Likewise.
7085         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7086         Likewise.
7087         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7088         Likewise.
7089         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7090         Likewise.
7091         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7092         Likewise.
7093         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7094         Likewise.
7095         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7096         Likewise.
7097         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7098         Likewise.
7099         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7100         Likewise.
7101         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7102         Likewise.
7103         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7104         Likewise.
7105
7106         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7107         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7108
7109 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7110
7111         [BZ #10846]
7112         [BZ #14036]
7113         * math/libm-test.inc (exp_test): Add test from bug 14036.
7114         (pow_test): Add test from bug 10846.
7115
7116         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7117         and other flags.
7118         (special_function): Do not include flags in test name.
7119         (parse_args): Likewise.
7120         * sysdeps/i386/fpu/libm-test-ulps: Update.
7121         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7122         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7123         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7124         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7125
7126         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7127         exceptions.
7128         * math/libm-test.inc ("Philosophy"): Update comment about
7129         exception testing.
7130         (UNDERFLOW_EXCEPTION): New macro.
7131         (UNDERFLOW_EXCEPTION_OK): Likewise.
7132         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7133         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7134         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7135         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7136         (INVALID_EXCEPTION_OK): Update value.
7137         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7138         (OVERFLOW_EXCEPTION_OK): Likewise.
7139         (IGNORE_ZERO_INF_SIGN): Likewise.
7140         (test_exceptions): Handle underflow exceptions.
7141         (acos_test): Update for underflow exception expectations.
7142         (cexp_test): Likewise.
7143         (clog_test): Likewise.
7144         (clog10_test): Likewise.
7145         (csqrt_test): Likewise.
7146         (ctan_test): Likewise.
7147         (ctanh_test): Likewise.
7148         (exp_test): Likewise.
7149         (exp10_test): Likewise.
7150         (exp2_test): Likewise.
7151         (expm1_test): Likewise.
7152         (fma_test): Likewise.
7153         (j0_test): Likewise.
7154         (jn_test): Likewise.
7155         (nexttoward_test): Likewise.
7156         (pow_test): Likewise.
7157         (scalbn_test): Likewise.
7158         (scalbln_test): Likewise.
7159         (tan_test): Likewise.
7160         (y1_test): Likewise.
7161         * sysdeps/i386/fpu/libm-test-ulps: Update.
7162         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7163
7164 2012-05-23  David S. Miller  <davem@davemloft.net>
7165
7166         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7167         (__libc_sigaction): Remove unused local variables.
7168
7169 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7170
7171         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7172
7173 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7174
7175         mktime: avoid signed integer overflow
7176         * time/mktime.c (__mktime_internal): Do not mishandle the case
7177         where diff == INT_MIN.
7178
7179         mktime: simplify computation of average
7180         * time/mktime.c (ranged_convert): Use new time_t_avg function
7181         instead of rolling our own (probably-slower) code.
7182
7183         mktime: do not assume signed right shift propagates sign bit
7184         * time/mktime.c (isdst_differ): New static function.
7185         (__mktime_internal): No need to normalize tm_isdst now.
7186         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7187         tm_isdst values.
7188
7189         mktime: merge another wrapv change from gnulib
7190         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7191         from some compilers.
7192
7193         mktime: remove incorrect attempt at unusual arithmetics
7194         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7195         The code didn't really work on such machines anyway.
7196         (TYPE_MINIMUM): Assume two's complement.
7197         (twos_complement_arithmetic): Verify that long_int and time_t
7198         are two's complement (or unsigned, in the latter case).
7199
7200         mktime: check signed shifts on long_int and time_t, too
7201         * time/mktime.c (SHR): Check that shifts work as desired
7202         on the types long_int and time_t too, as SHR is used on
7203         such types.
7204
7205         mktime: do not assume 'long' is wide enough
7206         * time/mktime.c (verify): Move decl up.
7207         (long_int): New type.
7208         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7209         to remove assumption in the code that 'long' is wide enough to
7210         store year values.  This assumption is not true on x32 and on
7211         some non-glibc platforms.
7212
7213         mktime: merge wrapv change from gnulib
7214         * time/mktime.c (WRAPV): New macro.
7215         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7216         (guess_time_tm, __mktime_internal): Do not assume that signed
7217         integer overflow wraps around; modern compilers generate code
7218         where this assumption is no longer valid.
7219
7220 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7221
7222         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7223         Replace "jmp L(pseudo_end)" with "ret".
7224         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7225         Likewise.
7226
7227 2012-05-23  Andreas Jaeger  <aj@suse.de>
7228
7229         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7230         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7231
7232 2012-05-23  Andreas Jaeger  <aj@suse.de>
7233             Maximilian Attems  <max@stro.at>
7234
7235         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7236         New macros.
7237
7238 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7239
7240         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7241         code so that pseudo_end is just ret and the stack pointer is
7242         correct also for static library in error case.
7243
7244 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7245
7246         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7247         move to syscalls.list.
7248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7252
7253         * manual/install.texi (Running make install): Do not mention Linux
7254         kernel version for which pt_chown is not needed.
7255         (Linux): Do not mention problems with nscd with 2.0 kernels.
7256         * INSTALL: Regenerated.
7257
7258 2012-05-23  Andreas Jaeger  <aj@suse.de>
7259
7260         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7261         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7262         macro.
7263         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7264         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7265         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7266         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7267         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7268         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7269         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7270         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7271         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7272         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7273         * sysdeps/unix/sysv/linux/bits/in.h
7274         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7275
7276 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7277
7278         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7279         (PREPARE_VERSION): Just use assert instead, it will be elided
7280         under [NDEBUG] anyway.
7281
7282 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7283
7284         * sysdeps/unix/sysv/linux/Makefile: Include
7285         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7286         (sysdep_routines): Remove sysctl.
7287         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7288         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7289         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7290         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7291         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7292
7293 2012-05-22  Andreas Jaeger  <aj@suse.de>
7294
7295         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7296         that pseudo_end is just ret and the stack pointer is correct also
7297         for static library in error case.
7298
7299 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7300
7301         [BZ #14122]
7302         * nss/nsswitch.c (defconfig_entries): New variable.
7303         (__nss_database_lookup): Don't leak defconfig entries.
7304         (nss_parse_service_list): Don't leak on error paths.
7305         (free_database_entries): New function.
7306         (free_defconfig): New function.
7307         (free_mem): Move common code to free_database_entries.
7308
7309 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7310
7311         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7312         Add arch_prctl.
7313         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7314
7315         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7316         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7317         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7318         New macro.
7319         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7320         (INTERNAL_SYSCALL_TYPES): Likewise.
7321         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7322         (LOAD_REGS_TYPES_[1-6]): Likewise.
7323         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7324         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7325
7326 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7327
7328         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7329         copysignl for GLIBC_2_0.
7330         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7331         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7332         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7333         logbl for GLIBC_2_0.
7334         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7335         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7336
7337 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7338
7339         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7340         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7341
7342         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7343         Use "neg %eax".
7344
7345         * time/mktime.c: Update copyright years.
7346
7347 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7348
7349         mktime: merge comment-quoting-style change from gnulib
7350         * time/mktime.c: Quote 'like this' in comments.
7351         The GNU coding standards suggest that we no longer quote `like this',
7352         as "`" and "'" are typically rendered asymmetrically nowadays.
7353         The typical gnulib style is to quote 'like this' when quoting
7354         code, and "like this" when quoting English.
7355
7356         * time/mktime.c (compile-command): Add "-I.".
7357
7358         mktime: merge mktime-internal.h change from gnulib
7359         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7360
7361         mktime: merge time_r change from gnulib
7362         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7363
7364         mktime: merge DEBUG change from gnulib
7365         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7366         case system <time.h> has a #define.
7367
7368         mktime: merge <sys/types.h> change from gnulib
7369         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7370         since <time.t> is now guaranteed to define time_t.
7371
7372         mktime: merge HAVE_CONFIG_H change from gnulib
7373         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7374
7375 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7376
7377         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7378         Use "neg %eax".
7379
7380         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7381         __rlim_t cast.
7382         (struct rusage): Use anonymous union to pad each field to
7383         __syscall_slong_t.
7384
7385 2012-05-21  David S. Miller  <davem@davemloft.net>
7386
7387         * Makefules (o-iterator): Remove .s cases.
7388         (compile-command.s): Delete.
7389         (COMPILE.s): Delete.
7390         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7391
7392 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7393
7394         * configure.in (libc_cv_predef_stack_protector): Only consider
7395         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7396         * configure: Regenerated.
7397
7398 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7399
7400         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7401         New macro.  Use R*LP on int and pointer.
7402         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7403         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7404         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7405         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7406
7407         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7408         [__WORDSIZE_TIME64_COMPAT32] instead of
7409         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7410         (struct utmp): Likewise.
7411         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7412         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7413         Renamed to ...
7414         (__WORDSIZE_TIME64_COMPAT32): This.
7415         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7416         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7417         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7418         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7419         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7420         (__WORDSIZE_TIME64_COMPAT32): New macro.
7421
7422 2012-05-21  Andreas Jaeger  <aj@suse.de>
7423
7424         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7425         only if [SHARED]. Add prototype for __wcschr_ia32.
7426
7427 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7428
7429         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7430         of %rbp unmolested in the jmp_buf while mangling the low bits.
7431         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7432         unmolested high bits of %rbp while demangling the low bits.
7433         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7434
7435 2012-05-21  Andreas Jaeger  <aj@suse.de>
7436
7437         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7438         * sunrpc/svc_simple.c: Use it for registerrpc.
7439         * sunrpc/xcrypt.c: Use it for passwd2des.
7440
7441         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7442
7443 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7444
7445         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7446         Don't define if [__SYSCALL_WORDSIZE != 32].
7447         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7448         New macro.
7449
7450 2012-05-21  Bruno Haible  <bruno@clisp.org>
7451             Andreas Jaeger  <aj@suse.de>
7452
7453         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7454         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7455         inptr and inend for must_buffer_ch.
7456         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7457         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7458         * stdio-common/Makefile (tests): Remove bug15.
7459         (bug15-ENV): Remove macro.
7460         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7461         anymore.
7462
7463 2012-05-19  Andreas Jaeger  <aj@suse.de>
7464             Roland McGrath  <roland@hack.frob.com>
7465
7466         * manual/contrib.texi: Completely rewritten. It contains now an
7467         alphabetical list of contributors and their contributions.
7468
7469 2012-05-21  Richard Henderson  <rth@twiddle.net>
7470
7471         * misc/getauxval.c (__getauxval): Use unsigned long int.
7472         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7473         (getauxval): Use unsigned long int.
7474
7475 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7476
7477         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7478
7479 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7480
7481         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7482         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7483         __alignof__ (long double).
7484
7485 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7486
7487         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7488
7489 2012-05-20  Richard Henderson  <rth@twiddle.net>
7490
7491         * misc/getauxval.c: New file.
7492         * misc/sys/auxv.h: New file.
7493         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7494         (routines): Add getauxval.
7495         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7496         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7497         * elf/dl-sysdep.c (_dl_auxv): Remove.
7498         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7499         * elf/dl-support.c (_dl_auxv): New variable.
7500         (_dl_aux_init): Initialize it.
7501         * manual/startup.texi (Auxiliary Vector): New node.
7502         * sysdeps/generic/bits/hwcap.h: New file.
7503         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7504         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7505         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7506         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7507         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7508         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7510         Update.
7511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7512         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7514         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7515         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7516         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7517         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7518         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7519
7520 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7521
7522         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7523
7524 2012-05-19  David S. Miller  <davem@davemloft.net>
7525
7526         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7527
7528 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7529
7530         [BZ #14123]
7531         * math/s_ccosh.c: Include <float.h>
7532         (__ccosh): Avoid internal overflow calculating sinh and cosh
7533         values before multiplying by sin and cos values.
7534         * math/s_ccoshf.c: Likewise.
7535         * math/s_ccoshl.c: Likewise.
7536         * math/s_csin.c: Likewise.
7537         * math/s_csinf.c: Likewise.
7538         * math/s_csinl.c: Likewise.
7539         * math/s_csinh.c: Likewise.
7540         * math/s_csinhf.c: Likewise.
7541         * math/s_csinhl.c: Likewise.
7542         * math/libm-test.inc (ccos_test): Add more tests.
7543         (ccosh_test): Likewise.
7544         (csin_test): Likewise.
7545         (csinh_test): Likewise.
7546         * sysdeps/i386/fpu/libm-test-ulps: Update.
7547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7548
7549 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7550
7551         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7552         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7553
7554         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7555
7556 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7557
7558         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7559         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7560         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7561         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7562         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7563         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7564         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7565         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7566         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7567         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7568         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7569         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7570         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7571         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7572         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7573         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7574         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7575         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7576         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7577         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7578         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7579         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7580         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7581         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7582         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7583         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7584         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7585         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7586         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7587         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7588         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7589
7590 2012-05-18  Andreas Jaeger  <aj@suse.de>
7591
7592         * csu/.gitignore: Delete.
7593
7594 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7595
7596         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7597         (timex): Use __syscall_slong_t.
7598
7599 2012-05-18  Andreas Jaeger  <aj@suse.de>
7600             Carlos O'Donell  <carlos_odonell@mentor.com>
7601
7602         * manual/install.texi (Configuring and compiling): Update
7603         description about files modified in the source directory.
7604         * INSTALL: Regenerated.
7605
7606 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7607
7608         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7609         value.  Use "or" to set return value to -1.
7610         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7611         negate return value.
7612
7613 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7614
7615         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7616         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7617         failure if the compiler has Graphite support disabled.
7618         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7619         Likewise.
7620         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7621         CFLAGS-memmove.c): Likewise.
7622         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7623         Likewise.
7624
7625 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7626
7627         * sysdeps/x86_64/x32/_itoa.h: New file.
7628
7629         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7630         getdents system call only if kernel and user dirents have the
7631         same d_ino and d_off.
7632
7633         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7634         LLONG_MAX != LONG_MAX.
7635         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7636         (_fitoa_word): Likewise.
7637
7638         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7639         years.
7640         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7641         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7642         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7643
7644         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7645         include <bits/wordsize.h>.  Check __x86_64__ instead of
7646         __WORDSIZE.
7647         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7648         if __x86_64__ is defined.  Use anonymous union on fpstate.
7649
7650         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7651         anonymous union.
7652
7653 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7654
7655         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7656         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7657         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7658         Refer to _rtld_local_ro instead of _rtld_global_ro.
7659         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7660         Likewise.
7661         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7662         Likewise.
7663         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7664         Likewise.
7665         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7666         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7667         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7668
7669         * sysdeps/powerpc/powerpc32/dl-machine.c
7670         (__elf_machine_runtime_setup) [PROF]: Don't reference
7671         _dl_prof_resolve.
7672
7673 2012-05-18  Andreas Jaeger  <aj@suse.de>
7674
7675         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7676         function only available for GCCs before 3.4 since GCC 3.4
7677         introduced a builtin.
7678         (lrint): Likewise.
7679         (llrintf): Likewise.
7680         (llrint): Likewise.
7681         (fmaxf): Likewise.
7682         (fmax): Likewise.
7683         (fminf): Likewise.
7684         (fmin): Likewise.
7685         (rint): Likewise.
7686         (rintf): Likewise.
7687         (nearbyint): Likewise.
7688         (nearbyintf): Likewise.
7689         (ceil): Likewise.
7690         (ceilf): Likewise.
7691         (floor): Likewise.
7692         (floorf): Likewise.
7693
7694 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7695
7696         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7697         on both fields and cast pointer to __syscall_ulong_t.
7698
7699         * bits/types.h (__fsword_t): New type.
7700         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7701         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7702         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7703         (__FSWORD_T_TYPE): Likewise.
7704         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7705         (__FSWORD_T_TYPE): Likewise.
7706         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7707         (__FSWORD_T_TYPE): Likewise.
7708         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7709         (__FSWORD_T_TYPE): Likewise.
7710         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7711         __SWORD_TYPE with __fsword_t.
7712         (statfs64): Likewise.
7713
7714 2012-05-17  David S. Miller  <davem@davemloft.net>
7715
7716         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7717
7718 2012-05-17  Andreas Jaeger  <aj@suse.de>
7719
7720         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7721         warning.
7722
7723 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7724
7725         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7726
7727 2012-05-17  Andreas Jaeger  <aj@suse.de>
7728
7729         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7730         when it is used.
7731
7732 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7733
7734         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7735
7736 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7737
7738         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7739         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7740
7741 2012-05-17  Andreas Jaeger  <aj@suse.de>
7742             Carlos O'Donell  <carlos_odonell@mentor.com>
7743
7744         [BZ #14059]
7745         * sysdeps/x86_64/multiarch/init-arch.h
7746         (bit_YMM_Usable): Rename to...
7747         (bit_AVX_Usable): ... this.
7748         (bit_FMA4_Usable): New macro.
7749         (bit_XMM_state): New macro.
7750         (bit_YMM_state): New macro.
7751         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7752         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7753         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7754         (CPUID_OSXSAVE): New macro.
7755         (CPUID_AVX): New macro.
7756         (CPUID_FMA4): New macro.
7757         (index_YMM_Usable): Rename to...
7758         (index_AVX_Usable): ... this.
7759         (HAS_AVX): Use HAS_ARCH_FEATURE.
7760         (HAS_FMA4): Likewise.
7761         (HAS_YMM_USABLE): Remove.
7762         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7763         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7764         are present.
7765         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7766         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7767         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7768         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7769         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7770
7771 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7772
7773         * math/libm-test.c: Support platforms without multiple rounding modes.
7774         * math/bug-nextafter.c: Support platforms without FP exceptions.
7775         * math/bug-nexttoward.c: Likewise.
7776         * math/test-fenv.c: Likewise.
7777         * math/test-misc.c: Likewise.
7778         * stdlib/bug-getcontext.c: Likewise.
7779
7780 2012-05-17  Andreas Jaeger  <aj@suse.de>
7781
7782         * manual/examples/search.c (critter_cmp): Change signature to
7783         avoid warnings.
7784         * manual/string.texi (Collation Functions): Likewise.
7785
7786 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7787
7788         * bits/types.h: Fold copyright years.
7789         * bits/typesizes.h: Likewise.
7790         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7791         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7792         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7793         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7794         * time/time.h: Likewise.
7795
7796 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7797
7798         [BZ #208]
7799         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7800         in instead of returning them.  Return void.
7801         (__libc_mallinfo): Accumulate over all arenas.
7802         (__malloc_stats): Adjust for change in int_mallinfo interface.
7803
7804 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7805
7806         [BZ #10375]
7807         * configure.in (NM): Add AC_CHECK_TOOL for it.
7808         (libc_extra_cflags): New substituted variable.
7809         Check for -fstack-protector being used implicitly.
7810         * configure: Regenerated.
7811         * config.make.in (config-extra-cflags): New variable,
7812         gets @libc_extra_cflags@.
7813         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7814
7815         [BZ #10375]
7816         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7817         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7818         * configure: Regenerated.
7819         * config.make.in (CPPUNDEFS): New substituted variable.
7820         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7821         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7822         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7823
7824 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7825
7826         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7827         (mq_attr): Use __syscall_slong_t.
7828
7829 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7830
7831         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7832         Check __x86_64__ instead of __WORDSIZE.
7833         (_STAT_VER_LINUX): Likewise.
7834         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7835         __syscall_ulong_t and __syscall_slong_t.
7836         (stat64): Likewise.
7837
7838 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7839
7840         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7841
7842 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7843
7844         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7845
7846 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7847
7848         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7849         __syscall_ulong_t.
7850
7851         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7852         include <bits/wordsize.h>.  Check __x86_64__ instead of
7853         __WORDSIZE.
7854         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7855         defined.
7856         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7857
7858         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7859         include <bits/wordsize.h>.  Check __x86_64__ instead of
7860         __WORDSIZE.
7861         (user_regs_struct): Use "__extension__ unsigned long long"
7862         instead of "unsigned long" if __x86_64__ is defined.
7863         (user): Likewise.  Pad after pointer field if __ILP32__ is
7864         defined.
7865
7866 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7867
7868         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7869         versions 5 to 9.
7870         * configure: Regenerated.
7871         * manual/install.texi (texinfo): Increase version requirement to
7872         4.5 or later.
7873         * INSTALL: Regenerated.
7874
7875         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7876
7877 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7878
7879         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7880
7881         * sysdeps/x86_64/x32/ffs.c: New file.
7882
7883         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7884         __syscall_ulong_t.
7885         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7886         defined.  Use __syscall_ulong_t.
7887         (shminfo): Use __syscall_ulong_t.
7888         (shm_info): Likewise.
7889
7890         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7891         __syscall_ulong_t.
7892
7893         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7894         <bits/wordsize.h>.
7895         (msgqnum_t): Use __syscall_ulong_t.
7896         (msglen_t): Likewise.
7897         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7898         __syscall_ulong_t.
7899
7900         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7901         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7902
7903         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7904
7905         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7906         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7907
7908         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7909         __syscall_slong_t.
7910
7911         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7912         include <bits/wordsize.h>.  Check __x86_64__ instead of
7913         __WORDSIZE.
7914
7915         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7916         "unsigned long long int" if __x86_64__ is defined.
7917         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7918
7919         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7920         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7921         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7922
7923         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7924         <stdint.h>.
7925         (GET_PC): Cast to uintptr_t first.
7926         (GET_FRAME): Likewise.
7927         (GET_STACK): Likewise.
7928
7929         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7930         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7931         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7932         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7933         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7934         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7935         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7936         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7937         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7938         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7939         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7940         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7941         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7942         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7943         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7944         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7945         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7946         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7947         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7948         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7949         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7950         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7951         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7952         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7953         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7954         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7955         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7956         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7957         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7958
7959 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7960
7961         * Makerules (+depfiles): Also collect depfiles from .oS in
7962         $(extra-objs).
7963         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7964         .oS, $(libnldbl-routines)).
7965
7966         * Makerules (native-compile-mkdep-flags): Define.
7967         * sunrpc/Makefile (extra-objs): Add $(addprefix
7968         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7969         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7970         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7971         calling $(make-target-directory).
7972
7973 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7974
7975         * bits/types.h (__snseconds_t): Removed.
7976         * time/time.h (struct timespec): Replace __snseconds_t with
7977         __syscall_slong_t.
7978         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7979         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7980         Likewise.
7981         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7982         (__SNSECONDS_T_TYPE): Likewise.
7983         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7984         (__SNSECONDS_T_TYPE): Likewise.
7985         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7986         (__SNSECONDS_T_TYPE): Likewise.
7987
7988 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7989
7990         * sysdeps/mach/hurd/bits/typesizes.h
7991         (__SYSCALL_SLONG_TYPE): New macro.
7992         (__SYSCALL_ULONG_TYPE): Likewise.
7993
7994 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7995
7996         * bits/types.h (__syscall_slong_t): New type.
7997         (__syscall_ulong_t): Likewise.
7998
7999         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8000         (__SYSCALL_ULONG_TYPE): Likewise.
8001         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8002         (__SYSCALL_SLONG_TYPE): Likewise.
8003         (__SYSCALL_ULONG_TYPE): Likewise.
8004         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8005         (__SYSCALL_SLONG_TYPE): Likewise.
8006         (__SYSCALL_ULONG_TYPE): Likewise.
8007         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8008         (__SYSCALL_SLONG_TYPE): Likewise.
8009         (__SYSCALL_ULONG_TYPE): Likewise.
8010
8011 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8012
8013         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8014         Add sigaltstack-offsets.sym.
8015         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8016         <sigaltstack-offsets.h>.
8017         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8018         longjmp_msg pointer.
8019         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8020         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8021         signal stack.
8022         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8023
8024 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8025
8026         * elf/stackguard-macros.h: Remove file.
8027         * sysdeps/generic/stackguard-macros.h: New file.
8028         * sysdeps/i386/stackguard-macros.h: Likewise.
8029         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8030         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8031         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8032         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8033         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8034         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8035         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8036         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8037         <elf/stackguard-macros.h>.
8038
8039         [BZ #14109]
8040         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8041         __aligned__ in attribute.
8042         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8043         (gregset_t): Likewise.
8044
8045 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8046
8047         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8048         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8049         * sysdeps/x86_64/x32/Implies-after: New file.
8050
8051 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8052
8053         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8054         and access return value for _dl_profile_fixup.  Use R10_LP to
8055         load frame size.
8056
8057 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8058
8059         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8060
8061 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8062
8063         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8064         * sysdeps/x86_64/x32/sysdep.h: New file.
8065
8066 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8067
8068         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8069         * sysdeps/x86_64/setjmp.S: Likewise.
8070
8071 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8072
8073         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8074         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8075         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8076         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8077         remove unused global constant.
8078
8079 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8080
8081         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8082         include of <not-cancel.h>.
8083
8084 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8085
8086         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8087
8088 2012-05-15  Jeff Law  <law@redhat.com>
8089             Andreas Jaeger  <aj@suse.de>
8090
8091         [BZ #13594]
8092         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8093         out from...
8094         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8095         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8096         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8097         code changing __hst_map_handle.map.
8098
8099 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8100
8101         * configure.in (sysnames): Look for Implies-before and Implies-after
8102         files.
8103         * configure: Regenerated.
8104
8105 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8106
8107         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8108         8-byte data alignment with LP_SIZE alignment.
8109
8110 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8111
8112         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8113         into R10_LP.
8114
8115 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8116
8117         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8118
8119 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8120
8121         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8122         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8123         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8124         Likewise.
8125         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8126
8127 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8128
8129         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8130         (stackinfo_sub_sp): Likewise.
8131
8132 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8133
8134         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8135         RAX_LP.
8136
8137 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8138
8139         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8140         into R*_LP.
8141
8142 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8143
8144         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8145         sizes into R*_LP.
8146
8147 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8148
8149         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8150
8151 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8152
8153         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8154         into R11_LP and load __x86_64_shared_cache_size_half into
8155         R8_LP.
8156
8157 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8158
8159         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8160         R8_LP.
8161
8162 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8163
8164         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8165         logb for POWER7.
8166         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8167         logbf for POWER7.
8168         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8169         logbl for POWER7.
8170         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8171         powerpc32/power7/fpu/s_logb.c via #include.
8172         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8173         powerpc32/power7/fpu/s_logbf.c via #include.
8174         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8175         powerpc32/power7/fpu/s_logbl.c via #include.
8176
8177 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8178
8179         * README.libm: Remove file.
8180
8181 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8182
8183         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8184         count for x32.  Use R*_LP and omit operand-size suffix.
8185
8186 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8187
8188         * shlib-versions: Move x86_64-.*-linux.* entries to ...
8189         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
8190         * sysdeps/x86_64/x32/shlib-versions: New file.
8191
8192 2012-05-14  Roland McGrath  <roland@hack.frob.com>
8193
8194         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8195         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8196         Use _dl_fatal_printf instead.
8197
8198 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8199
8200         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8201         set if not set by the user.  Do not allow for being unset.
8202         * sysdeps/unix/sysv/linux/configure: Regenerated.
8203
8204 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8205
8206         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8207         the `q' suffix from lea and replace .quad with ASM_ADDR.
8208
8209 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8210
8211         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8212         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8213         instead of $17.
8214         (PTR_DEMANGLE): Likewise.
8215
8216 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8217
8218         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8219         (LP_OP): Likewise.
8220         (ASM_ADDR): Likewise.
8221         (RAX_LP): Likewise.
8222         (RBP_LP): Likewise.
8223         (RBX_LP): Likewise.
8224         (RCX_LP): Likewise.
8225         (RDI_LP): Likewise.
8226         (RSI_LP): Likewise.
8227         (RSP_LP): Likewise.
8228         (R8_LP): Likewise.
8229         (R9_LP): Likewise.
8230         (R10_LP): Likewise.
8231         (R10_LP): Likewise.
8232         (R11_LP): Likewise.
8233         (R12_LP): Likewise.
8234         (R13_LP): Likewise.
8235         (R14_LP): Likewise.
8236         (R15_LP): Likewise.
8237
8238 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8239
8240         * sysdeps/x86_64/x32/dl-machine.h: New file.
8241
8242 2012-05-14  Andreas Jaeger  <aj@suse.de>
8243
8244         * manual/Makefile (subdir): Remove export of subdir.
8245         (all): Remove target.
8246         (.PHONY): Remove all from list.
8247         (mkinstalldirs): Remove.
8248         (.PHONY): Remove installdirs from list.
8249         ($(inst_infodir)/libc.info): Use make-target-directory.
8250         (installdirs): Remove.
8251         (subdir_%): Remove.
8252         (glibc-targets): Remove.
8253         (lib): Remove.
8254         (stubs): Remove.
8255         ($(objpfx)stubs ../po/manual.pot): Remove.
8256         ($(objpfx)stamp%): Remove.
8257         (make-target-directory): Remove.
8258         (subdir_install): Remove.
8259         (routines): Remove.
8260         (aux): Remove.
8261         (sources): Remove.
8262         (objects): Remove.
8263         (headers): Remove.
8264
8265         [BZ #13750]
8266         * manual/.gitignore: Remove, it's not needed anymore.
8267         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8268         all files in it.
8269         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8270         directory.
8271         (texis): Renamed to $(objpfx)texis.
8272         (texis-path): New, contains path to generated files.
8273         (chapters.%): Use texis-path for complete path, add extra argument
8274         libc-texinfo.sh.
8275         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8276         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8277         (summary,texi, stamp-summary): Use complete path of
8278         files. Generate files in build dir.
8279         (dir-add.texi): Build in build dir.
8280         (libm-err.texi,stamp-libm-err): Likewise.
8281         (version.texi, stamp-version): Likewise.
8282         (.%c.texi): Likewise.
8283         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8284         (mostlyclean): Remove target.
8285         (realclean): Remove target.
8286         (generated): Add new variable with contents from mostlyclean and
8287         realclean, remove entries duplicated in common-mostlyclean, add
8288         stamp-libm-err and stamp-version.
8289         (generated-dirs): Add libc directory.
8290         ($(inst_infodir)/libc.info): Install files from build dir.
8291
8292         * manual/install.texi (Configuring and compiling): Adjust since
8293         the info files are not part of the tar ball anymore.
8294
8295 2012-05-14  Andreas Jaeger  <aj@suse.de>
8296
8297         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8298         variable.
8299
8300 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8301
8302         [BZ #13717]
8303         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8304         to 2.2.0 where earlier.
8305         * sysdeps/unix/sysv/linux/configure: Regenerated.
8306         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8307         Remove conditional code.
8308         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8309         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8310         Remove conditional code.
8311         [!__NR_lchown]: Likewise.
8312         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8313         [__NR_lchown]: Likewise.
8314         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8315         comment referencing __ASSUME_LCHOWN_SYSCALL.
8316         * sysdeps/unix/sysv/linux/i386/sigaction.c
8317         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8318         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8319         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8320         Remove conditional code.
8321         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8322         (__protocol_available): Remove #if 0 code.
8323         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8324         conditional code.
8325         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8326         * sysdeps/unix/sysv/linux/kernel-features.h
8327         (__ASSUME_GETCWD_SYSCALL): Don't define.
8328         (__ASSUME_REALTIME_SIGNALS): Likewise.
8329         (__ASSUME_PREAD_SYSCALL): Likewise.
8330         (__ASSUME_PWRITE_SYSCALL): Likewise.
8331         (__ASSUME_POLL_SYSCALL): Likewise.
8332         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8333         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8334         non-SPARC.
8335         (__ASSUME_SIOCGIFNAME): Don't define.
8336         (__ASSUME_MSG_NOSIGNAL): Likewise.
8337         (__ASSUME_SENDFILE): Define unconditionally.
8338         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8339         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8340         conditional code.
8341         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8342         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8343         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8344         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8345         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8346         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8347         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8349         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8350         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8352         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8353         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8355         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8356         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8358         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8359         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8361         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8362         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8364         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8365         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8367         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8368         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8370         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8371         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8372         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8373         Remove conditional code.
8374         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8375         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8376         Remove conditional code.
8377         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8378         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8379         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8380         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8381         Remove conditional code.
8382         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8383         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8384         Remove conditional code.
8385         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8386         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8387         Remove conditional code.
8388         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8389         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8390         Remove conditional code.
8391         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8392         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8393         Remove conditional code.
8394         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8395         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8396         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8397         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8398         * sysdeps/unix/sysv/linux/sigaction.c
8399         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8400         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8401         * sysdeps/unix/sysv/linux/sigpending.c
8402         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8403         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8404         * sysdeps/unix/sysv/linux/sigprocmask.c
8405         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8406         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8407         * sysdeps/unix/sysv/linux/sigsuspend.c
8408         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8409         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8410         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8411         (__libc_missing_rt_sigs): Remove.
8412         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8413         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8414         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8415         Remove conditional code.
8416         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8417         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8418         return 1.
8419         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8420         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8421         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8422         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8423
8424 2012-05-14  Andreas Jaeger  <aj@suse.de>
8425
8426         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8427         it's not used in glibc.
8428         (__coshm1): Likewise.
8429         (__acosh1p): Likewise.
8430         (__sgn): Likewise.
8431
8432         * manual/string.texi (Copying and Concatenation): Add missing
8433         variable in concat example.
8434         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8435
8436 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8437
8438         [BZ #14103]
8439         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8440         __builtin_clzl with __builtin_clzll.
8441
8442 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8443
8444         [BZ #14104]
8445         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8446         libc_freeres_ptr.
8447
8448 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8449
8450         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8451         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8452         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8453         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8454
8455 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8456
8457         * NEWS: Update ia64 info.
8458
8459 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8460
8461         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8462         used as bcopy.
8463
8464 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8465
8466         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8467         * sysdeps/unix/syscalls.list (dup3): Likewise.
8468         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8469         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8470
8471 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8472
8473         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8474         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8475
8476 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8477
8478         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8479         thread pointer.
8480         (TLS_IE): Use mov/add instead of movq/addq to load thread
8481         pointer.
8482         (TLS_GD_PREFIX): New.
8483         (TLS_GD): Use it.
8484
8485 2012-05-11  David S. Miller  <davem@davemloft.net>
8486
8487         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8488         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8489         (_FPU_SETCW): Likewise.
8490
8491 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8492
8493         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8494         is 32-byte aligned.
8495
8496 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8497
8498         [BZ #11837]
8499         * iconvdata/gb18030.c: Update tables.
8500         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8501         characters specially.
8502         (BODY for TO_LOOP): Add encoding of missing ranges.
8503
8504 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8505
8506         [BZ #13673]
8507         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8508         * sysdeps/mach/hurd/dup3.c: Likewise.
8509         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8510         * sysdeps/powerpc/memmove.c:: Likewise.
8511
8512 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8513
8514         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8515         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8516
8517 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8518
8519         * elf/elf.h (R_X86_64_RELATIVE64): New.
8520         (R_X86_64_NUM): Updated.
8521         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8522         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8523         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8524         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8525         tst-quad1pie tst-quad2pie
8526         (modules-names): Add tst-quadmod1 tst-quadmod2.
8527         ($(objpfx)tst-quad1): New dependency.
8528         ($(objpfx)tst-quad2): Likewise.
8529         ($(objpfx)tst-quad1pie): Likewise.
8530         ($(objpfx)tst-quad2pie): Likewise.
8531         * sysdeps/x86_64/tst-quad1.c: New file.
8532         * sysdeps/x86_64/tst-quad1pie.c: New file.
8533         * sysdeps/x86_64/tst-quad2.c: Likewise.
8534         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8535         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8536         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8537         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8538         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8539
8540 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8541
8542         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8543         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8544         * streams/stropts.h (t_scalar_t): Define type.
8545
8546         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8547         (_PATH_PRESERVE): Set to "/var/lib".
8548         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8549
8550         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8551         instead of int.
8552
8553         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8554         if __dir_mkfile succeeded.
8555
8556         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8557         checking for _hurd_dtablesize.  Unlock it right after having
8558         finished _hurd_dtable allocation.
8559
8560 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8561
8562         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8563         * sysdeps/mach/hurd/configure: Regenerated.
8564         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8565         special-casing to...
8566         * sysdeps/gnu/configure.in: ... this new file.
8567         * sysdeps/unix/sysv/linux/configure: Regenerated.
8568         * sysdeps/gnu/configure: New generated file.
8569
8570         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8571         for Linux: use nsec instead of usec, as well as:
8572         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8573         members of type struct timespec.
8574         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8575         New macros.
8576         (struct stat64): Likewise.
8577         (_STATBUF_ST_NSEC): New macro.
8578         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8579
8580         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8581         __strtoul_internal rather than strtoul.
8582
8583 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8584
8585         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8586         and reject them.
8587
8588 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8589
8590         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8591         which preserves existing values.
8592         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8593
8594 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8595
8596         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8597         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8598         greater than FD_SETSIZE.
8599
8600 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8601
8602         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8603         allocated, call __vm_protect to finish enabling the existing space, and
8604         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8605         allocate the remainder.
8606
8607 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8608
8609         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8610         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8611
8612 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8613
8614         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8615         sysdeps/mach/hurd/readlink.c.
8616
8617         * posix/tst-sysconf.c (posix_options): Only use
8618         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8619         _POSIX_SYNCHRONIZED_IO when they are defined
8620         * sysdeps/mach/hurd/bits/posix_opt.h:
8621         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8622         (_XOPEN_REALTIME): Undefine macro.
8623         (_XOPEN_REALTIME_THREADS): Undefine macro.
8624         (_XOPEN_SHM): Undefine macro.
8625         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8626         macro to -1.
8627         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8628         macro to -1.
8629         (_POSIX_ASYNC_IO): Undefine macro.
8630         (_POSIX_PRIORITIZED_IO): Undefine macro.
8631         (_POSIX_SPIN_LOCKS): Define macro to -1.
8632
8633         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8634         SA_NODEFER, SA_RESETHAND.
8635         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8636         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8637         F_DUPFD_CLOEXEC.
8638
8639 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8640
8641         * elf/Makefile (pldd-modules): Define unconditionally.
8642
8643 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8644
8645         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8646
8647 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8648
8649         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8650         Return ENOENT when name is empty.
8651         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8652
8653 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8654
8655         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8656
8657         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8658
8659 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8660
8661         Fix mlock in all cases except non-readable pages.
8662         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8663         instead of VM_PROT_ALL as parameter to __vm_wire function.
8664
8665         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8666         (__mkdir): When path is `/', just fail with EEXIST.
8667         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8668
8669 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8670
8671         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8672         <sys/uio.h> (for writev).
8673         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8674         and <sys/param.h> (for MIN).
8675
8676 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8677
8678         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8679         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8680         if interrupted.
8681
8682 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8683
8684         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8685         Depend on against $(link-rpcuserlibs).
8686
8687 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8688
8689         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8690         (__libc_stack_end): Do not use attribute_relro.
8691         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8692         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8693         to libthread-provided value.
8694         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8695         attribute_relro.
8696
8697 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8698
8699         [BZ #3748]
8700         * bits/libc-lock.h (__libc_once_get): New macro.
8701         * sysdeps/mach/bits/libc-lock.h: Likewise.
8702         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8703         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8704         instead of using implementation details.
8705
8706         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8707         * libio/freopen.c: Likewise.
8708         * libio/freopen64.c: Likewise.
8709         * misc/syslog.c: Likewise.
8710         * nscd/connections.c: Likewise.
8711         * nscd/netgroupcache.c: Likewise.
8712         * sysdeps/posix/getcwd.c: Likewise.
8713
8714 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8715
8716         * math/w_ilogbf.c: Add #include <limits.h>.
8717
8718 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8719
8720         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8721         path instead of returning without unlocking.
8722
8723         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8724         immediate-write ioctls.
8725         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8726
8727 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8728
8729         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8730         __builtin_frame_address instead of making assumptions about the
8731         location of the return address relative to DATA.  Force early load of
8732         the return address.
8733         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8734         __builtin_frame_address.
8735
8736         dup3 for GNU Hurd.
8737         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8738         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8739         implement dup3 and do some further code clean-ups.
8740         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8741         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8742
8743 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8744
8745         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8746
8747         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8748         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8749         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8750         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8751         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8752         d->port.lock.
8753
8754         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8755         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8756         when handler == SIG_ERR, not when handler != SIG_ERR.
8757
8758 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8759
8760         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8761         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8762         definitions.
8763
8764         accept4 for GNU Hurd.
8765         * include/sys/socket.h (__libc_accept4): New prototype.
8766         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8767         to implement __libc_accept4.
8768         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8769         __libc_accept4.
8770         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8771
8772         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8773         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8774         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8775         signal-defines.sym.
8776
8777 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8778
8779         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8780
8781 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8782
8783         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8784         assertion on O_CLOEXEC flag.
8785         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8786         * hurd/intern-fd.c: Likewise.
8787         * hurd/port2fd.c: Likewise.
8788
8789 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8790
8791         [BZ #3906]
8792         * bits/in.h (IPV6_PKTINFO): Define new macro.
8793         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8794
8795 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8796
8797         [BZ #13954]
8798         [BZ #13955]
8799         [BZ #13956]
8800         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8801         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8802         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8803         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8804         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8805         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8806         * math/libm-test.inc (logb_test) : Additional logb tests.
8807
8808 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8809             Andreas Jaeger  <aj@suse.de>
8810
8811         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8812         * configure: Regenerated.
8813         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8814         * config.make.in (link-obsolete-rpc): New substituted variable.
8815         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8816         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8817         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8818         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8819         so that libc.a contains the symbols.
8820         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8821         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8822         * sunrpc/auth_none.c: Likewise.
8823         * sunrpc/auth_unix.c: Likewise.
8824         * sunrpc/authdes_prot.c: Likewise.
8825         * sunrpc/authuxprot.c: Likewise.
8826         * sunrpc/clnt_gen.c: Likewise.
8827         * sunrpc/clnt_perr.c: Likewise.
8828         * sunrpc/clnt_raw.c: Likewise.
8829         * sunrpc/clnt_simp.c: Likewise.
8830         * sunrpc/clnt_tcp.c: Likewise.
8831         * sunrpc/clnt_udp.c: Likewise.
8832         * sunrpc/clnt_unix.c: Likewise.
8833         * sunrpc/des_crypt.c: Likewise.
8834         * sunrpc/des_soft.c: Likewise.
8835         * sunrpc/get_myaddr.c: Likewise.
8836         * sunrpc/key_call.c: Likewise.
8837         * sunrpc/key_prot.c: Likewise.
8838         * sunrpc/netname.c: Likewise.
8839         * sunrpc/pm_getmaps.c: Likewise.
8840         * sunrpc/pm_getport.c: Likewise.
8841         * sunrpc/pmap_clnt.c: Likewise.
8842         * sunrpc/pmap_prot.c: Likewise.
8843         * sunrpc/pmap_prot2.c: Likewise.
8844         * sunrpc/pmap_rmt.c: Likewise.
8845         * sunrpc/publickey.c: Likewise.
8846         * sunrpc/rpc_cmsg.c: Likewise.
8847         * sunrpc/rpc_common.c: Likewise.
8848         * sunrpc/rpc_dtable.c: Likewise.
8849         * sunrpc/rpc_prot.c: Likewise.
8850         * sunrpc/rpc_thread.c: Likewise.
8851         * sunrpc/rtime.c: Likewise.
8852         * sunrpc/svc.c: Likewise.
8853         * sunrpc/svc_auth.c: Likewise.
8854         * sunrpc/svc_raw.c: Likewise.
8855         * sunrpc/svc_run.c: Likewise.
8856         * sunrpc/svc_tcp.c: Likewise.
8857         * sunrpc/svc_udp.c: Likewise.
8858         * sunrpc/svc_unix.c: Likewise.
8859         * sunrpc/svcauth_des.c: Likewise.
8860         * sunrpc/xcrypt.c: Likewise.
8861         * sunrpc/xdr.c: Likewise.
8862         * sunrpc/xdr_array.c: Likewise.
8863         * sunrpc/xdr_float.c: Likewise.
8864         * sunrpc/xdr_intXX_t.c: Likewise.
8865         * sunrpc/xdr_mem.c: Likewise.
8866         * sunrpc/xdr_rec.c: Likewise.
8867         * sunrpc/xdr_ref.c: Likewise.
8868         * sunrpc/xdr_sizeof.c: Likewise.
8869         * sunrpc/xdr_stdio.c: Likewise.
8870
8871 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8872
8873         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8874         change.  Update copyright years.
8875
8876 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8877
8878         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8879
8880 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8881             Joseph Myers  <joseph@codesourcery.com>
8882             Paul Pluzhnikov  <ppluzhnikov@google.com>
8883
8884         [BZ #14012]
8885         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8886         requiring rpcgen.
8887         [cross-compiling] (extra-libs): Likewise.
8888         [cross-compiling] (extra-libs-others): Likewise.
8889         [cross-compiling] (librpcsvc-routines): Likewise.
8890         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8891         [cross-compiling] (omit-deps): Likewise.
8892         (sunrpc-CPPFLAGS): New variable.
8893         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8894         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8895         (cross-rpcgen-objs): New variable.
8896         (extra-objs): Append $(cross-rpcgen-objs).
8897         ($(cross-rpcgen-objs)): New rule.
8898         ($(objpfx)cross-rpcgen): Likewise.
8899         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8900         comment.
8901         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8902         ($(objpfx)x%.stmp): Likewise.
8903         * sunrpc/proto.h [IS_IN_build] (_): Define.
8904         [IS_IN_build] (_libc_intl_domainname): Likewise.
8905
8906 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8907
8908         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8909         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8910         and R_X86_64_TPOFF64.
8911
8912 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8913
8914         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8915         sysdeps/unix/sysv/syscalls.list.
8916         (stime): Likewise.
8917         (utime): Likewise.
8918         * sysdeps/unix/sysv/syscalls.list: Remove file.
8919
8920 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8921
8922         [BZ #3440]
8923         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8924         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8925         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8926         (__LC_IDENTIFICATION): Make these macros useful in #if
8927         expressions, as required by C99.
8928
8929 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8930
8931         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8932         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8933         after this.
8934
8935 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8936
8937         * stdlib/longlong.h: Updated from GCC.
8938
8939 2012-05-09  Andreas Jaeger  <aj@suse.de>
8940
8941         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8942         default is first entry.
8943         (run_mode): Set type.
8944         (main): Remove informal message about syslog.
8945         (options): Fix typo.
8946
8947         [BZ #14053]
8948         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8949         to asm.
8950         (lrint): Likewise.
8951         (llrintf): Likewise.
8952         (llrint): Likewise.
8953         (rint): Likewise.
8954         (rintf): Likewise.
8955         (nearbyint): Likewise.
8956         (nearbyintf): Likewise.
8957
8958 2012-05-09  Andreas Jaeger  <aj@suse.de>
8959             Pedro Alves  <palves@redhat.com>
8960
8961         * nscd/nscd.c (run_mode): Use enum.
8962         (main): Cleanup coding style issue.
8963
8964 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8965             Andreas Jaeger  <aj@suse.de>
8966
8967         * nscd/nscd.c (go_background): Replaced with...
8968         (run_mode): ... this.
8969         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8970         (options): Add -F --foreground.
8971         (main): Implement it.
8972         (parse_opt): Parse it.
8973
8974 2012-05-09  Andreas Jaeger  <aj@suse.de>
8975
8976         [BZ #14083]
8977         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8978         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8979         -Wconversion warning.
8980         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8981         Likewise.
8982
8983 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8984
8985         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8986         == 0.
8987         (LC_ALL): Use macro-int-constant.
8988         (LC_COLLATE): Likewise.
8989         (LC_CTYPE): Likewise.
8990         (LC_MESSAGES): Likewise.
8991         (LC_MONETARY): Likewise.
8992         (LC_NUMERIC): Likewise.
8993         (LC_TIME): Likewise.
8994         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8995         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8996         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8997         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8998         Specify type.
8999         [C99-based standards] (float_t): Expect type.
9000         [C99-based standards] (double_t): Expect type.
9001         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9002         type.
9003         [C99-based standards] (HUGE_VALL): Likewise.
9004         [C99-based standards] (INFINITY): Likewise.
9005         [C99-based standards] (NAN): Likewise.
9006         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9007         [C99-based standards] (FP_NAN): Likewise.
9008         [C99-based standards] (FP_NORMAL): Likewise.
9009         [C99-based standards] (FP_SUBNORMAL): Likewise.
9010         [C99-based standards] (FP_ZERO): Likewise.
9011         [C99-based standards] (FP_FAST_FMA): Use
9012         optional-macro-int-constant.  Specify type.  Require == 1.
9013         [C99-based standards] (FP_FAST_FMAF): Likewise.
9014         [C99-based standards] (FP_FAST_FMAL): Likewise.
9015         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9016         [C99-based standards] (FP_ILOGBNAN): Likewise.
9017         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9018         Specify type.
9019         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9020         [C99-based standards] (math_errhandling): Specify type.
9021         [ISO99 || ISO11] (signgam): Do not allow.
9022         [non-C99-based standards] (copysignf): Do not allow.
9023         [non-C99-based standards] (exp2f): Likewise.
9024         [non-C99-based standards] (log2f): Likewise.
9025         [non-C99-based standards] (modff): Allow.
9026         [non-C99-based standards] (erff): Do not allow.
9027         [non-C99-based standards] (erfcf): Likewise.
9028         [non-C99-based standards] (gammaf): Likewise.
9029         [non-C99-based standards] (hypotf): Likewise.
9030         [non-C99-based standards] (j0f): Likewise.
9031         [non-C99-based standards] (j1f): Likewise.
9032         [non-C99-based standards] (jnf): Likewise.
9033         [non-C99-based standards] (lgammaf): Likewise.
9034         [non-C99-based standards] (tgammaf): Likewise.
9035         [non-C99-based standards] (y0f): Likewise.
9036         [non-C99-based standards] (y1f): Likewise.
9037         [non-C99-based standards] (ynf): Likewise.
9038         [non-C99-based standards] (isnanf): Likewise.
9039         [non-C99-based standards] (acoshf): Likewise.
9040         [non-C99-based standards] (asinhf): Likewise.
9041         [non-C99-based standards] (atanhf): Likewise.
9042         [non-C99-based standards] (cbrtf): Likewise.
9043         [non-C99-based standards] (expm1f): Likewise.
9044         [non-C99-based standards] (ilogbf): Likewise.
9045         [non-C99-based standards] (log1pf): Likewise.
9046         [non-C99-based standards] (logbf): Likewise.
9047         [non-C99-based standards] (nextafterf): Likewise.
9048         [non-C99-based standards] (remainderf): Likewise.
9049         [non-C99-based standards] (rintf): Likewise.
9050         [non-C99-based standards] (scalbf): Likewise.
9051         [non-C99-based standards] (copysignl): Likewise.
9052         [non-C99-based standards] (exp2l): Likewise.
9053         [non-C99-based standards] (log2l): Likewise.
9054         [non-C99-based standards] (modfl): Allow.
9055         [non-C99-based standards] (erfl): Do not allow.
9056         [non-C99-based standards] (erfcl): Likewise.
9057         [non-C99-based standards] (gammal): Likewise.
9058         [non-C99-based standards] (hypotl): Likewise.
9059         [non-C99-based standards] (j0l): Likewise.
9060         [non-C99-based standards] (j1l): Likewise.
9061         [non-C99-based standards] (jnl): Likewise.
9062         [non-C99-based standards] (lgammal): Likewise.
9063         [non-C99-based standards] (tgammal): Likewise.
9064         [non-C99-based standards] (y0l): Likewise.
9065         [non-C99-based standards] (y1l): Likewise.
9066         [non-C99-based standards] (ynl): Likewise.
9067         [non-C99-based standards] (isnanl): Likewise.
9068         [non-C99-based standards] (acoshl): Likewise.
9069         [non-C99-based standards] (asinhl): Likewise.
9070         [non-C99-based standards] (atanhl): Likewise.
9071         [non-C99-based standards] (cbrtl): Likewise.
9072         [non-C99-based standards] (expm1l): Likewise.
9073         [non-C99-based standards] (ilogbl): Likewise.
9074         [non-C99-based standards] (log1pl): Likewise.
9075         [non-C99-based standards] (logbl): Likewise.
9076         [non-C99-based standards] (nextafterl): Likewise.
9077         [non-C99-based standards] (remainderl): Likewise.
9078         [non-C99-based standards] (rintl): Likewise.
9079         [non-C99-based standards] (scalbl): Likewise.
9080         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9081         [non-C99-based standards] (FP_*): Do not allow.
9082         [C99-based standards] (FP_*): Change to
9083         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9084         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9085         allow.
9086         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9087         (SIG_ERR): Likewise.
9088         [X/Open-based standards] (SIG_HOLD): Likewise.
9089         (SIG_IGN): Likewise.
9090         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9091         positive value.
9092         (SIGFPE): Likewise.
9093         (SIGILL): Likewise.
9094         (SIGINT): Likewise.
9095         (SIGSEGV): Likewise.
9096         (SIGTER): Likewise.
9097         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9098         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9099         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9100         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9101         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9102         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9103         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9104         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9105         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9106         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9107         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9108         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9109         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9110         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9111         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9112         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9113         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9114         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9115         [X/Open-based standards] (SIGTRAP): Likewise.
9116         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9117         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9118         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9119         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9120         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9121         allow.
9122
9123 2012-05-08  Ian Wienand  <ianw@vmware.com>
9124
9125         [BZ #14080]
9126         * time/tzset.c (__tzset_parse_tz): Update default rules for
9127         daylight time changes in the Energy Policy Act of 2005.
9128
9129 2012-05-09  Andreas Jaeger  <aj@suse.de>
9130
9131         [BZ #13983]
9132         * elf/ldconfig.c (parse_conf): Change string to make clear that
9133         ldconfig only issued a warning if ld.so.conf does not exist.
9134
9135 2012-05-08  David S. Miller  <davem@davemloft.net>
9136
9137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9138         movxtod instead of popping the value on the stack.
9139
9140         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9141
9142 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9143
9144         * config.h.in: Add HAVE_ARM_PCS_VFP.
9145
9146 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9147
9148         [BZ #13979]
9149         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9150         checking but the checks are disabled for any reason.
9151
9152 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9153
9154         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9155         and ELF64_R_TYPE with ELFW(R_TYPE).
9156
9157 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9158
9159         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9160         (ulimit): Likewise.
9161
9162         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9163         (settimeofday): Likewise.
9164
9165 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9166
9167         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9168         a struct th_u2 inside the union, and move tu_block/tu_code into
9169         a new th_u3 union of tu_block/tu_code inside of that.  Move
9170         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9171         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9172         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9173         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9174         (th_stuff): Change to th_u1.tu_stuff.
9175         (th_data): Define.
9176         (th_msg): Change to th_u1.th_u2.tu_data.
9177
9178 2012-05-07  David S. Miller  <davem@davemloft.net>
9179
9180         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9181
9182         [BZ #14074]
9183         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9184         (SETUP_PIC_REG): Use it.
9185         (SETUP_PIC_REG_LEAF): Use it.
9186
9187 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
9188
9189         [BZ #13885]
9190         [BZ #13923]
9191         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9192         USE_AS_EXPM1L.
9193         (EXPL_FINITE): Likewise.
9194         (FLDLOG): Likewise.
9195         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9196         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9197         e_expl.S.
9198         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9199         USE_AS_EXPM1L.
9200         (EXPL_FINITE): Likewise.
9201         (FLDLOG): Likewise.
9202         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9203         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9204         e_expl.S.
9205         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9206         test of -max_value argument for long double.
9207         * sysdeps/i386/fpu/libm-test-ulps: Update.
9208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9209
9210 2012-05-06  David S. Miller  <davem@davemloft.net>
9211
9212         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9213         quad soft-float symbols whose references which are compiler
9214         generated.
9215         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9216
9217 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9218
9219         [BZ #13884]
9220         [BZ #13914]
9221         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9222         USE_AS_EXP10L.
9223         (EXPL_FINITE): Likewise.
9224         (FLDLOG): Likewise.
9225         (c0): Likewise.
9226         (c1): Likewise.
9227         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9228         Adjust comments for base varying.
9229         (__expl_finite): Change alias to EXPL_FINITE.
9230         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9231         e_expl.S.
9232         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9233         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9234         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9235         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9236         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9237         USE_AS_EXP10L.
9238         (EXPL_FINITE): Likewise.
9239         (FLDLOG): Likewise.
9240         (c0): Likewise.
9241         (c1): Likewise.
9242         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9243         Adjust comments for base varying.
9244         (__expl_finite): Change alias to EXPL_FINITE.
9245         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9246         tests for bugs.
9247         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9248
9249         [BZ #14064]
9250         * math/libm-test.inc (check_float_internal): Correct ulp
9251         calculation for subnormal expected results.
9252
9253 2012-05-06  Andreas Jaeger  <aj@suse.de>
9254
9255         * Makeconfig (+math-flags): New, set to -frounding-math.
9256         (+cflags): Add +math-flags so that all of glibc gets compiled with
9257         it.
9258
9259         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9260
9261 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9262
9263         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9264         Disable one test.
9265
9266         [BZ #13787]
9267         [BZ #13922]
9268         [BZ #14036]
9269         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9270         (__ieee754_expl): Allow for and saturate large arguments.
9271         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9272         (u_threshold): Likewise.
9273         (__exp): Call __ieee754_exp before checking for overflow and
9274         underflow.
9275         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9276         (u_threshold): Likewise.
9277         (__expf): Call __ieee754_expf before checking for overflow and
9278         underflow.
9279         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9280         (u_threshold): Likewise.
9281         (__expl): Call __ieee754_expl before checking for overflow and
9282         underflow.
9283         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9284         (__ieee754_expl): Allow for and saturate large arguments.
9285         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9286         missing overflow exception on overflow.
9287         (expm1_test): Do not allow missing overflow exception on overflow.
9288
9289         * sysdeps/i386/fpu/e_expl.c: Move to ...
9290         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9291         rather than using inline asm.
9292         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9293         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9294         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9295
9296         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9297         (nice): Likewise.
9298         (poll): Likewise.
9299         (signal): Likewise.
9300         (time): Likewise.
9301         (times): Likewise.
9302
9303 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9304
9305         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9306         sysdeps/unix/common/syscalls.list.
9307         (fchmod): Likewise.
9308         (fchown): Likewise.
9309         (ftruncate): Likewise.
9310         (getrusage): Likewise.
9311         (gettimeofday): Likewise.
9312         (setpgid): Likewise.
9313         (setregid): Likewise.
9314         (setreuid): Likewise.
9315         (sigaction): Likewise.
9316         (truncate): Likewise.
9317         (vhangup): Likewise.
9318         * sysdeps/unix/common/syscalls.list: Remove file.
9319         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9320         * sysdeps/unix/sysv/linux/Implies: Likewise.
9321
9322 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9323
9324         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9325         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9326         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9327         Moved to ...
9328         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9329         Here.
9330         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9331         to ...
9332         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9333         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9334         to ...
9335         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9336         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9337         to ...
9338         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9339         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9340         to ...
9341         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9342         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9343         to ...
9344         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9345         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9346         to ...
9347         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9348         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9349         to ...
9350         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9351         Here.
9352         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9353         to ...
9354         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9355         Here.
9356         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9357         to ...
9358         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9359         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9360         Moved to ...
9361         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9362         Here.
9363         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9364         to ...
9365         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9366
9367 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9368
9369         * sysdeps/unix/common/bits/dirent.h: Remove file.
9370         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9371
9372         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9373         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9374         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9375         * sysdeps/unix/bsd/isatty.c: Likewise.
9376         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9377         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9378         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9379
9380 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9381
9382         [BZ #13563]
9383         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9384         long double comparison inaccuracies.
9385         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9386         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9387
9388 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9389
9390         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9391         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9392
9393 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9394
9395         [BZ #14049]
9396         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9397         nonzero digits before rounding a hex value.
9398         * stdlib/tst-strtod.c (tests): Add another test.
9399
9400 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9401
9402         * sysdeps/s390/fpu/libm-test-ulps: Update.
9403
9404 2012-05-03  Andreas Jaeger  <aj@suse.de>
9405
9406         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9407         does not get optimized out.
9408         (malloc_opt_barrier): New.
9409
9410 2012-05-03  Andreas Jaeger  <aj@suse.de>
9411             Roland McGrath  <roland@hack.frob.com>
9412
9413         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9414         intermediate file deletion.
9415         (generated): Add .symlist files.
9416
9417 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9418
9419         [BZ #13775]
9420         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9421         Redirect under this condition.
9422         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9423         [__USE_GNU] (__dprintf_chk): Not under this condition.
9424         [__USE_GNU] (__vdprintf_chk): Likewise.
9425         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9426         under this condition.
9427         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9428         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9429         [__USE_XOPEN2K8] (vdprintf): Likewise.
9430         [__USE_GNU] (__dprintf_chk): Not under this condition.
9431         [__USE_GNU] (__vdprintf_chk): Likewise.
9432         [__USE_GNU] (dprintf): Likewise.
9433         [__USE_GNU] (vdprintf): Likewise.
9434
9435 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9436
9437         * elf/Makefile (common-generated): Set this instead of generated for
9438         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9439         $(all-built-dso)-derived lists.
9440
9441 2012-05-03  Andreas Jaeger  <aj@suse.de>
9442
9443         * sysdeps/i386/fpu/libm-test-ulps: Update.
9444
9445         * FAQ: Removed.
9446         * FAQ.in: Likewise.
9447         * scripts/gen-FAQ.pl: Likewise.
9448         * manual/install.texi (Installation): Point to online location of
9449         FAQ.
9450         * Makefile (files-for-dist): Remove FAQ.
9451         (FAQ): Remove.
9452
9453 2012-05-02  Allan McRae  <allan@archlinux.org>
9454
9455         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9456         (LDFLAGS-reldepmod5.so): Likewise.
9457         (LDFLAGS-reldep6mod1.so): Likewise.
9458         (LDFLAGS-reldep6mod4.so): Likewise.
9459         (LDFLAGS-reldep8mod3.so): Likewise.
9460         (LDFLAGS-unload4mod1.so): Likewise.
9461         (LDFLAGS-unload4mod2.so): Likewise.
9462         (LDFLAGS-tst-initorder): Likewise.
9463         (LDFLAGS-tst-initordera2.so): Likewise.
9464         (LDFLAGS-tst-initordera3.so): Likewise.
9465         (LDFLAGS-tst-initordera4.so): Likewise.
9466         (LDFLAGS-tst-initorderb2.so): Likewise.
9467         (LDFLAGS-noload): Likewise.
9468         (LDFLAGS-next): Likewise.
9469         (LDFLAGS-order2mod1.so): Likewise.
9470         (LDFLAGS-order2mod2.so): Likewise.
9471         (LDFLAGS-tst-initorder2): Likewise.
9472         (LDFLAGS-tst-initorder2a.so): Likewise.
9473         (LDFLAGS-tst-initorder2b.so): Likewise.
9474         (LDFLAGS-tst-initorder2c.so): Likewise.
9475         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9476
9477 2012-05-02  David S. Miller  <davem@davemloft.net>
9478
9479         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9480
9481 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9482
9483         [BZ #14055]
9484         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9485
9486 2012-05-02  Andreas Jaeger  <aj@suse.de>
9487
9488         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9489         since we manipulate rounding mode.
9490         (CPPFLAGS-test-idouble.c): Likewise.
9491         (CPPFLAGS-test-ifloat.c): Likewise.
9492         (CFLAGS-test-ldouble.c): Likewise.
9493         (CFLAGS-test-double.c): Likewise.
9494         (CFLAGS-test-float.c): Likewise.
9495         (CFLAGS-test-misc.c): Likewise.
9496         (CFLAGS-test-test-fenv.c): Likewise.
9497
9498 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9499
9500         [BZ #2550]
9501         [BZ #2570]
9502         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9503         comparisons to determine direction to adjust input.
9504
9505 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9506
9507         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9508         output to the target.
9509
9510         * scripts/localplt.awk: New file.
9511         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9512         (check-localplt-CFLAGS): Variable removed.
9513         ($(all-built-dso:=.jmprel)): New static pattern rule.
9514         (generated): Add those targets.
9515         (localplt-built-dso): New variable.
9516         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9517
9518         * elf/check-localplt.c: File removed.
9519
9520         * scripts/check-execstack.awk: New file.
9521         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9522         (check-execstack-CFLAGS): Variable removed.
9523         ($(objpfx)check-execstack.h): Target removed.
9524         ($(objpfx)execstack-default): New target.
9525         (generated): Add that instead of check-execstack.h.
9526         ($(all-built-dso:=.phdr)): New static pattern rule.
9527         (generated): Add those targets.
9528         * elf/check-execstack.c: File removed.
9529
9530         * scripts/check-textrel.awk: New file.
9531         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9532         (check-textrel-CFLAGS): Variable removed.
9533         (all-built-dso): Use := to define.o
9534         ($(all-built-dso:=.dyn)): New static pattern rule.
9535         (generated): Add those targets.
9536         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9537         * config.make.in (READELF): New substituted variable.
9538         * elf/check-textrel.c: File removed.
9539
9540 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9541
9542         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9543         allow.
9544         * conform/data/ctype.h-data [C99-based standards] (isblank):
9545         Expect function.
9546         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9547         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9548         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9549         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9550         Specify type.  Require positive value.
9551         (EILSEQ): Likewise.
9552         (ERANGE): Likewise.
9553         [ISO || POSIX] (EILSEQ): Do not expect.
9554         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9555         Specify type.  Require positive value.
9556         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9557         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9558         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9559         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9560         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9561         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9562         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9563         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9564         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9565         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9566         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9567         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9568         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9569         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9570         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9571         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9572         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9573         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9574         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9575         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9576         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9577         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9578         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9579         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9580         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9581         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9582         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9583         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9584         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9585         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9586         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9587         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9588         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9589         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9590         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9591         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9592         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9593         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9594         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9595         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9596         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9597         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9598         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9599         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9600         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9601         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9602         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9603         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9604         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9605         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9606         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9607         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9608         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9609         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9610         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9611         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9612         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9613         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9614         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9615         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9616         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9617         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9618         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9619         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9620         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9621         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9622         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9623         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9624         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9625         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9626         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9627         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9628         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9629         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9630         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9631         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9632         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9633         Require >= 2.
9634         (FLT_ROUNDS): Expect as macro, not constant.
9635         (FLT_MANT_DIG): Use macro-int-constant.
9636         (DBL_MANT_DIG): Likewise.
9637         (LDBL_MANT_DIG): Likewise.
9638         (FLT_DIG): Likewise.
9639         (DBL_DIG): Likewise.
9640         (LDBL_DIG): Likewise.
9641         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9642         (DBL_MIN_EXP): Likewise.
9643         (LDBL_MIN_EXP): Likewise.
9644         (FLT_MAX_EXP): Use macro-int-constant.
9645         (DBL_MAX_EXP): Likewise.
9646         (LDBL_MAX_EXP): Likewise.
9647         (FLT_MAX_10_EXP): Likewise.
9648         (DBL_MAX_10_EXP): Likewise.
9649         (LDBL_MAX_10_EXP): Likewise.
9650         (FLT_MAX): Use macro-constant.
9651         (DBL_MAX): Likewise.
9652         (LDBL_MAX): Likewise.
9653         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9654         (DBL_EPSILON): Likewise.
9655         (LDBL_EPSILON): Likewise.
9656         (FLT_MIN): Likewise.
9657         (DBL_MIN): Likewise.
9658         (LDBL_MIN): Likewise.
9659         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9660         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9661         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9662         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9663         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9664         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9665         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9666         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9667         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9668         [ISO11] (FLT_TRUE_MIN): Likewise.
9669         [ISO11] (LDBL_TRUE_MIN): Likewise.
9670         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9671         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9672         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9673         (SCHAR_MAX): Likewise.
9674         (UCHAR_MAX): Likewise.
9675         (CHAR_MIN): Likewise.
9676         (CHAR_MAX): Likewise.
9677         (MB_LEN_MAX): Use macro-int-constant.
9678         (SHRT_MIN): Use macro-int-constant.  Specify type.
9679         (SHRT_MAX): Likewise.
9680         (USHRT_MAX): Likewise.
9681         (INT_MAX): Likewise.
9682         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9683         bound negative.
9684         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9685         bound with "U".
9686         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9687         bound with "L".
9688         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9689         bound negative.  Suffix upper bound with "L".
9690         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9691         bound with "UL".
9692         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9693         Specify type.
9694         [C99-based standards] (LLONG_MAX): Likewise.
9695         [C99-based standards] (ULLONG_MAX): Likewise.
9696         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9697         == 0.
9698         [ISO11] (max_align_t): Require type.
9699         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9700
9701         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9702         from $CFLAGS, without defining away __attribute__ calls.
9703         (checknamespace): Use $CFLAGS_namespace.
9704
9705         * conform/conformtest.pl (@keywords): Only include C99 keywords
9706         for standards based on C99 or C11.
9707
9708         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9709         Disable tests.
9710         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9711         UNIX98]: Likewise.
9712
9713         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9714         usability of symbols in #if.
9715
9716         * conform/conformtest.pl: If macro or constant types start
9717         "promoted:", expect the symbol to be of the following type
9718         promoted by the integer promotions.
9719
9720         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9721         in one place.  Also handle "macro-constant".
9722
9723         * conform/conformtest.pl: Only accept expected macro values with
9724         "==".  Parse all "macro" lines in one place.
9725         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9726
9727         * conform/conformtest.pl: Handle braced types on "constant" lines
9728         instead of handling "typed-constant".
9729         * conform/data/signal.h-data: Use "constant" instead of
9730         "typed-constant".
9731
9732         * conform/conformtest.pl: Handle "optional-" at start of lines in
9733         one place rather than duplicating several cases.  Handle each
9734         format of "macro" line with initial "optional-".
9735
9736         * conform/conformtest.pl: Only accept expected constant or
9737         optional-constant values with "==".  Parse all "constant" lines in
9738         one place.  Parse all "optional-constant" lines in one place.
9739         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9740         * conform/data/fmtmsg.h-data: Likewise.
9741         * conform/data/netinet/in.h-data: Likewise.
9742         * conform/data/tar.h-data: Likewise.
9743         * conform/data/limits.h-data: Use "==" form on "constant" and
9744         "optional-constant" lines.
9745
9746         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9747         Use -std=c99 for XOPEN2K.
9748         (@knownproblems): Remove.
9749         (newtoken): Don't check %isknown.
9750
9751         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9752         Do not expect macro.
9753         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9754         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9755         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9756         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9757         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9758         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9759         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9760         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9761         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9762         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9763         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9764         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9765         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9766         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9767         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9768         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9769         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9770         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9771         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9772         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9773         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9774         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9775         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9776         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9777         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9778         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9779         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9780         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9781         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9782         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9783         [XPG3] (acosh): Likewise.
9784         [XPG3] (asinh): Likewise.
9785         [XPG3] (atanh): Likewise.
9786         [XPG3] (cbrt): Likewise.
9787         [XPG3] (expm1): Likewise.
9788         [XPG3] (ilogb): Likewise.
9789         [XPG3] (log1p): Likewise.
9790         [XPG3] (logb): Likewise.
9791         [XPG3] (nextafter): Likewise.
9792         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9793         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9794         [XPG3] (remainder): Likewise.
9795         [XPG3] (rint): Likewise.
9796         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9797         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9798         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9799         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9800         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9801         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9802         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9803         [UNIX98 || XOPEN2K] (scalb): Expect.
9804         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9805         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9806         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9807         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9808         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9809         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9810         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9811         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9812         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9813         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9814         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9815         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9816         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9817         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9818         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9819         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9820         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9821         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9822         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9823         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9824         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9825         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9826         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9827         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9828         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9829         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9830         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9831         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9832         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9833         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9834         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9835         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9836         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9837         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9838         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9839         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9840         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9841         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9842         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9843         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9844         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9845         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9846         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9847         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9848         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9849         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9850         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9851         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9852         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9853         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9854         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9855         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9856         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9857         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9858         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9859         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9860         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9861         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9862         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9863         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9864         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9865         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9866         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9867         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9868         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9869         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9870         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9871         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9872         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9873         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9874         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9875         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9876         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9877         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9878         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9879         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9880         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9881         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9882         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9883         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9884         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9885         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9886         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9887         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9888         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9889         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9890         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9891         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9892         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9893         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9894         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9895         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9896         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9897         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9898         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9899         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9900         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9901         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9902         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9903         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9904         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9905         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9906         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9907         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9908         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9909         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9910         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9911         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9912         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9913         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9914         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9915         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9916         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9917         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9918         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9919         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9920         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9921         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9922         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9923         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9924         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9925         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9926         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9927         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9928         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9929         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9930         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9931         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9932         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9933         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9934         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9935         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9936         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9937         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9938         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9939         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9940         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9941
9942         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9943         _XOPEN_SOURCE_EXTENDED for XPG4.
9944
9945         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9946
9947         * Makeconfig (localtime): Remove variable.
9948         (inst_localtime-file): Likewise.
9949
9950 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9951
9952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9953         Update.
9954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9955         Update.
9956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9957         Update.
9958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9959         Update.
9960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9961         Update.
9962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9963         Update.
9964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9965         Update.
9966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9967         Update.
9968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9969         Update.
9970
9971 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9972
9973         [BZ #2550]
9974         [BZ #2570]
9975         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9976         comparisons to determine direction to adjust input.
9977         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9978         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9979         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9980         Likewise.
9981         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9982         Likewise.
9983         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9984         Likewise.
9985         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9986         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9987         Likewise.
9988         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9989         Likewise.
9990         * math/libm-test.inc (nexttoward_test): Add more tests.
9991
9992 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9993
9994         [BZ #14040]
9995         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9996         in version GLIBC_2.1, not GLIBC_2.0.
9997         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9998         Likewise.
9999
10000 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10001
10002         [BZ #13942]
10003         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10004         (1 - x) * (1 + x).
10005         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10006         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10007         * math/libm-test.inc (acos_test): Add more tests.
10008         (asin_test): Likewise.
10009         * sysdeps/i386/fpu/libm-test-ulps: Update.
10010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10011
10012         [BZ #14034]
10013         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10014         of square root.
10015         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10016         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10017         * math/libm-test.inc (acos_test_tonearest): New function.
10018         (acos_test_towardzero): Likewise.
10019         (acos_test_downward): Likewise.
10020         (acos_test_upward): Likewise.
10021         (asin_test_tonearest): Likewise.
10022         (asin_test_towardzero): Likewise.
10023         (asin_test_downward): Likewise.
10024         (asin_test_upward): Likewise.
10025         (main): Call the new functions.
10026         * sysdeps/i386/fpu/libm-test-ulps: Update.
10027         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10028
10029         [BZ #13884]
10030         [BZ #13924]
10031         * math/e_exp10.c: Include <float.h>.
10032         (__ieee754_exp10): Handle underflow here rather than multiplying
10033         large negative argument by M_LN10.
10034         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10035         of __ieee754_expf.
10036         * math/e_exp10l.c: Include <float.h>.
10037         (__ieee754_exp10l): Handle underflow here rather than multiplying
10038         large negative argument by M_LN10l.
10039         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10040         spurious overflow exception on underflow.
10041
10042 2012-04-29  Marek Polacek  <polacek@redhat.com>
10043
10044         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10045         (__fortify_function): New macro.
10046         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10047         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10048         __extern_always_inline.
10049         * libio/bits/stdio2.h: Likewise.
10050         * libio/bits/stdio.h: Likewise.
10051         * string/string.h: Likewise.
10052         * string/bits/string3.h: Likewise.
10053         * include/stdio.h: Likewise.
10054         * stdlib/bits/stdlib.h: Likewise.
10055         * stdlib/stdlib.h: Likewise.
10056         * rt/bits/mqueue2.h: Likewise.
10057         * rt/mqueue.h: Likewise.
10058         * posix/bits/unistd.h: Likewise.
10059         * posix/unistd.h: Likewise.
10060         * io/bits/poll2.h: Likewise.
10061         * io/bits/fcntl2.h: Likewise.
10062         * io/fcntl.h: Likewise.
10063         * io/sys/poll.h: Likewise.
10064         * misc/bits/syslog.h: Likewise.
10065         * misc/bits/syslog-ldbl.h: Likewise.
10066         * misc/sys/syslog.h: Likewise.
10067         * socket/bits/socket2.h: Likewise.
10068         * socket/sys/socket.h: Likewise.
10069         * debug/tst-chk1.c: Likewise.
10070         * wcsmbs/bits/wchar2.h: Likewise.
10071         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10072         * wcsmbs/wchar.h: Likewise.
10073
10074 2012-04-29  Andreas Jaeger  <aj@suse.de>
10075
10076         * Makerules (tests): Remove enable-check-abi protection.
10077         (check-abi-warn): Remove.
10078         (check-abi-%): Remove check-abi-warn usage.
10079
10080         * configure.in: Remove check-abi configure option.
10081         * configure: Regenerated.
10082         * config.make.in (enable-check-abi): Remove.
10083
10084 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10085
10086         [BZ #14033]
10087         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10088         double functions to double *_finite functions.
10089
10090         [BZ #13941]
10091         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10092         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10093         LDBL_MIN_EXP.
10094         * stdio-common/Makefile (tests): Add tst-sprintf3.
10095         * stdio-common/tst-sprintf3.c: New file.
10096
10097         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10098         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10099
10100 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10101
10102         * conform/conformtest.pl: Remove duplicate typed-constant
10103         handling.
10104
10105 2012-04-28  David S. Miller  <davem@davemloft.net>
10106
10107         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10108         (check-abi-%): Remove AWK script prerequisite and explicit
10109         abilist directory.
10110         (check-abi): Rewrite to just diff the symlist with the abilist.
10111         (config-tls, config-abi-config): Delete, no longer used.
10112         (update-abi-%): Remove AWK script and explicit abilist directory.
10113         (update-abi): Rewrite to simply compare and conditionally copy the
10114         symlist and the sysdep abilist file.  Remove update-abi-config
10115         checks.
10116         * abilist/ld.abilist: Remove.
10117         * abilist/libBrokenLocale.abilist: Remove.
10118         * abilist/libanl.abilist: Remove.
10119         * abilist/libcrypt.abilist: Remove.
10120         * abilist/libdl.abilist: Remove.
10121         * abilist/librt.abilist: Remove.
10122         * abilist/libthread_db.abilist: Remove.
10123         * abilist/libutil.abilist: Remove.
10124         * scripts/extract-abilist.awk: Remove.
10125         * scripts/merge-abilist.awk: Remove.
10126         * sysdeps/generic/libcidn.abilist: New file.
10127         * sysdeps/generic/libnss_compat.abilist: New file.
10128         * sysdeps/generic/libnss_db.abilist: New file.
10129         * sysdeps/generic/libnss_dns.abilist: New file.
10130         * sysdeps/generic/libnss_files.abilist: New file.
10131         * sysdeps/generic/libnss_hesiod.abilist: New file.
10132         * sysdeps/generic/libnss_nis.abilist: New file.
10133         * sysdeps/generic/libnss_nisplus.abilist: New file.
10134         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10135         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10136         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10137         file.
10138         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10139         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10140         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10141         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10142         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10143         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10144         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10145         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10146         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10147         file.
10148         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10149         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10150         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10151         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10152         file.
10153         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10154         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10155         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10156         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10157         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10158         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10159         file.
10160         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10161         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10162         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10163         file.
10164         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10165         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10166         New file.
10167         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10168         New file.
10169         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10170         New file.
10171         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10172         New file.
10173         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10174         New file.
10175         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10176         New file.
10177         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10178         New file.
10179         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10180         New file.
10181         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10182         New file.
10183         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10184         New file.
10185         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10186         New file.
10187         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10188         New file.
10189         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10190         New file.
10191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10192         file.
10193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10194         New file.
10195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10196         New file.
10197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10198         file.
10199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10200         New file.
10201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10202         New file.
10203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10204         file.
10205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10206         New file.
10207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10208         New file.
10209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10210         New file.
10211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10212         New file.
10213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10214         New file.
10215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10216         New file.
10217         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10218         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10219         file.
10220         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10221         New file.
10222         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10223         file.
10224         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10225         file.
10226         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10227         file.
10228         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10229         file.
10230         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10231         file.
10232         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10233         New file.
10234         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10235         file.
10236         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10237         file.
10238         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10239         New file.
10240         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10241         file.
10242         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10243         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10244         file.
10245         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10246         New file.
10247         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10248         file.
10249         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10250         file.
10251         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10252         file.
10253         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10254         file.
10255         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10256         file.
10257         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10258         New file.
10259         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10260         file.
10261         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10262         file.
10263         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10264         New file.
10265         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10266         file.
10267         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10268         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10269         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10270         file.
10271         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10272         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10273         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10274         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10275         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10276         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10277         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10278         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10279         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10280         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10281         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10282         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10283         file.
10284         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10285         New file.
10286         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10287         file.
10288         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10289         file.
10290         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10291         file.
10292         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10293         file.
10294         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10295         file.
10296         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10297         New file.
10298         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10299         New file.
10300         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10301         file.
10302         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10303         New file.
10304         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10305         file.
10306         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10307         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10308         file.
10309         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10310         New file.
10311         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10312         file.
10313         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10314         file.
10315         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10316         file.
10317         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10318         file.
10319         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10320         file.
10321         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10322         New file.
10323         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10324         New file.
10325         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10326         file.
10327         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10328         New file.
10329         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10330         file.
10331
10332 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10333
10334         * conform/conformtest.pl: Fix typo in handling typed-constant from
10335         allow-header.
10336
10337 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10338
10339         * README: Cut down references to pre-2.6 Linux kernels and
10340         Linuxthreads.  Update lists of configurations in libc and ports
10341         and sort alphabetically.  Say "or newer" with Linux kernel version
10342         requirements.
10343
10344         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10345
10346 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10347
10348         [BZ #887]
10349         * math/libm-test.inc (logb_test_downward): New test to expose
10350         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10351         rounding mode.
10352
10353 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10354
10355         [BZ #14027]
10356         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10357         to be done.
10358         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10359         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10360
10361 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10362
10363         * sysdeps/unix/i386/brk.S: Remove file.
10364         * sysdeps/unix/i386/dl-brk.S: Likewise.
10365         * sysdeps/unix/i386/pipe.S: Likewise.
10366         * sysdeps/unix/i386/sigreturn.S: Likewise.
10367         * sysdeps/unix/i386/syscall.S: Likewise.
10368         * sysdeps/unix/i386/vfork.S: Likewise.
10369         * sysdeps/unix/i386/wait.S: Likewise.
10370
10371         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10372         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10373
10374         * configure.in (arm*-none*): Do not allow without
10375         --enable-hacker-mode.
10376         (netbsd*): Remove case setting base_os.
10377         (386bsd*): Likewise.
10378         (freebsd*): Likewise.
10379         (bsdi*): Likewise.
10380         (osf*): Likewise.
10381         (sunos*): Likewise.
10382         (ultrix*): Likewise.
10383         (newsos*): Likewise.
10384         (dynix*): Likewise.
10385         (*bsd*): Likewise.
10386         (sysv*): Likewise.
10387         (isc*): Likewise.
10388         (esix*): Likewise.
10389         (sco*): Likewise.
10390         (minix*): Likewise.
10391         (irix4*): Likewise.
10392         (irix6*): Likewise.
10393         (solaris[2-9]*): Likewise.
10394         (none): Likewise.
10395         * configure: Regenerated.
10396
10397 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10398
10399         [BZ #11521]
10400         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10401         overflow or cancellation in calculating denominator.
10402         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10403         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10404         down expression to avoid unexpected rounding in newer GCCs.
10405         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10406
10407 2012-04-26  David S. Miller  <davem@davemloft.net>
10408
10409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10410         long-double compat symbols.
10411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10416         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10417         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10418         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10419         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10420         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10421         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10422         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10423         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10424
10425 2012-04-25  David S. Miller  <davem@davemloft.net>
10426
10427         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10428         HWCAP_* values only after the memory barriers have been defined.
10429         (atomic_full_barrier): Define.
10430         (atomic_read_barrier): Define.
10431         (atomic_write_barrier): Define.
10432
10433 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10434
10435         * shlib-versions: Add libgcc_s version information.
10436         * sysdeps/generic/libgcc_s.h: Remove.
10437         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10438         libgcc_s.h.
10439         * sysdeps/gnu/unwind-resume.c: Likewise.
10440         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10441
10442 2012-04-25  David S. Miller  <davem@davemloft.net>
10443
10444         * sysdeps/unix/sparc/brk.S: Delete.
10445         * sysdeps/unix/sparc/dl-brk.S: Delete.
10446         * sysdeps/unix/sparc/pipe.S: Delete.
10447         * sysdeps/unix/sparc/sysdep.S: Delete.
10448         * sysdeps/unix/sparc/sysdep.h: Delete.
10449         * sysdeps/unix/sparc/vfork.S: Delete.
10450         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10451         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10452         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10453         ret_ERRVAL, r0, r1, MOVE): Define.
10454         (JUMPTARGET): Remove.
10455         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10456         sysdeps/unix/sparc/sysdep.h
10457         (ENTRY, END): Remove.
10458         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10459
10460 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10461
10462         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10463         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10464         -DIS_IN_build.
10465
10466         * timezone/README: Update upstream location and email address for
10467         tzcode and tzdata.
10468         * timezone/zdump.c: Update from tzcode 2012b.
10469         * timezone/zic.c: Likewise.
10470
10471         * configure.in (libc_cv_as_needed): Remove test.
10472         * configure: Regenerated.
10473         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10474         conditional definition.
10475         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10476         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10477         * config.make.in (have-as-needed): Remove variable.
10478
10479 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10480             Paul Pluzhnikov  <ppluzhnikov@google.com>
10481
10482         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10483         strings correctly.
10484
10485 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10486
10487         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10488         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10489         * sysdeps/sh/strlen.S: Likewise.
10490
10491 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10492
10493         * sysdeps/unix/fork.S: Remove file.
10494         * sysdeps/unix/i386/fork.S: Likewise.
10495         * sysdeps/unix/sparc/fork.S: Likewise.
10496
10497         * sysdeps/unix/system.c: Remove file.
10498         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10499
10500         * sysdeps/unix/getegid.S: Remove file.
10501         * sysdeps/unix/geteuid.S: Likewise.
10502
10503 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10504
10505         * scripts/check-localplt.awk: New file.
10506         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10507         of diff.
10508         * scripts/data/localplt-generic.data: Add a comment.
10509
10510         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10511         NODE when __dir_mkfile failed.
10512         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10513         Reported by Ludovic Courtès <ludo@gnu.org>.
10514
10515 2012-04-24  Andreas Jaeger  <aj@suse.de>
10516
10517         * Makerules (common-clean): Also remove gen-as-const-headers
10518         files.
10519
10520 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10521
10522         * Makerules (native-compile): Do not change working directory for
10523         build.  Use $(OUTPUT_OPTION) in command.
10524         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10525
10526 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10527
10528         [BZ #13886]
10529         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10530         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10531         * math/libm-test.inc (floor_test): Add more tests.
10532         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10533
10534 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10535
10536         * sysdeps/unix/getdents.c: Remove file.
10537         * sysdeps/unix/sysv/getdents.c: Likewise.
10538         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10539
10540         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10541         sysdeps/unix/mman/syscalls.list.
10542         (mmap): Likewise.
10543         (mprotect): Likewise.
10544         (msync): Likewise.
10545         (munmap): Likewise.
10546         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10547         * sysdeps/unix/mman/syscalls.list: Remove.
10548         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10549
10550         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10551         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10552         * configure: Regenerated.
10553         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10554         $(libgcc_s_suffix).
10555         * config.make.in (libgcc_s_suffix): Remove variable.
10556
10557 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10558
10559         * sysdeps/unix/sysv/gethostname.c: Move to ...
10560         * sysdeps/posix/gethostname.c: ... here.
10561
10562         * sysdeps/unix/execve.S: Remove file.
10563
10564         * sysdeps/unix/_exit.S: Remove file.
10565
10566 2012-04-23  Andreas Jaeger  <aj@suse.de>
10567
10568         [BZ #13739]
10569         * manual/Makefile: Remove make dist support, there's no
10570         need for a stand-alone documentation tar ball.
10571         (TEXI2DVI): Define always, it's not in Makeconfig.
10572         (dist): Removed.
10573         (tar-it): Removed.
10574         (edition): Removed.
10575         (glibc-doc-$(edition).tar): Removed
10576         (%.Z): Removed.
10577         (%.gz): Removed.
10578         (%.uu): Removed.
10579         (ETAGS): Remove, it's in Makeconfig.
10580         (move-if-change): Remove, it's in Makeconfig.
10581
10582 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10583
10584         [BZ #13970]
10585         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10586         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10587         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10588         (strtod_l, strtof_l, strtold_l): Remove __wur.
10589         It is not necessarily an error to ignore strtol's return value.
10590         One can reliably look at the stored endptr to decide whether
10591         the number had valid syntax.
10592
10593 2012-04-21  Andreas Jaeger  <aj@suse.de>
10594
10595         [BZ #13739]
10596         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10597
10598 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10599
10600         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10601         * sysdeps/unix/sysv/Versions: Remove file.
10602
10603 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10604
10605         [BZ #13927]
10606         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10607
10608 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10609
10610         [BZ #7064]
10611         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10612         version from __vm86.
10613
10614 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10615
10616         * sysdeps/unix/common/lxstat.c: Remove file.
10617         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10618
10619         * sysdeps/unix/sysv/Makefile: Remove file.
10620
10621         * sysdeps/unix/sysv/direct.h: Remove file.
10622
10623         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10624         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10625         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10626         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10627         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10628         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10629         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10630
10631         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10632
10633         * sysdeps/unix/xmknod.c: Remove file.
10634         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10635
10636         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10637
10638         * sysdeps/unix/sysv/i386/time.S: Remove file.
10639
10640         * sysdeps/unix/fxstat.c: Remove file.
10641         * sysdeps/unix/xstat.c: Likewise.
10642         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10643
10644         * sysdeps/unix/sysv/sigaction.c: Remove file.
10645
10646         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10647         (sysdep_headers): Remove variable.
10648         [termio.h not in sysdep_headers] (generated): Likewise.
10649         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10650         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10651         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10652         * sysdeps/unix/sysv/tcflow.c: Likewise.
10653         * sysdeps/unix/sysv/tcflush.c: Likewise.
10654         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10655         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10656         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10657         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10658         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10659
10660         * sysdeps/unix/siglist.c: Remove file.
10661
10662         * sysdeps/unix/getppid.S: Remove file.
10663
10664         * sysdeps/unix/mkdir.c: Remove file.
10665         * sysdeps/unix/rmdir.c: Likewise.
10666
10667 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10668
10669         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10670         ERR_MAX value.
10671         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10672         errlist-compat value.
10673
10674 2012-04-18  David S. Miller  <davem@davemloft.net>
10675
10676         * sysdeps/generic/memcopy.h (reg_char): Delete.
10677         * debug/strcat_chk.c: Use char, not reg_char.
10678         * debug/strcpy_chk.c: Likewise.
10679         * debug/strncat_chk.c: Likewise.
10680         * debug/strncpy_chk.c: Likewise.
10681         * string/memchr.c: Likewise.
10682         * string/memrchr.c: Likewise.
10683         * string/rawmemchr.c: Likewise.
10684         * string/strcat.c: Likewise.
10685         * string/strchr.c: Likewise.
10686         * string/strchrnul.c: Likewise.
10687         * string/strcmp.c: Likewise.
10688         * string/strcpy.c: Likewise.
10689         * string/strncat.c: Likewise.
10690         * string/strncmp.c: Likewise.
10691         * string/strncpy.c: Likewise.
10692
10693 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10694
10695         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10696         __builtin_memcopy is called when src and dest ranges are known to not
10697         overlap.
10698
10699 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10700
10701         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10702         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10703         fwd_align_merge macro call.
10704         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10705         bwd_align_merge macro call.
10706         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10707
10708 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10709
10710         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10711         bwd_align_merge macros.
10712         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10713         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10714         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10715
10716 2012-04-18  David S. Miller  <davem@davemloft.net>
10717
10718         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10719
10720 2012-04-18  Andreas Jaeger  <aj@suse.de>
10721
10722         [BZ# 6794]
10723         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10724         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10725         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10726
10727         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10728         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10729         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10730
10731         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10732         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10733         Adjust for changed ldbl-128 files.
10734
10735         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10736         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10737         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10738
10739 2012-04-17  David S. Miller  <davem@davemloft.net>
10740
10741         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10742
10743 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10744
10745         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10746         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10747         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10748         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10749         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10750         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10751
10752 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10753
10754         [BZ #6794]
10755         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10756         * math/libm-test.inc: Add ilogb errno and exception tests.
10757         * math/w_ilogb.c: New file: ilogb wrapper.
10758         * math/w_ilogbf.c: New file: ilogbf wrapper.
10759         * math/w_ilogbl.c: New file: ilogbl wrapper.
10760         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10761         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10762         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10763         exception being thrown with 0.0 as argument.
10764         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10765         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10766         exception being thrown with 0.0 as argument.
10767         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10768         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10769         exception being thrown with 0.0 as argument.
10770         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10771         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10772         exception being thrown with 0.0 as argument.
10773         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10774         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10775         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10776         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10777         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10778         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10779         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10780         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10781         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10782
10783 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10784
10785         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10786         with altivec.
10787
10788 2012-04-16  Marek Polacek  <polacek@redhat.com>
10789
10790         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10791
10792 2012-04-16  Marek Polacek  <polacek@redhat.com>
10793
10794         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10795         operands of fdivp instruction.
10796
10797 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10798
10799         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10800         * elf/tst-auditmod3b.c: Likewise.
10801         * elf/tst-auditmod4b.c: Likewise.
10802         * elf/tst-auditmod5b.c: Likewise.
10803         * elf/tst-auditmod6b.c: Likewise.
10804         * elf/tst-auditmod6c.c: Likewise.
10805         * elf/tst-auditmod7b.c: Likewise.
10806         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10807         * sysdeps/x86_64/preconfigure.in: Likewise.
10808         * sysdeps/x86_64/preconfigure: Regenerated.
10809
10810 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10811
10812         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10813         __ILP32__.
10814
10815 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10816
10817         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10818         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10819
10820 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10821
10822         [BZ #13973]
10823         * locale/iso-639.def: Fix gl language name. Spotted by
10824         Yaron Shahrabani.
10825
10826 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10827
10828         [BZ #2074]
10829         * libio/libio.h (__io_write_fn): Update comment.
10830
10831 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10832
10833         [BZ #2074]
10834         * stdio.texi (Hook Functions): The user provided writer function
10835         is not allowed to return -1.
10836
10837 2012-04-11  David S. Miller  <davem@davemloft.net>
10838
10839         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10840
10841 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10842
10843         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10844         Add a leading slash to rtkaio.
10845
10846 2012-04-11  Jim Meyering  <meyering@redhat.com>
10847
10848         [BZ #11959]
10849         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10850         It is not necessarily an error to ignore fwrite's return
10851         value.  One can reliably use ferror to test for errors after
10852         the fact.
10853
10854 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10855
10856         * bits/types.h (__snseconds_t): New type.
10857         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10858
10859         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10860         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10861         (__SNSECONDS_T_TYPE): Likewise.
10862         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10863         (__SNSECONDS_T_TYPE): Likewise.
10864         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10865         (__SNSECONDS_T_TYPE): Likewise.
10866
10867 2012-04-10  Andreas Jaeger  <aj@suse.de>
10868
10869         [BZ #2636]
10870         * manual/time.texi (Processor Time): Return type of times is
10871         elapsed real time since an arbitrary point in the past.
10872         (CPU Time): Move CLK_TCK from here...
10873         (Processor Time): ...to here.  Correct description.
10874         * manual/conf.texi (Constants for Sysconf): Correct description of
10875         _SC_CLK_TCK.
10876
10877 2012-04-10  David S. Miller  <davem@davemloft.net>
10878
10879         [BZ #13967]
10880         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10881         where the is a gap between DT_REL(A) and DT_JMPREL.
10882
10883 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10884
10885         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10886         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10887         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10888
10889 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10890
10891         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10892         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10893         (dl_main): Handle --inhibit-cache.
10894         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10895         _dl_inhibit_cache.
10896         * elf/dl-load.c (_dl_map_object): Use it.
10897         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10898
10899 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10900
10901         [BZ #13872]
10902         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10903         (__ieee754_powl): Saturate large exponents rather than testing for
10904         overflow of y*log2(x).
10905         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10906         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10907         exceptions.
10908
10909         [BZ #11521]
10910         * math/s_ctan.c: Include <float.h>.
10911         (__ctan): Avoid internal overflow or cancellation in calculating
10912         denominator.
10913         * math/s_ctanf.c: Likewise.
10914         * math/s_ctanl.c: Likewise.
10915         * math/s_ctanh.c: Likewise.
10916         * math/s_ctanhf.c: Likewise.
10917         * math/s_ctanhl.c: Likewise.
10918         * math/libm-test.inc (ctan_test): Add more tests.
10919         (ctanh_test): Likewise.
10920         * sysdeps/i386/fpu/libm-test-ulps: Update.
10921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10922
10923 2012-04-09  Andreas Jaeger  <aj@suse.de>
10924
10925         [BZ #6894]
10926         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10927         is an optional BSD extension.
10928
10929         [BZ #10254]
10930         * manual/stdio.texi (Opening Streams): Document additional fopen
10931         parameters.
10932
10933 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10934
10935         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10936         %eax without telling the compiler.
10937
10938 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10939
10940         [BZ # 13963]
10941         * manual/install.texi: Use sourceware.org.
10942
10943 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10944
10945         [BZ #13873]
10946         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10947         (__ieee754_pow): Generate overflow and underflow using huge*huge
10948         and tiny*tiny rather than just returning constant infinity or zero
10949         for large exponents.
10950         * math/libm-test.inc (pow_test): Require overflow exceptions for
10951         applicable cases of large exponents.
10952
10953         [BZ #706]
10954         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10955         (__ieee754_pow): Use iterative multiplication algorithm only for
10956         integer exponents with absolute value below 1024.  Check for odd
10957         integer exponents when using algorithm for real exponents.
10958         * math/libm-test.inc (pow_test): Add more tests.
10959         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10960
10961 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10962
10963         [BZ #13705]
10964         * math/libm-test.inc (exp_test): Do not allow overflow exception
10965         on underflow test.
10966
10967 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10968
10969         [BZ #13705]
10970         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10971         instead of __kernel_standard_f.
10972
10973 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10974
10975         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10976         * sysdeps/x86_64/memset_chk.S: Likewise.
10977
10978 2012-04-08  Andreas Jaeger  <aj@suse.de>
10979
10980         [BZ #10153]
10981         * manual/startup.texi (Environment Access): Describe return value
10982         for putenv and setenv.
10983
10984         [BZ #6895]
10985         * manual/filesys.texi (Directory Entries): Add description for
10986         DT_LNK.
10987
10988         [BZ #6890]
10989         * manual/filesys.texi (Directory Entries): Clarify that it's file
10990         system not operating system in the description of DT_UNKNOWN.
10991
10992         [BZ #6578]
10993         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10994
10995 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10996
10997         [BZ #6649]
10998         * manual/llio.texi (Opening and Closing Files): Add cross
10999         reference to explain mode argument.
11000
11001 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11002
11003         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11004         * sysdeps/x86_64/memset_chk.S: Likewise.
11005
11006 2012-04-07  David S. Miller  <davem@davemloft.net>
11007
11008         * elf/elf.h (R_SPARC_WDISP10): Define.
11009         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11010         R_SPARC_SIZE32.
11011         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11012         R_SPARC_SIZE64 and R_SPARC_H34.
11013
11014 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11015
11016         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11017         conditions and remove no longer applicable assertion.
11018
11019 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11020
11021         * bits/byteswap.h: Include <features.h>.
11022         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11023         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11024
11025 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11026
11027         * bits/byteswap.h (__bswap_16): Removed.
11028         Include <bits/byteswap-16.h> to get __bswap_16.
11029         * sysdeps/i386/bits/byteswap.h: Likewise.
11030         * sysdeps/s390/bits/byteswap.h: Likewise.
11031         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11032         * bits/byteswap-16.h: New file.
11033         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11034         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11035         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11036         * string/Makefile (headers): Add bits/byteswap-16.h.
11037
11038 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11039
11040         [BZ #13895]
11041         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11042         extra indirection.
11043         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11044         * nss/tst-nss-static.c: New.
11045
11046 2012-04-06  Robert Millan  <rmh@gnu.org>
11047
11048         [BZ #6486]
11049         * manual/llio.texi (File Position Primitive): lseek
11050         refers to WHENCE when it really means OFFSET.
11051
11052 2012-04-06  Andreas Jaeger  <aj@suse.de>
11053
11054         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11055         strncmp declarations.
11056
11057         * abilist/libc.abilist: Add __poll and __ppoll.
11058
11059 2012-04-05  David S. Miller  <davem@davemloft.net>
11060
11061         * scripts/check-local-headers.sh: Accept a host triplet in the
11062         path matched by the exclude regexp.
11063
11064         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11065         definition.
11066         * sysdeps/powerpc/powerpc32/dl-machine.h
11067         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11068         * sysdeps/s390/s390-32/dl-machine.h
11069         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11070         * sysdeps/sparc/sparc32/dl-machine.h
11071         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11072         * sysdeps/sparc/sparc64/dl-machine.h
11073         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11074
11075         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11076         lazy binding.
11077         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11078         undefined symbol errors.
11079
11080         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11081         DT_NEEDED entries.
11082
11083 2012-04-05  Michael Matz  <matz@suse.de>
11084
11085         [BZ #13592]
11086         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11087
11088 2012-04-05  Andreas Jaeger  <aj@suse.de>
11089
11090         [BZ #13908]
11091         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11092         comment.
11093
11094 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11095
11096         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11097         which ROUND is no valid rounding mode.
11098
11099 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11100
11101         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11102         read again.
11103         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11104
11105 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11106
11107         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11108         an exception using FPU order intentionally.
11109
11110 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11111
11112         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11113         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11114         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11115         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11116
11117 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11118
11119         [BZ #12340]
11120         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11121         EINVAL when BUFLEN is too smal.
11122
11123 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11124
11125         [BZ #13553]
11126         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11127         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11128
11129 2012-04-03  Andreas Jaeger  <aj@suse.de>
11130
11131         [BZ #13938]
11132         * manual/setjmp.texi (System V contexts): Fix sentence.
11133
11134         [BZ #13926]
11135         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11136         New macro for this case.
11137         [!__GNUC__] (__bswap_64): New inline function for this case.
11138         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11139         * bits/byteswap.h: Likewise.
11140         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11141         ull, guard with __GLIBC_HAVE_LONG_LONG.
11142
11143         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11144         __GLIBC_HAVE_LONG_LONG.
11145
11146         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11147         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11148
11149 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11150
11151         [BZ #13691]
11152         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11153         inptr and inend, rather than using last_ch.
11154
11155 2012-04-02  David S. Miller  <davem@davemloft.net>
11156
11157         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11158         * stdio-common/printf-parse.h (read_int): Change return type to
11159         'int', return -1 on INT_MAX overflow.
11160         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11161         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11162         overflows INT_MAX.  Check for overflow of in-format-string precision
11163         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11164         SIZE_MAX not INT_MAX for integer overflow test.
11165         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11166         skip the construct in the format string but do not record anything.
11167         * stdio-common/bug22.c: Adjust to test both width/prevision
11168         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11169         explicitly for proper errno values.
11170
11171 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11172
11173         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11174         CHAR_MAX.
11175         * string/test-strcmp.c [! WIDE]: Likewise.
11176         * time/tst-mktime2.c: Likewise for INT_MAX.
11177         * string/test-string.h: #include <sys/param.h> for MIN.
11178
11179         * csu/init-first.c (__libc_init_first): Call __ctype_init.
11180         * sysdeps/i386/init-first.c (init): Likewise.
11181         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11182         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11183         * sysdeps/sh/init-first.c (init): Likewise.
11184
11185 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
11186
11187         * po/ru.po: Update from translation team.
11188         * po/vi.po: Likewise.
11189
11190 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11191
11192         * resolv/nss_dns/dns-host.c: Merge copyright years.
11193
11194 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11195
11196         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11197         Optimize memcpy with prefetch if
11198         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
11199         src, dst pointers have unequal 16 byte alignments.
11200
11201 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11202
11203         [BZ #13928]
11204         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11205         from a CNAME entry and return the minimum ttl for the query.
11206         (gaih_getanswer_slice): Likewise.
11207
11208 2012-03-30  Jeff Law  <law@redhat.com>
11209
11210         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11211         due to long keys.
11212         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11213         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11214
11215         * resolv/nss_dns/dns-host.c: Update copyright year.
11216
11217 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11218
11219         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11220         requests to save a system call.  Fix check that all bytes are sent.
11221
11222         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11223         comments for sendmmsg.
11224
11225 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11226
11227         [BZ #13691]
11228         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11229         with only 1 character between 0x0041 and 0x01b0.
11230         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11231         * wcsmbs/tst-mbsnrtowcs.c: New file.
11232
11233 2012-03-29  David S. Miller  <davem@davemloft.net>
11234
11235         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11236         small copies by hand.
11237
11238 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11239
11240         [BZ #13761]
11241         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11242         _nss_compat_initgroups_dyn): Fall back to malloc/free
11243         for large group memberships.
11244
11245 2012-03-28  David S. Miller  <davem@davemloft.net>
11246
11247         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11248         that branches into memcpy.
11249         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11250         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11251         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11252         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11253         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11254         bits.
11255         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11256         implementation too.
11257         * sysdeps/sparc/mempcpy.S: New file.
11258
11259         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11260         the IFUNC routine in the libc case.
11261         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11262
11263         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11264         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11265         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11266         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11267         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11268         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11269         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11270         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11271
11272         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11273         loop to 256 bytes instead of 64 bytes and fix test signedness.
11274
11275         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11276         * sysdeps/sparc/sparc32/Makefile: rather than here...
11277         * sysdeps/sparc/sparc64/Makefile: and here.
11278
11279 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11280
11281         * malloc/mallocbug.c: Avoid warnings about unused variables.
11282
11283 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11284
11285         [BZ #13760]
11286         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11287         in the right place. Discard and retry query if response is
11288         larger than input buffer size.
11289
11290 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11291
11292         [BZ #369]
11293         [BZ #2678]
11294         [BZ #3866]
11295         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11296         x for large integer exponent.
11297         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11298         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11299         sign of result as needed afterwards.
11300         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11301         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11302         result for underflowing pow the same as for overflow.
11303         (__kernel_standard_l): Handle powl overflow and underflow here
11304         rather than calling __kernel_standard.
11305         * math/libm-test.inc (pow_test): Add more tests.
11306
11307         [BZ #3868]
11308         [BZ #13879]
11309         [BZ #13910]
11310         [BZ #13911]
11311         [BZ #13912]
11312         [BZ #13913]
11313         [BZ #13915]
11314         [BZ #13916]
11315         [BZ #13917]
11316         [BZ #13918]
11317         [BZ #13919]
11318         [BZ #13920]
11319         [BZ #13921]
11320         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11321         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11322         (__kernel_standard_l): New function.
11323         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11324         __kernel_standard.
11325         * math/w_acosl.c (__acosl): Likewise.
11326         * math/w_asinl.c (__asinl): Likewise.
11327         * math/w_atan2l.c (__atan2l): Likewise.
11328         * math/w_atanhl.c (__atanhl): Likewise.
11329         * math/w_coshl.c (__coshl): Likewise.
11330         * math/w_exp10l.c (__exp10l): Likewise.
11331         * math/w_exp2l.c (__exp2l): Likewise.
11332         * math/w_fmodl.c (__fmodl): Likewise.
11333         * math/w_hypotl.c (__hypotl): Likewise.
11334         * math/w_j0l.c (__j0l, __y0l): Likewise.
11335         * math/w_j1l.c (__j1l, __y1l): Likewise.
11336         * math/w_jnl.c (__jnl, __ynl): Likewise.
11337         * math/w_lgammal.c (__lgammal): Likewise.
11338         * math/w_log10l.c (__log10l): Likewise.
11339         * math/w_log2l.c (__log2l): Likewise.
11340         * math/w_logl.c (__logl): Likewise.
11341         * math/w_powl.c (__powl): Likewise.
11342         * math/w_remainderl.c (__remainderl): Likewise.
11343         * math/w_scalbl.c (sysv_scalbl): Likewise.
11344         * math/w_sinhl.c (__sinhl): Likewise.
11345         * math/w_sqrtl.c (__sqrtl): Likewise.
11346         * math/w_tgammal.c (__tgammal): Likewise.
11347         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11348         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11349         * math/libm-test.inc (acos_test): Add more tests.
11350         (acosh_test): Likewise.
11351         (asin_test): Likewise.
11352         (atanh_test): Likewise.
11353         (exp_test): Likewise.
11354         (exp10_test): Likewise.
11355         (exp2_test): Likewise.
11356         (expm1_test): Likewise.
11357         (lgamma_test): Likewise.
11358         (log_test): Likewise.
11359         (log10_test): Likewise.
11360         (log1p_test): Likewise.
11361         (log2_test): Likewise.
11362         (pow_test): Do not allow some spurious overflow exceptions.
11363         (sqrt_test): Add more tests.
11364         (tgamma_test): Likewise.
11365         (y0_test): Likewise.
11366         (y1_test): Likewise.
11367         (yn_test): Likewise.
11368
11369 2012-03-27  Anton Blanchard  <anton@samba.org>
11370
11371         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11372         MAP_HUGETLB.
11373         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11374         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11375         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11376
11377 2012-03-27  David S. Miller  <davem@davemloft.net>
11378
11379         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11380
11381         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11382         have-as-vis3 check.
11383
11384 2012-03-27  Andreas Jaeger  <aj@suse.de>
11385
11386         * sysdeps/x86_64/elf/configure.in: Moved to ...
11387         * sysdeps/x86_64/configure.in: ... here.
11388         * sysdeps/x86_64/elf/start.S: Moved to ...
11389         * sysdeps/x86_64/start.S: ... here.
11390         * sysdeps/x86_64/elf/configure: Delete.
11391
11392         * sysdeps/x86_64/configure.in: Merge contents from
11393         sysdeps/i386/configure.in (without i686 check).
11394
11395         * sysdeps/i386/elf/Versions: Merge into ...
11396         * sysdeps/i386/Versions: ... this.
11397         * sysdeps/i386/elf/Versions: Delete file.
11398         * sysdeps/i386/elf/start.S: Moved to ...
11399         * sysdeps/i386/start.S: ...here.
11400         * sysdeps/i386/elf/configure.in: Merge into...
11401         * sysdeps/i386/configure.in: ...here.
11402         * sysdeps/i386/elf/configure.in: Delete file.
11403         * sysdeps/i386/elf/configure: Delete file.
11404
11405         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11406         * debug/backtracesyms.c: ... here.
11407         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11408         * debug/backtracesymsfd.c: ... here.
11409         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11410         * sysdeps/generic/ifunc-sel.h: ... here.
11411
11412         * sysdeps/unix/i386/start.c: Delete file.
11413         * sysdeps/unix/sparc/start.c: Delete file.
11414         * sysdeps/unix/start.c: Delete file.
11415
11416         * sysdeps/sh/elf/configure.in: Moved to ...
11417         * sysdeps/sh/configure.in: ... here.
11418         * sysdeps/sh/elf/start.S: Moved to ...
11419         * sysdeps/sh/start.S: ... here.
11420         * sysdeps/sh/elf/configure: Delete file.
11421
11422         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11423         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11424         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11425         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11426         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11427         * sysdeps/powerpc/powerpc64/start.S: here.
11428         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11429         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11430         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11431         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11432         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11433
11434         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11435         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11436         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11437         * sysdeps/powerpc/powerpc32/start.S: ... here.
11438         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11439         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11440         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11441
11442         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11443         * sysdeps/powerpc/ifunc-sel.h: ... here.
11444         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11445         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11446
11447         * sysdeps/sparc/elf/configure.in: Moved to ...
11448         * sysdeps/sparc/configure.in: ... here.
11449         * sysdeps/sparc/elf/configure: Delete file.
11450         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11451         * sysdeps/sparc/sparc32/start.S: ... here.
11452         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11453         * sysdeps/sparc/sparc64/start.S: ... here.
11454         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11455         * sysdeps/sparc/sparc32/Makefile: ... this.
11456         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11457         * sysdeps/sparc/sparc64/Makefile: ... this.
11458
11459         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11460         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11461         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11462         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11463         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11464         * sysdeps/s390/s390-32/setjmp.S: ... here.
11465         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11466         * sysdeps/s390/s390-32/configure.in: ... here.
11467         * sysdeps/s390/s390-32/elf/configure: Delete file.
11468         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11469         * sysdeps/s390/s390-32/start.S: ... here.
11470
11471         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11472         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11473         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11474         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11475         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11476         * sysdeps/s390/s390-64/setjmp.S: ... here.
11477         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11478         * sysdeps/s390/s390-64/configure.in: ... here
11479         * sysdeps/s390/s390-64/elf/configure: Delete file.
11480         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11481         * sysdeps/s390/s390-64/start.S: ... here.
11482         * sysdeps/s390/s390-64/elf/configure: Delete.
11483
11484         * configure.in: Remove support for elf directories in sysdeps.
11485
11486         * configure: Regenerated.
11487         * sysdeps/i386/configure: Regenerated.
11488         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11489         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11490         * sysdeps/s390/s390-32/configure: Regenerated.
11491         * sysdeps/s390/s390-64/configure: Regenerated.
11492         * sysdeps/sh/configure: Regenerated.
11493         * sysdeps/sparc/configure: Regenerated.
11494         * sysdeps/x86_64/configure: Regenerated.
11495
11496 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11497
11498         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11499
11500         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11501         denormal result into account.
11502
11503 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11504
11505         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11506         Reported by Allan McRae <allan@archlinux.org>.
11507
11508 2012-03-23  Jeff Law  <law@redhat.com>
11509
11510         * nss/getnssent.c (__nss_getent): Fix typo.
11511
11512 2012-03-23  David S. Miller  <davem@davemloft.net>
11513
11514         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11515
11516 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11517
11518         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11519         to pad to uint64_t for each field.
11520         (dl_tls_index): Replace unsigned long with uint64_t.
11521
11522 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11523         Paul Pluzhnikov  <ppluzhnikov@google.com>
11524
11525         [BZ #6528]
11526         * grp/Makefile (otherlibs): Don't set it.
11527         * inet/Makefile (otherlibs): Likewise.
11528         * login/Makefile (otherlibs): Likewise.
11529         * nscd/Makefile (otherlibs): Likewise.
11530         * posix/Makefile (otherlibs): Likewise.
11531         * pwd/Makefile (otherlibs): Likewise.
11532         * rt/Makefile (otherlibs): Likewise.
11533         * sunrpc/Makefile (otherlibs): Likewise.
11534         * nss/Makefile (otherlibs): Likewise.
11535         Add libnss_files to routines and static-only-routines.
11536         ($(objpfx)getent): Remove rule.
11537         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11538         static-only-routines.
11539
11540 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11541
11542         [BZ #13892]
11543         * math/s_cexp.c: Include <float.h>.
11544         (__cexp): Handle exp result overflowing not necessarily
11545         overflowing both real and imaginary parts of result.
11546         * math/s_cexpf.c: Likewise.
11547         * math/s_cexpl.c: Likewise.
11548         * math/libm-test.inc (cexp_test): Add more tests.
11549         * sysdeps/i386/fpu/libm-test-ulps: Update.
11550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11551
11552 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11553
11554         * include/link.h (ELFW): New macro.
11555         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11556         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11557
11558 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11559
11560         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11561         with uint64_t.
11562
11563 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11564
11565         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11566         declaration.
11567         (struct La_x32_retval): Likewise.
11568
11569 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11570
11571         * sysdeps/x86_64/preconfigure.in: New file.
11572         * sysdeps/x86_64/preconfigure: New generated file.
11573
11574 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11575
11576         [BZ #13824]
11577         * math/e_exp2l.c: Include <float.h>.
11578         (__ieee754_exp2l): Handle overflow and underflow cases
11579         separately.  Only pass fractional part of argument to
11580         __ieee754_expl.
11581         * math/libm-test.inc (exp2_test): Add more tests.
11582
11583         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11584         negating x to take absolute value.
11585         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11586         Likewise.
11587         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11588         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11589         Likewise.
11590         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11591         computing low part if x was negated.
11592         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11593
11594 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11595
11596         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11597         la_x32_gnu_pltexit.
11598         (pltexit): Cast int_retval to ptrdiff_t.
11599         * elf/tst-auditmod3b.c: Likewise.
11600         * elf/tst-auditmod4b.c: Likewise.
11601         * elf/tst-auditmod5b.c: Likewise.
11602         * elf/tst-auditmod6b.c: Likewise.
11603         * elf/tst-auditmod6c.c: Likewise.
11604         * elf/tst-auditmod7b.c: Likewise.
11605
11606         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11607         and x32_gnu_pltexit.
11608
11609         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11610         __ELF_NATIVE_CLASS.
11611         (La_x32_regs): New macro.
11612         (La_x32_retval): Likewise.
11613         (la_x32_gnu_pltenter): New function prototype.
11614         (la_x32_gnu_pltexit): Likewise.
11615
11616 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11617
11618         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11619         exponent.
11620
11621         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11622
11623         * configure.in (libc_cv_cc_nofma): Check for option to disable
11624         generation of FMA instructions.
11625         * configure: Regenerate.
11626         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11627         * sysdeps/ieee754/dbl-64/Makefile: New file.
11628         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11629         Remove brandred-fma4.
11630         (CFLAGS-brandred-fma4.c): Remove.
11631         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11632         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11633         define.
11634         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11635         define.
11636
11637 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11638
11639         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11640         LLONG_MAX != LONG_MAX.
11641         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11642         (_fitoa_word): Likewise.
11643         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11644         LLONG_MAX != LONG_MAX.
11645         * stdio-common/_itowa.h: Include <_itoa.h>.
11646         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11647         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11648         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11649         only if not defined.
11650         (_ITOA_WORD_TYPE): Likewise.
11651         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11652         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11653
11654 2012-03-21  David S. Miller  <davem@davemloft.net>
11655
11656         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11657
11658 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11659
11660         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11661         of x86_64 when setting libc_cv_slibdir, libdir and
11662         libc_cv_localedir.
11663         * sysdeps/unix/sysv/linux/configure: Regenerated.
11664
11665 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11666
11667         * manual/lang.texi (Old Varargs): Remove section.
11668         (How Variadic): Update menu.
11669         (va_start): Do not mention varargs.h.
11670
11671 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11672             Joseph Myers  <joseph@codesourcery.com>
11673
11674         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11675         link test.
11676         * configure: Regenerated.
11677
11678 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11679
11680         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11681         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11682         conformtest.pl
11683
11684 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11685
11686         * NOTES: Remove.
11687         * Makefile (files-for-dist): Remove NOTES.
11688         (NOTES): Remove rule.
11689         * README: Don't refer to NOTES.
11690         * manual/creature.texi: Don't include macros.texi.
11691         * manual/intro.texi (creature.texi): Remove comment referring to
11692         NOTES.
11693
11694         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11695         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11696         * configure: Regenerated.
11697         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11698         LIBC_TRY_CC_OPTION.
11699         (libc_cv_as_i686): Likewise.
11700         (libc_cv_cc_avx): Likewise.
11701         (libc_cv_cc_sse2avx): Likewise.
11702         (libc_cv_cc_fma4): Likewise.
11703         (libc_cv_cc_novzeroupper): Likewise.
11704         * sysdeps/i386/configure: Regenerated.
11705
11706         [BZ #13883]
11707         * sysdeps/i386/fpu/s_cexp.S: Remove.
11708         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11709         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11710         * math/libm-test.inc (cexp_test): Add more tests.
11711         * sysdeps/i386/fpu/libm-test-ulps: Update.
11712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11713
11714 2012-03-21  Allan McRae  <allan@archlinux.org>
11715
11716         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11717
11718 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11719
11720         [BZ #13871]
11721         * math/w_exp2.c: Do not include <float.h>.
11722         (o_threshold, u_threshold): Remove.
11723         (__exp2): Calculate result before checking finiteness and calling
11724         __kernel_standard.
11725         * math/w_exp2f.c: Likewise.
11726         * math/w_exp2l.c: Likewise.
11727         * math/libm-test.inc (exp2_test): Require overflow exception for
11728         1e6 input.
11729
11730         [BZ #3866]
11731         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11732         range of signed 64-bit integers before using fistpll.  Remove
11733         checks for whether integers fit in mantissa bits.
11734         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11735         the range of signed 32-bit integers before using fistpl.  Remove
11736         checks for whether integers fit in mantissa bits.
11737         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11738         (__ieee754_powl): Test for y outside the range of signed 64-bit
11739         integers before using fistpll.  Reduce 64-bit values to 63-bit
11740         ones as needed.
11741         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11742         divide-by-zero is raised for zero to large negative powers.
11743         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11744         (__ieee754_powl): Test for y outside the range of signed 64-bit
11745         integers before using fistpll.  Reduce 64-bit values to 63-bit
11746         ones as needed.
11747         * math/libm-test.inc (pow_test): Add more tests.
11748
11749 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11750
11751         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11752         <stdio-common/_itoa.h>.
11753         * debug/segfault.c: Likewise.
11754         * elf/dl-cache.c: Likewise.
11755         * elf/dl-minimal.c: Likewise.
11756         * elf/dl-misc.c: Likewise.
11757         * elf/dl-sysdep.c: Likewise.
11758         * elf/dl-version.c: Likewise.
11759         * elf/rtld.c: Likewise.
11760         * hurd/hurdsock.c: Likewise.
11761         * hurd/lookup-retry.c: Likewise.
11762         * malloc/malloc.c: Likewise.
11763         * malloc/mtrace.c: Likewise.
11764         * nscd/nscd_getgr_r.c: Likewise.
11765         * nscd/nscd_getpw_r.c: Likewise.
11766         * nscd/nscd_getserv_r.c: Likewise.
11767         * posix/getopt_init.c: Likewise.
11768         * posix/wordexp.c: Likewise.
11769         * stdio-common/_itoa.c: Likewise.
11770         * stdio-common/printf_fphex.c: Likewise.
11771         * stdio-common/vfprintf.c: Likewise.
11772         * string/_strerror.c: Likewise.
11773         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11774         * sysdeps/i386/i686/hp-timing.h: Likewise.
11775         * sysdeps/mach/_strerror.c: Likewise.
11776         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11777         * sysdeps/mach/hurd/sethostid.c: Likewise.
11778         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11779         * sysdeps/mach/xpg-strerror.c: Likewise.
11780         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11781         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11782         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11783         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11784         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11785         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11786         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11787         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11788         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11789         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11790         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11791         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11792         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11793         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11794         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11795         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11796         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11797         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11798         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11799         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11800         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11801
11802         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11803
11804         * stdio-common/_itoa.h: Moved to ...
11805         * sysdeps/generic/_itoa.h: Here.
11806
11807         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11808
11809         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11810         instead of "_itoa.h" and "_itowa.h".
11811         * stdio-common/vfprintf.: Likewise.
11812
11813 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11814
11815         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11816         <bits/wordsize.h>.
11817         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11818         (__signbit): Likwise.
11819         (llrintf): Likwise.
11820         (llrint): Likwise.
11821
11822 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11823
11824         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11825         __WORDSIZE != 64.
11826
11827 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11828
11829         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11830         OVERFLOW_EXCEPTION_OK.
11831         * math/libm-test.inc ("Philosophy"): Update comment about
11832         exception testing.
11833         (OVERFLOW_EXCEPTION): Define.
11834         (OVERFLOW_EXCEPTION_OK): Likewise.
11835         (INVALID_EXCEPTION_OK): Renumber.
11836         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11837         (IGNORE_ZERO_INF_SIGN): Likewise.
11838         (test_exceptions): Handle FE_OVERFLOW.
11839         (exp10_test): Expect overflow exceptions.
11840         (exp2_test): Likewise.
11841         (expm1_test): Likewise.
11842         (nextafter_test): Likewise.
11843         (pow_test): Likewise.
11844         (scalbn_test): Likewise.
11845         (scalbln_test): Likewise.
11846
11847 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11848
11849         * sysdeps/x86_64/bits/atomic.h
11850         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11851         64bit integer.
11852         (atomic_exchange_acq): Likewise.
11853         (__arch_exchange_and_add_body): Likewise.
11854         (__arch_add_body): Likewise.
11855         (atomic_add_negative): Likewise.
11856         (atomic_add_zero): Likewise.
11857
11858 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11859
11860         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11861         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11862
11863 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11864
11865         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11866         Check __x86_64__ instead of __WORDSIZE.
11867
11868 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11869
11870         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11871
11872 2012-03-19  David S. Miller  <davem@davemloft.net>
11873
11874         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11875
11876         * sysdeps/sparc/fpu/fenv_private.h: New file.
11877         * sysdeps/sparc/fpu/math_private.h: Use it.
11878         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11879         Remove.
11880         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11881         (libc_feholdexcept_setroundl): Remove.
11882         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11883         Remove.
11884         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11885         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11886
11887 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11888
11889         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11890         int64_t instead of long int.
11891         (INSERT_WORDS64): Likwise.
11892
11893 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11894
11895         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11896         _Unwind_GetCFA return to _Unwind_Ptr first.
11897
11898 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11899
11900         [BZ #13629]
11901         * math/s_clog.c: Include <float.h>.
11902         (__clog): Scale large or subnormal inputs.
11903         * math/s_clogf.c: Likewise.
11904         * math/s_clogl.c: Likewise.
11905         * math/s_clog10.c: Include <float.h>.
11906         (M_LOG10_2): Define.
11907         (__clog10): Scale large or subnormal inputs.
11908         * math/s_clog10f.c: Likewise.
11909         * math/s_clog10l.c: Likewise.
11910         * math/libm-test.inc (clog_test): Add more tests.
11911         (clog10_test): Likewise.
11912         * sysdeps/i386/fpu/libm-test-ulps: Update.
11913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11914
11915         [BZ #11451]
11916         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11917         x and y.
11918         * math/libm-test.inc (atan2_test): Add another test.
11919
11920         * Makerules (common-objdir-compile): Remove.
11921         * sysdeps/unix/Makefile (config-generated): Do not add
11922         $(unix-generated) to variable.
11923         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11924         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11925         Remove rule.
11926         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11927         Likewise.
11928         [generic bits/local_lim.h] (before-compile): Do not append to
11929         variable.
11930         [generic bits/local_lim.h] (common-generated): Likewise.
11931         [generic sys/param.h] (before-compile): Do not append to variable.
11932         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11933         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11934         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11935         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11936         include.
11937         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11938         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11939         [generic sys/param.h] ($(addprefix
11940         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11941         [generic sys/param.h] (common-generated): Do not append to
11942         variable.
11943         [generic sys/param.h] (sysdep_headers): Likewise.
11944         [generic bits/errno.h] (before-compile): Do not append to
11945         variable.
11946         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11947         rule.
11948         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11949         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11950         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11951         [generic bits/errno.h] (common-generated): Do not append to
11952         variable.
11953         [generic bits/ioctls.h] (before-compile): Do not append to
11954         variable.
11955         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11956         rule.
11957         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11958         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11959         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11960         rule.
11961         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11962         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11963         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11964         [generic bits/ioctls.h] (common-generated): Do not append to
11965         variable.
11966         [generic sys/syscall.h] (syscall.h): Remove variable.
11967         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11968         rule.
11969         [generic sys/syscall.h] (before-compile): Do not append to
11970         variable.
11971         [generic sys/syscall.h] (common-generated): Likewise.
11972         * sysdeps/unix/errnos-tmpl.c: Remove file.
11973         * sysdeps/unix/errnos.awk: Likewise.
11974         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11975         * sysdeps/unix/ioctls.awk: Likewise.
11976         * sysdeps/unix/mk-local_lim.c: Likewise.
11977         * sysdeps/unix/snarf-ioctls: Likewise.
11978
11979 2012-03-19  Richard Henderson  <rth@twiddle.net>
11980
11981         * sysdeps/i386/fpu/fenv_private.h: New file.
11982         * sysdeps/i386/fpu/math_private.h: Use it.
11983         (math_opt_barrier, math_force_eval): Remove.
11984         (libc_feholdexcept_setround_53bit): Remove.
11985         (libc_feupdateenv_53bit): Remove.
11986         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11987         (math_opt_barrier, math_force_eval): Remove.
11988         (libc_feholdexcept): Remove.
11989         (libc_feholdexcept_setround): Remove.
11990         (libc_fetestexcept, libc_fesetenv): Remove.
11991         (libc_feupdateenv_test): Remove.
11992         (libc_feupdateenv, libc_feholdsetround): Remove.
11993         (libc_feresetround): Remove.
11994
11995         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11996         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11997
11998         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11999         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12000         (libc_feupdateenv_testl): New.
12001         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12002         (libc_feupdateenv_testf): New.
12003         (libc_feupdateenv): Use libc_feupdateenv_test.
12004         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12005         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12006
12007         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12008         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12009         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12010         (libc_feresetround_noex): New.
12011         (libc_feresetround_noexf): New.
12012         (libc_feresetround_noexl): New.
12013         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12014         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12015         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12016         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12017         SET_RESTORE_ROUND.
12018         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12019         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12020         (__cos): Likewise.
12021         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12022         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12023         SET_RESTORE_ROUND_NOEX.
12024         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12025         SET_RESTORE_ROUND_NOEXF.
12026         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12027         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12028         (libc_feholdsetroundf): New.
12029         (libc_feresetround, libc_feresetroundf): New.
12030
12031         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12032         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12033         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12034
12035         * sysdeps/generic/math_private.h: Include <fenv.h>.
12036         (default_libc_feholdexcept): New.
12037         (default_libc_feholdexcept_setround): New.
12038         (default_libc_fesetenv, default_libc_feupdateenv): New.
12039         (libc_feholdexcept): Only define if undefined.
12040         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12041         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12042         (libc_feholdexcept_setroundl): Likewise.
12043         (libc_feholdexcept_setround_53bit): Likewise.
12044         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12045         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12046         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12047         (libc_feupdateenv_53bit): Likewise.
12048         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12049         (libc_feholdexcept): Convert from macro to inline function.
12050         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12051         (libc_fesetenv, libc_feupdateenv): Likewise.
12052
12053         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12054         not previously defined.
12055         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12056         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12057         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12058         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12059         * sysdeps/ieee754/flt-32/math_private.h: New file.
12060         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12061         math_private.h below SET_FLOAT_WORD.
12062         (__isnan, __isinf_ns, __finite): Remove.
12063         (__isnanf, __isinf_nsf, __finitef): Remove.
12064
12065 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12066
12067         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12068
12069 2012-03-17  David S. Miller  <davem@davemloft.net>
12070
12071         [BZ #6471]
12072         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12073         for 2.16.
12074
12075 2012-03-16  David S. Miller  <davem@davemloft.net>
12076
12077         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12078         warnings.
12079
12080         [BZ #6471]
12081         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12082         properly.
12083         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12084         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12085         sysdep_routines when subdir is sysvipc.
12086         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12087         __getshmlba helper.
12088
12089         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12090
12091 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12092
12093         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12094         [__LP64__].
12095
12096 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12097
12098         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12099         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12100         (__lround): Renamed to ...
12101         (__llround): This.  Replace long int with long long int.
12102         Define lround functions as aliases of llround functions.
12103         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12104
12105 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12106
12107         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12108         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12109         adresses to uintptr_t.  Replace "long int" and "unsigned long
12110         int" with "greg_t" on va_arg.
12111
12112 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12113
12114         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12115         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12116
12117         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12118         Move e_machine check before EI_CLASS check.  Handle x32
12119         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12120         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12121         SKIP_EM_IA_64 and include
12122         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12123
12124         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12125         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12126         (add_system_dir): New macro.
12127
12128         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12129         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12130
12131 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12132
12133         [BZ #2551]
12134         [BZ #2552]
12135         [BZ #2553]
12136         [BZ #2554]
12137         [BZ #2562]
12138         [BZ #2563]
12139         [BZ #2565]
12140         [BZ #2566]
12141         [BZ #2576]
12142         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12143         (y0): Likewise.
12144         * math/w_j0f.c (j0f): Likewise.
12145         (y0f): Likewise.
12146         * math/w_j0l.c (__j0l): Likewise.
12147         (__y0l): Likewise.
12148         * math/w_j1.c (j1): Likewise.
12149         (y1): Likewise.
12150         * math/w_j1f.c (j1f): Likewise.
12151         (y1f): Likewise.
12152         * math/w_j1l.c (__j1l): Likewise.
12153         (__y1l): Likewise.
12154         * math/w_jn.c (jn): Likewise.
12155         (yn): Likewise.
12156         * math/w_jnf.c (jnf): Likewise.
12157         (ynf): Likewise.
12158         * math/w_jnl.c (__jnl): Likewise.
12159         (__ynl): Likewise.
12160         * math/libm-test.inc (j0_test): Add more tests.
12161         (j1_test): Likewise.
12162         (jn_test): Likewise.  Add trailing semicolon to existing test.
12163         (y0_test): Likewise.
12164         (y1_test): Likewise.
12165         * sysdeps/i386/fpu/libm-test-ulps: Update.
12166         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12167
12168         [BZ #13851]
12169         [BZ #13854]
12170         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12171         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12172         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12173         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12174         (__tanl): Set errno for infinite argument.
12175         * sysdeps/i386/fpu/mptan.c: Remove.
12176         * sysdeps/i386/fpu/s_tan.S: Likewise.
12177         * sysdeps/i386/fpu/s_tanl.S: Likewise.
12178         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12179         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12180         * math/libm-test.inc (tan_test): Add more tests and enable more
12181         tests for double and long double.
12182         * sysdeps/i386/fpu/libm-test-ulps: Update.
12183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12184
12185 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12186
12187         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12188         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12189
12190 2012-03-16  Roland McGrath  <roland@hack.frob.com>
12191
12192         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12193         * configure.in: Use it for both main tree and add-ons.
12194         * configure: Regenerated.
12195
12196 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12197
12198         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12199
12200 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12201
12202         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12203         in comment.
12204
12205         [BZ #13851]
12206         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12207         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12208         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12209         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12210         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12211         infinite argument.
12212         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12213         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12214         != 0 for prec == 2.
12215         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12216         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12217         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12218         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12219         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12220         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12221         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12222         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12223         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12224         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12225         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12226         * math/libm-test.inc (cos_test): Add more tests and enable more
12227         tests for long double.
12228         (sin_test): Likewise.
12229         (sincos_test): Likewise.
12230         * sysdeps/i386/fpu/libm-test-ulps: Update.
12231         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12232
12233 2012-03-16  David S. Miller  <davem@davemloft.net>
12234
12235         * sysdeps/sparc/fpu/math_private.h: New file.
12236
12237 2012-03-15  David S. Miller  <davem@davemloft.net>
12238
12239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12240         file.
12241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12243         file.
12244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12245         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12246         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12247         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12248         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12249         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12250         sysdep routines.
12251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12252
12253         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12254         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12255
12256         * sysdeps/sparc/sparc-ifunc.h: New file.
12257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12258         sparc-ifunc.h
12259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12261         Likewise.
12262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12263         Likewise.
12264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12268         Likewise.
12269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12274         Likewise.
12275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12276         Likewise.
12277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12281         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12282         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12283         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12284         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12285         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12286         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12287         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12288         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12289         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12290         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12291         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12292         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12293         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12294         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12295         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12296         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12297         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12298         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12299         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12300         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12301
12302 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12303
12304         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12305         scaling.
12306         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12307
12308 2012-03-15  Andreas Jaeger  <aj@suse.de>
12309
12310         [BZ #13852]
12311         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12312         ieee754/flt-32 implementation for sin, cos and sincos.
12313         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12314         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12315         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12316         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12317         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12318         ieee754/flt-32 implementation for tan.
12319
12320         * math/libm-test.inc (cos_test): Enable some large input tests for
12321         float as well
12322         (sin_test): Likewise.
12323         (sincos_test): Likewise.
12324         (tan_test): Add tests for large input.
12325
12326         * sysdeps/i386/fpu/libm-test-ulps: Update.
12327
12328 2012-03-15  Andreas Jaeger  <aj@suse.de>
12329
12330         [BZ #13658]
12331         * math/libm-test.inc (cos_test): Add more test cases.
12332         (sin_test): Likewise.
12333         (sincos_test): Likewise.
12334
12335 2012-03-15  Andreas Jaeger  <aj@suse.de>
12336
12337         [BZ #13837]
12338         * math/libm-test.inc (cos_test): Add a test case for large input
12339         value.
12340         (sin_test): Likewise.
12341         (sincos_test): Likewise.
12342
12343 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12344         Joseph Myers  <joseph@codesourcery.com>
12345
12346         [BZ #13658]
12347         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12348         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12349         * sysdeps/i386/fpu/branred.c: Likewise.
12350         * sysdeps/i386/fpu/dosincos.c: Likewise.
12351         * sysdeps/i386/fpu/mpa.c: Likewise.
12352         * sysdeps/i386/fpu/s_cos.S: Likewise.
12353         * sysdeps/i386/fpu/s_sin.S: Likewise.
12354         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12355         * sysdeps/i386/fpu/sincos32.c: Likewise.
12356
12357         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12358         Define.
12359         (libc_feupdateenv_53bit): Define.
12360         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12361         Define.
12362         (libc_feupdateenv_53bit): Define.
12363
12364         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12365         53 bit (without extend i386 double precision).
12366
12367         * math/libm-test.inc (sincos_test): Add tests for large input.
12368         (sin): Likewise.
12369         (cos): Likewise.
12370
12371         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12372
12373 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12374
12375         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12376
12377 2012-03-15  David S. Miller  <davem@davemloft.net>
12378
12379         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12380         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12381         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12382         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12383         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12384         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12385         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12386         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12387         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12388         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12389         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12390         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12391         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12392         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12393         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12394         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12395         file.
12396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12398         file.
12399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12401         file.
12402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12404         file.
12405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12406         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12407         fmin/fmax sysdep routines.
12408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12409
12410 2012-03-14  David S. Miller  <davem@davemloft.net>
12411
12412         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12413         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12414         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12415         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12416         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12417         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12418         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12419         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12420         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12421         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12422         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12423         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12424         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12425         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12426         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12427         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12428         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12429         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12430         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12431         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12432         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12433         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12434         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12435         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12436         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12437         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12438         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12439         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12440         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12441         routines.
12442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12443         file.
12444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12446         file.
12447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12449         file.
12450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12452         file.
12453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12455         file.
12456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12458         file.
12459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12460         file.
12461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12462         file.
12463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12464         file.
12465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12466         New file.
12467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12468         file.
12469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12470         file.
12471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12473         file.
12474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12476         file.
12477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12479         file.
12480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12482         VIS3 routines.
12483
12484         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12485         New file.
12486
12487         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12488
12489         * sysdeps/sparc/configure.in: New file.
12490         * sysdeps/sparc/configure: Generate.
12491         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12492         * configure: Regenerate.
12493         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12494         * config.make.in (have-as-vis3): New.
12495         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12496         available use -Av9d instead of -Av9a.
12497         * sysdeps/sparc/sparc64/Makefile: Likewise.
12498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12500         New file.
12501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12502         file.
12503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12504         New file.
12505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12506         file.
12507         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12508         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12509         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12510         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12511         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12512
12513         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12514         fzeros/fnegs to load 0x80000000 into a float register instead of
12515         using the stack.
12516         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12517
12518 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12519
12520         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12521         bits/syscall.h.
12522         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12523         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12524         ($(inst_includedir)/bits/syscall.h): Remove rule.
12525         ($(objpfx)bits/syscall.d): Include instead of
12526         $(objpfx)syscall-list.d.
12527         (generated): Change syscall-list.h and syscall-list.d to
12528         bits/syscall.h and bits/syscall.d.
12529
12530 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12531
12532         [BZ #13846]
12533         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12534
12535 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12536
12537         [BZ #13841]
12538         * math/s_csqrt.c: Include <float.h>.
12539         (__csqrt): Scale large or subnormal inputs.
12540         * math/s_csqrtf.c: Likewise.
12541         * math/s_csqrtl.c: Likewise.
12542         * math/libm-test.inc (csqrt_test): Add more tests.
12543         * sysdeps/i386/fpu/libm-test-ulps: Update.
12544         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12545
12546         [BZ #13840]
12547         * math/libm-test.inc (hypot_test): Add more tests.
12548
12549 2012-03-13  David S. Miller  <davem@davemloft.net>
12550
12551         [BZ #13840]
12552         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12553         double-precision for the calculation instead of scaling.
12554
12555 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12556
12557         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12558         manipulate bits before adding and subtracting TWO52[sx].
12559         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12560         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12561         Likewise.
12562         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12563
12564 2012-03-13  David S. Miller  <davem@davemloft.net>
12565
12566         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12567         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12568         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12569         rtld-global-offsets.h
12570         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12571
12572         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12573         large parameters.
12574
12575         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12576
12577         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12578         'err' in the ifdef scope in which it is actually used.
12579
12580         * nss/nss_db/db-init.c: Include string.h
12581
12582 2012-03-12  David S. Miller  <davem@davemloft.net>
12583
12584         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12585         masking out of the most significant byte of random value used.
12586         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12587         Fix coding style in previous change.
12588
12589         * sysdeps/unix/sysv/linux/kernel-features.h
12590         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12591         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12592         expression.
12593         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12594         later.
12595
12596 2012-03-11  David S. Miller  <davem@davemloft.net>
12597
12598         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12599         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12600         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12601         for 'resultvar' otherwise things get truncated on 64-bit.
12602
12603         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12604         Fix masking out of the most significant byte of random value used.
12605
12606         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12607
12608 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12609
12610         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12611
12612 2012-03-09  David S. Miller  <davem@davemloft.net>
12613
12614         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12615         variables with appropriate CPP guards.
12616         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12617         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12618         on resulting framesize and the management of the outregs buffer for pltexit.
12619         Preserve floating point return values across _dl_call_pltexit call.
12620         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12621         framesize and the management of the outregs buffer for pltexit.
12622         Preserve floating point return values across _dl_call_pltexit
12623         call.
12624         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12625         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12626         (print_exit): Fix format string for return register value.
12627
12628 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12629
12630         * sunrpc/Makefile (others): Add rpcgen.
12631         ($(objpfx)rpcgen): Remove special build rule and dependency on
12632         libc.
12633         * sunrpc/rpcgen.c: New file.
12634
12635 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12636
12637         [BZ #13673]
12638         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12639         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12640         * sysdeps/i386/crti.S: Likewise.
12641         * sysdeps/i386/crtn.S: Likewise.
12642         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12643         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12644         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12645         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12646         * sysdeps/sh/crti.S: Likewise.
12647         * sysdeps/sh/crtn.S: Likewise.
12648         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12649
12650         [BZ #13673]
12651         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12652         with URL.
12653         * locale/programs/locfile-kw.gperf: Likewise.
12654         * locale/programs/charmap-kw.h: Regenerated.
12655         * locale/programs/locfile-kw.h: Likewise.
12656
12657         [BZ #13673]
12658         * intl/plural.y: Replace FSF snail mail address with URL.
12659         * intl/plural.c: Regenerated.
12660
12661 2012-03-09  Richard Henderson  <rth@twiddle.net>
12662
12663         * include/math_private.h: Remove file.
12664         * math/math_private.h: Move file ...
12665         * sysdeps/generic/math_private.h: ... here.
12666
12667         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12668         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12669         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12670
12671         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12672         and <math_private.h>.
12673         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12674         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12675         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12676         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12677         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12678         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12679         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12680         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12681         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12682         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12683         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12684         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12685         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12686         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12687         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12688         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12689         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12690         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12691         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12692         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12693         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12694         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12695         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12696         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12697         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12698         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12699         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12700         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12701         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12702         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12703         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12704         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12705         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12706         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12707         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12708         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12709         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12710         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12711         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12712         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12713         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12714         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12715         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12716         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12717         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12718         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12719         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12720         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12721         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12722         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12723         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12724         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12725         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12726         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12727         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12728         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12729         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12730         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12731         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12732         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12733         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12734         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12735         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12736         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12737         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12738         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12739         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12740         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12741         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12742         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12743         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12744         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12745         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12746         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12747         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12748         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12749         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12750         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12751         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12752         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12753         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12754         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12755         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12756         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12757         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12758         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12759         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12760         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12761         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12762         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12763         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12764         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12765         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12766         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12767         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12768         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12769         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12770         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12771         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12772         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12773         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12774         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12775         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12776         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12777         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12778         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12779         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12780         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12781         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12782         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12783         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12784         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12785         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12786         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12787         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12788         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12789         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12790         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12791         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12792         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12793         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12794         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12795         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12796         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12797         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12798         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12799         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12800         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12801         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12802         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12803         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12804         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12805         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12806         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12807         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12808         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12809         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12810         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12811         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12812         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12813         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12814         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12815         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12816         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12817         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12818         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12819         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12820         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12821         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12822         * sysdeps/ieee754/k_standard.c: Likewise.
12823         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12824         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12825         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12826         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12827         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12828         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12829         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12830         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12831         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12832         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12833         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12834         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12835         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12836         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12837         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12838         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12839         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12840         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12841         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12842         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12843         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12844         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12845         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12846         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12847         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12848         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12849         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12850         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12851         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12852         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12853         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12854         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12855         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12856         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12857         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12858         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12859         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12860         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12861         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12862         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12863         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12864         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12865         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12866         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12867         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12868         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12869         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12870         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12871         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12872         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12873         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12874         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12875         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12876         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12877         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12878         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12879         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12880         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12881         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12882         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12883         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12884         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12885         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12886         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12887         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12888         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12889         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12890         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12891         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12892         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12893         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12894         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12895         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12896         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12897         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12898         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12899         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12900         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12901         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12902         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12903         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12904         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12905         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12906         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12907         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12908         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12909         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12910         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12911         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12912         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12913         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12914         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12915         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12916         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12917         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12918         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12919         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12920         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12921         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12922         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12923         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12924         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12925         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12926         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12927         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12928         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12929         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12930         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12931         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12932         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12933         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12934         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12935         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12936         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12937         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12938         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12939         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12940         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12941         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12942         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12943         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12944         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12945         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12946         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12947         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12948         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12949         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12950         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12951         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12952         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12953         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12954         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12955         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12956         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12957         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12958         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12959         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12960         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12961         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12962         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12963         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12964         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12965         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12966         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12967         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12968         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12969         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12970         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12971         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12972         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12973         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12974         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12975         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12976         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12977         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12978         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12979         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12980         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12981         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12982         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12983         * sysdeps/ieee754/s_lib_version.c: Likewise.
12984         * sysdeps/ieee754/s_matherr.c: Likewise.
12985         * sysdeps/ieee754/s_signgam.c: Likewise.
12986         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12987         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12988         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12989         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12990         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12991         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12992         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12993         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12994         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12995         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12996         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12997         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12998         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12999         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13000         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13001         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13002         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13003         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13004         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13005         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13006         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13007
13008 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13009
13010         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13011         * sunrpc/rpc_main.c: Likewise.
13012         * sunrpc/rpc_svcout.c: Likewise.
13013
13014 2012-03-09  David S. Miller  <davem@davemloft.net>
13015
13016         * include/math_private.h: New file.
13017
13018 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13019
13020         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13021         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13022         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13023         from <bits/socket_type.h>.
13024         (enum __socket_type): Don't define here.
13025         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13026         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13027         bits/socket_type.h.
13028
13029         [BZ #13566]
13030         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13031         checking __USE_GNU.
13032
13033         * Makerules ($(inst_includedir)/%.h): New rule.
13034         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13035         (install-others): Remove variable setting.
13036         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13037
13038 2012-03-08  Richard Henderson  <rth@twiddle.net>
13039
13040         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13041         from macro to inline function; merge with the
13042         !__LIBC_INTERNAL_MATH_INLINES version.
13043         (__ieee754_sqrtf): Likewise.
13044
13045         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13046         to inline function.
13047         (__rintf, __floor, __floorf): Likewise.
13048
13049         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13050         macro to inline function.
13051         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13052
13053         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13054         not <math/math_private.h>.
13055
13056 2012-03-08  David S. Miller  <davem@davemloft.net>
13057
13058         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13059         copyright year.
13060         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13061
13062 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13063
13064         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13065         normalization.
13066         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13067         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13068
13069 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13070
13071         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13072         be defined individually, they must be defined as a block.  Define
13073         S for printing a string instead of hidint the different by using a
13074         macro for adding the 'l'.
13075         * stdio-common/tst-fphex-wide.c: Adjust.
13076
13077 2012-03-07  Marek Polacek  <polacek@redhat.com>
13078
13079         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13080
13081 2012-03-08  Marek Polacek  <polacek@redhat.com>
13082
13083         [BZ #13806]
13084         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13085         * stdio-common/tst-fphex.c: Define a few macros to make the
13086         test reusable.  Use them.
13087         * stdio-common/tst-fphex-wide.c: New file.
13088
13089 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13090
13091         [BZ #6911]
13092         * manual/macros.texi (gnusystems): New macro.
13093         (nongnusystems): Likewise.
13094         (gnulinuxhurdsystems): Likewise.
13095         (gnuhurdsystems): Likewise..
13096         (gnulinuxsystems): Likewise.
13097         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13098         variants of the GNU system, not "GNU system".
13099         * manual/conf.texi: Likewise.
13100         * manual/errno.texi: Likewise.  Update example of errno macro
13101         expansion.
13102         * manual/filesys.texi: Likewise.
13103         (getumask): Document as specific to GNU/Hurd.
13104         * manual/install.texi: Likewise.  Reword some references to
13105         GNU/Linux.
13106         * manual/intro.texi: Likewise.
13107         * manual/io.texi: Likewise.
13108         (File Name Portability): Detail which constraints are inapplicable
13109         to all GNU systems and which are only inapplicable to GNU/Hurd.
13110         * manual/job.texi: Likewise.
13111         * manual/llio.texi: Likewise.
13112         (O_NOCTTY): Document as present on GNU/Linux.
13113         * manual/maint.texi: Likewise.
13114         * manual/memory.texi: Likewise.
13115         * manual/pattern.texi: Likewise.
13116         * manual/pipe.texi: Likewise.
13117         * manual/process.texi: Likewise.
13118         * manual/resource.texi: Likewise.
13119         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13120         child on GNU/Hurd.
13121         * manual/setjmp.texi: Likewise.
13122         * manual/signal.texi: Likewise.
13123         * manual/startup.texi: Likewise.
13124         * manual/stdio.texi: Likewise.
13125         * manual/terminal.texi: Likewise.
13126         (ONLCR): Document as POSIX.
13127         (OXTABS): Document availability on GNU/Linux as XTABS.
13128         (ONOEOT): Document availability separately from other bits.
13129         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13130         * manual/time.texi: Likewise.
13131         * manual/users.texi: Likewise.
13132         * INSTALL: Regenerated.
13133         * sysdeps/gnu/errlist.c: Regenerated.
13134
13135         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13136         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13137         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13138         puts.
13139         * configure: Regenerated.
13140
13141 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13142
13143         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13144         default includes instead of AC_HEADER_CHECK.
13145         * sysdeps/i386/configure: Regenerated.
13146
13147         [BZ #10716]
13148         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13149         * math/s_cacoshf.c (__cacoshf): Likewise.
13150         * math/s_cacoshl.c (__cacoshl): Likewise.
13151         * math/s_casinh.c (__casinh): Set signs of result from argument.
13152         * math/s_casinhf.c (__casinhf): Likewise.
13153         * math/s_casinhl.c (__casinhl): Likewise.
13154         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13155         (casinh_test): Add more tests.
13156         * sysdeps/i386/fpu/libm-test-ulps: Update.
13157         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13158
13159 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13160
13161         * po/zh_TW.po: Update from translation team.
13162
13163         * login/Makefile (distribute): Remove variable.
13164         * catgets/Makefile: Likewise.
13165         * mach/Makefile: Likewise.
13166         * malloc/Makefile: Likewise.
13167         * misc/Makefile: Likewise.
13168         * iconv/Makefile: Likewise.
13169         * nscd/Makefile: Likewise.
13170         * hurd/Makefile: Likewise.
13171         * manual/Makefile: Likewise.
13172         * locale/Makefile: Likewise.
13173         * intl/Makefile: Likewise.
13174         * conform/Makefile: Likewise.
13175         * nss/Makefile: Likewise.
13176         * time/Makefile: Likewise.
13177         * soft-fp/Makefile: Likewise.
13178         * dirent/Makefile: Likewise.
13179         * gmon/Makefile: Likewise.
13180         * po/Makefile: Likewise.
13181         * rt/Makefile: Likewise.
13182         * socket/Makefile: Likewise.
13183         * math/Makefile: Likewise.
13184         * signal/Makefile: Likewise.
13185         * debug/Makefile: Likewise.
13186         * elf/Makefile: Likewise.
13187         * timezone/Makefile: Likewise.
13188         * stdlib/Makefile: Likewise.
13189         * iconvdata/Makefile: Likewise.
13190         * sunrpc/Makefile: Likewise.
13191         * io/Makefile: Likewise.
13192         * argp/Makefile: Likewise.
13193         * inet/Makefile: Likewise.
13194         * hesiod/Makefile: Likewise.
13195         * grp/Makefile: Likewise.
13196         * csu/Makefile: Likewise.
13197         * wctype/Makefile: Likewise.
13198         * crypt/Makefile: Likewise.
13199         * libio/Makefile: Likewise.
13200         * string/Makefile: Likewise.
13201         * nis/Makefile: Likewise.
13202         * resolv/Makefile: Likewise.
13203         * stdio-common/Makefile: Likewise.
13204         * wcsmbs/Makefile: Likewise.
13205         * dlfcn/Makefile: Likewise.
13206         * posix/Makefile: Likewise.
13207
13208         [BZ #6959]
13209         * timezone/Makefile: Don't install timezone files, just the programs
13210         and scripts.
13211
13212 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13213
13214         * nss/databases.def: Add missing gshadow entry.
13215
13216         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13217
13218 2012-03-06  Marek Polacek  <polacek@redhat.com>
13219
13220         [BZ #13726]
13221         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13222         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13223         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13224         * stdio-common/tst-long-dbl-fphex.c: New file.
13225
13226 2012-03-06  David S. Miller  <davem@davemloft.net>
13227
13228         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13229         (set_obp_int): New function.
13230         (get_obp_int): New function.
13231         (__get_clockfreq_via_dev_openprom): Likewise.
13232         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13233         Avoid unused variable warnings on 'val' and use builtin_expect.
13234         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13235         __builtin_expect.
13236         (INLINE_CLONE_SYSCALL): Likewise.
13237
13238 2012-03-05  David S. Miller  <davem@davemloft.net>
13239
13240         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13241
13242 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13243
13244         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13245
13246         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13247         only for |x| >= 40.
13248         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13249
13250 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13251
13252         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13253         Replace gettimeofday with __vdso_gettimeofday.
13254
13255         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13256         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13257         __vdso_clock_gettime and __vdso_getcpu.
13258
13259         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13260         time with __vdso_time.
13261
13262 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13263
13264         * manual/lang.texi (size_t): Note types to which size_t may be
13265         equivalent with the GNU C Library, but do not describe when
13266         differences between them are significant.
13267
13268 2012-03-05  Andreas Jaeger  <aj@suse.de>
13269
13270         * sysdeps/i386/fpu/libm-test-ulps: Update.
13271
13272 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13273
13274         [BZ #3976]
13275         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13276         (__ieee754_pow): Save and restore rounding mode and use
13277         round-to-nearest for main computations.
13278         * math/libm-test.inc (pow_test_tonearest): New function.
13279         (pow_test_towardzero): Likewise.
13280         (pow_test_downward): Likewise.
13281         (pow_test_upward): Likewise.
13282         (main): Call the new functions.
13283         * sysdeps/i386/fpu/libm-test-ulps: Update.
13284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13285
13286         [BZ #3976]
13287         * math/libm-test.inc (cosh_test_tonearest): New function.
13288         (cosh_test_towardzero): Likewise.
13289         (cosh_test_downward): Likewise.
13290         (cosh_test_upward): Likewise.
13291         (sinh_test_tonearest): Likewise.
13292         (sinh_test_towardzero): Likewise.
13293         (sinh_test_downward): Likewise.
13294         (sinh_test_upward): Likewise.
13295         (main): Call the new functions.
13296         * sysdeps/i386/fpu/libm-test-ulps: Update.
13297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13298
13299 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13300
13301         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13302         default stack guard is set in last bytes.
13303         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13304
13305 2012-03-05  Kees Cook  <keescook@chromium.org>
13306
13307         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13308
13309         [BZ #13656]
13310         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13311         possibly allocate from heap instead of stack.
13312         * stdio-common/bug-vfprintf-nargs.c: New file.
13313         * stdio-common/Makefile (tests): Add nargs overflow test.
13314
13315 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13316
13317         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13318
13319 2012-03-03  Marek Polacek  <polacek@redhat.com>
13320
13321         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13322         * math/math_private.h: Likewise.
13323         * stdlib/tst-strtod.c: Likewise.
13324         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13325         * sysdeps/x86_64/bits/atomic.h: Likewise.
13326
13327 2012-03-02  David S. Miller  <davem@davemloft.net>
13328
13329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13330         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13331         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13332         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13333         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13334         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13335         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13336         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13337
13338 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13339
13340         [BZ #13792]
13341         * manual/examples/README: New file, says the example source files
13342         can be used under GPL>=2.
13343         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13344         line containing just "*/".
13345         * manual/examples/add.c: Add copyright header (GPL>=2).
13346         * manual/examples/argp-ex1.c: Likewise.
13347         * manual/examples/argp-ex2.c: Likewise.
13348         * manual/examples/argp-ex3.c: Likewise.
13349         * manual/examples/argp-ex4.c: Likewise.
13350         * manual/examples/atexit.c: Likewise.
13351         * manual/examples/db.c: Likewise.
13352         * manual/examples/dir.c: Likewise.
13353         * manual/examples/dir2.c: Likewise.
13354         * manual/examples/execinfo.c: Likewise.
13355         * manual/examples/filecli.c: Likewise.
13356         * manual/examples/filesrv.c: Likewise.
13357         * manual/examples/fmtmsgexpl.c: Likewise.
13358         * manual/examples/genpass.c: Likewise.
13359         * manual/examples/inetcli.c: Likewise.
13360         * manual/examples/inetsrv.c: Likewise.
13361         * manual/examples/isockad.c: Likewise.
13362         * manual/examples/longopt.c: Likewise.
13363         * manual/examples/memopen.c: Likewise.
13364         * manual/examples/memstrm.c: Likewise.
13365         * manual/examples/mkfsock.c: Likewise.
13366         * manual/examples/mkisock.c: Likewise.
13367         * manual/examples/mygetpass.c: Likewise.
13368         * manual/examples/pipe.c: Likewise.
13369         * manual/examples/popen.c: Likewise.
13370         * manual/examples/rprintf.c: Likewise.
13371         * manual/examples/search.c: Likewise.
13372         * manual/examples/select.c: Likewise.
13373         * manual/examples/setjmp.c: Likewise.
13374         * manual/examples/sigh1.c: Likewise.
13375         * manual/examples/sigusr.c: Likewise.
13376         * manual/examples/stpcpy.c: Likewise.
13377         * manual/examples/strdupa.c: Likewise.
13378         * manual/examples/strftim.c: Likewise.
13379         * manual/examples/strncat.c: Likewise.
13380         * manual/examples/subopt.c: Likewise.
13381         * manual/examples/swapcontext.c: Likewise.
13382         * manual/examples/termios.c: Likewise.
13383         * manual/examples/testopt.c: Likewise.
13384         * manual/examples/testpass.c: Likewise.
13385         * manual/examples/timeval_subtract.c: Likewise.
13386
13387         [BZ #13792]
13388         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13389         function to ...
13390         * manual/timeval_subtract.c.texi: ... here, new file.
13391
13392 2012-03-02  David S. Miller  <davem@davemloft.net>
13393
13394         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13395
13396 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13397
13398         [BZ #3976]
13399         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13400         (__sin): Save and restore rounding mode and use round-to-nearest
13401         for all computations.
13402         (__cos): Save and restore rounding mode and use round-to-nearest
13403         for all computations.
13404         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13405         <fenv.h>.
13406         (tan): Save and restore rounding mode and use round-to-nearest for
13407         all computations.
13408         * math/libm-test.inc (cos_test_tonearest): New function.
13409         (cos_test_towardzero): Likewise.
13410         (cos_test_downward): Likewise.
13411         (cos_test_upward): Likewise.
13412         (sin_test_tonearest): Likewise.
13413         (sin_test_towardzero): Likewise.
13414         (sin_test_downward): Likewise.
13415         (sin_test_upward): Likewise.
13416         (tan_test_tonearest): Likewise.
13417         (tan_test_towardzero): Likewise.
13418         (tan_test_downward): Likewise.
13419         (tan_test_upward): Likewise.
13420         (main): Call the new functions.
13421         * sysdeps/i386/fpu/libm-test-ulps: Update.
13422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13423
13424         [BZ #10135]
13425         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13426         small n, then large n, before computing and testing k+n.
13427         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13428         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13429         Likewise.
13430         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13431         Likewise.
13432         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13433         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13434         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13435         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13436         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13437         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13438         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13439         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13440         * math/libm-test.inc (scalbn_test): Add more tests.
13441         (scalbln_test): Likewise.
13442
13443         * manual/filesys.texi (mode_t): Describe constraints on size and
13444         signedness, not exact equivalence to a particular type.
13445         (ino_t): Likewise.
13446         (ino64_t): Likewise.
13447         (dev_t): Likewise.
13448         (nlink_t): Likewise.
13449         (blkcnt_t): Likewise.
13450         (blkcnt64_t): Likewise.
13451         * manual/llio.texi (off_t): Likewise.
13452
13453         [BZ #3976]
13454         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13455         (__ieee754_exp): Save and restore rounding mode and use
13456         round-to-nearest for all computations.
13457         * math/libm-test.inc (exp_test_tonearest): New function.
13458         (exp_test_towardzero): Likewise.
13459         (exp_test_downward): Likewise.
13460         (exp_test_upward): Likewise.
13461         (main): Call the new functions.
13462         * sysdeps/i386/fpu/libm-test-ulps: Update.
13463         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13464
13465 2012-03-01  Chris Demetriou  <cgd@google.com>
13466
13467         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13468         have predictable order.
13469
13470 2012-03-01  David S. Miller  <davem@davemloft.net>
13471
13472         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13473
13474         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13475         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13476         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13477         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13478
13479         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13480         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13481         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13482         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13483         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13484         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13485         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13486         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13487         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13488
13489         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13490
13491         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13492         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13493         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13494
13495         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13496         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13497         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13498         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13499         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13500         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13501         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13502         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13503         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13504         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13505         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13506         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13507         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13508         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13509         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13510         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13511         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13512         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13513         * sysdeps/sparc/elf/configure: Regenerated.
13514
13515 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13516
13517         * configure.in (AS, LD): Require binutils 2.20 or later.
13518         * configure: Regenerated.
13519         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13520         as required minimum version.
13521         * INSTALL: Regenerated.
13522
13523         [BZ #2541]
13524         [BZ #4108]
13525         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13526         before squaring exponent.
13527         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13528         bottom long double and 27 bits of top long double before squaring
13529         exponent.
13530         * math/libm-test.inc (erfc_test): Add more tests.
13531         * sysdeps/i386/fpu/libm-test-ulps: Update.
13532         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13534
13535 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13536
13537         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13538         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13539         containing bit-fields.
13540         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13541         * soft-fp/single.h (_FP_UNION_S): Likewise.
13542         * soft-fp/double.h (_FP_UNION_D): Likewise.
13543
13544 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13545
13546         [BZ #13786]
13547         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13548         not include ../strcmp.S.
13549         [USE_AS_STRNCASECMP_L]: Likewise.
13550         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13551         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13552         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13553         (__strncasecmp_l_ia32): Define as alias to
13554         __strncasecmp_l_nonascii.
13555
13556         [BZ #5794]
13557         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13558         * sysdeps/i386/fpu/libm-test-ulps: Update.
13559         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13560
13561         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13562         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13563
13564 2012-02-29  Jeff Law  <law@redhat.com>
13565
13566         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13567         out of bounds read.
13568
13569 2012-02-29  Marek Polacek  <polacek@redhat.com>
13570
13571         [BZ #13706]
13572         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13573         * elf/Makefile: Add rules to run tst-unused-dep.out.
13574
13575 2012-02-28  David S. Miller  <davem@davemloft.net>
13576
13577         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13578         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13579         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13580         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13581         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13582         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13583
13584 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13585
13586         * math/libm-test.inc (llround_test): Move one test from
13587         lround_test.  Use TEST_f_L in moved test.
13588         (lround_test): Move misplaced test to llround_test.  Add testcase
13589         from bug 2561.
13590
13591 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13592
13593         * sysdeps/x86_64/fpu/e_expf.S: New file.
13594         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13595
13596 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13597
13598         [BZ #13637]
13599         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13600         of remain_len that may cause incomplete multi-byte character and
13601         false match.
13602         * posix/bug-regex33.c: New file.
13603         * posix/Makefile (tests): Add bug-regex33.
13604
13605 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13606
13607         * manual/macros.texi: New file.
13608         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13609         * manual/libc.texinfo: Include macros.texi.
13610         * manual/creatute.texi: Likewise.
13611         * manual/install.texi: Likewise.
13612         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13613         @glibcadj{} in references to the GNU C Library.
13614         * manual/charset.texi: Likewise.
13615         * manual/conf.texi: Likewise.
13616         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13617         when not using those macros.
13618         * manual/creature.texi: Likewise.
13619         * manual/crypt.texi: Likewise.
13620         * manual/errno.texi: Likewise.
13621         * manual/filesys.texi: Likewise.
13622         * manual/header.texi: Likewise.
13623         * manual/install.texi: Likewise.
13624         * manual/intro.texi: Likewise.
13625         * manual/io.texi: Likewise.
13626         * manual/job.texi: Likewise.
13627         * manual/lang.texi: Likewise.
13628         * manual/libc.texiinfo: Likewise.
13629         * manual/llio.texi: Likewise.
13630         * manual/locale.texi: Likewise.
13631         * manual/maint.texi: Likewise.
13632         * manual/math.texi: Likewise.
13633         * manual/memory.texi: Likewise.
13634         * manual/message.texi: Likewise.
13635         * manual/nss.texi: Likewise.
13636         * manual/pattern.texi: Likewise.
13637         * manual/process.texi: Likewise.
13638         * manual/resource.texi: Likewise.
13639         * manual/search.texi: Likewise.
13640         * manual/setjmp.texi: Likewise.
13641         * manual/signal.texi: Likewise.
13642         * manual/socket.texi: Likewise.
13643         * manual/startup.texi: Likewise.
13644         * manual/stdio.texi: Likewise.
13645         * manual/string.texi: Likewise.
13646         * manual/sysinfo.texi: Likewise.
13647         * manual/syslog.texi: Likewise.
13648         * manual/terminal.texi: Likewise.
13649         * manual/time.texi: Likewise.
13650         * manual/users.texi: Likewise.
13651         * INSTALL: Regenerated.
13652         * NOTES: Regenerated.
13653         * sysdeps/gnu/errlist.c: Regenerated.
13654
13655 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13656
13657         * include/dirent.h: Include <dirstream.h> before
13658         <dirent/dirent.h>.
13659
13660 2012-02-28  David S. Miller  <davem@davemloft.net>
13661
13662         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13663         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13664         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13665         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13666
13667 2012-02-27  David S. Miller  <davem@davemloft.net>
13668
13669         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13670         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13671         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13672         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13673
13674         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13675         frame pointer instead of stack pointer relative arg slot.
13676         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13677         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13678         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13679
13680 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13681
13682         [BZ #3992]
13683         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13684
13685 2012-02-27  David S. Miller  <davem@davemloft.net>
13686
13687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13688         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13691         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13692         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13693         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13694         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13695
13696 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13697
13698         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13699         later.  Allow versions 5-9.
13700         * configure: Regenerated.
13701         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13702         required minimum version and 4.6 as recommended version.  Do not
13703         mention bugs in GCC 2.7 and 2.8.
13704         * INSTALL: Regenerated.
13705
13706 2012-02-27  David S. Miller  <davem@davemloft.net>
13707
13708         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13709         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13710         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13711         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13712         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13713         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13714         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13715         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13716
13717         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13718         manipulate bits before adding and subtracting TWO112[sx].
13719         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13720
13721 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13722
13723         [BZ #13775]
13724         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13725         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13726         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13727         being in POSIX, because they are in 1003.1-2008.
13728
13729         * rt/tst-aio.c: Include <fcntl.h>.
13730         * rt/tst-aio7.c: Likewise.
13731         * rt/tst-aio64.c: Likewise.
13732
13733         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13734
13735 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13736
13737         * manual/install.texi (--with-headers): Describe headers as
13738         interface headers, not private headers.
13739         (Specific advice for GNU/Linux systems): Describe use of headers
13740         from "make headers_install", not private headers from older
13741         kernels.
13742         * INSTALL: Regenerated.
13743         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13744         Change to 2.6.19.
13745         * sysdeps/unix/sysv/linux/configure: Regenerated.
13746
13747         * manual/llio.texi (fclean): Remove documentation.
13748
13749         * manual/Makefile (libc-texi-generated): New variable.  Include
13750         version.texi.
13751         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13752         $(libc-texi-generated), not duplicated list of files.
13753         (version.texi, stamp-version): New rules.
13754         (realclean): Remove $(libc-texi-generated), not individual files
13755         from that list.  Do not remove dir-add.texinfo.
13756         * manual/libc.texinfo: Comment out uses of edition numbers and
13757         references to printed manual.  Remove last-updated dates.
13758         (EDITION): Comment out.
13759         (ISBN): Likewise.
13760         (VERSION, UPDATED): Remove.
13761         (version.texi): Include.
13762
13763 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13764
13765         * sysdeps/posix/spawni.c: Include <signal.h>.
13766         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13767         * sysdeps/pthread/aio_fsync.c: Likewise.
13768
13769 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13770
13771         * conform/Makefile (tests): Run only when not cross-compiling and
13772         when fast-check is not defined.
13773
13774         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13775         * conform/data/limits.h-data: Fixes for POSIX2008.
13776         * conform/run-conformtest.sh: Run all tests.
13777         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13778         headers.
13779         * include/bits/dlfcn.h: Likewise.
13780         * include/langinfo.h: Likewise.
13781         * include/monetary.h: Likewise.
13782         * include/sys/poll.h: Likewise.
13783
13784         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13785         for __USE_GNU.
13786         * posix/spawn.h: Define __need_sigset_t.
13787         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13788         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13789         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13790         to get sigevent_t only.
13791         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13792         only for __USE_GNU.
13793         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13794         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13795         process_vm_writev only for __USE_GNU.
13796         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13797
13798         * conform/Makefile: For now ignore errors from run-conformtest.
13799         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13800         POSIX to avoid namespace pollution.  Don't prepend headers.
13801         * conform/data/aio.h-data: Fixes for POSIX testing.
13802         * conform/data/fcntl.h-data: Likewise.
13803         * conform/data/glob.h-data: Likewise.
13804         * conform/data/grp.h-data: Likewise.
13805         * conform/data/pthread.h-data: Likewise.
13806         * conform/data/pwd.h-data: Likewise.
13807         * conform/data/signal.h-data: Likewise.
13808         * conform/data/spawn.h-data: Likewise.
13809         * conform/data/stdio.h-data: Likewise.
13810         * conform/data/stdlib.h-data: Likewise.
13811         * conform/data/stropts.h-data: Likewise.
13812         * conform/data/sys/mman.h-data: Likewise.
13813         * conform/data/sys/stat.h-data: Likewise.
13814         * conform/data/sys/types.h-data: Likewise.
13815         * conform/data/sys/wait.h-data: Likewise.
13816         * conform/data/time.h-data: Likewise.
13817         * conform/data/unistd.h-data: Likewise.
13818         * conform/data/utime.h-data: Likewise.
13819
13820         * io/sys/stat.h: fchmod was always in POSIX.
13821         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13822         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13823         * rt/aio.h: Define __need_timespec before including <time.h>.
13824         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13825         struct.  Add forward declaration of pthread_attr_t and use it in
13826         sigevent.
13827         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13828         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13829         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13830         always remove CLK_TCK definition.
13831
13832 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13833
13834         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13835
13836 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13837
13838         * conform/run-conformtest.sh: New file.
13839         * conform/Makefile: Run run-conformtest for tests.
13840         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13841         support.
13842
13843         * conform/data/uchar.h-data: New file.
13844         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13845         * conform/data/arpa/inet.h-data: Likewise.
13846         * conform/data/assert.h-data: Likewise.
13847         * conform/data/complex.h-data: Likewise.
13848         * conform/data/cpio.h-data: Likewise.
13849         * conform/data/ctype.h-data: Likewise.
13850         * conform/data/dirent.h-data: Likewise.
13851         * conform/data/dlfcn.h-data: Likewise.
13852         * conform/data/errno.h-data: Likewise.
13853         * conform/data/fcntl.h-data: Likewise.
13854         * conform/data/float.h-data: Likewise.
13855         * conform/data/fmtmsg.h-data: Likewise.
13856         * conform/data/fnmatch.h-data: Likewise.
13857         * conform/data/ftw.h-data: Likewise.
13858         * conform/data/glob.h-data: Likewise.
13859         * conform/data/grp.h-data: Likewise.
13860         * conform/data/iconv.h-data: Likewise.
13861         * conform/data/inttypes.h-data: Likewise.
13862         * conform/data/langinfo.h-data: Likewise.
13863         * conform/data/libgen.h-data: Likewise.
13864         * conform/data/limits.h-data: Likewise.
13865         * conform/data/locale.h-data: Likewise.
13866         * conform/data/math.h-data: Likewise.
13867         * conform/data/monetary.h-data: Likewise.
13868         * conform/data/mqueue.h-data: Likewise.
13869         * conform/data/ndbm.h-data: Likewise.
13870         * conform/data/net/if.h-data: Likewise.
13871         * conform/data/netdb.h-data: Likewise.
13872         * conform/data/netinet/in.h-data: Likewise.
13873         * conform/data/nl_types.h-data: Likewise.
13874         * conform/data/poll.h-data: Likewise.
13875         * conform/data/pthread.h-data: Likewise.
13876         * conform/data/pwd.h-data: Likewise.
13877         * conform/data/regex.h-data: Likewise.
13878         * conform/data/sched.h-data: Likewise.
13879         * conform/data/search.h-data: Likewise.
13880         * conform/data/semaphore.h-data: Likewise.
13881         * conform/data/setjmp.h-data: Likewise.
13882         * conform/data/signal.h-data: Likewise.
13883         * conform/data/spawn.h-data: Likewise.
13884         * conform/data/stdarg.h-data: Likewise.
13885         * conform/data/stdio.h-data: Likewise.
13886         * conform/data/stdlib.h-data: Likewise.
13887         * conform/data/string.h-data: Likewise.
13888         * conform/data/strings.h-data: Likewise.
13889         * conform/data/stropts.h-data: Likewise.
13890         * conform/data/sys/ipc.h-data: Likewise.
13891         * conform/data/sys/mman.h-data: Likewise.
13892         * conform/data/sys/msg.h-data: Likewise.
13893         * conform/data/sys/resource.h-data: Likewise.
13894         * conform/data/sys/select.h-data: Likewise.
13895         * conform/data/sys/sem.h-data: Likewise.
13896         * conform/data/sys/shm.h-data: Likewise.
13897         * conform/data/sys/socket.h-data: Likewise.
13898         * conform/data/sys/stat.h-data: Likewise.
13899         * conform/data/sys/statvfs.h-data: Likewise.
13900         * conform/data/sys/time.h-data: Likewise.
13901         * conform/data/sys/timeb.h-data: Likewise.
13902         * conform/data/sys/times.h-data: Likewise.
13903         * conform/data/sys/types.h-data: Likewise.
13904         * conform/data/sys/uio.h-data: Likewise.
13905         * conform/data/sys/un.h-data: Likewise.
13906         * conform/data/sys/utsname.h-data: Likewise.
13907         * conform/data/sys/wait.h-data: Likewise.
13908         * conform/data/syslog.h-data: Likewise.
13909         * conform/data/tar.h-data: Likewise.
13910         * conform/data/termios.h-data: Likewise.
13911         * conform/data/utime.h-data: Likewise.
13912         * conform/data/utmpx.h-data: Likewise.
13913         * conform/data/varargs.h-data: Likewise.
13914         * conform/data/wchar.h-data: Likewise.
13915         * conform/data/wctype.h-data: Likewise.
13916         * conform/data/wordexp.h-data: Likewise.
13917
13918         * include/stropts.h: New file.
13919         * include/uchar.h: New file.
13920         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13921         * include/assert.h: Likewise.
13922         * include/ctype.h: Likewise.
13923         * include/dirent.h: Likewise.
13924         * include/dlfcn.h: Likewise.
13925         * include/fcntl.h: Likewise.
13926         * include/fnmatch.h: Likewise.
13927         * include/glob.h: Likewise.
13928         * include/grp.h: Likewise.
13929         * include/libio.h: Likewise.
13930         * include/locale.h: Likewise.
13931         * include/math.h: Likewise.
13932         * include/net/if.h: Likewise.
13933         * include/netdb.h: Likewise.
13934         * include/netinet/in.h: Likewise.
13935         * include/pthread.h: Likewise.
13936         * include/pwd.h: Likewise.
13937         * include/regex.h: Likewise.
13938         * include/sched.h: Likewise.
13939         * include/search.h: Likewise.
13940         * include/setjmp.h: Likewise.
13941         * include/signal.h: Likewise.
13942         * include/stdio.h: Likewise.
13943         * include/stdlib.h: Likewise.
13944         * include/string.h: Likewise.
13945         * include/sys/cdefs.h: Likewise.
13946         * include/sys/mman.h: Likewise.
13947         * include/sys/msg.h: Likewise.
13948         * include/sys/resource.h: Likewise.
13949         * include/sys/select.h: Likewise.
13950         * include/sys/socket.h: Likewise.
13951         * include/sys/stat.h: Likewise.
13952         * include/sys/statvfs.h: Likewise.
13953         * include/sys/time.h: Likewise.
13954         * include/sys/times.h: Likewise.
13955         * include/sys/uio.h: Likewise.
13956         * include/sys/utsname.h: Likewise.
13957         * include/sys/wait.h: Likewise.
13958         * include/termios.h: Likewise.
13959         * include/time.h: Likewise.
13960         * include/ulimit.h: Likewise.
13961         * include/unistd.h: Likewise.
13962         * include/utime.h: Likewise.
13963         * include/wchar.h: Likewise.
13964         * include/wctype.h: Likewise.
13965         * include/wordexp.h: Likewise.
13966
13967         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13968
13969         * time/time.h: TIME_UTC must be a macro.
13970         Make timespec_get available for ISO C11 only as well.
13971
13972 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13973
13974         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13975         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13976
13977 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13978
13979         * configure.in: Use -o not -a in test for unsupported multi-arch.
13980
13981 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13982
13983         * manual/texinfo.tex: Update to version 2012-01-19.16.
13984
13985 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13986
13987         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13988
13989 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13990
13991         [BZ #13738]
13992         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13993         * manual/fdl-1.3.texi: New file.
13994         * manual/fdl-1.1.texi: File removed.
13995
13996         [BZ #13738]
13997         * manual/libc.texinfo (FDL_VERSION): New @set.
13998         Use it for mention of FDL in cover text.
13999         (Documentation License): Use it in @include file name.
14000
14001 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14002             Roland McGrath  <roland@hack.frob.com>
14003
14004         [BZ #5461]
14005         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14006         not LONG_LONG_MAX and LONG_LONG_MIN.
14007         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14008         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14009         name.
14010         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14011
14012 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14013
14014         [BZ #2547]
14015         [BZ #11365]
14016         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14017         manipulate bits before adding and subtracting TWO23[sx].
14018         * math/libm-test.inc (nearbyint_test): Add more tests.
14019
14020 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14021
14022         [BZ #2548]
14023         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14024         bits before adding and subtracting TWO23[sx].
14025         * math/libm-test.inc (rint_test): Add more tests.
14026         (rint_test_tonearest): Likewise.
14027         (rint_test_towardzero): Likewise.
14028         (rint_test_downward): Likewise.
14029         (rint_test_upward: Likewise.
14030
14031 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14032
14033         [BZ #10110]
14034         * include/stdc-predef.h: New file.  Extracted from features.h.
14035         * include/features.h: Include stdc-predef.h.
14036         * Makefile (headers): Add stdc-predef.h.
14037         * CONFORMANCE (Compiler limitations): Update.
14038
14039 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14040
14041         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14042
14043 2012-02-21  David S. Miller  <davem@davemloft.net>
14044
14045         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14046         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14047
14048 2012-02-20  David S. Miller  <davem@davemloft.net>
14049
14050         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14051         using a normal save/restore sequence, rather than allocating a
14052         dummy stack frame just to store a frame pointer and restore.
14053         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14054
14055 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14056
14057         * manual/install.texi: Fix stray word in line-wrapped comment.
14058
14059 2012-02-20  David S. Miller  <davem@davemloft.net>
14060
14061         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14062         both binutils and gcc support GOTDATA.
14063
14064         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14065         "rd %pc" in the PIC register setup sequences.
14066
14067         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14068         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14069         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14070         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14071         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14072         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14073         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14074         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14075         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14076         (SYSCALL_ERROR_HANDLER): Likewise.
14077         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14078         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14079         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14080         (SYSCALL_ERROR_HANDLER): Likewise.
14081
14082         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14083         (HAVE_GCC_GOTDATA): New.
14084         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14085         relocation support in both binutils and gcc.
14086         * sysdeps/sparc/elf/configure: Regenerate.
14087
14088         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14089         * sysdeps/sparc/sparc32/elf/configure: Delete.
14090         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14091         * sysdeps/sparc/sparc64/elf/configure: Delete.
14092         * sysdeps/sparc/elf/configure.in: New file.
14093         * sysdeps/sparc/elf/configure: Generate.
14094
14095         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14096         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14097         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14098         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14099         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14100
14101 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14102
14103         * manual/install.texi: Do not mention specific glibc version
14104         numbers.
14105         * manual/libc.texinfo (VERSION, UPDATED): Update.
14106         (@copying): Use @copyright{} and range of years.
14107
14108 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14109
14110         [BZ #13695]
14111         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14112         [crti.S not in sysdirs] (generated): Do not append.
14113         [crti.S not in sysdirs] (omit-deps): Likewise.
14114         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14115         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14116         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14117         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14118         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14119         Likewise.
14120         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14121         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14122         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14123         * csu/defs.awk: Remove file.
14124         * sysdeps/generic/initfini.c: Likewise.
14125         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14126         variable.
14127         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14128         Likewise.
14129
14130 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14131
14132         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14133         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14134         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14135         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14136         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14137         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14138         <bits/epoll.h>.
14139         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14140         (__EPOLL_PACKED): Define to empty if not defined by
14141         <bits/epoll.h>.
14142         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14143         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14144         bits/epoll.h.
14145
14146 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14147
14148         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14149         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14150         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14151         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14152         <bits/timerfd.h>.
14153         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14154         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14155         bits/timerfd.h.
14156
14157 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14158
14159         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14160         in C locale.
14161         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14162         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14163         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14164         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14165
14166 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14167
14168         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14169         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14170
14171 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14172
14173         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14174         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14175         defined.
14176         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14177         Likewise.
14178         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14179         entry for 2.16.
14180
14181 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
14182
14183         * math/w_acos.c: Use non-signaling floating-point comparisons.
14184         * math/w_acosf.c: Likewise.
14185         * math/w_acosh.c: Likewise.
14186         * math/w_acoshf.c: Likewise.
14187         * math/w_acoshl.c: Likewise.
14188         * math/w_acosl.c: Likewise.
14189         * math/w_asin.c: Likewise.
14190         * math/w_asinf.c: Likewise.
14191         * math/w_asinl.c: Likewise.
14192         * math/w_atanh.c: Likewise.
14193         * math/w_atanhf.c: Likewise.
14194         * math/w_atanhl.c: Likewise.
14195         * math/w_exp2.c: Likewise.
14196         * math/w_exp2f.c: Likewise.
14197         * math/w_exp2l.c: Likewise.
14198         * math/w_j0.c: Likewise.
14199         * math/w_j0f.c: Likewise.
14200         * math/w_j0l.c: Likewise.
14201         * math/w_j1.c: Likewise.
14202         * math/w_j1f.c: Likewise.
14203         * math/w_j1l.c: Likewise.
14204         * math/w_jn.c: Likewise.
14205         * math/w_jnf.c: Likewise.
14206         * math/w_log.c: Likewise.
14207         * math/w_log10.c: Likewise.
14208         * math/w_log10f.c: Likewise.
14209         * math/w_log10l.c: Likewise.
14210         * math/w_log2.c: Likewise.
14211         * math/w_log2f.c: Likewise.
14212         * math/w_log2l.c: Likewise.
14213         * math/w_logf.c: Likewise.
14214         * math/w_logl.c: Likewise.
14215         * math/w_sqrt.c: Likewise.
14216         * math/w_sqrtf.c: Likewise.
14217         * math/w_sqrtl.c: Likewise.
14218         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14219         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14220         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14221         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14222         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14223
14224 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14225
14226         [BZ #9739]
14227         * manual/string.texi (strnlen): Use correct parameter name in
14228         equivalent expression.
14229
14230 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14231
14232         [BZ #11174]
14233         * manual/users.texi (seteuid): Consistently use neweuid for
14234         argument name.
14235
14236 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14237
14238         [BZ #13704]
14239         * manual/nss.texi (Services in the NSS configuration): Correct
14240         list of services in example configuration file.
14241
14242 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14243
14244         [BZ #11322]
14245         * manual/arith.texi: Remove statements about negative zero
14246         behaving identically to zero.
14247
14248 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14249
14250         [BZ #5993]
14251         * manual/install.texi: Do not document upgrading from libc5.
14252
14253 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14254
14255         [BZ #4596]
14256         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14257
14258 2012-02-18  David S. Miller  <davem@davemloft.net>
14259
14260         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14261         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14262         %o7 across the call.
14263         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14264         instead.
14265         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14266         SETUP_PIC_REG_LEAF.
14267         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14268         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14269         * sysdeps/sparc/crtn.S: Likewise.
14270
14271 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14272
14273         * aout/Makefile: Remove.
14274
14275 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14276
14277         [BZ #13058]
14278         * manual/examples/argp-ex1.c (main): Format definition in GNU
14279         style.
14280         * manual/examples/argp-ex2.c (main): Likewise.
14281         * manual/examples/argp-ex3.c (main): Likewise.
14282         * manual/examples/argp-ex4.c (main): Likewise.
14283         * manual/examples/longopt.c (main): Use new-style prototype
14284         definition.
14285         * manual/examples/strncat.c (main): Specify return type and use
14286         (void) for arguments.
14287         * manual/examples/subopt.c (main): Use char **argv argument.
14288
14289 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14290
14291         [BZ #5077]
14292         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14293         rounding modes.
14294
14295 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14296
14297         [BZ #6907]
14298         * manual/string.texi (strchr): Change when strchrnul is
14299         recommended.
14300
14301 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14302
14303         [BZ #174]
14304         * manual/locale.texi (setlocale): Document LOCPATH.
14305
14306 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14307
14308         [BZ #10210]
14309         * manual/process.texi (execle): Move @dots{} before last argument.
14310
14311 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14312
14313         [BZ #12047]
14314         * manual/charset.texi (Generic Charset Conversion): Fix typo
14315         (LC_TYPE -> LC_CTYPE).
14316
14317 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14318
14319         [BZ #5805]
14320         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14321         (scalbnf): Likewise.
14322         (scalbnl): Likewise.
14323         (scalbln): Likewise.
14324         (scalblnf): Likewise.
14325         (scalblnl): Likewise.
14326         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14327         (vwarnx): Likewise.
14328         (verr): Likewise.
14329         (verrx): Likewise.
14330         * manual/filesys.texi (telldir): Use braces around return type.
14331         * manual/llio.texi (mmap): Add space after comma.
14332         (mmap64): Likewise.
14333         * manual/math.texi (jn): Use @var{} on parameter names.
14334         (jnf): Likewise.
14335         (jnl): Likewise.
14336         (yn): Likewise.
14337         (ynf): Likewise.
14338         (ynl): Likewise.
14339         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14340         line.
14341         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14342         "...".
14343         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14344         (sched_get_priority_max): Likewise.
14345         * manual/signal.texi (sigvec): Add space after comma.
14346         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14347         names.
14348         (if_indextoname): Likewise.
14349         (if_freenameindex): Likewise.
14350         (sendto): Use ',' instead of '.' in prototype.
14351         * manual/startup.texi (syscall): Use @dots{} instead of literal
14352         "...".
14353         * manual/stdio.texi (__fpending): Separate initial words of
14354         paragraph from @deftypefun line.
14355         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14356         "...".
14357         (vsyslog): Use @var{} on parameter names.
14358         * manual/terminal.texi (stty): Use @var{} on parameter names.
14359         * manual/users.texi (getutmp): Use @var{} on parameter names.
14360         (getutmpx): Likewise.
14361
14362 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14363
14364         [BZ #6884]
14365         * manual/stdio.texi (fopen): Fix typos in description of
14366         ",ccs=STRING".
14367
14368 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14369
14370         [BZ #4026]
14371         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14372         get clock_id definition.
14373
14374 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14375
14376         [BZ #4822]
14377         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14378         (madvise): Cast every argument to void on its own.
14379
14380 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14381
14382         [BZ #9902]
14383         * manual/startup.texi (Exit Status): Fix typo.
14384
14385 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14386
14387         [BZ #10140]
14388         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14389         * manual/examples/argp-ex2.c: Likewise.
14390         * manual/examples/argp-ex3.c: Likewise.
14391
14392 2012-02-16  Richard Henderson  <rth@redhat.com>
14393
14394         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14395         * sysdeps/s390/s390-32/initfini.c: Remove.
14396         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14397         * sysdeps/s390/s390-64/initfini.c: Remove.
14398
14399 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14400
14401         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14402         compiler output for sysdeps/generic/initfini.c.
14403         * sysdeps/sh/elf/initfini.c: Remove file.
14404
14405 2012-02-16  David S. Miller  <davem@davemloft.net>
14406
14407         [BZ #11494]
14408         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14409
14410         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14411         * sysdeps/sparc/crti.S: New file.
14412         * sysdeps/sparc/crtn.S: New file.
14413         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14414         * sysdeps/sparc/sparc64/Makefile: Likewise.
14415
14416 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14417
14418         [BZ #3335]
14419         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14420
14421 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14422
14423         [BZ #4822]
14424         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14425
14426         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14427         (write, read, close): Likewise.
14428         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14429
14430 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14431
14432         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14433         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14434         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14435         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14436         <bits/signalfd.h>.
14437         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14438         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14439         bits/signalfd.h.
14440
14441 2012-02-14  Marek Polacek  <polacek@redhat.com>
14442
14443         * sysdeps/x86_64/crti.S: New file.
14444         * sysdeps/x86_64/crtn.S: New file.
14445         * sysdeps/x86_64/elf/initfini.c: Remove file.
14446
14447 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14448
14449         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14450         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14451         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14452         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14453         <bits/inotify.h>.
14454         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14455         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14456         bits/inotify.h.
14457
14458 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14459
14460         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14461         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14462         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14463         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14464         <bits/eventfd.h>.
14465         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14466         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14467         bits/eventfd.h.
14468
14469 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14470
14471         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14472         __feraiseexcept instead of feraiseexcept.
14473
14474         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14475         nanosleep invocations.
14476         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14477         strings, and add error checking for a nanosleep invocations.
14478
14479 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14480
14481         Replace FSF snail mail address with URLs, as per GNU coding standards.
14482         Most of the snail mail addresses were wrong anyway, and omitting
14483         them makes the source code easier to maintain.  Almost all of the
14484         changes are to license notices and to locale LC_IDENTIFICATION
14485         addresses, except for this one:
14486         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14487         not its snail mail address.
14488
14489 2012-02-09  Richard Henderson  <rth@twiddle.net>
14490
14491         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14492         of kernel-features.h.
14493
14494         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14495
14496 2012-02-08  Marek Polacek  <polacek@redhat.com>
14497
14498         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14499         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14500         * sysdeps/gnu/_G_config.h: Likewise.
14501         * sysdeps/generic/_G_config.h: Likewise.
14502
14503 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14504
14505         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14506         tests.
14507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14508
14509         * sysdeps/powerpc/powerpc32/crti.S: New file.
14510         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14511         * sysdeps/powerpc/powerpc64/crti.S: New file.
14512         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14513
14514         * Makeconfig (have-initfini): Don't set.
14515         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14516         * configure.in (nopic_initfini): Don't substitute.
14517         * config.h.in (HAVE_INITFINI): Don't #undef.
14518         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14519         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14520
14521 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14522
14523         Support crti.S and crtn.S provided directly by architectures.
14524         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14525         [crti.S in sysdirs] (omit-deps): Likewise.
14526         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14527         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14528         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14529         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14530         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14531         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14532         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14533         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14534         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14535         compiler output for sysdeps/generic/initfini.c.
14536         * sysdeps/i386/elf/Makefile: Remove file.
14537         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14538
14539 2012-02-07  Marek Polacek  <polacek@redhat.com>
14540
14541         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14542         * sysdeps/gnu/_G_config.h: Likewise.
14543         * sysdeps/mach/hurd/_G_config.h: Likewise.
14544
14545 2012-02-07  Marek Polacek  <polacek@redhat.com>
14546
14547         * math/Makefile (tests): Add tst-CMPLX2.
14548         * math/tst-CMPLX2.c: New file.
14549
14550 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14551
14552         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14553
14554         * math/libm-test.inc (jn_test): Add missing L suffix.
14555
14556 2012-02-06  Marek Polacek  <polacek@redhat.com>
14557
14558         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14559         * sysdeps/i386/fpu/e_powf.S: Likewise.
14560         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14561         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14562         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14563         * sysdeps/i386/fpu/e_pow.S: Likewise.
14564         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14565         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14566         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14567         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14568         * sysdeps/i386/fpu/e_log2.S: Likewise.
14569         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14570         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14571         * sysdeps/i386/fpu/e_powl.S: Likewise.
14572         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14573         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14574         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14575         * sysdeps/i386/fpu/e_logl.S: Likewise.
14576         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14577         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14578         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14579         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14580         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14581         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14582         * sysdeps/i386/fpu/e_log.S: Likewise.
14583         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14584         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14585         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14586         * sysdeps/i386/fpu/e_logf.S: Likewise.
14587         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14588         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14589         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14590         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14591         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14592         * sysdeps/i386/fpu/e_log10.S: Likewise.
14593         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14594         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14595         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14596         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14597         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14598         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14599         * sysdeps/i386/asm-syntax.h: Likewise.
14600         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14601         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14602         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14603         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14604         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14605         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14606         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14607         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14608         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14609         * sysdeps/powerpc/sysdep.h: Likewise.
14610         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14611         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14612
14613 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14614
14615         [BZ #411]
14616         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14617
14618 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14619
14620         * sysdeps/i386/sysdep.h: Include <features.h>.
14621         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14622         version.
14623
14624 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14625
14626         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14627         Define.
14628         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14629         LOAD_PIC_REG_STR.
14630
14631 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14632
14633         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14634         (SETUP_PIC_REG): Use GET_PC_THUNK.
14635         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14636         macro.
14637
14638 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14639
14640         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14641         for non-PIC compilation.
14642         (SETUP_PIC_REG): Add .p2align directive.
14643         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14644         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14645         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14646         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14647         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14648         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14649         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14650         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14651         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14652         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14653         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14654         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14655         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14656         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14657         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14658         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14659         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14660         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14661         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14662         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14663         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14664         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14665         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14666         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14667         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14668         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14669         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14670         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14671         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14672         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14673         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14674         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14675         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14676         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14677         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14678         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14679         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14680         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14681         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14682         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14683         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14684
14685 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14686
14687         * math/tst-CMPLX.c: Include <stdio.h>.
14688
14689 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14690
14691         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14692         float.
14693         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14694         * sysdeps/sparc/bits/mathdef.h: Likewise.
14695
14696 2012-01-31  Marek Polacek  <polacek@redhat.com>
14697
14698         * libio/libio.h: Don't define _PARAMS.
14699         * locale/programs/config.h: Don't define PARAMS.
14700         * stdlib/strtol_l.c: Likewise.
14701         (__strtol_l): Remove PARAMS from the prototype.
14702
14703 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14704
14705         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14706         names.  Just use the correct names.  Remove unnecessary wrapper
14707         functions.
14708         * malloc/arena.c: Likewise.
14709         * malloc/hooks.c: Likewise.
14710
14711         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14712         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14713         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14714
14715 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14716
14717         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14718         into tail calls.
14719         (update_get_addr): New function.
14720         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14721         GET_ADDR_MODULE parameter.
14722
14723 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14724
14725         * crypt/cert.c: Remove __STDC__ conditionals.
14726         * crypt/crypt-entry.c: Likewise.
14727         * crypt/crypt_util.c: Likewise.
14728         * libio/filedoalloc.c: Likewise.
14729         * libio/fileops.c: Likewise.
14730         * libio/genops.c: Likewise.
14731         * libio/iofclose.c: Likewise.
14732         * libio/iofdopen.c: Likewise.
14733         * libio/iofopen.c: Likewise.
14734         * libio/iofopen64.c: Likewise.
14735         * libio/iogetdelim.c: Likewise.
14736         * libio/iopopen.c: Likewise.
14737         * libio/obprintf.c: Likewise.
14738         * libio/oldfileops.c: Likewise.
14739         * libio/oldiofclose.c: Likewise.
14740         * libio/oldiofdopen.c: Likewise.
14741         * libio/oldiofopen.c: Likewise.
14742         * libio/oldiopopen.c: Likewise.
14743         * libio/wfiledoalloc.c: Likewise.
14744         * libio/wgenops.c: Likewise.
14745         * locale/programs/xmalloc.c: Likewise.
14746         * misc/syslog.c: Likewise.
14747         * stdio-common/xbug.c: Likewise.
14748         * string/memchr.c: Likewise.
14749         * string/memcmp.c: Likewise.
14750         * string/memrchr.c: Likewise.
14751         * string/rawmemchr.c: Likewise.
14752         * sysdeps/posix/getcwd.c: Likewise.
14753         * time/strftime_l.c: Likewise.
14754
14755 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14756
14757         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14758         * config.make.in (config-cflags-sse2avx): Define.
14759         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14760         Fix typo.
14761
14762 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14763
14764         * scripts/config.guess: Update from upstream config git repository.
14765         * scripts/config.sub: Likewise.
14766
14767 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14768
14769         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14770         (EM_NUM): Update.
14771         (R_TILEPRO_*, R_TILEGX_*): New macros.
14772
14773         * scripts/firstversions.awk: Fix bug in version range handling.
14774
14775         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14776
14777         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14778
14779         * include/sys/epoll.h: New file.
14780         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14781         libc_hidden_def.
14782
14783 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14784
14785         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14786         Avoid unnecessary __WORDSIZE == 64 test.
14787         (fmaxf): Use VEX format if possible.
14788         (fmax): Likewise.
14789         (fminf): Likewise.
14790         (fmin): Likewise.
14791
14792         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14793         * math/math_private.h: Remove libc_fegetround* and
14794         libc_fesetround*.
14795         * sysdeps/i386/configure.in: Check for -msse2avx.
14796         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14797         also if SSE2AVX is defined.
14798         Remove libc_fegetround* and libc_fesetround*.
14799         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14800         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14801         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14802         of HAS_YMM_USABLE.
14803         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14804         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14805         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14806         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14807         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14808
14809         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14810
14811 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14812
14813         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14814         size is not set.
14815         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14816
14817 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14818
14819         [BZ #13618]
14820         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14821         relocation.
14822         * Makeconfig (libm): Define.
14823         * elf/Makefile: Add rules to build and run tst-relsort1.
14824         * elf/tst-relsort1.c: New file.
14825         * elf/tst-relsort1mod1.c: New file.
14826         * elf/tst-relsort1mod2.c: New file.
14827
14828 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14829
14830         * math/s_ldexp.c: Remove __STDC__ conditionals.
14831         * math/s_ldexpf.c: Likewise.
14832         * math/s_ldexpl.c: Likewise.
14833         * math/s_nextafter.c: Likewise.
14834         * math/s_nexttowardf.c: Likewise.
14835         * math/s_significand.c: Likewise.
14836         * math/s_significandf.c: Likewise.
14837         * math/s_significandl.c: Likewise.
14838         * math/w_jnl.c: Likewise.
14839         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14840         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14841         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14842         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14843         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14844         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14845         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14846         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14847         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14848         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14849         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14850         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14851         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14852         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14853         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14854         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14855         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14856         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14857         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14858         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14859         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14860         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14861         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14862         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14863         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14864         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14865         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14866         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14867         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14868         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14869         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14870         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14871         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14872         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14873         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14874         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14875         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14876         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14877         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14878         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14879         * sysdeps/ieee754/k_standard.c: Likewise.
14880         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14881         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14882         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14883         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14884         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14885         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14886         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14887         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14888         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14889         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14890         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14891         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14892         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14893         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14894         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14895         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14896         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14897         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14898         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14899         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14900         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14901         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14902         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14903         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14904         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14905         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14906         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14907         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14908         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14909         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14910         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14911         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14912         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14913         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14914         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14915         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14916         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14917         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14918         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14919         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14920         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14921         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14922         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14923         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14924         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14925         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14926         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14927         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14928         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14929         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14930         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14931         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14932         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14933         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14934         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14935         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14936         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14937         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14938         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14939         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14940         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14941         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14942         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14943         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14944         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14945         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14946         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14947         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14948         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14949         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14950         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14951         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14952         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14953         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14954         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14955         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14956         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14957         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14958         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14959         * sysdeps/ieee754/s_matherr.c: Likewise.
14960         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14961         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14962         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14963         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14964
14965 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14966
14967         * crypt/md5.h: Remove __STDC__ conditionals.
14968         * libio/libioP.h: Likewise.
14969         * locale/programs/config.h: Likewise.
14970         * sysdeps/generic/sysdep.h: Likewise.
14971         * sysdeps/i386/asm-syntax.h: Likewise.
14972         * sysdeps/s390/asm-syntax.h: Likewise.
14973         * sysdeps/unix/sysdep.h: Likewise.
14974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14976
14977 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14978
14979         * libio/libio.h: Remove __STDC__ conditionals.
14980         * malloc/obstack.h: Likewise.
14981         * math/complex.h: Likewise.
14982         * math/math.h: Likewise.
14983         * sysdeps/generic/_G_config.h: Likewise.
14984         * sysdeps/gnu/_G_config.h: Likewise.
14985         * sysdeps/mach/hurd/_G_config.h: Likewise.
14986         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14987         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14988         * sysdeps/sparc/bits/mathdef.h: Likewise.
14989
14990 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14991
14992         [BZ #13583]
14993         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14994         Clean up HAS_* macros.
14995         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14996         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14997         possible.
14998         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14999         HAS_AVX.
15000         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15001         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15002         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15003         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15004         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15005
15006 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15007
15008         * elf/tst-unique3.cc (gets): Remove declaration.
15009         * elf/tst-unique3lib.cc (gets): Likewise.
15010         * elf/tst-unique3lib2.cc (gets): Likewise.
15011         * elf/tst-unique4.cc (gets): Likewise.
15012
15013 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15014
15015         * include/stdio.h: Add C++ protection.  Add gets declarations and
15016         definitions.
15017         * debug/tst-chk1.c: Don't declare gets here.
15018         * stdio-common/tst-gets.c: Likewise.
15019
15020 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15021
15022         * posix/glob: Remove directory.
15023
15024 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15025
15026         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15027
15028 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15029
15030         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15031         of the non-standard EPFNOSUPPORT.
15032
15033 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15034
15035         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15036         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15037         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15038
15039 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15040
15041         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15042
15043 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15044
15045         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15046         transient errors.
15047         * nscd/grpcache.c (cache_addgr): Likewise.
15048         * nscd/hstcache.c (cache_addhst): Likewise.
15049         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15050         * nscd/pwdcache.c (cache_addpw): Likewise.
15051         * nscd/servicescache.c (cache_addserv): Likewise.
15052
15053 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15054
15055         * malloc/malloc.c: Various cleanups.
15056         * malloc/hooks.c: Likewise.
15057
15058         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15059         * stdlib/bug-fmtmsg1.c: New file.
15060
15061         * stdlib/fmtmsg.c (init): Add missing unlock.
15062         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15063
15064 2012-01-12  Marek Polacek  <polacek@redhat.com>
15065
15066         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15067         and _GNU_SOURCE.
15068
15069 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15070
15071         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15072         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15073         macro to ensure uniqueness of label name.
15074         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15075         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15076
15077 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15078
15079         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15080
15081         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15082         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15083         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15084         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15085
15086 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15087
15088         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15089
15090         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15091         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15092         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15093
15094         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15095
15096         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15097         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15098         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15099         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15100
15101         * math/bits/math-finite.h: Add ldexp support.
15102
15103 2012-01-10  Marek Polacek  <polacek@redhat.com>
15104
15105         * locale/programs/localedef.h (show_archive_content): Add noreturn
15106         attribute.
15107
15108 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15109
15110         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15111
15112 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15113
15114         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15115
15116         * io/Makefile (headers): Add bits/poll2.h.
15117
15118 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15119
15120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15121         typo #include statement.
15122
15123 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15124
15125         * include/sys/cdefs.h: Define __attribute_alloc_size.
15126         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15127         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15128         * elf/pldd.c: Likewise.
15129         * iconv/iconv_charmap.c: Likewise.
15130         * iconv/iconvconfig.c: Likewise.
15131         * iconv/strtab.c: Likewise.
15132         * locale/programs/locale.c: Likewise.
15133         * locale/programs/localedef.h: Likewise.
15134         * locale/programs/simple-hash.c: Likewise.
15135         * nscd/nscd.h: Likewise.
15136         * nss/makedb.c: Likewise.
15137         * sysdeps/generic/ldconfig.h: Likewise.
15138         * locale/programs/localedef.c: Remove xmalloc prototype.
15139         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15140
15141 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15142
15143         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15144         appropriate.
15145
15146 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15147
15148         * math/Makefile (tests): Add tst-CMPLX.
15149         * math/tst-CMPLX.c: New file.
15150
15151         * math/complex.h (CMPLXL): Fix typo.
15152
15153         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15154         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15155         GLIBC_2.16.
15156         * debug/tst-chk1.c: Add poll and ppoll tests.
15157         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15158         * include/sys/poll.h: Add hidden proto for ppoll.
15159         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15160         * sysdeps/mach/hurd/ppoll.c: Likewise.
15161         * io/ppoll.c: Likewise.
15162         * debug/poll_chk.c: New file.
15163         * debug/ppoll_chk.c: New file.
15164         * include/bits/poll2.h: New file.
15165         * io/bits/poll2.h: New file.
15166
15167         [BZ #1350]
15168         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15169
15170         * configure.in: static is always set to yes.  Remove.
15171         * config.make.in: Don't set build-static.
15172         * Makeconfig: Remove use of build-static.
15173         * dlfcn/Makefile: Likewise.
15174         * elf/Makefile: Likewise.
15175         * math/Makefile: Likewise.
15176         * misc/Makefile: Likewise.
15177         * nptl/Makefile: Likewise.
15178         * sysdeps/mach/hurd/Makefile: Likewise.
15179
15180         * configure.in: PWD_P is not used anymore.
15181         * config.make.in: Remove PWD_P entry.
15182
15183         * configure.in: Remove last remnants of RANLIB.
15184         No need to check for signed size_t anymore.
15185         Don't set libc_commonpagesize and libc_relro_required here for Alpha
15186         and IA-64.
15187         Remove __builtin_expect test because we require at least gcc 3.4.
15188         * aclocal.m4: Likewise.
15189
15190         * wcsmbs/mbrtoc16.c: Implement using towc function.
15191         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15192         * wcsmbs/wcsmbsload.c: Likewise.
15193         * iconv/gconv_simple.c: Likewise.
15194         * iconv/gconv_int.h: Likewise.
15195         * iconv/gconv_builtin.h: Likewise.
15196         * iconv/iconv_prog.c: Remove CHAR16 handling.
15197
15198         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15199
15200         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15201
15202         * configure.in: Remove --with-elf and --enable-bounded options.
15203         Dont set base_machine for ia64.  More non-ELF conditions removed.
15204         Remove testing and setting of leading underscore information.
15205         * config.make.in (build-bounded): Set to no.
15206         * config.h.in: Remove NO_UNDERSCORES entry.
15207         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15208         them.
15209         * csu/start.c: Remove !NO_UNDERSCORE code.
15210         * locale/localeinfo.h: Likewise.
15211         * sysdeps/generic/machine-gmon.h: Likewise.
15212         * sysdeps/generic/sysdep.h: Likewise.
15213         * sysdeps/i386/sysdep.h: Likewise.
15214         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15215         * sysdeps/mach/sysdep.h: Likewise.
15216         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15217         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15218         * sysdeps/sh/sysdep.h: Likewise.
15219         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15220         * sysdeps/unix/i386/sysdep.S: Likewise.
15221         * sysdeps/unix/sparc/start.c: Likewise.
15222         * sysdeps/unix/sparc/sysdep.S: Likewise.
15223         * sysdeps/unix/sparc/sysdep.h: Likewise.
15224         * sysdeps/unix/start.c: Likewise.
15225         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15226         * sysdeps/x86_64/sysdep.h: Likewise.
15227
15228 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15229
15230         [BZ #13553]
15231         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15232         for non-gcc.
15233         * argp/argp-fmtstream.h: Use const instead __const.
15234         * argp/argp.h: Likewise.
15235         * assert/assert.h: Likewise.
15236         * bits/fenv.h: Likewise.
15237         * bits/sched.h: Likewise.
15238         * bits/sigset.h: Likewise.
15239         * bits/sigthread.h: Likewise.
15240         * catgets/nl_types.h: Likewise.
15241         * conform/data/pthread.h-data: Likewise.
15242         * crypt/crypt-private.h: Likewise.
15243         * crypt/crypt.h: Likewise.
15244         * crypt/crypt_util.c: Likewise.
15245         * ctype/ctype.h: Likewise.
15246         * debug/execinfo.h: Likewise.
15247         * debug/mbsnrtowcs_chk.c: Likewise.
15248         * debug/mbsrtowcs_chk.c: Likewise.
15249         * debug/wcsnrtombs_chk.c: Likewise.
15250         * debug/wcsrtombs_chk.c: Likewise.
15251         * debug/wcstombs_chk.c: Likewise.
15252         * dirent/dirent.h: Likewise.
15253         * dlfcn/dlfcn.h: Likewise.
15254         * elf/neededtest4.c: Likewise.
15255         * grp/grp.h: Likewise.
15256         * gshadow/gshadow.h: Likewise.
15257         * iconv/gconv.h: Likewise.
15258         * iconv/gconv_int.h: Likewise.
15259         * iconv/gconv_simple.c: Likewise.
15260         * iconv/iconv.h: Likewise.
15261         * iconv/loop.c: Likewise.
15262         * iconv/skeleton.c: Likewise.
15263         * include/aio.h: Likewise.
15264         * include/aliases.h: Likewise.
15265         * include/argz.h: Likewise.
15266         * include/arpa/inet.h: Likewise.
15267         * include/assert.h: Likewise.
15268         * include/dirent.h: Likewise.
15269         * include/dlfcn.h: Likewise.
15270         * include/execinfo.h: Likewise.
15271         * include/fcntl.h: Likewise.
15272         * include/fenv.h: Likewise.
15273         * include/glob.h: Likewise.
15274         * include/grp.h: Likewise.
15275         * include/libintl.h: Likewise.
15276         * include/mntent.h: Likewise.
15277         * include/netdb.h: Likewise.
15278         * include/pwd.h: Likewise.
15279         * include/rpc/netdb.h: Likewise.
15280         * include/sched.h: Likewise.
15281         * include/search.h: Likewise.
15282         * include/shadow.h: Likewise.
15283         * include/signal.h: Likewise.
15284         * include/stdio.h: Likewise.
15285         * include/stdlib.h: Likewise.
15286         * include/string.h: Likewise.
15287         * include/sys/socket.h: Likewise.
15288         * include/sys/stat.h: Likewise.
15289         * include/sys/statfs.h: Likewise.
15290         * include/sys/statvfs.h: Likewise.
15291         * include/sys/syslog.h: Likewise.
15292         * include/sys/time.h: Likewise.
15293         * include/sys/uio.h: Likewise.
15294         * include/time.h: Likewise.
15295         * include/unistd.h: Likewise.
15296         * include/utmp.h: Likewise.
15297         * include/wchar.h: Likewise.
15298         * include/wctype.h: Likewise.
15299         * inet/aliases.h: Likewise.
15300         * inet/arpa/inet.h: Likewise.
15301         * inet/netinet/ether.h: Likewise.
15302         * inet/netinet/in.h: Likewise.
15303         * intl/libintl.h: Likewise.
15304         * io/bits/fcntl2.h: Likewise.
15305         * io/fcntl.h: Likewise.
15306         * io/ftw.h: Likewise.
15307         * io/sys/poll.h: Likewise.
15308         * io/sys/stat.h: Likewise.
15309         * io/sys/statfs.h: Likewise.
15310         * io/sys/statvfs.h: Likewise.
15311         * io/utime.h: Likewise.
15312         * libio/bits/stdio.h: Likewise.
15313         * libio/bits/stdio2.h: Likewise.
15314         * libio/libio.h: Likewise.
15315         * libio/libioP.h: Likewise.
15316         * libio/stdio.h: Likewise.
15317         * locale/lc-ctype.c: Likewise.
15318         * locale/locale.h: Likewise.
15319         * login/utmp.h: Likewise.
15320         * malloc/arena.c: Likewise.
15321         * malloc/malloc.c: Likewise.
15322         * malloc/malloc.h: Likewise.
15323         * malloc/mcheck.c: Likewise.
15324         * malloc/mtrace.c: Likewise.
15325         * math/bits/mathcalls.h: Likewise.
15326         * math/fenv.h: Likewise.
15327         * math/math_private.h: Likewise.
15328         * misc/bits/error.h: Likewise.
15329         * misc/bits/syslog.h: Likewise.
15330         * misc/err.h: Likewise.
15331         * misc/error.h: Likewise.
15332         * misc/fstab.h: Likewise.
15333         * misc/mntent.h: Likewise.
15334         * misc/regexp.h: Likewise.
15335         * misc/search.h: Likewise.
15336         * misc/sgtty.h: Likewise.
15337         * misc/sys/mman.h: Likewise.
15338         * misc/sys/syslog.h: Likewise.
15339         * misc/sys/uio.h: Likewise.
15340         * misc/sys/xattr.h: Likewise.
15341         * misc/ttyent.h: Likewise.
15342         * nis/rpcsvc/ypclnt.h: Likewise.
15343         * nss/nss.h: Likewise.
15344         * posix/bits/unistd.h: Likewise.
15345         * posix/fnmatch.h: Likewise.
15346         * posix/glob.h: Likewise.
15347         * posix/sched.h: Likewise.
15348         * posix/spawn.h: Likewise.
15349         * posix/sys/wait.h: Likewise.
15350         * posix/unistd.h: Likewise.
15351         * posix/wordexp.h: Likewise.
15352         * pwd/pwd.h: Likewise.
15353         * resolv/netdb.h: Likewise.
15354         * resource/sys/resource.h: Likewise.
15355         * rt/aio.h: Likewise.
15356         * rt/bits/mqueue2.h: Likewise.
15357         * rt/mqueue.h: Likewise.
15358         * shadow/shadow.h: Likewise.
15359         * signal/signal.h: Likewise.
15360         * socket/send.c: Likewise.
15361         * socket/sendto.c: Likewise.
15362         * socket/sys/socket.h: Likewise.
15363         * stdio-common/printf.h: Likewise.
15364         * stdlib/bits/stdlib.h: Likewise.
15365         * stdlib/fmtmsg.h: Likewise.
15366         * stdlib/monetary.h: Likewise.
15367         * stdlib/stdlib.h: Likewise.
15368         * stdlib/ucontext.h: Likewise.
15369         * streams/stropts.h: Likewise.
15370         * string/argz.h: Likewise.
15371         * string/bits/string2.h: Likewise.
15372         * string/string.h: Likewise.
15373         * string/strings.h: Likewise.
15374         * sunrpc/rpc/auth.h: Likewise.
15375         * sunrpc/rpc/auth_des.h: Likewise.
15376         * sunrpc/rpc/clnt.h: Likewise.
15377         * sunrpc/rpc/netdb.h: Likewise.
15378         * sunrpc/rpc/pmap_clnt.h: Likewise.
15379         * sunrpc/rpc/xdr.h: Likewise.
15380         * sysdeps/generic/inttypes.h: Likewise.
15381         * sysdeps/generic/net/if.h: Likewise.
15382         * sysdeps/generic/sys/swap.h: Likewise.
15383         * sysdeps/gnu/net/if.h: Likewise.
15384         * sysdeps/gnu/utmpx.h: Likewise.
15385         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15386         * sysdeps/i386/i486/bits/string.h: Likewise.
15387         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15388         * sysdeps/s390/bits/string.h: Likewise.
15389         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15390         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15391         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15392         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15393         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15394         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15395         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15396         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15397         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15398         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15399         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15400         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15401         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15402         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15403         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15404         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15405         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15406         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15407         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15408         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15409         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15410         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15411         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15412         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15413         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15414         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15415         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15416         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15417         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15418         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15419         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15420         * sysvipc/sys/ipc.h: Likewise.
15421         * sysvipc/sys/msg.h: Likewise.
15422         * sysvipc/sys/sem.h: Likewise.
15423         * sysvipc/sys/shm.h: Likewise.
15424         * termios/termios.h: Likewise.
15425         * time/sys/time.h: Likewise.
15426         * time/time.h: Likewise.
15427         * wcsmbs/bits/wchar2.h: Likewise.
15428         * wcsmbs/uchar.h: Likewise.
15429         * wcsmbs/wchar.h: Likewise.
15430         * wctype/wctype.h: Likewise.
15431
15432         [BZ #13551]
15433         * Makeconfig: Remove all but ELF support including AIX support.
15434         * Makerules: Likewise.
15435         * config.h.in: Likewise.
15436         * config.make.in: Likewise.
15437         * configure: Likewise.
15438         * configure.in: Likewise.
15439         * csu/Makefile: Likewise.
15440         * csu/version.c: Likewise.
15441         * debug/Makefile: Likewise.
15442         * dlfcn/Makefile: Likewise.
15443         * elf/Makefile: Likewise.
15444         * extra-lib.mk: Likewise.
15445         * iconv/Makefile: Likewise.
15446         * include/libc-symbols.h: Likewise.
15447         * include/shlib-compat.h: Likewise.
15448         * resolv/Makefile: Likewise.
15449         * resolv/res_libc.c: Likewise.
15450         * rt/Makefile: Likewise.
15451         * sysdeps/i386/asm-syntax.h: Likewise.
15452         * sysdeps/i386/sysdep.h: Likewise.
15453         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15454         * sysdeps/mach/sysdep.h: Likewise.
15455         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15456         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15457         * sysdeps/s390/asm-syntax.h: Likewise.
15458         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15459         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15460         * sysdeps/sh/sysdep.h: Likewise.
15461         * sysdeps/unix/sparc/sysdep.h: Likewise.
15462         * sysdeps/wordsize-32/divdi3.c: Likewise.
15463         * sysdeps/x86_64/sysdep.h: Likewise.
15464
15465         * argp/Versions: Remove _argp_unlock_xxx.
15466
15467         [BZ #13559]
15468         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15469         * abilist/libBrokenLocale.abilist: Likewise.
15470         * abilist/libanl.abilist: Likewise.
15471         * abilist/libc.abilist: Likewise.
15472         * abilist/libcrypt.abilist: Likewise.
15473         * abilist/libdl.abilist: Likewise.
15474         * abilist/libm.abilist: Likewise.
15475         * abilist/libnsl.abilist: Likewise.
15476         * abilist/libpthread.abilist: Likewise.
15477         * abilist/libresolv.abilist: Likewise.
15478         * abilist/librt.abilist: Likewise.
15479         * abilist/libthread_db.abilist: Likewise.
15480         * abilist/libutil.abilist: Likewise.
15481         * abilist/libnss_db.abilist: New file.
15482
15483         * scripts/abilist.awk: Add support for indirect functions.
15484
15485         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15486
15487         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15488
15489         * shlib-versions: Remove entries for ports architectures.
15490
15491         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15492         files in ports.
15493         * elf/stackguard-macros.h: Remove support for IA-64.
15494         * elf/tst-auditmod1.c: Likewise.
15495         * sysdeps/generic/ldsodefs.h: Likewise.
15496
15497         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15498         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15499         configure files.
15500
15501         [BZ #13552]
15502         * configure.in: Remove --enable-omitfp support.
15503         * FAQ.in: Adjust.
15504         * config.make.in: Likewise.
15505         * Makeconfig: Likewise.
15506         * manual/install.texi: Likewise.
15507
15508         In case anyone cares, the IA-64 architecture could move to ports.
15509         * sysdeps/ia64/*: Removed.
15510         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15511         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15512
15513         [BZ #13555]
15514         * configure.in: Remove entries for unsupported architectures.
15515
15516         [BZ #13533]
15517         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15518         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15519         routines.
15520         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15521         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15522         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15523         fall back to using wcrtomb.
15524         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15525         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15526         renaming.
15527         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15528         * wcsmbs/tst-c16c32-1.c: New file.
15529
15530         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15531         local variable.
15532
15533         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15534
15535         * elf/tst-unique3.cc: Add explicit declaration of gets.
15536         * elf/tst-unique3lib.cc: Likewise.
15537         * elf/tst-unique3lib2.cc: Likewise.
15538         * elf/tst-unique4.cc: Likewise.
15539
15540         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15541
15542 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15543
15544         [BZ #13566]
15545         * assert/assert.h (static_assert): Don't define for C++.
15546         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15547         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15548
15549 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15550
15551         * iconv/loop.c (single loop): Fix assertion in storing of
15552         remaining bytes.
15553
15554         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15555
15556 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15557
15558         * posix/getconf.c: Update copyright year.
15559         * nss/getent.c: Likewise.
15560         * nss/makedb.c: Likewise.
15561         * iconv/iconvconfig.c: Likewise.
15562         * iconv/iconv_prog.c: Likewise.
15563         * elf/ldconfig.c: Likewise.
15564         * elf/pldd.c: Likewise.
15565         * elf/sotruss.ksh: Likewise.
15566         * catgets/gencat.c: Likewise.
15567         * csu/version.c: Likewise.
15568         * elf/ldd.bash.in: Likewise.
15569         * elf/sprof.c (print_version): Likewise.
15570         * locale/programs/locale.c: Likewise.
15571         * locale/programs/localedef.c: Likewise.
15572         * login/programs/pt_chown.c: Likewise.
15573         * nscd/nscd.c (print_version): Likewise.
15574         * debug/xtrace.sh: Likewise.
15575         * malloc/memusage.sh: Likewise.
15576         * malloc/mtrace.pl: Likewise.
15577         * debug/catchsegv.sh: Likewise.
15578
15579 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15580
15581         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15582         pure attribute.
15583
15584 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15585
15586         [BZ #13533]
15587         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15588         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15589         transformations.
15590         * iconv/gconv_int.h: Likewise.
15591         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15592         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15593         from libc for GLIBC_2.16.
15594         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15595         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15596         * wcsmbs/uchar.h: Really define mbstate_t.
15597         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15598         * wcsmbs/c16rtomb.c: New file.
15599         * wcsmbs/mbrtoc16.c: New file.
15600         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15601         for C/POSIX locale.
15602         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15603         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15604
15605         * wcsmbs/wchar.h: Add missing __restrict.
15606
15607 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15608
15609         [BZ #13532]
15610         * time/Makefile (routines): Add timespec_get.
15611         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15612         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15613         timespec for ISO C11.
15614         * time/timespec_get.c: New file.
15615         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15616         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15617
15618         [BZ #13531]
15619         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15620         * stdlib/stdlib.h: Declare aligned_alloc.
15621         * Versions.def: Add GLIBC_2.16 for libc.
15622         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15623
15624         [BZ 13527]
15625         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15626         ISO C11.
15627
15628         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15629         code.
15630
15631         [BZ #13528]
15632         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15633
15634         [BZ #13529]
15635         * assert/assert.h (static_assert): Define.
15636
15637         * version.h: Update for 2.16 development version.
15638
15639         [BZ #13526]
15640         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15641         _ISOC11_SOURCE.
15642
15643         * version.h (RELEASE): Bump for 2.15 release.
15644         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15645
15646         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15647         Patch by Marek Polacek <mpolacek@redhat.com>.
15648
15649         * bits/byteswap.h: Protect long long constants with __extension__.
15650         * sysdeps/i386/bits/byteswap.h: Likewise.
15651         * sysdeps/ia64/bits/byteswap.h: Likewise.
15652         * sysdeps/s390/bits/byteswap.h: Likewise.
15653         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15654
15655 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15656
15657         [BZ #13540]
15658         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15659         destination buffer.
15660         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15661
15662 2011-12-23  Marek Polacek  <polacek@redhat.com>
15663
15664         * elf/dl-addr.c (determine_info): Add inline keyword.
15665         * elf/tst-auditmod4b.c (check_avx): Likewise.
15666         * elf/tst-auditmod6b.c (check_avx): Likewise.
15667         * elf/tst-auditmod6c.c (check_avx): Likewise.
15668         * elf/tst-auditmod7b.c (check_avx): Likewise.
15669
15670 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15671
15672         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15673         !__SSE_MATH__.
15674
15675 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15676
15677         [BZ #13540]
15678         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15679         processing for last bytes.
15680
15681 2011-08-06  Bruno Haible  <bruno@clisp.org>
15682
15683         [BZ #13061]
15684         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15685         U+0385, not to U+1FEE.
15686
15687         [BZ #13062]
15688         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15689         entry for U+00A5 U+0301.
15690
15691 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15692
15693         [BZ #13166]
15694         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15695         buffer for the output is too small.
15696
15697         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15698         optimization.
15699
15700         [BZ #13185]
15701         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15702         SSE flags if possible.
15703
15704 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15705
15706         [BZ #13540]
15707         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15708         processing for last bytes.
15709
15710 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15711
15712         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15713         (syscall-list-default-options, syscall-list-default-condition)
15714         (syscall-list-includes): Define.
15715         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15716         list of ABIs and options and #if conditions for each ABI.  Do not
15717         handle common syscalls between ABIs specially.
15718         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15719         Remove.
15720         (syscall-list-variants, syscall-list-32bit-options)
15721         (syscall-list-32bit-condition, syscall-list-64bit-options)
15722         (syscall-list-64bit-condition): Define.
15723         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15724         (syscall-list-variants, syscall-list-32bit-options)
15725         (syscall-list-32bit-condition, syscall-list-64bit-options)
15726         (syscall-list-64bit-condition): Define.
15727         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15728         Remove.
15729         (syscall-list-variants, syscall-list-32bit-options)
15730         (syscall-list-32bit-condition, syscall-list-64bit-options)
15731         (syscall-list-64bit-condition): Define.
15732         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15733         Remove.
15734         (syscall-list-variants, syscall-list-32bit-options)
15735         (syscall-list-32bit-condition, syscall-list-64bit-options)
15736         (syscall-list-64bit-condition): Define.
15737
15738 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15739
15740         * locale/iso-639.def: Add brx entry.
15741
15742         [BZ #13328]
15743         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15744         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15745
15746         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15747         __feraiseexcept_renamed.
15748
15749 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15750
15751         [BZ #13538]
15752         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15753         EPOLLET with unsigned values.
15754         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15755         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15756
15757         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15758         to large cancellation.
15759         * math/s_cacoshf.c: Likewise.
15760         * math/s_cacoshl.c: Likewise.
15761
15762 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15763
15764         [BZ #13305]
15765         [BZ #12786]
15766         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15767         * math/s_cacoshf.c: Likewise.
15768         * math/s_cacoshl.c: Likewise.
15769
15770 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15771
15772         [BZ #13439]
15773         * iconv/gconv.h: Define __GCONV_SWAP.
15774         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15775         * iconvdata/utf-16.c: Likewise.
15776         * iconvdata/utf-32.c: Likewise.
15777
15778 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15779
15780         [BZ #13524]
15781         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15782         numerator after shifting it by one limb.
15783
15784 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15785
15786         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15787         under [__USE_EXTERN_INLINES].
15788
15789 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15790
15791         [BZ #13446]
15792         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15793
15794 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15795
15796         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15797         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15798         optimized code.
15799         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15800         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15801         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15802         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15803         for strncasecmp/strncasecmp_l compilation.
15804         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15805         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15806
15807 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15808
15809         [BZ #13484]
15810         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15811         of __asm__.
15812
15813 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15814
15815         [BZ #13506]
15816         * time/tzfile.c (__tzfile_read): Check values from file header.
15817
15818 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15819
15820         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15821         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15822         * powerpc/powerpc32/dl-start.S: Likewise.
15823         * powerpc/powerpc32/elf/start.S: Likewise.
15824         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15825         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15826         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15827         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15828         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15829         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15830         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15831         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15832         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15833         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15834         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15835         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15836         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15837         * powerpc/powerpc32/memset.S: Likewise.
15838         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15839         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15840         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15841         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15842         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15843         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15844         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15845         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15846         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15847         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15848         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15849         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15850         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15851
15852 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15853
15854         * math/libm-test.inc: Added more nearbyint tests.
15855         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15856         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15857         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15858         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15859
15860 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15861
15862         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15863         FD_CLOEXEC.
15864
15865 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15866
15867         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15868         Add wcscpy-ssse3 wcscpy-c.
15869         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15870         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15871         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15872         * sysdeps/x86_64/wcschr.S: New file.
15873         * sysdeps/x86_64/wcsrchr.S: New file.
15874         * string/test-strcmp.c: Remove checking of wcscmp function for
15875         wrong alignments.
15876         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15877         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15878         wcsrchr-sse2 wcsrchr-c.
15879         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15880         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15881         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15882         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15883         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15884         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15885         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15886         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15887         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15888         * wcsmbc/wcschr.c (WCSCHR): New macro.
15889
15890 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15891
15892         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15893         * wcsmbs/test-wcsrchr.c: New file.
15894         * string/test-strrchr.c: Add wcsrchr support.
15895         (WIDE): New macro.
15896         * wcsmbs/test-wcscpy.c: New file.
15897         * string/test-strcpy.c: Add wcscpy support.
15898         (WIDE): New macro.
15899
15900 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15901
15902         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15903         the inner loop.
15904
15905 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15906
15907         [BZ #13472]
15908         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15909
15910 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15911
15912         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15913         Minor optimizations.
15914
15915         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15916         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15917         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15918
15919 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15920
15921         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15922         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15923         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15924         for gcc to avoid warnings.
15925         * inet/Makefile (tests): Add tst-checks.
15926         * inet/tst-checks.c: New file.
15927
15928         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15929         warning.
15930
15931         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15932         __wmemcmp_sse2.
15933
15934         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15935         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15936
15937         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15938
15939 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15940
15941         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15942         problem.
15943
15944         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15945
15946 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15947
15948         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15949         conditional on GCC version.
15950         (__arch_compare_and_exchange_val_8_acq)
15951         (__arch_compare_and_exchange_val_16_acq)
15952         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15953         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15954         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15955
15956 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15957
15958         * sysdeps/sh/backtrace.c: New file.
15959
15960 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15961
15962         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15963         parenthesis.
15964
15965 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15966
15967         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15968         falling back to utime.
15969
15970 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15971
15972         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15973         expectations for float.
15974
15975 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15976
15977         * locale/weight.h (findidx): Add parameter len.
15978         * locale/weightwc.h (findidx): Likewise.
15979         * posix/fnmatch_loop.c (FCT): Adjust caller.
15980         * posix/regcomp.c (build_equiv_class): Likewise.
15981         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15982         * posix/regexec.c (check_node_accept_bytes): Likewise.
15983         * string/strcoll_l.c (STRCOLL): Likewise.
15984         * string/strxfrm_l.c (STRXFRM): Likewise.
15985
15986 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15987
15988         * Makefile.in: Remove CVSOPT handling.
15989         * configure.in: Remove use of AC_REVISION.
15990         * iconvdata/Makefile (distribute): No need to filter out CVS.
15991         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15992         handling.
15993
15994 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15995
15996         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15997         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15998         [USE_AS_STRNCASECMP_L]: Likewise.
15999         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16000         NO_TLS_DIRECT_SEG_REFS.
16001         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16002         Fix argument offsets for non-PIC.
16003         [USE_AS_STRNCASECMP_L]: Likewise.
16004         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16005         NO_TLS_DIRECT_SEG_REFS.
16006
16007 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16008
16009         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16010         O_CLOEXEC.
16011         * locale/loadlocale.c (_nl_load_locale): Likewise.
16012
16013 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16014
16015         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16016         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16017         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16018         (SYSCALL_GETTIME): Set errno on error.
16019
16020         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16021         count references to noai6ai_cached.
16022
16023 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16024
16025         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16026
16027         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16028         FD_CLOEXEC for /proc/self/maps.
16029
16030         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16031         FD_CLOEXEC for /proc/meminfo.
16032
16033         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16034         gai.conf.
16035
16036         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16037         FD_CLOEXEC for given file.
16038
16039         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16040
16041         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16042         FD_CLOEXEC for /etc/hosts.
16043         (_gethtent): Likewise.
16044
16045         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16046
16047         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16048         cancellation and set FD_CLOEXEC for /etc/netgroup.
16049
16050         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16051         reading /etc/publickey.
16052
16053         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16054         allow cancellation when reading /etc/group.
16055
16056         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16057         cancellation.
16058         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16059
16060         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16061         when using data file.
16062
16063         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16064
16065         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16066         (write_nis_obj): Use "c" and "e" in fopen.
16067
16068         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16069
16070         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16071
16072         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16073
16074         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16075
16076         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16077         locale.alias.
16078
16079         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16080
16081         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16082
16083         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16084
16085         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16086         file parsing and set FD_CLOEXEC.
16087
16088 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16089
16090         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16091
16092 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16093
16094         * malloc/arena.c (arena_get2): Don't call reused_arena when
16095         _int_new_arena failed.
16096
16097 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16098
16099         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16100         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16101         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16102         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16103         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16104         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16105         to compile strcasecmp and strncasecmp.
16106         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16107         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16108
16109         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16110
16111 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16112
16113         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16114         locale-defines.sym to gen-as-const-headers.
16115         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16116         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16117         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16118         to compile strcasecmp and strncasecmp.
16119         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16120         strcasecmp_l and strncasecmp_l.
16121         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16122         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16123         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16124         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16125         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16126         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16127         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16128         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16129         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16130         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16131         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16132
16133 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16134
16135         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16136         result of SYSDEP_GETTIME_CPU to retval.
16137         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16138         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16139
16140         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16141         variable.
16142
16143         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16144         mantissa words.
16145         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16146
16147         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16148         from unused variable.
16149
16150         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16151         DWARF definitions.
16152         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16153         for assembling.
16154
16155         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16156         over namespaces.
16157
16158         * sunrpc/rpc_prot.c (rejected): Fix case value.
16159
16160         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16161         unsigned long long int to avoid warnings in shift.
16162
16163         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16164         of use of trans.
16165         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16166         variable tmp.
16167
16168         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16169         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16170         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16171
16172         * nis/nis_table.c (nis_list): Use variable of correct type for
16173         result of __follow_path call.
16174
16175 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16176
16177         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16178         of math functions ceil, trunc, floor, round, and sqrt, when
16179         avaliable on the platform.
16180         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16181         name clash.
16182         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16183         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16184         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16185
16186 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
16187
16188         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16189         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16190
16191 2011-11-11  Roland McGrath  <roland@hack.frob.com>
16192
16193         * include/unistd.h: Fix __readlink return type.
16194         Reported by Chris Metcalf <cmetcalf@tilera.com>.
16195
16196 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
16197
16198         * stdlib/ucontext.h: Undo last change for makecontext.
16199
16200 2011-11-11  Andreas Schwab  <schwab@redhat.com>
16201
16202         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16203
16204         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16205         * setjmp/setjmp.h: Mark functions as non-leaf.
16206         * setjmp/bits/setjmp2.h: Likewise.
16207         * stdlib/ucontext.h: Likewise.
16208
16209 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16210
16211         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16212         (reused_arena): Don't check arena limit.
16213         (arena_get2): Atomically check arena limit.
16214
16215 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16216
16217         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16218         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16219
16220         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16221         instructions.
16222
16223 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16224
16225         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16226         handler when locking.
16227
16228         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16229         Fix size of allocated buffer.
16230
16231 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16232
16233         [BZ #10103]
16234         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16235         declarations for long double functions.
16236         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16237
16238         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16239
16240 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16241
16242         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16243         installed.
16244
16245         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16246         is disabled.
16247
16248 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16249
16250         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16251
16252 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16253
16254         * include/alloca.h (stackinfo_alloca_round): Define.
16255         (extend_alloca): Use it.
16256         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16257         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16258         here.
16259
16260         * scripts/check-local-headers.sh: Ignore libaudit.h.
16261
16262         * nscd/Makefile (extra-objs): Make recursively expanded.
16263
16264 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16265
16266         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16267         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16268
16269         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16270         * posix/tst-rfc3484-2.c: Likewise.
16271         * posix/tst-rfc3484-3.c: Likewise.
16272
16273         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16274         process_vm_writev.
16275         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16276         process_vm_writev.
16277         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16278         process_vm_writev from libc using GLIBC_2.15 version.
16279
16280         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16281
16282 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16283
16284         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16285         stack usage.
16286
16287 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16288
16289         [BZ #13367]
16290         * nss/getent.c (initgroups_keys): Show error message in case no group
16291         names are given.
16292
16293         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16294         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16295         __bump_nl_timestamp.
16296         * nscd/connections (nscd_init): When host database is served open
16297         netlink socket and request notification about configuration changes.
16298         (main_loop_poll): Track netlink file descriptor and bump timestamp
16299         in case data becomes available.
16300         (main_loop_epoll): Likewise.
16301         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16302         (database_pers_head): Add extra_data fileds.
16303         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16304         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16305         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16306         Adjust caller.
16307         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16308         in6ai data, call __free_in6ai.
16309         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16310         Add -DHAVE_NETLINK.
16311         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16312         interface information.  Reuse previous data if netlink timestamp
16313         is not changed.
16314         (__bump_nl_timestamp): New function.
16315         (__free_in6ai): New function.
16316
16317 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16318
16319         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16320         close_not_cancel_no_status here.
16321         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16322
16323 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16324
16325         [BZ #13276]
16326         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16327         return value.
16328
16329         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16330         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16331         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16332
16333 2011-07-03  Andreas Jaeger  <aj@suse.de>
16334
16335         [BZ #10709]
16336         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16337         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16338         * math/libm-test.inc (sin_test): Add test case.
16339
16340 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16341
16342         [BZ #13337]
16343         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16344         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16345
16346         * elf/chroot_canon.c (chroot_canon): Cleanups.
16347
16348         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16349
16350         [BZ #13335]
16351         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16352         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16353
16354         * string/test-strchr.c: Make usable for strchrnul testing.
16355         * string/test-strchrnul.c: New file.
16356         * string/Makefile (strop-tests): Add strchrnul.
16357
16358         * po/it.po: Update from translation team.
16359         * po/es.po: Likewise.
16360
16361 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16362
16363         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16364         the three constants needed as parameters.  Drop the others.
16365         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16366         __m128i_strloadu_tolower.
16367         Create and initialize variable zero and use it in all the places
16368         where _mm_setzero_si128 was used.
16369
16370         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16371         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16372         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16373         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16374         anymore.
16375         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16376         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16377         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16378         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16379         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16380         __mpranred, __mptan.
16381         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16382         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16383         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16384         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16385         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16386         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16387         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16388         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16389         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16390
16391 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16392
16393         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16394         redefine if SHARED.
16395         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16396
16397         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16398         wide char related routines to wcsmbs subdir.
16399
16400 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16401
16402         [BZ #13344]
16403         * misc/sys/cdefs.h (__THROWNL): Define.
16404         * posix/unistd.h: Use __THREADNL instead of __THREAD
16405         for memory synchronization functions.
16406
16407 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16408
16409         [BZ #13349]
16410         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16411         doesn't exist.
16412         * manual/stdio.texi (Obstack Streams): Node removed.
16413
16414 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16415
16416         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16417         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16418         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16419
16420         * math/math_private.h (math_force_eval): Allow non-addressable
16421         arguments.
16422         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16423
16424 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16425
16426         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16427         file is not needed.
16428
16429         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16430         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16431         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16432         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16433         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16434         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16435         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16436         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16437         Add AVX variants.
16438         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16439         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16440         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16441         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16442         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16443         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16444         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16445         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16446         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16447         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16448         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16449         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16450         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16451         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16452         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16453         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16454         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16455         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16456         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16457
16458         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16459         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16460
16461         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16462         place.  Use VEX encoding when compiling for AVX.
16463
16464 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16465
16466         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16467         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16468
16469         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16470
16471 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16472
16473         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16474         useless if() expression.
16475         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16476         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16477         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16478         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16479         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16480         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16481         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16482         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16483         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16484         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16485         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16486         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16487         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16488         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16489         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16490         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16491         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16492         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16493         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16494
16495         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16496
16497 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16498
16499         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16500         condition.
16501         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16502
16503 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16504
16505         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16506         .text section.  Avoid duplicate constants.
16507         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16508         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16509         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16510         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16511         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16512         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16513         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16514         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16515         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16516         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16517         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16518         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16519         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16520         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16521         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16522         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16523         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16524         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16525         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16526         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16527         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16528         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16529         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16530         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16531         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16532         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16533         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16534         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16535         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16536         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16537         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16538         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16539         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16540         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16541         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16542         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16543         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16544         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16545         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16546         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16547         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16548         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16549         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16550         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16551         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16552
16553 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16554
16555         * sysdeps/x86_64/dla.h: Move to ...
16556         * sysdeps/x86_64/fpu/dla.h: ...here.
16557         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16558         situations.  Use __builtin_fma only for gcc 4.6 and up.
16559
16560         * config.make.in: Add have-mfma4 entry.
16561         * configure.in: Substitute libc_cv_cc_fma4.
16562         * math/Makefile (dbl-only-routines): Add sincostab.
16563         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16564         Use __sincostab not sincos.
16565         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16566         name is a macro.
16567         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16568         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16569         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16570         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16571         using __copysign.
16572         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16573         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16574         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16575         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16576         and __inv.
16577         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16578         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16579         __copysign.
16580         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16581         define aliases when function name is a macro.
16582         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16583         sysdeps/ieee754/dbl-64/sincos.tbl.
16584         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16585         fma4-enabled routines.
16586         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16587         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16588         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16589         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16590         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16591         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16592         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16593         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16594         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16595         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16596         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16597         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16598         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16599         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16600         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16601         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16602         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16603         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16604         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16605         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16606         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16607         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16608         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16609         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16610         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16611         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16612         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16613         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16614         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16615         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16616
16617         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16618         rename.
16619         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16620         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16621         * sysdeps/ieee754/dbl-64/e_atan2.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/halfulp.c: Likewise.
16625         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16626         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16627
16628 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16629
16630         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16631
16632 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16633
16634         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16635
16636         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16637         prediction.
16638         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16639
16640         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16641         Remove unused variable magic_bits.
16642         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16643
16644         * string/strnlen.c: Define and use STRNLEN macro.
16645         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16646         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16647         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16648         * wcsmbs/wcslen.c: Define and use WCSLEN.
16649         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16650         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16651         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16652         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16653         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16654         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16655         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16656
16657 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16658
16659         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16660         strnlen-sse2-no-bsf.
16661         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16662         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16663         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16664         Add strnlen support.
16665         (USE_AS_STRNLEN): New macro.
16666         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16667         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16668         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16669         * sysdeps/x86_64/wcslen.S: New file.
16670
16671 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16672
16673         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16674         XMM-moves are used for copying on small sizes.
16675
16676 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16677
16678         * wcsmbs/Makefile (strop-tests): Add wcschr.
16679         * wcsmbs/test-wcschr.c: New file.
16680         * string/test-strchr.c: Update.
16681         Add wcschr support.
16682         (WIDE): New macro.
16683
16684 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16685
16686         * wcsmbs/Makefile (strop-tests): Add wcslen.
16687         * wcsmbs/test-wcslen.c: New file.
16688         * string/test-strlen.c: Update.
16689         Add wcslen support.
16690         (WIDE): New macro.
16691
16692 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16693
16694         * po/it.po: Update from translation team.
16695
16696 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16697
16698         * sysdeps/x86_64/wcscmp.S: Update.
16699         Fix wrong comparison semantics.
16700         wcscmp shall use signed comparison not unsigned.
16701         Don't use substraction to avoid overflow bug.
16702         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16703         * wcsmbc/wcscmp.c: Likewise.
16704         * string/test-strcmp.c: Likewise.
16705         Add new tests to check cases with negative values.
16706
16707 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16708
16709         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16710         * sysdeps/x86_64/dla.h: ...here.  New file.
16711         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16712         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16713         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16714         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16715         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16716         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16717         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16718         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16719         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16720
16721 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16722
16723         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16724         __ynl_finite aliases.
16725
16726 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16727
16728         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16729
16730         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16731         define DLA_FMA.
16732         [DLA_FMA] (EMULV): Use DLA_FMA.
16733         [DLA_FMA] (MUL12): Use EMULV.
16734         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16735         that are not needed.
16736         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16737         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16738         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16739         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16740         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16741         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16742         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16743
16744 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16745
16746         * math/s_nan.c: Undef __nan.
16747         * math/s_nanf.c: Undef __nanf.
16748         * math/s_nanl.c: Undef __nanl.
16749         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16750         "math_private.h".
16751
16752 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16753
16754         * math/s_catan.c: Add branch predictions.
16755         * math/s_catanf.c: Likewise.
16756         * math/s_catanh.c: Likewise.
16757         * math/s_catanhf.c: Likewise.
16758         * math/s_catanhl.c: Likewise.
16759         * math/s_catanl.c: Likewise.
16760         * math/s_cexp.c: Likewise.
16761         * math/s_cexpf.c: Likewise.
16762         * math/s_cexpl.c: Likewise.
16763         * math/s_clog.c: Likewise.
16764         * math/s_clog10.c: Likewise.
16765         * math/s_clog10f.c: Likewise.
16766         * math/s_clog10l.c: Likewise.
16767         * math/s_clogf.c: Likewise.
16768         * math/s_clogl.c: Likewise.
16769         * math/s_csqrt.c: Likewise.
16770         * math/s_csqrtf.c: Likewise.
16771         * math/s_csqrtl.c: Likewise.
16772         * math/s_ctanf.c: Likewise.
16773         * math/s_ctanh.c: Likewise.
16774         * math/s_ctanhf.c: Likewise.
16775         * math/s_ctanhl.c: Likewise.
16776         * math/s_ctanl.c: Likewise.
16777
16778         * math/math_private.h: Define __nan, __nanf, __nanl.
16779         * math/s_cacosh.c: Include <math_private.h>.
16780         * math/s_cacoshl.c: Likewise.
16781         * math/s_casinh.c: Likewise.
16782         * math/s_casinhf.c: Likewise.
16783         * math/s_casinhl.c: Likewise.
16784         * math/s_ccos.c: Rely entire on ccosh.
16785         * math/s_ccosf.c: Rely entire on ccoshf.
16786         * math/s_ccosl.c: Rely entirely on ccoshl.
16787         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16788         Remove tests for FE_INVALID.
16789         * math/s_ccoshf.c: Likewise.
16790         * math/s_ccoshl.c: Likewise.
16791         * math/s_csin.c: Likewise.
16792         * math/s_csinf.c: Likewise.
16793         * math/s_csinh.c Likewise.
16794         * math/s_csinhf.c: Likewise.
16795         * math/s_csinhl.c: Likewise.
16796         * math/s_csinl.c: Likewise.
16797         * math/s_ctan.c: Likewise.
16798         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16799         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16800         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16801
16802 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16803
16804         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16805         compilation problems.
16806
16807         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16808         __builtin_expect.
16809
16810 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16811
16812         * sysdeps/i386/configure.in: Test for -mfma4 option.
16813         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16814         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16815         COMMON_CPUID_INDEX_80000001.
16816         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16817         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16818         use it if FMA3 is not supported.
16819         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16820
16821         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16822         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16823
16824 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16825
16826         [BZ #12892]
16827         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16828         it would create a cycle with a link time dependency.
16829
16830 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16831
16832         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16833         instruction.
16834         * string/Makefile (strop-tests): Add rawmemchr.
16835         * string/test-rawmemchr.c: New file.
16836
16837         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16838         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16839         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16840         when compiling str{,n}casecmp and when AVX is available.  Hook up
16841         new optimized code in initializers.
16842
16843 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16844
16845         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16846         __feraiseexcept instead of feraiseexcept.
16847
16848 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16849
16850         * math/math_private.h: Define defaults for libc_fetestexcept and
16851         libc_feupdateenv.
16852         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16853         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16854         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16855         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16856         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16857         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16858         libc_fetestexcept and libc_feupdateenv.
16859
16860         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16861         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16862         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16863         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16864         libc_feholdexcept_setround.
16865
16866         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16867         Add s_nearbyint-c and s_nearbyintf-c.
16868         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16869         nearbyintf inlines.
16870         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16871         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16872         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16873         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16874
16875         * math/math_private.h: Define defaults for libc_fegetround,
16876         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16877         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16878         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16879         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16880         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16881         standard functions.
16882         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16883         Remove comments and hacks for old compiler versions.
16884         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16885         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16886         libc_feholdexceptl.
16887
16888 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16889
16890         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16891         (__feraiseexcept_renamed): Add __NTH.
16892         (feraiseexcept): Add __NTH.  Rename local variables to fix
16893         namespace violations.
16894
16895 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16896
16897         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16898
16899         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16900
16901         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16902         recently added interfaces.
16903         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16904
16905         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16906         about macro parameter expansion.
16907
16908         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16909         __NO_MATH_INLINES is defined.  Cleanups.
16910
16911         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16912         and __floorf is target has SSE4.1.
16913         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16914         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16915         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16916         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16917
16918         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16919         name.
16920         (floorf): Likewise.
16921
16922         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16923
16924 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16925
16926         * misc/sys/cdefs.h: Fix last change.
16927
16928         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16929         database lookup.
16930
16931 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16932
16933         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16934
16935         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16936         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16937         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16938         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16939         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16940         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16941         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16942         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16943         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16944         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16945         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16946         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16947         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16948         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16949         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16950         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16951         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16952         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16953         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16954         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16955         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16956         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16957
16958         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16959         ceil, ceilf, floor, floorf.
16960
16961         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16962         Perform IRELATIVE relocations last.
16963
16964         * elf/do-rel.h: Add another parameter nrelative, replacing the
16965         local variable with the same name.  Change name of the function
16966         to end in Rel or Rela (uppercase).
16967         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16968         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16969         elf_dynamic_do_##reloc function.
16970
16971 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16972
16973         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16974         is sufficient, at least on modern CPUs.
16975
16976         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16977
16978         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16979         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16980
16981         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16982         __expl_finite.
16983         * math/bits/math-finite.h: Add entries for exp.
16984         * math/e_expl.c: Add __*_finite alias.
16985         * sysdeps/i386/fpu/e_exp.S: Likewise.
16986         * sysdeps/i386/fpu/e_expf.S: Likewise.
16987         * sysdeps/i386/fpu/e_expl.c: Likewise.
16988         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16989         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16990         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16991         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16992         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16993         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16994         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16995
16996         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16997         is sufficient, at least on modern CPUs.
16998
16999         * ctype/ctype-info.c (__ctype_init): Define.
17000         * include/ctype.h (__ctype_init): Declare.
17001         (__ctype_b_loc): The variable is always initialized.
17002         (__ctype_toupper_loc): Likewise.
17003         (__ctype_tolower_loc): Likewise.
17004         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17005         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17006
17007 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17008
17009         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17010
17011         * configure.in: Also look in $cxxmachine/include for C++ system
17012         headers.
17013
17014 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17015
17016         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17017         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17018         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17019         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17020         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17021         (USE_AS_WMEMCMP): New macro.
17022         Fixing indents.
17023         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17024         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17025         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17026         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17027         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17028         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17029         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17030         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17031         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17032         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17033         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17034         (USE_AS_WMEMCMP): New macro.
17035         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17036         * sysdeps/string/test-memcmp.c: Update.
17037         Fix simple_wmemcmp.
17038         Add new tests.
17039         * wcsmbs/wmemcmp.c: Update.
17040         (WMEMCMP): New macro.
17041         Fix overflow bug.
17042
17043 2011-10-12  Andreas Jaeger  <aj@suse.de>
17044
17045         [BZ #13268]
17046         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17047
17048 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17049
17050         * libio/iofwide.c (do_length): Avoid warning.
17051
17052         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17053
17054 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17055
17056         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17057
17058         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17059         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17060         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17061         * sysdeps/i386/i686/fpu/e_log.S: New file.
17062         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17063         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17064
17065         * ctype/ctype.h: Add support for inlined isXXX functions when
17066         compiling C++ code.
17067
17068 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17069
17070         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17071
17072         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17073
17074 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17075
17076         [BZ #13291]
17077         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17078
17079 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17080
17081         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17082         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17083         feraiseexcept.
17084
17085         * sysdeps/x86_64/memrchr.S: Check for zero size.
17086
17087         * string/stratcliff.c: Add memrchr tests.
17088
17089 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17090
17091         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17092         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17093         rawmemchr-sse2 rawmemchr-sse2-bsf.
17094         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17095         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17096         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17097         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17098         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17099         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17100         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17101         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17102         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17103         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17104         * string/memrchr.c (MEMRCHR): New macro.
17105
17106 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17107
17108         Add integration with gcc's -ffinite-math-only and optimize wrapper
17109         functions in libm.
17110         * Versions.def: Define GLIBC_2.15 version for libm.
17111         * math/Makefile (headers): Add bits/math-finite.h.
17112         * math/bits/math-finite.h: New file.
17113         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17114         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17115         * math/e_acoshl.c: Add __*_finite alias.
17116         * math/e_acosl.c: Likewise.
17117         * math/e_asinl.c: Likewise.
17118         * math/e_atan2l.c: Likewise.
17119         * math/e_atanhl.c: Likewise.
17120         * math/e_coshl.c: Likewise.
17121         * math/e_exp10.c: Likewise.
17122         * math/e_exp10f.c: Likewise.
17123         * math/e_exp10l.c: Likewise.
17124         * math/e_exp2l.c: Likewise.
17125         * math/e_fmodl.c: Likewise.
17126         * math/e_gammal_r.c: Likewise.
17127         * math/e_hypotl.c: Likewise.
17128         * math/e_j0l.c: Likewise.
17129         * math/e_j1l.c: Likewise.
17130         * math/e_jnl.c: Likewise.
17131         * math/e_lgammal_r.c: Likewise.
17132         * math/e_log10l.c: Likewise.
17133         * math/e_log2l.c: Likewise.
17134         * math/e_logl.c: Likewise.
17135         * math/e_powl.c: Likewise.
17136         * math/e_sinhl.c: Likewise.
17137         * math/e_sqrtl.c: Likewise.
17138         * math/e_scalb.c: Completely rewritten and optimized.
17139         * math/e_scalbf.c: Likewise.
17140         * math/e_scalbl.c: Likewise.
17141         * math/w_acos.c: Likewise.
17142         * math/w_acosf.c: Likewise.
17143         * math/w_acosl.c: Likewise.
17144         * math/w_acosh.c: Likewise.
17145         * math/w_acoshf.c: Likewise.
17146         * math/w_acoshl.c: Likewise.
17147         * math/w_asin.c: Likewise.
17148         * math/w_asinf.c: Likewise.
17149         * math/w_asinl.c: Likewise.
17150         * math/w_atan2.c: Likewise.
17151         * math/w_atan2f.c: Likewise.
17152         * math/w_atan2l.c: Likewise.
17153         * math/w_atanh.c: Likewise.
17154         * math/w_atanhf.c: Likewise.
17155         * math/w_atanhl.c: Likewise.
17156         * math/w_exp10.c: Likewise.
17157         * math/w_exp10f.c: Likewise.
17158         * math/w_exp10l.c: Likewise.
17159         * math/w_fmod.c: Likewise.
17160         * math/w_fmodf.c: Likewise.
17161         * math/w_fmodl.c: Likewise.
17162         * math/w_j0.c: Likewise.
17163         * math/w_j0f.c: Likewise.
17164         * math/w_j0l.c: Likewise.
17165         * math/w_j1.c: Likewise.
17166         * math/w_j1f.c: Likewise.
17167         * math/w_j1l.c: Likewise.
17168         * math/w_jn.c: Likewise.
17169         * math/w_jnf.c: Likewise.
17170         * math/w_log.c: Likewise.
17171         * math/w_logf.c: Likewise.
17172         * math/w_logl.c: Likewise.
17173         * math/w_log10.c: Likewise.
17174         * math/w_log10f.c: Likewise.
17175         * math/w_log10l.c: Likewise.
17176         * math/w_log2.c: Likewise.
17177         * math/w_log2f.c: Likewise.
17178         * math/w_log2l.c: Likewise.
17179         * math/w_pow.c: Likewise.
17180         * math/w_powf.c: Likewise.
17181         * math/w_powl.c: Likewise.
17182         * math/w_remainder.c: Likewise.
17183         * math/w_remainderf.c: Likewise.
17184         * math/w_remainderl.c: Likewise.
17185         * math/w_scalb.c: Likewise.
17186         * math/w_scalbf.c: Likewise.
17187         * math/w_scalbl.c: Likewise.
17188         * math/w_sqrt.c: Likewise.
17189         * math/w_sqrtf.c: Likewise.
17190         * math/w_sqrtl.c: Likewise.
17191         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17192         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
17193         used.
17194         * math/math_private.h: Declare __kernel_standard_f.
17195         * math/w_cosh.c: Remove cruft and optimize a bit.
17196         * math/w_coshf.c: Likewise.
17197         * math/w_coshl.c: Likewise.
17198         * math/w_exp2.c: Likewise.
17199         * math/w_exp2f.c: Likewise.
17200         * math/w_exp2l.c: Likewise.
17201         * math/w_hypot.c: Likewise.
17202         * math/w_hypotf.c: Likewise.
17203         * math/w_hypotl.c: Likewise.
17204         * math/w_lgamma.c: Likewise.
17205         * math/w_lgamma_r.c: Likewise.
17206         * math/w_lgammaf.c: Likewise.
17207         * math/w_lgammaf_r.c: Likewise.
17208         * math/w_lgammal.c: Likewise.
17209         * math/w_lgammal_r.c: Likewise.
17210         * math/w_sinh.c: Likewise.
17211         * math/w_sinhf.c: Likewise.
17212         * math/w_sinhl.c: Likewise.
17213         * math/w_tgamma.c: Likewise.
17214         * math/w_tgammaf.c: Likewise.
17215         * math/w_tgammal.c: Likewise.
17216         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17217         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17218         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17219         Minor optimizations.  Pretty printing.  Remove cruft.
17220         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17221         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17222         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17223         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17224         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17225         * sysdeps/i386/fpu/e_asin.S: Likewise.
17226         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17227         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17228         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17229         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17230         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17231         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17232         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17233         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17234         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17235         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17236         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17237         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17238         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17239         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17240         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17241         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17242         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17243         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17244         * sysdeps/i386/fpu/e_log.S: Likewise.
17245         * sysdeps/i386/fpu/e_log10.S: Likewise.
17246         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17247         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17248         * sysdeps/i386/fpu/e_log2.S: Likewise.
17249         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17250         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17251         * sysdeps/i386/fpu/e_logf.S: Likewise.
17252         * sysdeps/i386/fpu/e_logl.S: Likewise.
17253         * sysdeps/i386/fpu/e_pow.S: Likewise.
17254         * sysdeps/i386/fpu/e_powf.S: Likewise.
17255         * sysdeps/i386/fpu/e_powl.S: Likewise.
17256         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17257         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17258         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17259         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17260         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17261         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17262         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17263         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17264         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17265         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17266         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17267         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17268         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17269         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17270         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17271         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17272         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17273         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17274         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17275         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17276         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17277         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17278         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17279         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17280         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17281         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17282         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17283         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17284         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17285         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17286         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17287         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17288         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17289         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17290         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17291         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17292         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17293         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17294         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17295         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17296         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17297         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17298         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17299         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17300         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17301         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17302         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17303         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17304         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17305         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17306         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17307         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17308         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17309         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17310         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17311         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17312         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17313         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17314         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17315         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17316         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17317         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17318         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17319         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17320         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17321         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17322         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17323         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17324         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17325         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17326         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17327         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17328         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17329         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17330         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17331         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17332         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17333         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17334         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17335         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17336         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17337         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17338         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17339         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17340         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17341         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17342         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17343         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17344         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17345         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17346         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17347         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17348         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17349         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17350         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17351         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17352         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17353         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17354         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17355         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17356         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17357         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17358         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17359         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17360         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17361         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17362         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17363         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17364         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17365         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17366         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17367         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17368         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17369         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17370         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17371         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17372         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17373         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17374         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17375         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17376         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17377         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17378         (__isnanf): Likewise.
17379         (__isinf_ns): Likewise.
17380         (__isinf_nsf): Likewise.
17381         (__finite): Likewise.
17382         (__finitef): Likewise.
17383         (__ieee754_sqrt): Define as macro.
17384         (__ieee754_sqrtf): Define as macro.
17385         (__ieee754_sqrtl): Define as macro.
17386         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17387         inlined copy.
17388         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17389         __FINITE_MATH_ONLY__ consistent.
17390         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17391
17392 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17393
17394         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17395         of rawmemchr.
17396
17397         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17398
17399 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17400
17401         * po/ja.po: Update from translation team.
17402
17403 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17404
17405         * locale/programs/locarchive.c (prepare_address_space): New function.
17406         (create_archive, enlarge_archive, open_archive): Use it.
17407
17408         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17409         inside [SHARED], where it is used.
17410
17411         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17412
17413         * nss/getent.c (netgroup_keys): Remove unused variable.
17414         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17415
17416 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17417
17418         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17419         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17420         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17421         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17422         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17423         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17424         * math/Makefile (libm-calls): Add s_isinf_ns.
17425         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17426         * math/multc3.c: Likewise.
17427         * math/s_casin.c: Likewise.
17428         * math/s_casinf.c: Likewise.
17429         * math/s_casinl.c: Likewise.
17430         * math/s_ccos.c: Likewise.
17431         * math/s_ccosf.c: Likewise.
17432         * math/s_ccosl.c: Likewise.
17433         * math/s_ctan.c: Likewise.
17434         * math/s_ctanf.c: Likewise.
17435         * math/s_ctanh.c: Likewise.
17436         * math/s_ctanhf.c: Likewise.
17437         * math/s_ctanhl.c: Likewise.
17438         * math/s_ctanl.c: Likewise.
17439         * math/w_fmod.c: Likewise.
17440         * math/w_fmodf.c: Likewise.
17441         * math/w_fmodl.c: Likewise.
17442         * math/w_remainder.c: Likewise.
17443         * math/w_remainderf.c: Likewise.
17444         * math/w_remainderl.c: Likewise.
17445         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17446         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17447         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17448         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17449         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17450         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17451         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17452         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17453
17454         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17455         of the number.
17456         * stdio-common/printf_fphex.c: Likewise.
17457         * stdio-common/printf_size.c: Likewise.
17458
17459         * math/e_exp10.c: Include math_private.h using <...> not "...".
17460         * math/e_exp10f.c: Likewise.
17461         * math/e_exp10l.c: Likewise.
17462         * math/e_exp2l.c: Likewise.
17463         * math/e_j0l.c: Likewise.
17464         * math/e_j1l.c: Likewise.
17465         * math/e_jnl.c: Likewise.
17466         * math/e_lgammal_r.c: Likewise.
17467         * math/e_rem_pio2l.c: Likewise.
17468         * math/e_scalb.c: Likewise.
17469         * math/e_scalbf.c: Likewise.
17470         * math/e_scalbl.c: Likewise.
17471         * math/k_cosl.c: Likewise.
17472         * math/k_sinl.c: Likewise.
17473         * math/k_tanl.c: Likewise.
17474         * math/s_cacoshf.c: Likewise.
17475         * math/s_catan.c: Likewise.
17476         * math/s_catanf.c: Likewise.
17477         * math/s_catanh.c: Likewise.
17478         * math/s_catanhf.c: Likewise.
17479         * math/s_catanhl.c: Likewise.
17480         * math/s_catanl.c: Likewise.
17481         * math/s_ccosh.c: Likewise.
17482         * math/s_ccoshf.c: Likewise.
17483         * math/s_ccoshl.c: Likewise.
17484         * math/s_cexp.c: Likewise.
17485         * math/s_cexpf.c: Likewise.
17486         * math/s_cexpl.c: Likewise.
17487         * math/s_clog.c: Likewise.
17488         * math/s_clog10.c: Likewise.
17489         * math/s_clog10f.c: Likewise.
17490         * math/s_clog10l.c: Likewise.
17491         * math/s_clogf.c: Likewise.
17492         * math/s_clogl.c: Likewise.
17493         * math/s_csin.c: Likewise.
17494         * math/s_csinf.c: Likewise.
17495         * math/s_csinh.c: Likewise.
17496         * math/s_csinhf.c: Likewise.
17497         * math/s_csinhl.c: Likewise.
17498         * math/s_csinl.c: Likewise.
17499         * math/s_csqrt.c: Likewise.
17500         * math/s_csqrtf.c: Likewise.
17501         * math/s_csqrtl.c: Likewise.
17502         * math/s_ctan.c: Likewise.
17503         * math/s_ctanf.c: Likewise.
17504         * math/s_ctanh.c: Likewise.
17505         * math/s_ctanhf.c: Likewise.
17506         * math/s_ctanhl.c: Likewise.
17507         * math/s_ctanl.c: Likewise.
17508         * math/s_ldexp.c: Likewise.
17509         * math/s_ldexpf.c: Likewise.
17510         * math/s_ldexpl.c: Likewise.
17511         * math/s_significand.c: Likewise.
17512         * math/s_significandf.c: Likewise.
17513         * math/s_significandl.c: Likewise.
17514         * math/w_acos.c: Likewise.
17515         * math/w_acosf.c: Likewise.
17516         * math/w_acosh.c: Likewise.
17517         * math/w_acoshf.c: Likewise.
17518         * math/w_acoshl.c: Likewise.
17519         * math/w_acosl.c: Likewise.
17520         * math/w_asin.c: Likewise.
17521         * math/w_asinf.c: Likewise.
17522         * math/w_asinl.c: Likewise.
17523         * math/w_atan2.c: Likewise.
17524         * math/w_atan2f.c: Likewise.
17525         * math/w_atan2l.c: Likewise.
17526         * math/w_atanh.c: Likewise.
17527         * math/w_atanhf.c: Likewise.
17528         * math/w_atanhl.c: Likewise.
17529         * math/w_cosh.c: Likewise.
17530         * math/w_coshf.c: Likewise.
17531         * math/w_coshl.c: Likewise.
17532         * math/w_dremf.c: Likewise.
17533         * math/w_exp10.c: Likewise.
17534         * math/w_exp10f.c: Likewise.
17535         * math/w_exp10l.c: Likewise.
17536         * math/w_exp2.c: Likewise.
17537         * math/w_exp2f.c: Likewise.
17538         * math/w_fmod.c: Likewise.
17539         * math/w_fmodf.c: Likewise.
17540         * math/w_fmodl.c: Likewise.
17541         * math/w_hypot.c: Likewise.
17542         * math/w_hypotf.c: Likewise.
17543         * math/w_hypotl.c: Likewise.
17544         * math/w_j0.c: Likewise.
17545         * math/w_j0f.c: Likewise.
17546         * math/w_j0l.c: Likewise.
17547         * math/w_j1.c: Likewise.
17548         * math/w_j1f.c: Likewise.
17549         * math/w_j1l.c: Likewise.
17550         * math/w_jn.c: Likewise.
17551         * math/w_jnf.c: Likewise.
17552         * math/w_jnl.c: Likewise.
17553         * math/w_lgamma.c: Likewise.
17554         * math/w_lgamma_r.c: Likewise.
17555         * math/w_lgammaf.c: Likewise.
17556         * math/w_lgammaf_r.c: Likewise.
17557         * math/w_lgammal.c: Likewise.
17558         * math/w_lgammal_r.c: Likewise.
17559         * math/w_log.c: Likewise.
17560         * math/w_log10.c: Likewise.
17561         * math/w_log10f.c: Likewise.
17562         * math/w_log10l.c: Likewise.
17563         * math/w_log2.c: Likewise.
17564         * math/w_log2f.c: Likewise.
17565         * math/w_log2l.c: Likewise.
17566         * math/w_logf.c: Likewise.
17567         * math/w_logl.c: Likewise.
17568         * math/w_pow.c: Likewise.
17569         * math/w_powf.c: Likewise.
17570         * math/w_powl.c: Likewise.
17571         * math/w_remainder.c: Likewise.
17572         * math/w_remainderf.c: Likewise.
17573         * math/w_remainderl.c: Likewise.
17574         * math/w_scalb.c: Likewise.
17575         * math/w_scalbf.c: Likewise.
17576         * math/w_scalbl.c: Likewise.
17577         * math/w_sinh.c: Likewise.
17578         * math/w_sinhf.c: Likewise.
17579         * math/w_sinhl.c: Likewise.
17580         * math/w_sqrt.c: Likewise.
17581         * math/w_sqrtf.c: Likewise.
17582         * math/w_sqrtl.c: Likewise.
17583         * math/w_tgamma.c: Likewise.
17584         * math/w_tgammaf.c: Likewise.
17585         * math/w_tgammal.c: Likewise.
17586
17587         * po/ja.po: Update from translation team.
17588
17589 2011-09-29  Andreas Jaeger  <aj@suse.de>
17590
17591         [BZ #13179]
17592         * sunrpc/netname.c (netname2host): Fix logic.
17593
17594         [BZ #6779]
17595         [BZ #6783]
17596         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17597         correctly.
17598         * math/w_remainder.c (__remainder): Likewise.
17599         * math/w_remainderf.c (__remainderf): Likewise.
17600         * math/libm-test.inc (remainder_test): Add test cases.
17601
17602 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17603
17604         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17605         sdiv_qrnnd.
17606
17607 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17608
17609         * string/test-memcmp.c: Avoid unncessary #defines.
17610         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17611
17612 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17613
17614         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17615         Use new sse2 version for core i3 - i7 as it's faster
17616         than sse42 version.
17617         (bit_Prefer_PMINUB_for_stringop): New.
17618         * sysdeps/x86_64/rawmemchr.S: Update.
17619         Replace with faster SSE2 version.
17620         * sysdeps/x86_64/memrchr.S: New file.
17621         * sysdeps/x86_64/memchr.S: Update.
17622         Replace with faster SSE2 version.
17623
17624 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17625
17626         * elf/dl-load.c (lose): Add cast to avoid warning.
17627
17628 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17629
17630         * po/ca.po: Update from translation team.
17631
17632         * inet/getnetgrent_r.c: Hook up nscd.
17633         * nscd/Makefile (routines): Add nscd_netgroup.
17634         (nscd-modules): Add netgroupcache.
17635         (CFLAGS-netgroupcache.c): Define.
17636         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17637         (cache_search): Add const to second parameter.
17638         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17639         INNETGR.
17640         (dbs): Add netgrdb entry.
17641         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17642         (verify_persistent_db): Handle netgrdb.
17643         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17644         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17645         GETFDNETGR.
17646         (netgroup_response_header): Define.
17647         (innetgroup_response_header): Define.
17648         (datahead): Add netgroup_response_header and innetgroup_response_header
17649         elements.
17650         * nscd/nscd.conf: Add entries for netgroup cache.
17651         * nscd/nscd.h (dbtype): Add netgrdb.
17652         (_PATH_NSCD_NETGROUP_DB): Define.
17653         (netgroup_iov_disabled): Declare.
17654         (xmalloc, xcalloc, xrealloc): Move declarations here.
17655         (cache_search): Adjust prototype.
17656         Add netgroup-related prototypes.
17657         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17658         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17659         (__nscd_innetgr): Declare.
17660         * nscd/selinux.c (perms): Use access_vector_t as element type and
17661         add netgroup-related initializers.
17662         * nscd/netgroupcache.c: New file.
17663         * nscd/nscd_netgroup.c: New file.
17664         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17665         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17666         For four parameters use innetgr.
17667         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17668         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17669         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17670         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17671
17672         * nscd/connections.c (register_traced_file): Don't register file
17673         for disabled databases.
17674
17675 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17676
17677         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17678
17679         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17680         from tree and freeing node.
17681
17682 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17683
17684         * nss/nsswitch.c (__nss_database_lookup): Handle
17685         nss_parse_service_list out of memory case.
17686
17687 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17688
17689         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17690         out of memory case.
17691
17692 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17693
17694         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17695         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17696         pass it down.
17697         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17698         elf_machine_rela, elf_machine_lazy_rel.
17699         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17700         (ELF_DYNAMIC_DO_REL): Likewise.
17701         (ELF_DYNAMIC_DO_RELA): Likewise.
17702         (ELF_DYNAMIC_RELOCATE): Likewise.
17703         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17704         to ELF_DYNAMIC_DO_REL.
17705         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17706         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17707         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17708         elf_machine_rela.
17709         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17710         skip_ifunc, don't call ifunc function if non-zero.
17711         (elf_machine_rela): Likewise.
17712         (elf_machine_lazy_rel): Likewise.
17713         (elf_machine_lazy_rela): Likewise.
17714         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17715         (elf_machine_lazy_rel): Likewise.
17716         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17717         Likewise.
17718         (elf_machine_lazy_rel): Likewise.
17719         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17720         Likewise.
17721         (elf_machine_lazy_rel): Likewise.
17722         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17723         (elf_machine_lazy_rel): Likewise.
17724         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17725         (elf_machine_lazy_rel): Likewise.
17726         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17727         (elf_machine_lazy_rel): Likewise.
17728         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17729         (elf_machine_lazy_rel): Likewise.
17730         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17731         (elf_machine_lazy_rel): Likewise.
17732         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17733         (elf_machine_lazy_rel): Likewise.
17734
17735 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17736
17737         * nss/nss_files/files-init.c (_nss_files_init): Use static
17738         initialization for all the *_traced_file variables.
17739
17740 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17741
17742         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17743
17744 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17745
17746         [BZ #13226]
17747         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17748
17749 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17750
17751         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17752         Reread the line before reparsing it.
17753
17754 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17755
17756         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17757
17758 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17759             Maxim Kuvyrkov  <maxim@codesourcery.com>
17760             Joseph Myers  <joseph@codesourcery.com>
17761
17762         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17763         if needed for __stack_chk_guard.
17764
17765 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17766
17767         * sysdeps/posix/spawni.c (script_execute): Always define it.
17768         It will be optimized away if unused.
17769         (maybe_script_execute): New function.
17770         (__spawni): Call it.
17771
17772         * Makerules: Don't include tls.make.
17773         (config-tls): Always set to thread.
17774         * tls.make.c: File removed.
17775
17776 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17777
17778         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17779         * config.make.in (CPPFLAGS-config): New substituted variable.
17780
17781 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17782
17783         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17784
17785         [BZ #13192]
17786         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17787         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17788
17789 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17790
17791         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17792         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17793         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17794         (CALL_FAIL): Likewise.
17795         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17796         (CALL_FAIL): Macro removed.
17797         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17798
17799 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17800
17801         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17802         for __FINITE_MATH_ONLY__ == 1.
17803
17804 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17805
17806         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17807         __ieee754_sqrt instead of sqrt.
17808         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17809         __ieee754_sqrtf instead of sqrtf.
17810         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17811         __floorf instead of floorf.
17812         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17813         __floorf, __truncf instead of floorf, truncf.
17814
17815 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17816
17817         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17818
17819         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17820         __extern_always_inline.
17821         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17822         32-bit.
17823
17824 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17825
17826         * elf/rtld.c (dl_main): Also relocate in dependency order when
17827         doing symbol dependency testing.
17828
17829 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17830
17831         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17832         Always define `refsym'.
17833
17834 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17835
17836         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17837         (__FD_ELT): Renamed from __FDELT.
17838         * misc/bits/select2.h (__FD_ELT): Likewise.
17839         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17840         __FD_MASK instead of __FDELT, __FDMASK.
17841         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17842         Likewise.
17843         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17844         Likewise.
17845
17846         * elf/Makefile (gen-ldd): Fix pattern.
17847
17848         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17849         (init_tls): Likewise.
17850
17851 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17852
17853         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17854
17855 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17856
17857         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17858         `struct cmsghdr *' instead of `void *'.
17859         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17860         Likewise.
17861
17862 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17863
17864         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17865         if non-absolute.
17866         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17867         ldd_rewrite_script.
17868
17869 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17870
17871         * configure.in: Remove --with-tls option.
17872         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17873         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17874         out in case it is missing.
17875         * sysdeps/ia64/elf/configure.in: Likewise.
17876         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17877         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17878         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17879         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17880         * sysdeps/sh/elf/configure.in: Likewise.
17881         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17882         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17883         * sysdeps/x86_64/elf/configure.in: Likewise.
17884         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17885         * sysdeps/mach/hurd/tls.h: Likewise.
17886
17887         [BZ #13067]
17888         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17889
17890         [BZ #13090]
17891         * configure.in: Fix use of AC_INIT.
17892
17893         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17894
17895 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17896
17897         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17898         __set_errno.
17899         * malloc/hooks.c: Likewise.
17900
17901         [BZ #11929]
17902         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17903         variables statically.
17904         (narenas): Initialize.
17905         (list_lock): Initialize.
17906         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17907         initializtion of main_arena and list_lock.  Small cleanups.
17908         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17909         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17910         Add initializers to main_arena and mp_.
17911         (malloc_state): Remove pagesize member.  Change all users to use
17912         GLRO(dl_pagesize).
17913
17914         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17915         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17916         is always initialized.
17917
17918         * malloc/malloc.c: Removed unused configurations and dead code.
17919         * malloc/arena.c: Likewise.
17920         * malloc/hooks.c: Likewise.
17921         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17922
17923         * include/tls.h: Removed.  USE___THREAD must always be defined.
17924         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17925         * elf/dl-libc.c: Likewise.
17926         * elf/dl-tsd.c: Likewise.
17927         * include/errno.h: Likewise.
17928         * include/netdb.h: Likewise.
17929         * include/resolv.h: Likewise.
17930         * inet/herrno-loc.c: Likewise.
17931         * inet/herrno.c: Likewise.
17932         * malloc/arena.c: Likewise.
17933         * malloc/hooks.c: Likewise.
17934         * malloc/malloc.c: Likewise.
17935         * resolv/res-state.c: Likewise.
17936         * resolv/res_libc.c: Likewise.
17937         * sysdeps/i386/dl-machine.h: Likewise.
17938         * sysdeps/ia64/dl-machine.h: Likewise.
17939         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17940         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17941         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17942         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17943         * sysdeps/sh/dl-machine.h: Likewise.
17944         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17945         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17946         * sysdeps/unix/i386/sysdep.S: Likewise.
17947         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17948         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17949         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17950         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17951         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17952         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17953         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17954         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17955         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17956         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17957         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17958         * sysdeps/x86_64/dl-machine.h: Likewise.
17959         * tls.make.c: Likewise.
17960
17961         * configure.in: Remove --with-__thread option.  Make tests for
17962         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17963         tls_model attribute fail if no support is available.  Remove
17964         USE_IN_LIBIO.
17965         * Makeconfig: Adjust for dropped configure option.  All features are
17966         now mandatory.
17967         * Makerules: Likewise.
17968         * Versions.def: Likewise.
17969         * argp/argp-fmtstream.c: Likewise.
17970         * argp/argp-fmtstream.h: Likewise.
17971         * argp/argp-help.c: Likewise.
17972         * assert/assert.c: Likewise.
17973         * config.h.in: Likewise.
17974         * config.make.in: Likewise.
17975         * configure: Likewise.
17976         * configure.in: Likewise.
17977         * csu/Versions: Likewise.
17978         * csu/init.c: Likewise.
17979         * elf/tst-audit2.c: Likewise.
17980         * elf/tst-tls10.c: Likewise.
17981         * elf/tst-tls10.h: Likewise.
17982         * elf/tst-tls11.c: Likewise.
17983         * elf/tst-tls12.c: Likewise.
17984         * elf/tst-tls14.c: Likewise.
17985         * elf/tst-tlsmod11.c: Likewise.
17986         * elf/tst-tlsmod12.c: Likewise.
17987         * elf/tst-tlsmod13.c: Likewise.
17988         * elf/tst-tlsmod13a.c: Likewise.
17989         * elf/tst-tlsmod14a.c: Likewise.
17990         * elf/tst-tlsmod15b.c: Likewise.
17991         * elf/tst-tlsmod16a.c: Likewise.
17992         * elf/tst-tlsmod16b.c: Likewise.
17993         * elf/tst-tlsmod7.c: Likewise.
17994         * elf/tst-tlsmod8.c: Likewise.
17995         * elf/tst-tlsmod9.c: Likewise.
17996         * gmon/gmon.c: Likewise.
17997         * grp/fgetgrent_r.c: Likewise.
17998         * grp/putgrent.c: Likewise.
17999         * hurd/fopenport.c: Likewise.
18000         * include/libc-symbols.h: Likewise.
18001         * include/tls.h: Likewise.
18002         * intl/gettextP.h: Likewise.
18003         * intl/loadinfo.h: Likewise.
18004         * locale/global-locale.c: Likewise.
18005         * locale/localeinfo.h: Likewise.
18006         * mach/devstream.c: Likewise.
18007         * malloc/arena.c: Likewise.
18008         * malloc/set-freeres.c: Likewise.
18009         * misc/err.c: Likewise.
18010         * misc/getttyent.c: Likewise.
18011         * misc/mntent_r.c: Likewise.
18012         * posix/getopt.c: Likewise.
18013         * posix/wordexp.c: Likewise.
18014         * pwd/fgetpwent_r.c: Likewise.
18015         * resolv/Versions: Likewise.
18016         * resolv/res_hconf.c: Likewise.
18017         * shadow/fgetspent_r.c: Likewise.
18018         * shadow/putspent.c: Likewise.
18019         * stdio-common/printf_fphex.c: Likewise.
18020         * stdio-common/tmpfile.c: Likewise.
18021         * stdlib/abort.c: Likewise.
18022         * stdlib/fmtmsg.c: Likewise.
18023         * sunrpc/auth_unix.c: Likewise.
18024         * sunrpc/clnt_perr.c: Likewise.
18025         * sunrpc/clnt_tcp.c: Likewise.
18026         * sunrpc/clnt_udp.c: Likewise.
18027         * sunrpc/clnt_unix.c: Likewise.
18028         * sunrpc/openchild.c: Likewise.
18029         * sunrpc/svc_simple.c: Likewise.
18030         * sunrpc/svc_tcp.c: Likewise.
18031         * sunrpc/svc_udp.c: Likewise.
18032         * sunrpc/svc_unix.c: Likewise.
18033         * sunrpc/xdr.c: Likewise.
18034         * sunrpc/xdr_array.c: Likewise.
18035         * sunrpc/xdr_rec.c: Likewise.
18036         * sunrpc/xdr_ref.c: Likewise.
18037         * sunrpc/xdr_stdio.c: Likewise.
18038
18039 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18040
18041         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18042
18043 2011-07-03  Andreas Jaeger  <aj@suse.de>
18044
18045         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18046         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18047         regenerate with gen-libm-tests.pl.
18048
18049 2010-05-12  Petr Baudis  <pasky@suse.cz>
18050
18051         [BZ #11589]
18052         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18053         around j0() zero points by switching to j1().
18054         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18055         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18056         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18057         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18058
18059 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18060
18061         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18062         instead of 0.
18063         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18064         instead of 0.                              .
18065         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18066         Patch in part by Pavel Roskin <proski@gnu.org>.
18067
18068         [BZ #13138]
18069         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18070         realloc.
18071         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18072         Free memory block if necessary.
18073
18074         [BZ #12847]
18075         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18076         be NULL.  Don't lock in this case.
18077
18078 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18079
18080         * elf/elf.h (ELFOSABI_GNU): New macro.
18081         (ELFOSABI_LINUX): Define to that.
18082
18083 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18084
18085         * string/strncat.c (strncat): Undef the symbol in case it has been
18086         defined in bits/string.h.
18087
18088 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18089
18090         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18091
18092         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18093         link map.
18094
18095 2011-08-17  Andreas Jaeger  <aj@suse.de>
18096
18097         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18098
18099 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18100             Ian Lance Taylor  <iant@google.com>
18101
18102         * math/libm-test.inc (lround_test): New testcase.
18103         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18104
18105 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18106
18107         * Makefile: Remove support for automatic cvs check-ins.
18108         * Makerules: Likewise.
18109         * config.make.in: Likewise.
18110         * configure.in: Likewise.
18111         * intl/Makefile: Likewise.
18112         * locale/Makefile: Likewise.
18113         * po/Makefile: Likewise.
18114         * posix/Makefile: Likewise.
18115         * sysdeps/gnu/Makefile: Likewise.
18116         * sysdeps/mach/hurd/Makefile: Likewise.
18117         * sysdeps/sparc/sparc32/Makefile: Likewise.
18118
18119         [BZ #13118]
18120         * posix/Makefile (bug-regex32-ENV): Define.
18121         Patch by John Stanley <jpsinthemix@verizon.net>.
18122
18123         * misc/Makefile (headers): Add bits/select2.h.
18124         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18125         * misc/bits/select2.h: New file.
18126         * include/bits/select2.h: New file.
18127         * debug/Makefile (routines): Add fdelt_chk.
18128         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18129         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18130         FD_ISSET.
18131         * debug/fdelt_chk.c: New file.
18132
18133         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18134         * wcsmbs/test-wmemcmp.c: Likewise.
18135         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18136         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18137
18138 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18139
18140         * string/Makefile (strop-tests): Add memcmp.
18141         * string/test-wmemcmp.c: New file.
18142         * string/test-memcmp.c: Add wmemcmp support.
18143
18144 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18145
18146         [BZ #13153]
18147         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18148         2011-07-19 change.
18149
18150         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18151         garbage value in a __mach_port_mod_refs call in the cases of the
18152         task-self and thread-self ports.
18153
18154 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18155
18156         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18157
18158 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18159
18160         * elf/dl-load.c (lose): Check for non-null L.
18161
18162 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18163
18164         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18165
18166         * elf/dl-libc.c (dlerror_run): Pass back error code from
18167         dl_catch_error.
18168
18169         [BZ #13123]
18170         * elf/dl-load.c (lose): Free l_origin if it is valid.
18171
18172         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18173         names.
18174         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18175         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18176         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18177         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18178         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18179         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18180
18181 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18182
18183         * sysdeps/powerpc/fpu/e_hypot.c: New file.
18184         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18185         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18186         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18187         * sysdeps/powerpc/fpu/k_cosf.c: New file.
18188         * sysdeps/powerpc/fpu/k_sinf.c: New file.
18189         * sysdeps/powerpc/fpu/s_cosf.c: New file.
18190         * sysdeps/powerpc/fpu/s_sinf.c: New file.
18191         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18192         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18193
18194 2011-08-15  Alan Modra  <amodra@gmail.com>
18195
18196         [BZ #13092]
18197         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18198         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18199         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
18200         ppc_mcount to static-only-routines.
18201         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18202         __mcount_internal.
18203         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18204         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18205
18206 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18207
18208         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18209         for finite and infinity parameters.
18210
18211 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18212
18213         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18214         and add nop instructions for throughput optimization.
18215         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18216
18217 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18218
18219         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18220         aligned copy for power7 with vector-scalar instructions.
18221         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18222
18223 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18224
18225         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18226         AVX check.
18227
18228 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18229
18230         [BZ #13144]
18231         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18232         last change.
18233
18234 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18235
18236         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18237         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18238         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18239         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18240         clock_gettime.
18241
18242 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18243
18244         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18245         Forgot to demangle the pointer.
18246
18247         * sysdeps/i386/sysdep.h: Define atom_text_section.
18248         * sysdeps/x86_64/sysdep.h: Likewise.
18249         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18250         section with atom_text_section.
18251         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18252         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18253         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18254         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18255         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18256
18257         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18258         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18259         already be defined.  Change to take two parameters and don't assign
18260         result to variable.  Adjust all users.
18261         Define INTERNAL_GETTIME if not already defined.
18262         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18263         call.
18264         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18265         HAVE_CLOCK_GETTIME_VSYSCALL.
18266         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18267
18268         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18269         gettimeofday vsyscall, just use time.
18270
18271 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18272
18273         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18274         <errno.h>.
18275
18276 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18277
18278         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18279         syscall on x86-64.
18280         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18281         syscall.
18282         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18283         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18284         syscall if possible.
18285
18286 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18287
18288         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18289         e_ident.  Don't pass to find_mapsXX.
18290         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18291
18292 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18293
18294         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18295         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18296         * sysdeps/x86_64/multiarch/strchr.S: Update.
18297         Check bit_slow_BSF bit.
18298         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18299         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18300         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18301
18302 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18303
18304         [BZ #13134]
18305         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18306         before glibc 2.15.
18307         (tryshell): Define.
18308         (__spawni): Change last parameter to be flag.  Test
18309         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18310         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18311         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18312         * posix/spawni.c: Likewise.
18313         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18314         * posix/spawnp.c: Likewise.  Change normal version to use
18315         SPAWN_XFLAGS_USE_PATH.
18316         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18317         SPAWN_XFLAGS_TRY_SHELL.
18318
18319         [BZ #13150]
18320         * posix/glob.h: Remove gcc 1.x support.
18321
18322         [BZ #13068]
18323         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18324
18325 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18326
18327         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18328         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18329         strrchr-sse2-bsf
18330         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18331         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18332         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18333         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18334         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18335         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18336
18337 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18338
18339         * sysdeps/x86_64/wcscmp.S: New file.
18340
18341         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18342         wcscmp-c wcscmp-sse2
18343         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18344         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18345         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18346         * wcsmbs/wcscmp.c: Allow renaming.
18347
18348 2011-09-05  David S. Miller  <davem@davemloft.net>
18349
18350         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18351         stack slot, rather than the struct return pointer slot.
18352         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18353         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18354         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18355         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18356
18357 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18358
18359         * po/ja.po: Update from translation team.
18360
18361         [BZ #13144]
18362         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18363         kernel in 64-bit binaries.
18364
18365 2011-09-01  David S. Miller  <davem@davemloft.net>
18366
18367         * elf/elf.h (HWCAP_SPARC_*): Move to..
18368         * sysdeps/sparc/sysdep.h: this new file and add new values.
18369         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18370         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18371         _DL_HWCAP_COUNT to 24.
18372         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18373         entries.
18374         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18375         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18376         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18377         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18378         instead of magic constants.
18379         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18380
18381 2011-08-31  David S. Miller  <davem@davemloft.net>
18382
18383         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18384         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18385         Reimplement to do errno handling inline.
18386         (SYSCALL_ERROR_HANDLER): New macro.
18387         (__SYSCALL_STRING): Do not do errno handling in asm.
18388         (__CLONE_SYSCALL_STRING): Delete.
18389         (__INTERNAL_SYSCALL_STRING): Delete.
18390         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18391         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18392         (PSEUDO): Reimplement to do errno handling inline.
18393         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18394         (SYSCALL_ERROR_HANDLER): New macro.
18395         (__SYSCALL_STRING): Do not do errno handling in asm.
18396         (__CLONE_SYSCALL_STRING): Delete.
18397         (__INTERNAL_SYSCALL_STRING): Delete.
18398         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18399         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18400         i386.
18401         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18402         (inline_syscall*): Add 'err' argument.
18403         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18404         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18405         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18406         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18407
18408         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18409         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18410
18411 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18412
18413         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18414
18415 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18416
18417         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18418         directive.
18419
18420 2011-08-24  David S. Miller  <davem@davemloft.net>
18421
18422         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18423
18424 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18425
18426         * elf/Makefile: Add rules to build and run unload8 test.
18427         * elf/unload8.c: New file.
18428         * elf/unload8mod1.c: New file.
18429         * elf/unload8mod1x.c: New file.
18430         * elf/unload8mod2.c: New file.
18431         * elf/unload8mod3.c: New file.
18432
18433         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18434         it wasn't used.
18435
18436 2011-08-23  David S. Miller  <davem@davemloft.net>
18437
18438         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18439         subtract stack bias.
18440         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18441         %sp not %fp in calculations.
18442         (_JMPBUF_UNWINDS_ADJ): Likewise.
18443
18444         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18445         (aio_suspend): Call it to force an exception region around the
18446         AIO_MISC_WAIT() invocation.
18447
18448 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18449
18450         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18451         backslash.
18452
18453 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18454
18455         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18456         protection macro.
18457         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18458         and <dl-machine.h>.
18459         (Elf64_FuncDesc): Remove.
18460
18461 2011-08-22  David S. Miller  <davem@davemloft.net>
18462
18463         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18464         sigaltstack check, add missing cfi directives.
18465         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18466         missing cfi directives, and sigaltstack handling.
18467
18468 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18469
18470         [BZ #11724]
18471         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18472         object is seen twice.
18473         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18474
18475         * elf/Makefile (distribute): Add tst-initorder2.c.
18476         (tests): Add tst-initorder2.
18477         (modules-names): Add tst-initorder2a tst-initorder2b
18478         tst-initorder2c tst-initorder2d.  Add rules to build them.
18479         ($(objpfx)tst-initorder2.out): New rule.
18480         * elf/tst-initorder2.c: New file.
18481         * elf/tst-initorder2.exp: New file.
18482
18483 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18484
18485         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18486
18487         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18488         dependencies back to end of function.
18489
18490         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18491         $(elfobjdir)/ld.so.
18492
18493 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18494
18495         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18496         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18497         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18498         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18499         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18500         of __vdso_gettimeofday.
18501         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18502         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18503         attribute_hidden.
18504         (_libc_vdso_platform_setup): Remove initialization of
18505         __vdso_gettimeofday and __vdso_time.
18506
18507 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18508
18509         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18510         and fgetc_unlocked.
18511         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18512         getc_unlocked.
18513
18514         * elf/dl-open.c (add_to_global): Report additions to the global scope
18515         for LD_DEBUG=scopes.
18516         (dl_open_worker): Also print scope of newly loaded dependencies.
18517         (_dl_show_scope): Indicate if there is no scope.
18518
18519         [BZ #13114]
18520         * stdio-common/Makefile (tests): Add bug24.
18521         * stdio-common/bug24.c: New file.
18522
18523 2011-08-19  Andreas Jaeger  <aj@suse.de>
18524
18525         [BZ #13114]
18526         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18527         non-existant file when using close-on-exec mode.
18528
18529 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18530
18531         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18532         the very first instruction.
18533
18534         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18535         the CFI state in the end.
18536         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18537         inclusion of dl-trampoline.h.
18538         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18539
18540 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18541
18542         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18543         expectations for long double.
18544
18545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18546         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18547
18548 2011-08-14  David S. Miller  <davem@davemloft.net>
18549
18550         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18551         artificual limit depends upon the system page size.
18552
18553 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18554
18555         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18556         * resolv/Makefile: Define CFLAGS-libresolv.
18557
18558 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18559
18560         * nss/makedb.c (compute_tables): Make variables used in nested
18561         function static.
18562
18563 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18564
18565         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18566         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18567         if buffer was too small.
18568
18569         * elf/pldd.c (main): Attach to all threads in the process.
18570         Rewrite /proc handling to use *at functions.
18571
18572 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18573
18574         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18575         specifies first scope to show.
18576         (dl_open_worker): Update callers.  Move printing scope of new
18577         object to before the relocation.
18578         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18579         * sysdeps/generic/ldsodefs.h: Update declaration.
18580
18581         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18582         string for the scope number.
18583
18584 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18585
18586         * nscd/servicescache.c (cache_addserv): Make sure written is always
18587         initialized.
18588
18589 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18590
18591         * sysdeps/i386/i486/bits/atomic.h
18592         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18593         statement expression, so as to suppress "set but not used" warning.
18594         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18595
18596         * string/strncat.c (STRNCAT): Use prototype definition.
18597
18598         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18599         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18600         -Iprograms here.
18601         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18602         (localedef-modules): Add localedef.
18603         (locale-modules): Add locale.
18604
18605         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18606         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18607         to avoid a warning.
18608
18609 2011-08-14  David S. Miller  <davem@davemloft.net>
18610
18611         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18612         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18613
18614 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18615
18616         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18617         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18618         * elf/rtld.c (dl_main): Set l_name of vDSO.
18619         Call _dl_show_scope when DL_DEBUG_SCOPES.
18620         (process_dl_debug): Recognize scopes flag and also set it for all.
18621         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18622         Declare _dl_show_scope.
18623
18624         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18625         (do_dlopen): Pass caller_dlopen to dl_open.
18626         (__libc_dlopen_mode): Initialize caller_dlopen.
18627
18628         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18629         of libc.  Make tolower call locale-independent.  Optimize a bit by
18630         using isdigit instead of isalnum.
18631         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18632
18633 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18634
18635         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18636         was a dependency or dynamically loaded.
18637
18638 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18639
18640         * intl/l10nflist.c: Allow architecture-specific pop function.
18641         * sysdeps/x86_64/l10nflist.c: New file.
18642
18643         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18644         classification.
18645
18646 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18647
18648         * include/dirent.h: Add libc_hidden_proto for scandirat and
18649         scandirat64.  Don't declare __scandirat64.
18650         * dirent/scandirat.c: Add libc_hidden_def.
18651         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18652         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18653
18654 2011-08-10  David S. Miller  <davem@davemloft.net>
18655
18656         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18657         enum.
18658         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18659         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18660         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18661
18662 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18663
18664         * Versions.def [libc]: Add GLIBC_2.15.
18665         * dirent/Makefile (routines): Add scandirat and scandirat64.
18666         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18667         GLIBC_2.15.
18668         * dirent/dirent.h: Declare scandirat and scandirat64.
18669         * dirent/scandirat.c: New file.
18670         * dirent/scandirat64.c: New file.
18671         * sysdeps/wordsize-64/scandirat.c: New file.
18672         * sysdeps/wordsize-64/scandirat64.c: New file.
18673         * dirent/opendir.c: Define opendirat.
18674         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18675         using scandirat.
18676         * dirent/scandir64.c: Adjust for scandir.c change.
18677         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18678         __scandirat64, and __scandir_cancel_handler.
18679         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18680         additional parameter and use openat instead of open (outside of ld.so).
18681         Add new __opendir as wrapper around __opendirat.
18682         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18683         here without requiring old scandirat implementation.
18684
18685 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18686
18687         * dirent/scandir.c (cancel_handler): Renamed to
18688         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18689         defined.  Adjust users.
18690         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18691         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18692
18693 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18694
18695         * string/test-string.h (IMPL): Use __STRING to expand name and then
18696         stringify it.
18697
18698         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18699         of cleanups.
18700
18701 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18702
18703         * string/Makefile: Update.
18704         (strop-tests): Append strncat.
18705         * string/test-wcscmp.c: New file.
18706         New comprehensive test for wcscmp.
18707         * string/test-strcmp.c: Update.
18708         (WIDE): New define.
18709
18710 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18711
18712         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18713         line.
18714
18715 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18716
18717         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18718         encoding to ACE if AI_IDN.
18719
18720 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18721
18722         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18723         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18724
18725 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18726
18727         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18728         Fix overflow bug in strncat.
18729         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18730
18731         * string/test-strncat.c: Update.
18732         Add new tests for checking overflow bugs.
18733
18734 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18735
18736         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18737         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18738         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18739         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18740         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18741         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18742         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18743         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18744         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18745
18746         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18747         (USE_AS_STRCAT): Define.
18748         Add strcat and strncat support.
18749         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18750
18751 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18752
18753         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18754         __n bigger than INT_MAX+1.
18755         (__strncmp_g): Likewise.
18756
18757 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18758
18759         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18760         * libio/stido.h: Likewise.
18761
18762         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18763         (AF_NFC): Define.
18764         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18765         (AF_NFC): Define.
18766
18767         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18768         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18769         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18770         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18771         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18772
18773         [BZ #13021]
18774         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18775         installed.
18776
18777         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18778         typo.
18779         (_dl_x86_64_save_sse): Likewise.
18780
18781 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18782
18783         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18784         OSXSAVE.
18785         (_dl_x86_64_save_sse): Likewise.
18786
18787         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18788
18789         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18790
18791 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18792
18793         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18794         change.
18795         (_dl_x86_64_save_sse): Use correct AVX check.
18796
18797 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18798
18799         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18800         bug in strncpy/strncat.
18801         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18802
18803 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18804
18805         * string/tester.c (test_strcat): Add tests for different alignments
18806         of source and destination.
18807         (test_strncat): Likewise.
18808
18809 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18810
18811         [BZ #12852]
18812         * posix/glob.c (glob): Check passed in values before using them in
18813         expressions to avoid some overflows.
18814         (glob_in_dir): Likewise.
18815
18816         [BZ #13007]
18817         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18818         check for AVX enablement so that we don't crash with old kernels and
18819         new hardware.
18820         * elf/tst-audit4.c: Add same checks here.
18821         * elf/tst-audit6.c: Likewise.
18822
18823         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18824
18825 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18826
18827         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18828
18829 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18830
18831         * po/cs.po: Update from translation team.
18832         * po/bg.po: Likewise.
18833
18834 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18835
18836         * misc/sys/cdefs.h: Add support for const attribute.
18837         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18838         to gnu_dev_{major,minor,makedev} functions.
18839
18840 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18841
18842         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18843
18844 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18845
18846         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18847         strlen results.
18848
18849 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18850
18851         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18852         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18853         register in order to avoid conflicts with the soft frame pointer
18854         being held in r11 when necessary.
18855         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18856         (INTERNAL_VSYSCALL_NCS): Likewise.
18857
18858 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18859
18860         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18861         * elf/dl-fini.c (_dl_fini): Adjust caller.
18862         * elf/dl-close.c (_dl_close_worker): Likewise.
18863         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18864
18865 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18866
18867         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18868         "aux_cache->nlibs < 0".
18869
18870         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18871         in the reload-count case.
18872
18873 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18874
18875         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18876         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18877         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18878         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18879         * sysdeps/x86_64/multiarch/strcat.S: New file.
18880         * sysdeps/x86_64/multiarch/strncat.S: New file.
18881         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18882         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18883         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18884         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18885         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18886         (USE_AS_STRCAT): Define.
18887         Add strcat and strncat support.
18888         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18889         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18890         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18891         * string/strncat.c: Update.
18892         (USE_AS_STRNCAT): Define.
18893         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18894         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18895         and i7.
18896         * sysdeps/x86_64/multiarch/init-arch.h
18897         (bit_Prefer_PMINUB_for_stringop): New.
18898         (index_Prefer_PMINUB_for_stringop): Likewise.
18899         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18900         bit_Prefer_PMINUB_for_stringop.
18901
18902 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18903
18904         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18905         buffer64.
18906         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18907         of casting of buffer.
18908         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18909         buffer32 and buffer64.
18910         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18911         writes instead of casting of buffer.
18912         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18913         buffer32.
18914         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18915         casting of buffer.
18916
18917 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18918
18919         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18920
18921 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18922
18923         * nscd/nscd.c (termination_handler): Don't do anything for a database
18924         if it has not yet been initialized.
18925
18926 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18927
18928         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18929
18930 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18931
18932         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18933
18934 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18935
18936         * po/nl.po: Update from translation team.
18937         * po/sv.po: Likewise.
18938
18939 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18940
18941         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18942         now disallowed by GCC.
18943
18944         * configure.in (use-default-link): Default to yes if a test -shared
18945         link meets our qualifications.
18946         * configure: Regenerated.
18947
18948         * config.make.in (output-format): New variable.
18949         * configure.in: Check for ld --print-output-format support.
18950         * configure: Regenerated.
18951         * Makerules ($(common-objpfx)format.lds)
18952         [$(output-format) != unknown]: Just use $(output-format),
18953         instead of the linker-script munging.
18954
18955 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18956
18957         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18958         of $(common-objpfx)shlib.lds.
18959         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18960
18961         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18962         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18963
18964         * configure.in (-z relro check): Adjust test code to add a large
18965         writable data section after it.
18966         * configure: Regenerated.
18967
18968 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18969
18970         * configure.in (-z relro check): Fix test code to make the variable
18971         truly const.
18972         * configure: Regenerated.
18973
18974 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18975
18976         * nscd/nscd.h (struct traced_file): Define.
18977         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18978         elements.  Add traced_files.
18979         (inotify_fd): Declare.
18980         (register_traced_file): Declare.
18981         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18982         (inotify_fd): Export.
18983         (resolv_conf_descr): Remove.
18984         (nscd_init): Move inotify descriptor creation to main.
18985         Don't register files for notification here.
18986         (register_traced_file): New function.
18987         (invalidate_cache): Don't use reset_res to determine whether to call
18988         res_init, go through the list of registered files.
18989         (main_loop_poll): The inotify descriptors are now stored in the
18990         structures for the traced files.
18991         (main_loop_epoll): Likewise
18992         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18993         to __nss_disable_nscd.
18994         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18995         for a database anymore.  Check the records for all the registered
18996         files instead.
18997         * nss/Makefile (libnss_files-routines): Add files-init.
18998         (libnss_db-routines): Add db-init.
18999         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19000         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19001         * nss/nss_db/db-init.c: New file.
19002         * nss/nss_files/files-init.c: New file.
19003         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19004         __nss_lookup_function.
19005         (__nss_lookup_function): Call nss_load_library.
19006         (nss_load_all_libraries): New function.
19007         (__nss_disable_nscd): Take parameter with callback function for files
19008         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19009         used for the cached services.
19010         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19011         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19012         options for features to all the files in nscd.
19013
19014         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19015
19016 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19017
19018         * csu/elf-init.c (__libc_csu_init): Comment typo.
19019
19020 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19021
19022         * po/pl.po: Update from translation team.
19023         * po/ja.po: Likewise.
19024         * po/ru.po: Likewise.
19025         * po/ko.po: Likewise.
19026         * po/fr.po: Likewise.
19027
19028 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19029
19030         * configure.in (.ctors/.dtors header and trailer check):
19031         Use an empirical test on a built program.
19032         * configure: Regenerated.
19033
19034         * configure.in (-z relro check): Use an empirical test on a built DSO.
19035         Detect, but do not require, on ia64.
19036         * configure: Regenerated.
19037
19038         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19039         Update tests that use readelf to use $READELF instead.
19040         * configure: Regenerated.
19041
19042 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19043
19044         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19045         if the result is not used.
19046
19047 2011-07-05  Andreas Jaeger  <aj@suse.de>
19048
19049         [BZ#9696]
19050         * stdlib/tst-strtod.c: Add testcase.
19051
19052 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19053
19054         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19055         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19056         The latter has a higher limit.  Take additional parameter to pass to
19057         the new function.
19058         (__pathconf): Pass file to __statfs_link_max.
19059         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19060         __statfs_link_max.
19061         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19062         __statfs_link_max.
19063
19064         [BZ #12868]
19065         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19066         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19067         Handle Lustre.
19068         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19069         (__statfs_filesize_max): Likewise.
19070         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19071
19072 2011-07-05  Andreas Jaeger  <aj@suse.de>
19073
19074         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19075
19076 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19077
19078         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19079         `status' variable.
19080         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19081         Likewise.
19082
19083 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19084
19085         * Makefile (strop-tests): Add strncat.
19086         * string/test-strncat.c: New file.
19087
19088 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19089
19090         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19091
19092 2011-06-21  Andreas Jaeger  <aj@suse.de>
19093
19094         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19095         Copy rule from iconvdata/Makefile.
19096
19097 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19098
19099         [BZ #12922]
19100         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19101         but no long options are defined, just return 'W'.
19102
19103 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19104
19105         [BZ #9696]
19106         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19107
19108 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19109
19110         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19111         netgroups to read.
19112         (innetgr): Likewise.
19113
19114 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19115
19116         * config.make.in (install_root): Default to $(DESTDIR).
19117
19118 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19119
19120         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19121
19122 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19123
19124         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19125
19126         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19127         containing directory rather than embedding absolute directory names.
19128
19129         * scripts/check-local-headers.sh: Rewritten using awk.
19130         Match by word, not by line.  Print error messages for matches.
19131         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19132
19133         * Makerules [shlib-lds-flags empty]:
19134         ($(common-objpfx)libc_pic.opts): New target.
19135         ($(common-objpfx)libc_pic.os.clean): New target.
19136         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19137
19138         * config.make.in (OBJCOPY): New variable.
19139         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19140         * configure: Regenerated.
19141
19142         * config.make.in (use-default-link): New variable.
19143         * configure.in (use_default_link): Grok --with-default-link to set it.
19144         * configure: Regenerated.
19145         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19146         (shlib-lds, shlib-lds-flags): Define to empty.
19147
19148         * Makerules (shlib-lds): New variable.
19149         (shlib-lds-flags): New variable.
19150         (build-shlib, build-moduile, build-module-asneeded): Use it.
19151         ($(common-objpfx)libc.so): Use $(shlib-lds).
19152         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19153         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19154
19155         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19156         DT_FLAGS/DT_FLAGS_1 with zero flags.
19157
19158         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19159         linker script munging.
19160
19161 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19162
19163         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19164         as 128-bit value.
19165         * crypt/sha512.c (sha512_process_block): Perform total addition using
19166         128-bit if possible.
19167         (__sha512_finish_ctx): Likewise.
19168         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19169         as 64-bit value.
19170         * crypt/sha256.c (SWAP64): Define.
19171         (sha256_process_block): Perform total addition using 64-bit if
19172         possible.
19173         (__sha256_finish_ctx): Likewise.
19174
19175 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
19176
19177         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
19178         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19179         * nscd/hstcache.c (cache_addhst): Likewise.
19180         * nscd/grpcache.c (cache_addgr): Likewise.
19181         * nscd/aicache.c (addhstaiX): Likewise
19182         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19183
19184 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
19185
19186         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19187         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19188         * nscd/hstcache.c (cache_addhst): Likewise.
19189         * nscd/grpcache.c (cache_addgr): Likewise.
19190         * nscd/aicache.c (addhstaiX): Likewise
19191
19192 2011-07-01  Andreas Schwab  <schwab@redhat.com>
19193
19194         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19195         domain only when needed.
19196
19197 2011-06-30  Andreas Schwab  <schwab@redhat.com>
19198
19199         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19200         is always restored.
19201
19202 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19203
19204         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19205         are re-adding the entry.
19206         * nscd/servicescache.c (cache_addserv): Likewise.
19207
19208 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19209
19210         * sysdeps/generic/dl-irel.h: fix protection against multiple
19211         inclusions.
19212         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19213
19214 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19215
19216         [BZ #12935]
19217         * malloc/memusage.sh: Fix quoting in message.
19218         * debug/xtrace.sh: Likewise.
19219
19220         * configure.in: Remove support for --experimental-malloc option, make
19221         it the default.
19222         * config.make.in: Likewise.
19223         * malloc/Makefile: Likewise.
19224
19225 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19226
19227         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19228         two-byte characters.
19229
19230 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19231
19232         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19233         AC_CACHE_CHECK invocation.
19234         * configure: Regenerated.
19235
19236         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19237
19238 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19239
19240         [BZ #12350]
19241         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19242         bit from old_res_options.
19243
19244         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19245
19246         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19247         value type for setfct.
19248
19249 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19250
19251         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19252         __gettimeofday instead of gettimeofday.
19253
19254 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19255
19256         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19257
19258 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19259
19260         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19261
19262         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19263         info.
19264
19265 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19266
19267         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19268         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19269         strcpy-sse2-unaligned strncpy-sse2-unaligned
19270         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19271         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19272         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19273         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19274         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19275         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19276         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19277         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19278         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19279         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19280         (STRCPY): Support SSE2 and SSSE3 versions.
19281
19282 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19283
19284         [BZ #12874]
19285         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19286         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19287         kernels which artificially limit size of requests.
19288
19289 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19290
19291         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19292         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19293         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19294         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19295         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19296         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19297         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19298         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19299         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19300         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19301         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19302         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19303         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19304         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19305         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19306         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19307         Enable unaligned load optimization for Intel Core i3, i5 and i7
19308         processors.
19309         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19310         Define.
19311         (index_Fast_Unaligned_Load): Define.
19312         (HAS_FAST_UNALIGNED_LOAD): Define.
19313
19314 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19315
19316         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19317
19318 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19319
19320         [BZ #12907]
19321         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19322         until it is clear that the information is realy needed.
19323         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19324
19325 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19326
19327         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19328
19329 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19330
19331         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19332         /sys/devices/system/cpu/online if it is usable.
19333
19334         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19335         reading the information from the /proc filesystem to once a second.
19336
19337 2011-06-21  Andreas Jaeger  <aj@suse.de>
19338
19339         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19340         NULL after inclusion of kernel headers.
19341
19342 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19343
19344         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19345         calls to internal_setent.
19346
19347         [BZ #12885]
19348         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19349         addresses using gethostbyname4_r ignore IPv4 addresses.
19350
19351         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19352         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19353
19354         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19355
19356 2011-06-20  David S. Miller  <davem@davemloft.net>
19357
19358         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19359         inclusions.
19360         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19361
19362         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19363         (elf_irel): Use it.
19364         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19365         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19366         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19367         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19368         * sysdeps/x86_64/dl-irel.h: Likewise.
19369
19370         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19371         * elf/dl-sym.c: Likewise.
19372
19373 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19374
19375         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19376         need to dereference resplen2.
19377
19378 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19379
19380         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19381
19382 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19383
19384         * Makeconfig: Define vardbdir and inst_vardbdir.
19385         * nss/Makefile: Add rules to install db-Makefile.
19386
19387         * nss/nss_db/db-XXX.c: Cleanup.
19388
19389         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19390         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19391         GLIBC_PRIVATE.
19392         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19393         * nss/makedb.c: Implement -g option to specify that value strings
19394         are generated and should not be added to table iterated over for
19395         get*ent calls.
19396         * nss/nss_db/db-initgroups.c: New file.
19397
19398         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19399         interface.
19400
19401         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19402         (internal_getgrouplist): Adjust to name change.
19403         Update use_initgroups_entry if this is not the first call.
19404         * nss/databases.def: Add initgroups entry.
19405
19406         * nss/makedb.c (compute_tables): Check result of multiple hash table
19407         sizes to minimize maximum chain length.
19408
19409 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19410
19411         * Versions.def: Add entry for libnss_db.
19412         * shlib-versions: Likewise.
19413         * nss/Makefile: Add rules to build libnss_db.
19414         * nss/Versions: Add libnss_db information.  Organize libnss_files
19415         entries better.
19416         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19417         makedb progra.  Some minor improvements to generate smaller files.
19418         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19419         here from...
19420         * nss/makedb.c: ...here.
19421         Improve database format to be smaller and require less memory at
19422         runtime.
19423         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19424         db anymore.
19425         * nss/nss_db/db-netgrp.c: Likewise.
19426         * nss/nss_db/db-open.c: Likewise.
19427         * nss/nss_files/flies-XXX.x: Adjust comments.
19428         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19429         * nss/nss_files/files-grp.c: Likewise.
19430         * nss/nss_files/files-hosts.c: Likewise.
19431         * nss/nss_files/files-network.c: Likewise.
19432         * nss/nss_files/files-proto.c: Likewise.
19433         * nss/nss_files/files-pwd.c: Likewise.
19434         * nss/nss_files/files-rpc.c: Likewise.
19435         * nss/nss_files/files-service.c: Likewise.
19436         * nss/nss_files/files-sgrp.c: Likewise.
19437         * nss/nss_files/files-spwd.c: Likewise.
19438         * nss/nss_db/db-alias.c: Removed.
19439         * nss/nss_db/dummy-db.h: Removed.
19440
19441 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19442
19443         * nss/makedb.c: Rewritten to not use database library.
19444         * nss/Makefile: Update to build new makedb program.
19445
19446 2011-06-14  Andreas Jaeger  <aj@suse.de>
19447
19448         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19449         memset declaration.
19450
19451 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19452
19453         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19454         tmpbuf.
19455
19456 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19457
19458         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19459         * elf/Makefile ($(objpfx)ld.so): Likewise.
19460
19461         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19462         Don't list ld.so twice in dependencies.
19463
19464         * posix/bug-regex31.c: Include <stdlib.h>.
19465
19466         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19467
19468         * nis/nss_compat/compat-spwd.c
19469         (getspent_next_nss_netgr): Remove unused variable.
19470         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19471
19472         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19473         nonmembers" output to use the right array.
19474
19475         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19476
19477         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19478
19479         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19480         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19481         * catgets/gencat.c (read_input_file): Likewise.
19482         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19483
19484         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19485         variable definition inside #if's controlling its use.
19486
19487         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19488
19489         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19490
19491         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19492
19493         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19494         unreachable code.
19495
19496         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19497
19498         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19499         * configure: Regenerated.
19500
19501         * Makerules: Revert last change.
19502         * elf/Makefile: Likewise.
19503
19504 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19505
19506         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19507         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19508         (reloc-link): Likewise.
19509
19510 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19511
19512         * elf/Makefile: Add rules to build pldd.
19513         * elf/pldd.c: New file.
19514         * elf/pldd-xx.c: New file.
19515
19516 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19517
19518         * version.h: Update for 2.15 development version.
19519
19520 2011-06-07  David S. Miller  <davem@davemloft.net>
19521
19522         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19523         ifuncs.
19524         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19525         elf_machine_lazy_rel): Likewise.
19526         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19527         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19528         elf_machine_lazy_rel): Likewise.
19529         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19530         dl_hwcap via passed in argument.
19531         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19532         Likewise.
19533
19534 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19535
19536         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19537
19538 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19539
19540         [BZ #12849]
19541         * manual/fdl-1.1.texi: New file, verbatim from:
19542         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19543         * manual/lgpl-2.1.texi: New file, verbatim from:
19544         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19545         * manual/Makefile (licenses): New variable, list those new file names.
19546         (texis): Use it.
19547         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19548
19549         * manual/fdl.texi: File removed.
19550         * manual/lesser.texi: File removed.
19551         * manual/libc.texinfo (Copying, Documentation License):
19552         Use new @include file names, put @appendix directive before @include.
19553
19554 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19555
19556         [BZ #12841]
19557         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19558         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19559         (mq_open): Add __NTH.
19560
19561 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19562
19563         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19564         Assume Intel Core i3/i5/i7 processor if AVX is available.
19565
19566 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19567
19568         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19569         typo.
19570
19571 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19572
19573         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19574         memory.  Use alloca_account.  Fix memory leak when retrying.
19575
19576 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19577
19578         * version.h (RELEASE): Bump for 2.14 release.
19579         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19580
19581         * config.make.in (RANLIB): Remove entry.
19582
19583 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19584
19585         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19586         (libc.pot): Work around missing support for .ksh extension in xgettext.
19587
19588         [BZ #12684]
19589         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19590         if both request failed.
19591         (send_dg): In case of server errors clear resplen or *resplen2.
19592
19593         [BZ #12454]
19594         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19595         when there are multiple maps.
19596         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19597         (_dl_fini): Remove test here.
19598
19599         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19600
19601 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19602
19603         [BZ #12350]
19604         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19605         bit from old_res_options.
19606         (gaih_inet): Likewise.
19607
19608         [BZ #11099]
19609         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19610         as signed.
19611
19612         * resolv/res_init.c (res_setoptions): Make the code more compact.
19613
19614         [BZ #11558]
19615         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19616         set RES_USEVC.
19617
19618         [BZ #11634]
19619         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19620
19621         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19622
19623         [BZ #11781]
19624         * malloc/malloc.h: Declare malloc hook variables as volatile.
19625
19626         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19627         in last patch.
19628
19629         [BZ #11799]
19630         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19631         raise in the comment.
19632         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19633         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19634         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19635
19636 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19637
19638         [BZ #12811]
19639         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19640         grow the buffers more if it already has to be sufficient.
19641         (build_wcs_upper_buffer): Likewise.
19642         * posix/regexec.c (check_matching): Likewise.
19643         (clean_state_log_if_needed): Likewise.
19644         (extend_buffers): Don't enlarge buffers beyond size of the input
19645         buffer.
19646         Patches mostly by Emil Wojak <emil@wojak.eu>.
19647         * posix/bug-regex32.c: New file.
19648         * posix/Makefile (tests): Add bug-regex32.
19649
19650         * locale/findlocale.c (_nl_find_locale): Return right away if
19651         _nl_explode_name failed.
19652         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19653
19654         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19655
19656         * debug/xtrace.sh: Unify messages.
19657         * malloc/memusage.sh: Likewise.
19658
19659         [BZ #12813]
19660         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19661         time symbol from vDSO.  Substitute with vsyscall if not available.
19662         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19663         __vdso_time.
19664
19665         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19666         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19667         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19668         Add sendmmsg and internal_sendmmsg.
19669         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19670         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19671         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19672
19673         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19674         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19675         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19676
19677 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19678
19679         [BZ #12813]
19680         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19681         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19682         available.
19683         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19684         __vdso_getcpu.
19685
19686         [BZ #12814]
19687         * iconvdata/Makefile (tests): Add bug-iconv9.
19688         * iconvdata/bug-iconv9.c: New file.
19689
19690 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19691
19692         [BZ #12814]
19693         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19694
19695 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19696
19697         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19698         (struct user_regs_struct): Change intcs field back to cs.
19699
19700 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19701
19702         * po/ja.po: Update from translation team.
19703
19704 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19705
19706         [BZ #12795]
19707         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19708         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19709
19710 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19711
19712         * stdlib/longlong.h: Update from GCC.
19713
19714 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19715
19716         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19717         parameter name.
19718         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19719         Add parameter name.
19720         (__sysconf): Pass it down.
19721
19722 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19723
19724         [BZ #12671]
19725         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19726         some situations.
19727         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19728         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19729         add in in __libc_use_alloca calls.  Adjust callers.
19730         (glob): Use malloc in some situations.
19731
19732         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19733         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19734         pltexit.
19735
19736 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19737
19738         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19739         and CLOCK_BOOTTIME_ALARM.
19740
19741         [BZ #12782]
19742         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19743         is returned.
19744
19745         * string/_strerror.c (__strerror_r): Print negative errors as signed
19746         numbers.
19747
19748         [BZ #12777]
19749         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19750         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19751         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19752
19753         * configure.in: Fix typo in redirection and correct removal of test
19754         files in two cases.
19755
19756         [BZ #12788]
19757         * locale/setlocale.c (new_composite_name): Fix test to check for
19758         identical name of all categories.
19759
19760         [BZ #12792]
19761         * libio/filedoalloc.c (local_isatty): New function.
19762         (_IO_file_doallocate): Use local_isatty.
19763         * stdio-common/perror.c (perror): In case a new stream is used
19764         forward the stream error.
19765         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19766         error flag.
19767
19768 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19769
19770         [BZ #11869]
19771         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19772         alloca.
19773         * include/alloca.h (extend_alloca_account): Define.
19774
19775         [BZ #11857]
19776         * posix/regex.h: Fix comments with documentation of user-accessible
19777         fields after compilation and describe correct free'ing of pattern
19778         after re_compile_pattern.
19779         Patch by Reuben Thomas <rrt@sc3d.org>.
19780
19781 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19782
19783         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19784         and -mno-altivec to prevent the compiler from using Altivec and/or
19785         VSX instructions when the corresponding registers are not available.
19786
19787 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19788
19789         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19790
19791 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19792
19793         * libio/freopen.c (freopen): Use __dup2, not dup2.
19794         * libio/freopen64.c (freopen64): Likewise.
19795
19796 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19797
19798         [BZ #12775]
19799         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19800         * math/Makefile (tests): Add test-powl.
19801         (CFLAGS-test-powl.c): Define.
19802         * math/test-powl.c: New file.
19803
19804 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19805
19806         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19807
19808 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19809
19810         [BZ #11837]
19811         * iconvdata/gb18030.c: Update to GB18020-2005.
19812
19813 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19814
19815         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19816         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19817         Patch by Aharon Robbins <arnold@skeeve.com>.
19818
19819         [BZ #11892]
19820         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19821         on the stack.
19822
19823         [BZ #11895]
19824         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19825         through underflows.
19826
19827         [BZ #12766]
19828         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19829         point to strings before performing equality test for error_one_per_line
19830         mode.
19831
19832         [BZ #11697]
19833         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19834
19835         [BZ #11820]
19836         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19837         (struct user_fpregs_struct): Avoid __uint*_t types.
19838
19839         [BZ #6420]
19840         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19841         symbol info.  Use it instead of calling _dl_addr locally.
19842         (lock_and_info): New function.
19843         (tr_freehook): Call lock_and_info and pass symbol info as additional
19844         parameter to tr_where.
19845         (tr_mallochook): Likewise.
19846         (tr_reallochook): Likewise.
19847         (tr_memalignhook): Likewise.
19848
19849         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19850         used and couldn't be at all thread-safe.
19851
19852 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19853
19854         * libio/freopen.c (freopen): Don't close old file descriptor
19855         before the new one is opened.  Instead dup the new file descriptor
19856         to the old one after the new stream is created.
19857         * libio/freopen64.c (freopen64): Likewise.
19858         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19859         * libio/fileops.c (_IO_new_file_close_it): Handle new
19860         _IO_FLAGS2_NOCLOSE flag.
19861         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19862         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19863         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19864         _IO_FLAGS2_NOCLOSE flag.
19865         * include/unistd.h: Add hidden_proto for dup3.
19866         Define __have_dup3.
19867         * io/dup3.c: Define hidden symbol.
19868         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19869
19870         [BZ #7101]
19871         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19872         when an incomplete long option is used.
19873         * posix/tst-getopt_long1.c: New file.
19874         * posix/Makefile (tests): Add tst-getopt_long1.
19875
19876         [BZ #10138]
19877         * scripts/config.guess: Update from autoconf-2.68.
19878         * scripts/config.sub: Likewise.
19879
19880         [BZ #10157]
19881         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19882         tests into ...
19883         (has_cpuclock): ...this.  New function.
19884         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19885         macro here based on has_cpuclock code.
19886
19887         [BZ #10149]
19888         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19889         First byte (not low byte) is now always NUL.
19890         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19891
19892         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19893         Use non-cancelable interfaces.
19894
19895         [BZ #9809]
19896         * locale/iso-639.def: Add entry for Sorani.
19897
19898         [BZ #11901]
19899         * include/stdlib.h: Move include protection to the right place.
19900         Define abort_msg_s.  Declare __abort_msg with it.
19901         * stdlib/abort.c (__abort_msg): Adjust type.
19902         * assert/assert.c (__assert_fail_base): New function.  Majority
19903         of code from __assert_fail.  Allocate memory for __abort_msg with
19904         mmap.
19905         (__assert_fail): Now call __assert_fail_base.
19906         * assert/assert-perr.c: Remove bulk of implementation.  Use
19907         __assert_fail_base.
19908         * include/assert.hL Declare __assert_fail_base.
19909         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19910         mmap.
19911         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19912
19913 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19914
19915         [BZ #11952]
19916         [BZ #12453]
19917         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19918         until all modules are registered in the DTV.
19919         * elf/Makefile: Add rules to build and run tst-tls19.
19920         * elf/tst-tls19.c: New file.
19921         * elf/tst-tls19mod1.c: New file.
19922         * elf/tst-tls19mod2.c: New file.
19923         * elf/tst-tls19mod3.c: New file.
19924         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19925
19926         [BZ #12083]
19927         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19928         correctly.
19929
19930         [BZ #12601]
19931         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19932         two-byte sequence errors.
19933         * iconvdata/Makefile (tests): Add bug-iconv8.
19934         * iconvdata/bug-iconv8.c: New file.
19935
19936         [BZ #12626]
19937         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19938         buf2 definition.
19939
19940         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19941
19942         [BZ #12432]
19943         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19944         (dummy_getcfa): New function.
19945         (init): Get _Unwind_GetCFA address, use dummy if not found.
19946         (backtrace_helper): In recursion check, also check whether CFA changes.
19947         (__backtrace): Completely initialize arg.
19948
19949         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19950         storing incomplete byte sequence in state object.  Avoid testing for
19951         guaranteed too small input if we know there is enough data available.
19952
19953 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19954
19955         * Makeconfig (+link-pie): Indent.
19956         * Rules (binaries-pie): Define if $(have-fpie) and
19957         $(build-shared).
19958         (binaries-shared): Also filter out $(binaries-pie).
19959         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19960         * nscd/Makefile (others-pie): Add nscd.
19961         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19962         ($(objpfx)nscd): Remove command override.
19963         * login/Makefile (others-pie): Add pt_chown.
19964         ($(objpfx)pt_chown): Remove command override.
19965         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19966         remove command overrides.
19967
19968 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19969
19970         * libio/tst_putwc.c: Fix error messages.
19971
19972         [BZ #12724]
19973         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19974         currently writing and seek to current position when not.
19975         * libio/Makefile (tests): Add bug-fclose1.
19976         * libio/bug-fclose1.c: New file.
19977
19978 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19979
19980         [BZ #12511]
19981         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19982         don't set DF_1_NODELETE here.
19983         (do_lookup_x): When entering new entry test for copy relocation
19984         and if necessary set DF_1_NODELETE flag.
19985         * elf/tst-unique4.cc: New file.
19986         * elf/tst-unique4.h: New file.
19987         * elf/tst-unique4lib.cc: New file.
19988         * elf/Makefile: Add rules to build and run tst-unique4.
19989         Patch by Piotr Bury <pbury@goahead.com>.
19990
19991 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19992
19993         [BZ #12052]
19994         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19995
19996         [BZ #12625]
19997         * misc/mntent_r.c (addmntent): Flush the stream after the output
19998
19999         [BZ #12393]
20000         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20001         (is_trusted_path_normalize): Skip initial colon.  Append slash
20002         to empty buffer.  Duplicate is_trusted_path code but allow
20003         constructed patch to be prefix.
20004         (is_dst): Allow $ORIGIN followed by /.
20005         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20006         Correct testing of result of is_trusted_path_normalize
20007         (decompose_rpath): Fix warning.
20008
20009 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20010
20011         [BZ #11257]
20012         * grp/initgroups.c (internal_getgrouplist): When we found the service
20013         list through the initgroups entry in nsswitch.conf do not always
20014         continue on a successful lookup.  Don't always use the
20015         __nss_group_database value if it is set.
20016         * nss/nsswitch.conf (initgroups): Change action for successful db
20017         lookup to continue for compatibility.
20018
20019 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20020
20021         [BZ #11532]
20022         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20023         and CP774 modules.
20024         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20025         and CP774 modules.
20026         * iconvdata/tst-tables.sh: Likewise.
20027         * iconvdata/cp770.c: New file.
20028         * iconvdata/cp771.c: New file.
20029         * iconvdata/cp772.c: New file.
20030         * iconvdata/cp773.c: New file.
20031         * iconvdata/cp774.c: New file.
20032         * iconvdata/testdata/CP770: New file.
20033         * iconvdata/testdata/CP770..UTF8: New file.
20034         * iconvdata/testdata/CP771: New file.
20035         * iconvdata/testdata/CP771..UTF8: New file.
20036         * iconvdata/testdata/CP772: New file.
20037         * iconvdata/testdata/CP772..UTF8: New file.
20038         * iconvdata/testdata/CP773: New file.
20039         * iconvdata/testdata/CP773..UTF8: New file.
20040         * iconvdata/testdata/CP774: New file.
20041         * iconvdata/testdata/CP774..UTF8: New file.
20042
20043         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20044         END CHARMAP line.
20045         * iconvdata/gen-8bit-gap.sh: Likewise.
20046         * iconvdata/gen-8bit.sh: Likewise.
20047
20048         * locale/iso-639.def: Add ary entry.
20049
20050         [BZ #11258]
20051         * locale/C-translit.h.in: Add U20A1 transliteration.
20052
20053         [BZ #12178]
20054         * locale/iso-639.def: Add wae entry.
20055         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20056
20057         [BZ #12545]
20058         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20059         for n.
20060
20061         [BZ #12711]
20062         * locale/C-translit.h.in: Add entry for U20B9.
20063         Patch by pravin.d.s@gmail.com.
20064
20065 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20066
20067         [BZ #12713]
20068         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20069         ENAMETOOLONG use generic getcwd.
20070         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20071         in rtld.  Use *stat64.
20072         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20073         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20074         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20075         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20076         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20077         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20078         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20079         __fstatat64 macros.
20080         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20081         * dirent/rewinddir.c: Add libc_hidden_def.
20082         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20083         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20084
20085         * include/dirent.h (__alloc_dir): Add flags parameter.
20086         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20087         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20088         __alloc_dir.
20089         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20090         from fdopendir if O_CLOEXEC is already set.
20091
20092 2011-03-15  Alan Modra  <amodra@gmail.com>
20093
20094         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20095         l_tls_firstbyte_offset non-zero.  Save padding offset in
20096         l_tls_firstbyte_offset for later use.
20097         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20098         freeing static tls block.
20099
20100 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20101
20102         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20103         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20104         being defined by the kernel headers.
20105
20106 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20107
20108         [BZ #12734]
20109         * resolv/resolv.h: Define RES_NOTLDQUERY.
20110         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20111         no-tld-query and set RES_NOTLDQUERY.
20112         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20113         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20114         modern BIND to search name as TLD unless forbidden.
20115
20116 2011-05-07  Petr Baudis  <pasky@suse.cz>
20117             Ulrich Drepper  <drepper@gmail.com>
20118
20119         [BZ #12393]
20120         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20121         (is_trusted_path): ...to here.
20122         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20123         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20124         using is_trusted_path_normalize() in setuid scripts.
20125
20126 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20127
20128         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20129         __BEGIN/__END_DECLS.
20130
20131 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20132
20133         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20134         NSS_STATUS_NOTFOUND if no record was found.
20135
20136 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20137
20138         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20139         (headers-not-in-tirpc): Remove rpc/netdb.h
20140         * resolv/netdb.h: Revert last change.
20141
20142 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20143
20144         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20145         circular dependency between libgcc.a and libc.a.
20146
20147 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20148
20149         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20150         * nis/Makefile: Don't install rpcsvc/*.
20151         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20152         instead of <rpc/types.h>.
20153         (MAXHOSTNAMELEN): Define.
20154
20155 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20156
20157         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20158
20159 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20160
20161         [BZ #12714]
20162         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20163         gethostbyname4_r when IPv6 results are possible.
20164
20165 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20166
20167         [BZ #12723]
20168         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20169         _PC_PIPE_BUF handling.
20170
20171 2011-04-30  Bruno Haible  <bruno@clisp.org>
20172
20173         [BZ #12717]
20174         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20175         * resolv/netdb.h (getnameinfo): Change type of flags parameter
20176         to 'int'.
20177         * inet/getnameinfo.c (getnameinfo): Likewise.
20178
20179 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
20180
20181         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20182         to groups setting in database lookup.
20183         * nss/nsswitch.conf: Add initgroups entry.
20184
20185 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
20186
20187         [BZ #12685]
20188         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20189         mode string.
20190         Patch by Eric Blake <eblake@redhat.com>.
20191
20192 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20193
20194         * sunrpc/Makefile (need-export-routines): Add svc_run.
20195         (routines): Remove svc_run.
20196         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20197         * sunrpc/clnt_perr.c (clnt_perrno): Export.
20198         * sunrpc/svc_run.c (svc_run): Likewise.
20199         * sunrpc/svc_udp.c (svcudp_create): Likewise.
20200
20201 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
20202
20203         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20204         problem in reallocation in last patch.
20205
20206 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20207
20208         * sunrpc/Makefile: Move inclusion of Rules.
20209
20210 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20211
20212         * nss/nss_files/files-initgroups.c: New file.
20213         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20214         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20215         _nss_files_initgroups_dyn.
20216
20217 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20218
20219         * elf/elf.h (R_ARM_IRELATIVE): Define.
20220
20221 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20222
20223         * po/ru.po: Update from translation team.
20224
20225 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20226
20227         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20228         dependencies.
20229
20230 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20231
20232         [BZ #12653]
20233         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20234         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20235         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20236         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20237         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20238
20239 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20240
20241         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20242         differing bytes.
20243         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20244         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20245         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20246
20247 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20248
20249         [BZ #12420]
20250         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20251         storing it.
20252         * stdlib/bug-getcontext.c: New file.
20253         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20254
20255 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20256
20257         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20258         instructions into .machine "z9-109".
20259         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20260         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20261
20262 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20263
20264         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20265         between environment variables and auxiliary vector.
20266
20267 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20268
20269         * Makefile: Add rules to build linkobj/libc.so.
20270         * include/libc-symbols.h: Define libc_hidden_nolink.
20271         * include/rpc/auth.h: Mark functions which are to be hidden.
20272         * include/rpc/auth_des.h: Likewise.
20273         * include/rpc/auth_unix.h: Likewise.
20274         * include/rpc/clnt.h: Likewise.
20275         * include/rpc/des_crypt.h: Likewise.
20276         * include/rpc/key_prot.h: Likewise.
20277         * include/rpc/pmap_clnt.h: Likewise.
20278         * include/rpc/pmap_prot.h: Likewise.
20279         * include/rpc/pmap_rmt.h: Likewise.
20280         * include/rpc/rpc_msg.h: Likewise.
20281         * include/rpc/svc.h: Likewise.
20282         * include/rpc/svc_auth.h: Likewise.
20283         * include/rpc/xdr.h: Likewise.
20284         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20285         * nss/Makefile: Likewise.
20286         * sunrpc/Makefile: Don't install headers.  Build library with normal
20287         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20288         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20289         for the compat linking library.  Remove use of INTDEF/INTUSE.
20290         * sunrpc/auth_none.c: Likewise.
20291         * sunrpc/auth_unix.c: Likewise.
20292         * sunrpc/authdes_prot.c: Likewise.
20293         * sunrpc/authuxprot.c: Likewise.
20294         * sunrpc/clnt_gen.c: Likewise.
20295         * sunrpc/clnt_perr.c: Likewise.
20296         * sunrpc/clnt_raw.c: Likewise.
20297         * sunrpc/clnt_simp.c: Likewise.
20298         * sunrpc/clnt_tcp.c: Likewise.
20299         * sunrpc/clnt_udp.c: Likewise.
20300         * sunrpc/clnt_unix.c: Likewise.
20301         * sunrpc/des_crypt.c: Likewise.
20302         * sunrpc/des_soft.c: Likewise.
20303         * sunrpc/get_myaddr.c: Likewise.
20304         * sunrpc/key_call.c: Likewise.
20305         * sunrpc/key_prot.c: Likewise.
20306         * sunrpc/netname.c: Likewise.
20307         * sunrpc/pm_getmaps.c: Likewise.
20308         * sunrpc/pm_getport.c: Likewise.
20309         * sunrpc/pmap_clnt.c: Likewise.
20310         * sunrpc/pmap_prot.c: Likewise.
20311         * sunrpc/pmap_prot2.c: Likewise.
20312         * sunrpc/pmap_rmt.c: Likewise.
20313         * sunrpc/publickey.c: Likewise.
20314         * sunrpc/rpc_cmsg.c: Likewise.
20315         * sunrpc/rpc_common.c: Likewise.
20316         * sunrpc/rpc_dtable.c: Likewise.
20317         * sunrpc/rpc_prot.c: Likewise.
20318         * sunrpc/rpc_thread.c: Likewise.
20319         * sunrpc/rtime.c: Likewise.
20320         * sunrpc/svc.c: Likewise.
20321         * sunrpc/svc_auth.c: Likewise.
20322         * sunrpc/svc_authux.c: Likewise.
20323         * sunrpc/svc_raw.c: Likewise.
20324         * sunrpc/svc_run.c: Likewise.
20325         * sunrpc/svc_simple.c: Likewise.
20326         * sunrpc/svc_tcp.c: Likewise.
20327         * sunrpc/svc_udp.c: Likewise.
20328         * sunrpc/svc_unix.c: Likewise.
20329         * sunrpc/svcauth_des.c: Likewise.
20330         * sunrpc/xcrypt.c: Likewise.
20331         * sunrpc/xdr.c: Likewise.
20332         * sunrpc/xdr_array.c: Likewise.
20333         * sunrpc/xdr_float.c: Likewise.
20334         * sunrpc/xdr_intXX_t.c: Likewise.
20335         * sunrpc/xdr_mem.c: Likewise.
20336         * sunrpc/xdr_rec.c: Likewise.
20337         * sunrpc/xdr_ref.c: Likewise.
20338         * sunrpc/xdr_sizeof.c: Likewise.
20339         * sunrpc/xdr_stdio.c: Likewise.
20340
20341 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20342
20343         [BZ #12650]
20344         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20345         * sysdeps/ia64/dl-tls.h: Likewise.
20346         * sysdeps/powerpc/dl-tls.h: Likewise.
20347         * sysdeps/s390/dl-tls.h: Likewise.
20348         * sysdeps/sh/dl-tls.h: Likewise.
20349         * sysdeps/sparc/dl-tls.h: Likewise.
20350         * sysdeps/x86_64/dl-tls.h: Likewise.
20351         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20352
20353 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20354
20355         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20356         rpath element also skip the following colon.
20357         (expand_dynamic_string_token): Add is_path parameter and pass
20358         down to DL_DST_REQUIRED and _dl_dst_substitute.
20359         (decompose_rpath): Call expand_dynamic_string_token with
20360         non-zero is_path.  Ignore empty rpaths.
20361         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20362         with zero is_path.
20363
20364 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20365
20366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20367         Make cancelable.
20368
20369 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20370
20371         [BZ #12655]
20372         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20373         Patch by Filipe David Manana <fdmanana@apache.org>.
20374
20375 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20376
20377         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20378         Maintain aligned stack.
20379         (CHECK_RSP): Remove unused macro.
20380
20381 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20382
20383         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20384         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20385
20386 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20387
20388         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20389
20390         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20391
20392 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20393
20394         [BZ #12518]
20395         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20396         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20397         * sysdeps/x86_64/memmove.c: New file.
20398         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20399         (memcpy): Renamed to ...
20400         (__new_memcpy): This.
20401         (memcpy): Provide GLIBC_2_14 memcpy.
20402         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20403         (memcpy): Provide GLIBC_2_2_5 memcpy.
20404
20405 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20406
20407         [BZ #12631]
20408         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20409
20410 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20411
20412         * misc/syncfs.c: New file.
20413         * misc/Makefile (routines): Add syncfs.
20414         * posix/unistd.h: Declare syncfs.
20415         * sysdeps/unix/syscalls.list: Add syncfs.
20416
20417 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20418
20419         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20420         open_by_handle_at.
20421         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20422         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20423         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20424         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20425         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20426         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20427         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20428
20429 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20430
20431         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20432         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20433         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20434         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20435         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20436         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20437         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20438
20439         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20440         sync_file_range.c with -fexceptions.
20441         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20442         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20443         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20444         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20445         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20446         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20447         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20448         sync_file_range as cancellation point
20449         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20450         now a wrapper around __call_sync_file_range with cancellation handling.
20451         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20452         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20453         function name to __call_sync_file_range.
20454         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20455         Add call_sync_file_range.
20456
20457 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20458
20459         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20460         bits/timex.h.
20461
20462 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20463
20464         * iconv/iconv.h: Fix typo in comment.
20465         * io/fcntl.h: Likewise.
20466         * libio/stdio.h: Likewise.
20467         * posix/spawn.h: Likewise.
20468         * posix/unistd.h: Likewise.
20469         * stdlib/stdlib.h: Likewise.
20470         * time/time.h: Likewise.
20471         * wcsmbs/wchar.h: Likewise.
20472
20473         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20474         open_by_handle): Add.
20475         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20476         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20477         Augment a few comments.
20478         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20479         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20480         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20481         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20482         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20483         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20484         open_by_handle.
20485
20486         * io/fcntl.h (AT_EMPTY_PATH): Define.
20487
20488 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20489
20490         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20491         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20492         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20493         to...
20494         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20495         * Versions.def: Add GLIBC_2.14.
20496         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20497         Export.
20498
20499 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20500
20501         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20502         round counter.
20503         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20504
20505 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20506
20507         [BZ #12597]
20508         * string/test-strncmp.c (do_page_test): New function.
20509         (check2): Likewise.
20510         (test_main): Call check2.
20511         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20512
20513 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20514
20515         [BZ #12587]
20516         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20517         Handle cache information in CPU leaf 4.
20518         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20519
20520 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20521
20522         [BZ #12583]
20523         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20524         character representation.
20525         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20526
20527 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20528
20529         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20530         END(__isnan) to END(__isnanf) to match function entry point/label
20531         EALIGN(__isnanf,...).
20532
20533 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20534
20535         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20536
20537 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20538
20539         [BZ #12510]
20540         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20541         copy from the symbol referenced in the relocation to initialize the
20542         used variable.
20543         Patch by Piotr Bury <pbury@goahead.com>.
20544         * elf/Makefile: Add rules to build and tst-unique3.
20545         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20546         * elf/tst-unique3.cc: New file.
20547         * elf/tst-unique3.h: New file.
20548         * elf/tst-unique3lib.cc: New file.
20549         * elf/tst-unique3lib2.cc: New file.
20550
20551         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20552
20553 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20554
20555         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20556         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20557         to _start.
20558
20559 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20560
20561         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20562         to-be-loaded object along a path to loader is ld.so.
20563
20564 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20565             Ulrich Drepper  <drepper@gmail.com>
20566
20567         * sysdeps/x86_64/memset.S: After aligning destination, code
20568         branches to different locations depending on the value of
20569         misalignment, when multiarch is enabled. Fix this.
20570
20571 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20572
20573         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20574         Set _x86_64_preferred_memory_instruction for AMD processsors.
20575         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20576         Set bit_Prefer_SSE_for_memop for AMD processors.
20577
20578 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20579
20580         * libio/fmemopen.c (fmemopen): Optimize a bit.
20581
20582 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20583
20584         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20585
20586 2011-03-03  Roland McGrath  <roland@redhat.com>
20587
20588         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20589
20590 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20591
20592         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20593         __bzero_ultra1 instead of __memset_ultra1.
20594
20595 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20596             Ulrich Drepper  <drepper@gmail.com>
20597
20598         [BZ #12509]
20599         * include/link.h (struct link_map): Add l_orig_initfini.
20600         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20601         returning unsuccessfully.
20602         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20603         close of a file loaded at startup, restore the original l_initfini
20604         list.
20605         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20606         list, store the pointer.
20607         * elf/Makefile ($(objpfx)noload-mem): New rule.
20608         (noload-ENV): Define.
20609         (tests): Add $(objpfx)noload-mem.
20610         * elf/noload.c: Include <memcheck.h>.
20611         (main): Call mtrace.  Close all opened handles.
20612
20613 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20614
20615         [BZ #12454]
20616         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20617         dependencies are missing.
20618
20619 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20620
20621         Fix __if_freereq crash: Unlike the generic version which uses free,
20622         Hurd needs munmap.
20623         * sysdeps/mach/hurd/ifreq.h: New file.
20624
20625 2011-01-27  Petr Baudis  <pasky@suse.cz>
20626             Ulrich Drepper  <drepper@gmail.com>
20627
20628         [BZ 12445]#
20629         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20630         to extend_alloca().
20631         * stdio-common/bug23.c: New file.
20632         * stdio-common/Makefile (tests): Add bug23.
20633
20634 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20635             Ulrich Drepper  <drepper@gmail.com>
20636
20637         [BZ #12489]
20638         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20639         before performing relro protection.  At old place add assertion
20640         to make sure nothing changed.
20641
20642 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20643             Glauber de Oliveira Costa  <glommer@gmail.com>
20644
20645         * elf/elf.h: Add new ARM TLS relocs.
20646
20647 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20648
20649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20650         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20651         cast from r3.
20652         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20653         'tests' variable.
20654         * sysdeps/wordsize-64/tst-writev.c: New file.
20655
20656 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20657
20658         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20659         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20660         insns in _dl_start to prevent a TOC reference before relocs are
20661         resolved.
20662
20663 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20664
20665         [BZ #12469]
20666         * Makeconfig: Remove RANLIB definition.
20667         * Makerules: Don't use RANLIB.
20668         * aclocal.m4: Remove ranlib test.
20669         * configure.in: No need to check for ranlib.
20670         * elf/rtld-Rules: Don't use RANLIB.
20671
20672 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20673
20674         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20675         protection macro.
20676         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20677         inclusion protection macro.
20678
20679         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20680         SIGRTMIN and SIGRTMAX and print information in that case only when
20681         SIGRTMIN is defined.
20682
20683 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20684
20685         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20686         arginfo fn returning -1.
20687
20688         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20689         and thousands string is zero terminated.
20690
20691 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20692
20693         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20694         sysdeps/unix/sysv/linux/bits/socket.h.
20695
20696 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20697
20698         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20699         (__CPU_COUNT): Remove old macros.
20700         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20701         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20702         (__CPU_ALLOC, __CPU_FREE): Add macros.
20703         (__sched_cpualloc, __sched_cpufree): Add declarations.
20704
20705 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20706
20707         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20708         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20709         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20710         (readdhstai): Return value of addhstaiX call.
20711         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20712         (addgrbyX): Return value returned by cache_addgr.
20713         (readdgrbyname): Return value returned by addgrbyX.
20714         (readdgrbygid): Likewise.
20715         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20716         (addpwbyX): Return value returned by cache_addpw.
20717         (readdpwbyname): Return value returned by addhstbyX.
20718         (readdpwbyuid): Likewise.
20719         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20720         (addservbyX): Return value returned by cache_addserv.
20721         (readdservbyname): Return value returned by addservbyX:
20722         (readdservbyport): Likewise.
20723         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20724         (addhstbyX): Return value returned by cache_addhst.
20725         (readdhstbyname): Return value returned by addhstbyX.
20726         (readdhstbyaddr): Likewise.
20727         (readdhstbynamev6): Likewise.
20728         (readdhstbyaddrv6): Likewise.
20729         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20730         (readdinitgroups): Return value returned by addinitgroupsX.
20731         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20732         (prune_cache): Keep track of timeout value of re-added entries.
20733         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20734         * nscd/nscd.h: Adjust prototypes of readd* functions.
20735
20736 2011-02-04  Roland McGrath  <roland@redhat.com>
20737
20738         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20739         (nis_stats): Likewise.
20740         * nis/nis_modify.c (nis_modify): Likewise.
20741         * nis/nis_remove.c (nis_remove): Likewise.
20742         * nis/nis_add.c (nis_add): Likewise.
20743
20744         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20745
20746         * posix/fnmatch_loop.c: Add some consts.
20747
20748         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20749
20750 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20751
20752         [BZ #12460]
20753         * config.make.in (config-cflags-novzeroupper): Define.
20754         * configure.in: Substitute libc_cv_cc_novzeroupper.
20755         * elf/Makefile (AVX-CFLAGS): Define.
20756         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20757         (CFLAGS-tst-auditmod4a.c): Likewise.
20758         (CFLAGS-tst-auditmod4b.c): Likewise.
20759         (CFLAGS-tst-auditmod6b.c): Likewise.
20760         (CFLAGS-tst-auditmod6c.c): Likewise.
20761         (CFLAGS-tst-auditmod7b.c): Likewise.
20762         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20763
20764 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20765
20766         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20767         function to the callback.
20768         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20769
20770 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20771
20772         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20773         of errno.
20774
20775 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20776
20777         [BZ #11724]
20778         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20779         of constructors.
20780         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20781         of destructors.
20782         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20783
20784         [BZ #11724]
20785         * elf/Makefile: Add rules to build and run new test.
20786         * elf/tst-initorder.c: New file.
20787         * elf/tst-initorder.exp: New file.
20788         * elf/tst-initordera1.c: New file.
20789         * elf/tst-initordera2.c: New file.
20790         * elf/tst-initordera3.c: New file.
20791         * elf/tst-initordera4.c: New file.
20792         * elf/tst-initorderb1.c: New file.
20793         * elf/tst-initorderb2.c: New file.
20794         * elf/tst-order-a1.c: New file.
20795         * elf/tst-order-a2.c: New file.
20796         * elf/tst-order-a3.c: New file.
20797         * elf/tst-order-a4.c: New file.
20798         * elf/tst-order-b1.c: New file.
20799         * elf/tst-order-b2.c: New file.
20800         * elf/tst-order-main.c: New file.
20801         New test case by George Gensure <werkt0@gmail.com>.
20802
20803 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20804
20805         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20806         decoding ACE if AI_CANONIDN.
20807
20808 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20809
20810         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20811
20812 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20813
20814         * version.h (RELEASE): Bump for 2.13 release.
20815         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20816
20817         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20818
20819         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20820         MADV_NOHUGEPAGE.
20821         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20822         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20823         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20824         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20825         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20826         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20827
20828         * posix/getconf.c: Update copyright year.
20829         * catgets/gencat.c: Likewise.
20830         * csu/version.c: Likewise.
20831         * debug/catchsegv.sh: Likewise.
20832         * debug/xtrace.sh: Likewise.
20833         * elf/ldconfig.c: Likewise.
20834         * elf/ldd.bash.in: Likewise.
20835         * elf/sprof.c (print_version): Likewise.
20836         * iconv/iconv_prog.c: Likewise.
20837         * iconv/iconvconfig.c: Likewise.
20838         * locale/programs/locale.c: Likewise.
20839         * locale/programs/localedef.c: Likewise.
20840         * malloc/memusage.sh: Likewise.
20841         * malloc/mtrace.pl: Likewise.
20842         * nscd/nscd.c (print_version): Likewise.
20843         * nss/getent.c: Likewise.
20844
20845         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20846         PF_CAIF, and PF_ALG.
20847         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20848
20849 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20850
20851         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20852         (modules-names): Use them.
20853         (ifunc-test-modules, ifunc-pie-tests): Define.
20854         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20855         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20856         (test-extras): Likewise.
20857         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20858         $(compile-command.c).
20859         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20860         (all-built-dso): Define.
20861         (check-textrel.out, check-execstack.out): Depend on it.
20862
20863         * configure.in: Don't override --enable-multi-arch.
20864
20865 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20866
20867         [BZ #6812]
20868         * nscd/hstcache.c (tryagain): Define.
20869         (cache_addhst): Return tryagain not notfound for temporary errors.
20870         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20871         failed.
20872
20873 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20874
20875         [BZ #10563]
20876         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20877         to make the syscall.
20878         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20879
20880         [BZ #12378]
20881         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20882         and fall back to matching as normal character if the string ends before
20883         the matching ']' is found.  This is what POSIX requires.
20884         * posix/testfnm.c: Adjust test result.
20885         * posix/globtest.sh: Adjust test result.  Add new test.
20886         * posix/tst-fnmatch.input: Likewise.
20887         * posix/tst-fnmatch2.c: Add new test.
20888
20889 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20890
20891         * elf/Makefile (check-execstack): Revert last change.  Depend on
20892         check-execstack.h.
20893         (check-execstack.h): New target.
20894         (generated): Add check-execstack.h.
20895         * elf/check-execstack.c: Include "check-execstack.h".
20896         (main): Revert last change.
20897         (handle_file): Return zero if GNU_STACK is absent and
20898         DEFAULT_STACK_PERMS doesn't include PF_X.
20899
20900 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20901
20902         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20903         in child fails because the descriptor is already closed.
20904         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20905         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20906         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20907
20908         [BZ #12397]
20909         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20910         syscall.
20911
20912         [BZ #10484]
20913         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20914         temporary buffer used to handle multi lookups locally.
20915         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20916
20917 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20918
20919         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20920         loader is ld.so.
20921
20922 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20923
20924         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20925         alignment for SSE2.
20926
20927 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20928
20929         [BZ #12394]
20930         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20931         characters.  When rounding increased number of integer digits recompute
20932         number of groups.
20933         * stdio-common/tst-grouping.c: New file.
20934         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20935
20936 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20937
20938         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20939         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20940
20941         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20942         void.
20943         * bits/select.h: Likewise.
20944
20945 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20946
20947         * po/ja.po: Update from translation team.
20948
20949 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20950
20951         [BZ #11155]
20952         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20953         implementation just like for lxstat, fxstatat, et al.
20954
20955 2010-12-27  Jim Meyering  <meyering@redhat.com>
20956
20957         [BZ #12348]
20958         * posix/regexec.c (build_trtable): Return failure indication upon
20959         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20960
20961 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20962
20963         [BZ #12201]
20964         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20965         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20966         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20967         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20968
20969         [BZ #12207]
20970         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20971
20972         [BZ #12204]
20973         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20974         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20975
20976 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20977
20978         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20979         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20980         script has SORT_BY_INIT_PRIORITY.
20981         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20982         NO_CTORS_DTORS_SECTIONS is defined.
20983         * elf/soinit.c: Likewise.
20984         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20985         NO_CTORS_DTORS_SECTIONS is defined.
20986         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20987         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20988         * sysdeps/sh/init-first.c: Likewise.
20989         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20990
20991 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20992
20993         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20994         always use the slow path.
20995
20996 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20997
20998         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20999         similar rule which adds the sysdep directories to the header search in
21000         order to pick up the correct platform stackinfo.h.
21001         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21002         perform test if it is, otherwise return successfully without testing.
21003         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21004         DEFAULT_STACK_PERMS define in stackinfo.h.
21005         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21006         defined in stackinfo.h.
21007         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21008         DEFAULT_STACK_PERMS defined in stackinfo.h.
21009         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21010         * sysdeps/ia64/stackinfo.h: Likewise.
21011         * sysdeps/s390/stackinfo.h: Likewise.
21012         * sysdeps/sh/stackinfo.h: Likewise.
21013         * sysdeps/sparc/stackinfo.h: Likewise.
21014         * sysdeps/x86_64/stackinfo.h: Likewise.
21015         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21016         PF_X for powerpc64.  Retain PF_X for powerpc32.
21017
21018 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21019
21020         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21021         accurately.
21022         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21023         GETDENTS_64BIT_ALIGNED.
21024
21025 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21026
21027         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21028
21029 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21030
21031         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21032         _GNU_SOURCE.
21033
21034         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21035         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21036         Remove __restrict.
21037         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21038         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21039
21040 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21041
21042         [BZ #11655]
21043         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21044         are initialized.
21045
21046 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21047
21048         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21049
21050 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21051
21052         * po/it.po: Update from translation team.
21053
21054 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21055
21056         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21057         unused codes.
21058
21059 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21060
21061         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21062
21063 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21064
21065         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21066         specially.
21067         (gaih_getanswer_slice): Likewise.
21068
21069 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21070
21071         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21072
21073 2010-05-31  Petr Baudis  <pasky@suse.cz>
21074
21075         [BZ #11149]
21076         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21077         silently even in the chroot mode.
21078
21079 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21080
21081         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21082         last patch a bit.  Pretty printing
21083
21084 2010-05-31  Petr Baudis <pasky@suse.cz>
21085
21086         [BZ #10085]
21087         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21088         initialization of skip_initgroups_dyn.
21089
21090 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21091
21092         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21093         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21094
21095 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21096
21097         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21098
21099 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21100
21101         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21102         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21103         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21104         ($(objpfx)tst-fnmatch-mem): New rule.
21105         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21106         * posix/tst-fnmatch.c (main): Call mtrace.
21107
21108 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21109
21110         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21111         Support Intel processor model 6 and model 0x2c.
21112
21113 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21114
21115         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21116           signed comparison.
21117
21118 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21119
21120         [BZ #12205]
21121         * string/test-strncasecmp.c (check_result): New function.
21122         (do_one_test): Use it.
21123         (check1): New function.
21124         (test_main): Use it.
21125         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21126         Support strcasecmp and strncasecmp.
21127
21128 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21129
21130         [BZ #12194]
21131         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21132         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21133
21134 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21135
21136         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21137         IFUNC support.
21138         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21139         memset-x86-64.
21140         * sysdeps/x86_64/multiarch/bzero.S: New file.
21141         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21142         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21143         * sysdeps/x86_64/multiarch/memset.S: New file.
21144         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21145         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21146         Set bit_Prefer_SSE_for_memop for Intel processors.
21147         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21148         Define.
21149         (index_Prefer_SSE_for_memop): Define.
21150         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21151
21152 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21153
21154         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21155         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21156
21157 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21158
21159         [BZ #12191]
21160         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21161         (__x86_64_raw_data_cache_size_half): Likewise.
21162         (__x86_64_raw_shared_cache_size): Likewise.
21163         (__x86_64_raw_shared_cache_size_half): Likewise.
21164
21165         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21166         (__x86_64_raw_data_cache_size_half): Likewise.
21167         (__x86_64_raw_shared_cache_size): Likewise.
21168         (__x86_64_raw_shared_cache_size_half): Likewise.
21169         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21170         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21171         and __x86_64_raw_shared_cache_size_half.  Round
21172         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21173         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21174         to multiple of 256 bytes.
21175
21176 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
21177
21178         [BZ #12167]
21179         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21180         of inacessible symlinks.  Verify result of symlink before returning it.
21181         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21182         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21183
21184 2010-10-28  Erich Ritz  <erichritz@gmail.com>
21185
21186         * math/math.h (isinf): Fix typo in comment.
21187
21188 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
21189
21190         * po/da.po: Update from translation team.
21191
21192 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
21193
21194         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21195         is added to the list.
21196
21197 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21198             Ulrich Drepper  <drepper@gmail.com>
21199
21200         * elf/dl-object.c (_dl_new_object): Don't append the new object to
21201         the global list here.  Move code to...
21202         (_dl_add_to_namespace_list): ...here.  New function.
21203         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21204         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21205         * elf/dl-load.c (lose): Don't remove the element from the list.
21206         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21207         (_dl_map_object): Likewise.
21208
21209 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21210
21211         [BZ #12159]
21212         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21213         into all bytes of SSE register.
21214         Patch by Richard Li <richardpku@gmail.com>.
21215
21216 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21217
21218         [BZ #12140]
21219         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21220         perturbing.
21221
21222 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21223
21224         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21225         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21226         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21227         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21229         submachine.
21230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21231
21232 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21233
21234         * include/dlfcn.h (__RTLD_SECURE): Define.
21235         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21236         mode & __RTLD_SECURE instead.
21237         (open_path): Rename preloaded parameter to secure.
21238         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21239         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21240         * elf/dl-deps.c (openaux): Likewise.
21241         * elf/rtld.c (struct map_args): Remove is_preloaded.
21242         (map_doit): Don't use it.
21243         (dl_main): Likewise.
21244         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21245         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21246
21247 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21248
21249         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21250         (sysd-rules-targets): Remove duplicates.
21251         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21252         rtld-%.$o dependency.
21253
21254 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21255
21256         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21257         _dl_map_object do it.
21258
21259 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21260
21261         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21262         fast fma builtins, define the macros in the C99 standard.
21263         (FP_FAST_FMAF): Likewise.
21264         (FP_FAST_FMAL): Likewise.
21265         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21266
21267         * bits/mathdef.h: Update copyright year.
21268         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21269
21270 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21271
21272         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21273         builtins, define the macros in the C99 standard.
21274         (FP_FAST_FMAF): Likewise.
21275         (FP_FAST_FMAL): Likewise.
21276         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21277         multiply/add.
21278         (FP_FAST_FMAF): Likewise.
21279
21280 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21281
21282         [BZ #3268]
21283         * math/libm-test.inc (fma_test): Some new testcases.
21284         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21285         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21286         y and infinite z.  Do multiplication by C already in long double.
21287         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21288         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21289         y and infinite z.  Do bitwise or of inexact bit into u.d.
21290         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21291         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21292         * sysdeps/i386/fpu/s_fma.S: Removed.
21293         * sysdeps/i386/fpu/s_fmal.S: Removed.
21294
21295 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21296
21297         [BZ #3268]
21298         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21299         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21300         computation is not scheduled after fetestexcept.  Fix value
21301         of minimum denormal long double.
21302
21303 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21304
21305         [BZ #3268]
21306         * math/libm-test.inc (fma_test): Add some more tests.
21307         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21308         correctly.
21309
21310 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21311
21312         * scripts/data/localplt-s390-linux-gnu.data: New file.
21313         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21314
21315 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21316
21317         [BZ #3268]
21318         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21319         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21320         instead of dbl-64.
21321         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21322         inlines.
21323         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21324         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21325         if one of x and y is very large and the other is subnormal.
21326         * sysdeps/s390/fpu/s_fmaf.c: New file.
21327         * sysdeps/s390/fpu/s_fma.c: New file.
21328         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21329         * sysdeps/powerpc/fpu/s_fma.S: New file.
21330         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21331         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21332         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21333
21334 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21335
21336         [BZ #3268]
21337         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21338         fma tests.
21339         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21340         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21341         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21342         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21343         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21344         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21345         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21346
21347 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21348
21349         [BZ #12078]
21350         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21351         * posix/bug-regex31.input: Add test case.
21352
21353 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21354
21355         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21356         * posix/bug-regex31.input: New file.
21357
21358         [BZ #12078]
21359         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21360         (parse_sub_exp): Fix last change, use postorder.
21361
21362         * posix/bug-regex31.c: New file.
21363         * posix/Makefile: Add rules to build and run bug-regex31.
21364
21365         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21366
21367         [BZ #12078]
21368         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21369
21370         [BZ #12108]
21371         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21372         to have entries in sys_siglist.
21373
21374         [BZ #12093]
21375         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21376         be NULL.
21377
21378 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21379
21380         [BZ #3268]
21381         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21382         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21383         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21384         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21385         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21386         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21387         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21388         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21389         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21390         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21391         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21392         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21393         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21394         * math/ftestexcept.c (fetestexcept): Likewise.
21395         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21396         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21397         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21398         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21399         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21400         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21401         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21402
21403 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21404
21405         [BZ #12107]
21406         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21407         newline.
21408
21409 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21410
21411         * string/bug-strstr1.c: New file.
21412         * string/Makefile: Add rules to build and run bug-strstr1.
21413
21414 2010-10-05  Eric Blake  <eblake@redhat.com>
21415
21416         [BZ #12092]
21417         * string/str-two-way.h (two_way_long_needle): Always clear memory
21418         when skipping input due to the shift table.
21419
21420 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21421
21422         [BZ #12005]
21423         * malloc/mcheck.c: Handle large requests.
21424
21425         [BZ #12077]
21426         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21427         for strncmp and strncasecmp.
21428         * string/stratcliff.c: Add tests for strcmp and strncmp.
21429         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21430
21431 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21432
21433         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21434         __set_fpscr.
21435
21436 2010-09-30  Andreas Jaeger  <aj@suse.de>
21437
21438         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21439         (CGROUP_SUPER_MAGIC): Define.
21440         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21441         Handle btrfs and cgroup file systems.
21442         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21443         Likewise.
21444
21445 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21446
21447         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21448         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21449
21450 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21451
21452         [BZ #12067]
21453         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21454         trying to locate the ELF header.
21455
21456 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21457
21458         [BZ #11611]
21459         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21460         Mask out sign-bit copies when constructing f_fsid.
21461
21462 2010-09-24  Petr Baudis <pasky@suse.cz>
21463
21464         * debug/stack_chk_fail_local.c: Add missing licence exception.
21465         * debug/warning-nop.c: Likewise.
21466
21467 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21468
21469         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21470         implementing getdents64 using getdents syscall, set d_type if
21471         __ASSUME_GETDENTS32_D_TYPE.
21472
21473 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21474
21475         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21476         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21477
21478 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21479
21480         [BZ #12037]
21481         * posix/unistd.h: Undo change of feature selection for ftruncate from
21482         2010-01-11.
21483
21484 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21485
21486         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21487         detection.
21488
21489 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21490
21491         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21492         fanotify_mark.
21493         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21494
21495 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21496
21497         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21498         variables after CHECK_SP call.
21499         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21500
21501 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21502             Ulrich Drepper  <drepper@redhat.com>
21503
21504         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21505         re-relocationg ld.so.
21506         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21507         _dl_init_paths call.
21508         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21509         here anymore.
21510
21511 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21512
21513         * resolv/res_init.c (__res_vinit): Count the default server we added.
21514
21515 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21516             Ulrich Drepper  <drepper@redhat.com>
21517
21518         [BZ #11968]
21519         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21520         (____longjmp_chk): Use %ebx for saving value across system call.
21521         Add unwind info.
21522
21523 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21524
21525         * manual/Makefile: Don't mix pattern rules with normal rules.
21526
21527 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21528
21529         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21530         operation.
21531         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21532         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21533         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21534         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21535         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21536         Likewise.
21537
21538 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21539
21540         [BZ #11979]
21541         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21542         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21543
21544 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21545
21546         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21547         * sysdeps/x86_64/addmul_1.S: Likewise.
21548         * sysdeps/x86_64/lshift.S: Likewise.
21549         * sysdeps/x86_64/mul_1.S: Likewise.
21550         * sysdeps/x86_64/rshift.S: Likewise.
21551         * sysdeps/x86_64/sub_n.S: Likewise.
21552         * sysdeps/x86_64/submul_1.S: Likewise.
21553
21554 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21555
21556         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21557         Define __sched_param instead of SCHED_* and sched_param when
21558         <bits/sched.h> is included with __need_schedparam defined.
21559         * bits/sched.h [__need_schedparam]
21560         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21561         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21562         (__defined_schedparam): Define to 1.
21563         (__sched_param): New structure, identical to sched_param.
21564         (__need_schedparam): Undefine.
21565
21566 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21567
21568         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21569         (epoll_create1): Declare.
21570
21571         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21572
21573 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21574
21575         [BZ #7066]
21576         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21577         shifting retval into place.
21578
21579 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21580
21581         * nis/rpcsvc/nis.h: Update copyright notice.
21582         * nis/rpcsvc/nis.x: Likewise.
21583         * nis/rpcsvc/nis_callback.h: Likewise.
21584         * nis/rpcsvc/nis_callback.x: Likewise.
21585         * nis/rpcsvc/nis_object.x: Likewise.
21586         * nis/rpcsvc/nis_tags.h: Likewise.
21587         * nis/rpcsvc/yp.h: Likewise.
21588         * nis/rpcsvc/yp.x: Likewise.
21589         * nis/rpcsvc/ypupd.h: Likewise.
21590         * nis/yp_xdr.c: Likewise.
21591         * nis/ypupdate_xdr.c: Likewise.
21592
21593         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21594         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21595         (pmap_getport): Use __libc_rpc_getport.
21596         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21597         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21598         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21599
21600 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21601
21602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21603         fanotify_mark.
21604
21605 2010-08-27  Roland McGrath  <roland@redhat.com>
21606
21607         * sysdeps/i386/i686/multiarch/Makefile
21608         (CFLAGS-varshift.c): New variable.
21609
21610 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21611
21612         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21613         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21614
21615         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21616
21617         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21618
21619 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21620
21621         * sysdeps/x86_64/strlen.S: Unroll the loop.
21622         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21623         strlen-sse2 strlen-sse2-bsf.
21624         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21625         __strlen_no_bsf if bit_Slow_BSF is set.
21626         (__strlen_sse42): Removed.
21627         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21628         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21629
21630 2010-08-25  Roland McGrath  <roland@redhat.com>
21631
21632         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21633         * sysdeps/x86_64/multiarch/varshift.c: New file.
21634         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21635         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21636         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21637         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21638
21639 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21640
21641         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21642         strlen-sse2 strlen-sse2-bsf.
21643         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21644         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21645         (__strlen_sse2): Removed.
21646         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21647         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21648         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21649         bit_Slow_BSF for Atom.
21650         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21651         (index_Slow_BSF): Define.
21652         (HAS_SLOW_BSF): Define.
21653
21654 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21655
21656         [BZ #10851]
21657         * resolv/res_init.c (__res_vinit): When no server address at all
21658         is given default to loopback.
21659
21660 2010-08-24  Roland McGrath  <roland@redhat.com>
21661
21662         * configure.in: Remove config-name.h generation.
21663         * configure: Regenerated.
21664         * config-name.in: File removed.
21665         * scripts/config-uname.sh: New file.
21666         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21667         ($(objdir)config-name.h): New target.
21668
21669         * sunrpc/rpc_parse.h: Avoid nested comment.
21670
21671 2010-08-24  Richard Henderson  <rth@redhat.com>
21672             Ulrich Drepper  <drepper@redhat.com>
21673             H.J. Lu  <hongjiu.lu@intel.com>
21674
21675         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21676         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21677         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21678         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21679         _mm_alignr_epi8 with _mm_loadu_si128.
21680         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21681         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21682         (__m128i_shift_right): Removed.
21683         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21684         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21685         * sysdeps/x86_64/multiarch/varshift.h: New file.
21686         * sysdeps/x86_64/multiarch/varshift.S: New file.
21687
21688 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21689
21690         * configure.in: Move assembler checks to before sysdep dir checking.
21691
21692 2010-08-20  Petr Baudis  <pasky@suse.cz>
21693
21694         * LICENSES: Sync the sunrpc license.
21695
21696 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21697
21698         * sunrpc/auth_des.c: Update copyright notice once again.
21699         * sunrpc/auth_none.c: Likewise.
21700         * sunrpc/auth_unix.c: Likewise.
21701         * sunrpc/authdes_prot.c: Likewise.
21702         * sunrpc/authuxprot.c: Likewise.
21703         * sunrpc/bindrsvprt.c: Likewise.
21704         * sunrpc/clnt_gen.c: Likewise.
21705         * sunrpc/clnt_perr.c: Likewise.
21706         * sunrpc/clnt_raw.c: Likewise.
21707         * sunrpc/clnt_simp.c: Likewise.
21708         * sunrpc/clnt_tcp.c: Likewise.
21709         * sunrpc/clnt_udp.c: Likewise.
21710         * sunrpc/clnt_unix.c: Likewise.
21711         * sunrpc/des_crypt.c: Likewise.
21712         * sunrpc/des_soft.c: Likewise.
21713         * sunrpc/get_myaddr.c: Likewise.
21714         * sunrpc/getrpcport.c: Likewise.
21715         * sunrpc/key_call.c: Likewise.
21716         * sunrpc/key_prot.c: Likewise.
21717         * sunrpc/openchild.c: Likewise.
21718         * sunrpc/pm_getmaps.c: Likewise.
21719         * sunrpc/pm_getport.c: Likewise.
21720         * sunrpc/pmap_clnt.c: Likewise.
21721         * sunrpc/pmap_prot.c: Likewise.
21722         * sunrpc/pmap_prot2.c: Likewise.
21723         * sunrpc/pmap_rmt.c: Likewise.
21724         * sunrpc/rpc/auth.h: Likewise.
21725         * sunrpc/rpc/auth_unix.h: Likewise.
21726         * sunrpc/rpc/clnt.h: Likewise.
21727         * sunrpc/rpc/des_crypt.h: Likewise.
21728         * sunrpc/rpc/key_prot.h: Likewise.
21729         * sunrpc/rpc/netdb.h: Likewise.
21730         * sunrpc/rpc/pmap_clnt.h: Likewise.
21731         * sunrpc/rpc/pmap_prot.h: Likewise.
21732         * sunrpc/rpc/pmap_rmt.h: Likewise.
21733         * sunrpc/rpc/rpc.h: Likewise.
21734         * sunrpc/rpc/rpc_des.h: Likewise.
21735         * sunrpc/rpc/rpc_msg.h: Likewise.
21736         * sunrpc/rpc/svc.h: Likewise.
21737         * sunrpc/rpc/svc_auth.h: Likewise.
21738         * sunrpc/rpc/types.h: Likewise.
21739         * sunrpc/rpc/xdr.h: Likewise.
21740         * sunrpc/rpc_clntout.c: Likewise.
21741         * sunrpc/rpc_cmsg.c: Likewise.
21742         * sunrpc/rpc_common.c: Likewise.
21743         * sunrpc/rpc_cout.c: Likewise.
21744         * sunrpc/rpc_dtable.c: Likewise.
21745         * sunrpc/rpc_hout.c: Likewise.
21746         * sunrpc/rpc_main.c: Likewise.
21747         * sunrpc/rpc_parse.c: Likewise.
21748         * sunrpc/rpc_parse.h: Likewise.
21749         * sunrpc/rpc_prot.c: Likewise.
21750         * sunrpc/rpc_sample.c: Likewise.
21751         * sunrpc/rpc_scan.c: Likewise.
21752         * sunrpc/rpc_scan.h: Likewise.
21753         * sunrpc/rpc_svcout.c: Likewise.
21754         * sunrpc/rpc_tblout.c: Likewise.
21755         * sunrpc/rpc_util.c: Likewise.
21756         * sunrpc/rpc_util.h: Likewise.
21757         * sunrpc/rpcinfo.c: Likewise.
21758         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21759         * sunrpc/rpcsvc/key_prot.x: Likewise.
21760         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21761         * sunrpc/rpcsvc/mount.x: Likewise.
21762         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21763         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21764         * sunrpc/rpcsvc/rex.x: Likewise.
21765         * sunrpc/rpcsvc/rstat.x: Likewise.
21766         * sunrpc/rpcsvc/rusers.x: Likewise.
21767         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21768         * sunrpc/rpcsvc/spray.x: Likewise.
21769         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21770         * sunrpc/rtime.c: Likewise.
21771         * sunrpc/svc.c: Likewise.
21772         * sunrpc/svc_auth.c: Likewise.
21773         * sunrpc/svc_authux.c: Likewise.
21774         * sunrpc/svc_raw.c: Likewise.
21775         * sunrpc/svc_run.c: Likewise.
21776         * sunrpc/svc_simple.c: Likewise.
21777         * sunrpc/svc_tcp.c: Likewise.
21778         * sunrpc/svc_udp.c: Likewise.
21779         * sunrpc/svc_unix.c: Likewise.
21780         * sunrpc/svcauth_des.c: Likewise.
21781         * sunrpc/xcrypt.c: Likewise.
21782         * sunrpc/xdr.c: Likewise.
21783         * sunrpc/xdr_array.c: Likewise.
21784         * sunrpc/xdr_float.c: Likewise.
21785         * sunrpc/xdr_mem.c: Likewise.
21786         * sunrpc/xdr_rec.c: Likewise.
21787         * sunrpc/xdr_ref.c: Likewise.
21788         * sunrpc/xdr_sizeof.c: Likewise.
21789         * sunrpc/xdr_stdio.c: Likewise.
21790
21791         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21792         handling.
21793
21794 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21795
21796         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21797
21798 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21799
21800         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21801         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21802         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21803         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21804         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21805         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21806         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21807         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21808         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21809         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21810         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21811         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21812         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21813         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21814
21815 2010-07-26  Anton Blanchard  <anton@samba.org>
21816
21817         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21818         * malloc/arena.c (heap_trim): Likewise.
21819
21820 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21821
21822         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21823         here.  Not...
21824         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21825         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21826
21827 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21828
21829         * sysdeps/i386/elf/Makefile: New file.
21830
21831 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21832
21833         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21834         from fanotify_init.
21835         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21836         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21837
21838 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21839
21840         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21841         of strncasecmp_l.
21842         * sysdeps/multiarch/strcmp.S: Likewise.
21843
21844 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21845
21846         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21847         strncase_l-nonascii.
21848         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21849         Add strncase_l-ssse3.
21850         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21851         * sysdeps/x86_64/strcmp.S: Likewise.
21852         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21853         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21854         * sysdeps/x86_64/strncase.S: New file.
21855         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21856         * sysdeps/x86_64/strncase_l.S: New file.
21857         * string/Makefile (strop-tests): Add strncasecmp.
21858         * string/test-strncasecmp.c: New file.
21859
21860         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21861         warning.
21862
21863         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21864         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21865
21866 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21867
21868         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21869
21870 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21871
21872         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21873         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21874         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21875
21876 2010-05-01  Alan Modra  <amodra@gmail.com>
21877
21878         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21879         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21880         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21881         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21882         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21883         tidying.  Don't tail-call __sigjmp_save for static lib.
21884         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21885         save location.
21886         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21887         (CALL_MCOUNT): Add eh info, and nop after bl.
21888         (TAIL_CALL_SYSCALL_ERROR): New macro.
21889         (PSEUDO_RET): Use it.
21890         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21891         Correct save location of integer regs and cr.
21892         (_dl_profile_resolve): Correct cr save location.  Delete nops
21893         after bl when SHARED.  Reduce cfi size a little by better
21894         placement of cfi directives.
21895         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21896         make a stack frame.  Instead use parm save area as a temp.
21897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21898         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21900         Don't make a stack frame for parent, use parm save area.
21901         Increase child stack frame to 112 bytes.  Don't save unused reg,
21902         and adjust reg usage.  Set up cfi on error recovery and
21903         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21905         (__makecontext): Add dummy nop after jump to exit.
21906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21907         Use correct parm save area and cr save, reduce stack frame.
21908         Correct cfi for possible PSEUDO_RET frame setup.
21909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21910         Branch to local label emitted by PSEUDO_RET rather than
21911         __syscall_error.
21912
21913 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21914
21915         [BZ #11904]
21916         * locale/programs/locale.c (print_assignment): New function.
21917         (show_locale_vars): Use it.
21918
21919 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21920
21921         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21922         field.
21923         (struct statfs64): Likewise.
21924         (_STATFS_F_FLAGS): Define.
21925         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21926         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21927         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21928         (ST_VALID): Define locally.
21929         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21930         __statvfs_getflags, use the provided value.
21931         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21932         __ASSUME_STATFS_F_FLAGS.
21933
21934         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21935
21936         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21937         Add sys/fanotify.h.
21938         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21939         fanotify_mask for GLIBC_2.13.
21940         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21941         fanotify_init and fanotify_mark.
21942         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21943         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21944
21945         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21946         Add prlimit.
21947         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21948         prlimit64 for GLIBC_2.13.
21949         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21950         prlimit64.
21951         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21952         syscall.
21953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21954         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21955         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21956         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21957         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21958         add prlimit alias.
21959         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21960
21961         [BZ #11903]
21962         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21963         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21964
21965         * nss/Makefile: Add rules to build and run tst-nss-test1.
21966         * shlib-versions: Add entry for libnss_test1.
21967         * nss/nss_test1.c: New file.
21968         * nss/tst-nss-test1.c: New file.
21969
21970         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21971         (__nss_configure_lookup): Set appropriate entry in
21972         __nss_configure_lookup to true.
21973         * nss/nsswitch.h: Define enum with indeces of databases in
21974         databases and __nss_database_custom arrays.  Declare
21975         __nss_database_custom.
21976         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21977         to avoid using nscd when custom rules are installed.
21978         * nss/getXXbyYY_r.c: Likewise.
21979         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21980
21981         * nss/nss_files/files-parse.c: Whitespace fixes.
21982
21983 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21984
21985         [BZ #11883]
21986         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21987         * posix/fnmatch_loop.c: Likewise.
21988
21989 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21990
21991         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21992         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21993         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21994         * Versions.def [GLIBC_2.13]: Add.
21995
21996 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21997
21998         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21999         Also fail if tpwd after pwuid call is NULL.
22000
22001 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22002
22003         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22004         when converting to ms.
22005
22006 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22007
22008         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22009         EOPNOTSUPP errors with ENOTTY.
22010         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22011         EOPNOTSUPP errors with ENOTTY.
22012
22013 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22014
22015         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22016         Add strcasecmp_l-ssse3.
22017         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22018         strcasecmp.
22019         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22020         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22021         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22022
22023 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22024
22025         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22026
22027         * string/Makefile (strop-tests): Add strcasecmp.
22028         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22029         strcasecmp_l-nonascii.
22030         (gen-as-const-headers): Add locale-defines.sym.
22031         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22032         * sysdeps/x86_64/strcasecmp.S: New file.
22033         * sysdeps/x86_64/strcasecmp_l.S: New file.
22034         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22035         * sysdeps/x86_64/locale-defines.sym: New file.
22036         * string/test-strcasecmp.c: New file.
22037
22038         * string/test-strcasestr.c: Test both ends of the range of characters.
22039         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22040
22041 2010-07-29  Roland McGrath  <roland@redhat.com>
22042
22043         [BZ #11856]
22044         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22045
22046 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22047
22048         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22049         for ld.so.
22050
22051 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22052
22053         * manual/memory.texi (Malloc Tunable Parameters): Document
22054         M_PERTURB.
22055
22056 2010-07-26  Roland McGrath  <roland@redhat.com>
22057
22058         [BZ #11840]
22059         * configure.in (-fgnu89-inline check): Set and substitute
22060         gnu89_inline, not libc_cv_gnu89_inline.
22061         * configure: Regenerated.
22062         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22063
22064 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22065
22066         * string/test-strnlen.c: New file.
22067         * string/Makefile (strop-tests): Add strnlen.
22068         * string/tester.c (test_strnlen): Add a few more test cases.
22069         * string/tst-strlen.c: Better error reporting.
22070
22071         * sysdeps/x86_64/strnlen.S: New file.
22072
22073 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22074
22075         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22076         lower-latency instructions.
22077
22078 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22079
22080         * string/test-strcasestr.c: New file.
22081         * string/test-strstr.c: New file.
22082         * string/Makefile (strop-tests): Add strstr and strcasestr.
22083         * string/str-two-way.h: Don't undefine MAX.
22084         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22085
22086 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22087
22088         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22089         strcasestr-nonascii.
22090         (CFLAGS-strcasestr-nonascii.c): Define.
22091         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22092         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22093         Remove unused attribute.
22094
22095 2010-07-20  Roland McGrath  <roland@redhat.com>
22096
22097         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22098         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22099         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22100         like LD_HWCAP_MASK can disable hwcaps.
22101
22102 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22103
22104         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22105
22106 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22107
22108         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22109         call in strcasestr.
22110         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22111         __strcasestr_sse42_nonascii.
22112         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22113         strcasestr-nonascii.c.
22114         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22115
22116 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22117
22118         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22119         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22120         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22121         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22122
22123 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22124
22125         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22126         fcntl.
22127
22128 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22129
22130         [BZ #11577]
22131         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22132         dl_signal_cerror.
22133
22134 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22135
22136         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22137         _PC_PIPE_BUF using F_GETPIPE_SZ.
22138
22139 2010-07-05  Roland McGrath  <roland@redhat.com>
22140
22141         * manual/arith.texi (Rounding Functions): Fix rint description
22142         implicit in round description.
22143
22144 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22145
22146         * elf/Makefile: Fix linking for a few tests to make recent linker
22147         happy.
22148
22149 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22150
22151         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22152         $(common-objpfx)libc_nonshared.a.
22153
22154 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22155
22156         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22157         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22158         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22159         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22160         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22161         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22162         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22163         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22178         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22179         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22180         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22181         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22182         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22183         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22184         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22185         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22186         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22187         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22188         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22189         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22204
22205 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22206
22207         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22208         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22209         * string/memmove.c (memmove): Renamed to ...
22210         (MEMMOVE): ...this.  Default to memmove.
22211         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22212         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22213         (END_CHK): Define.
22214         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22215         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22216         mempcpy-ssse3-back memmove-ssse3-back.
22217         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22218         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22219         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22220         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22221         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22222         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22223         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22224         * sysdeps/x86_64/multiarch/memmove.c: New file.
22225         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22226         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22227         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22228         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22229         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22230         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22231         Define.
22232         (index_Fast_Copy_Backward): Define.
22233         (HAS_ARCH_FEATURE): Define.
22234         (HAS_FAST_REP_STRING): Define.
22235         (HAS_FAST_COPY_BACKWARD): Define.
22236
22237 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22238
22239         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22240         Restore proper fallback handling.
22241
22242 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22243
22244         [BZ #11701]
22245         * posix/group_member.c (__group_member): Correct checking loop.
22246
22247         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22248         OOM in getpwuid_r correctly.  Return error number when the caller
22249         should return, otherwise -1.
22250         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22251         call returning > 0 value.
22252         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22253
22254 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22255
22256         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22257         libc_nonshared.a from targets in modules-names.
22258
22259 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22260
22261         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22262         requires it.
22263
22264 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22265
22266         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22267         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22268         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22269         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22270
22271 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22272
22273         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22274
22275 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22276
22277         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22278         and F_GETPIPE_SZ.
22279         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22280         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22281         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22282         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22283         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22284         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22285
22286 2010-06-14  Roland McGrath  <roland@redhat.com>
22287
22288         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22289
22290 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22291
22292         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22293         __REDIRECT followed by __THROW.
22294         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22295         * posix/getopt.h (getopt): Likewise.
22296
22297 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22298
22299         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22300         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22301         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22302         in AT_FLAGS.
22303         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22304         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22305
22306 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22307
22308         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22309
22310 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22311
22312         [BZ #11640]
22313         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22314         Properly check family and model.
22315
22316 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22317
22318         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22319
22320 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22321
22322         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22323
22324 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22325
22326         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22327         symbol reference.
22328
22329 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22330
22331         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22332         symbol reference.
22333
22334 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22335
22336         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22337         and internal_recvmmsg.
22338         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22339         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22340         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22341         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22342
22343         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22344         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22345         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22346
22347 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22348
22349         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22350
22351 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22352
22353         POWER7 optimizations.
22354         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22355         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22356
22357 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22358
22359         * version.h: Update for 2.13 development version.
22360
22361 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22362
22363         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22364         exceptions.  Return 0.
22365
22366 2010-05-07  Roland McGrath  <roland@redhat.com>
22367
22368         * elf/ldconfig.c (main): Add a const.
22369
22370 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22371
22372         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22373         (args_options): Add no-idn option.
22374         (ahosts_keys_int): Add idn_flags to ai_flags.
22375         (parse_option): Handle 'i' option to clear idn_flags.
22376
22377         * malloc/malloc.c (_int_free): Possible race in the most recently
22378         added check.  Only act on the data if no current modification
22379         happened.
22380
22381 See ChangeLog.17 for earlier changes.