Fix typo in ChangeLog.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
2
3         * timezone/version.h: Remove file.
4         * timezone/README: Do not refer to version.h.
5         * timezone/Makefile ($(objpfx)zic.o): New dependency on
6         $(objpfx)version.h.
7         ($(objpfx)zdump.o): Likewise.
8         ($(objpfx)version.h): New target.
9
10         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
11         2012i.
12         * timezone/README: Don't mention modification to tzselect.ksh.
13         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
14         work on unmodified tzselect.ksh.  Substitute version numbers in
15         tzselect.ksh.
16
17         * Makefile (format-me): Remove.
18         (INSTALL): Adjust indentation.  Use commands directly instead of
19         using $(format-me).
20
21         * aclocal.m4 (ACX_PKGVERSION): New macro.
22         (ACX_BUGURL): Likewise.
23         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
24         (PKGVERSION): New AC_DEFINE_UNQUOTED.
25         (REPORT_BUGS_TO): Likewise.
26         * configure: Regenerated.
27         * config.h.in (PKGVERSION): New macro.
28         (REPORT_BUGS_TO): Likewise.
29         * config.make.in (PKGVERSION): New variable.
30         (PKGVERSION_TEXI): Likewise.
31         (REPORT_BUGS_TO): Likewise.
32         (REPORT_BUGS_TEXI): Likewise.
33         * Makefile (format-me): Use -I$(common-objpfx)manual.
34         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
35         ($(common-objpfx)manual/%): New target.
36         (manual/%): Remove target.
37         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
38         (print_version): Use PKGVERSION.
39         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
40         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
41         and REPORT_BUGS_TO.
42         ($(objpfx)xtrace): Likewise.
43         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
44         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
45         (print_version): Use PKGVERSION.
46         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
47         (do_version): Use PKGVERSION.
48         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
49         REPORT_BUGS_TO.
50         (common-ldd-rewrite): Likewise.
51         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
52         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
53         (print_version): Use PKGVERSION.
54         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
55         * elf/pldd.c (argp_program_bug_address): Remove variable.
56         (more_help): New function.
57         (argp): Use more_help.
58         (print_version): Use PKGVERSION.
59         * elf/sln.c (main): Use PKGVERSION.
60         (usage): Use REPORT_BUGS_TO.
61         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
62         (top level): Use PKGVERSION.
63         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
64         (print_version): Use PKGVERSION.
65         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
66         (print_version): Use PKGVERSION.
67         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
68         (print_version): Use PKGVERSION.
69         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
70         (print_version): Use PKGVERSION.
71         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
72         (print_version): Use PKGVERSION.
73         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
74         (print_version): Use PKGVERSION.
75         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
76         and BUGURL.
77         ($(objpfx)memusage): Likewise.
78         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
79         (do_version): Use PKGVERSION.
80         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
81         (print_version): Use PKGVERSION.
82         * malloc/mtrace.pl ($PACKAGE): Remove variable.
83         ($PKGVERSION): New variable.
84         ($REPORT_BUGS_TO): Likewise.
85         (usage): Use $REPORT_BUGS_TO.
86         (top level): Use $PKGVERSION.
87         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
88         ($(objpfx)pkgvers.texi): New rule.
89         ($(objpfx)stamp-pkgvers): Likewise.
90         * manual/install.texi: Include pkgvers.texi.
91         (--with-pkgversion): Document new configure option.
92         (--with-bugurl): Likewise.
93         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
94         than necessarily for this particular distribution.  Use
95         REPORT_BUGS_TO for where to report bugs.
96         * INSTALL: Regenerated.
97         * manual/libc.texinfo: Include pkgvers.texi.
98         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
99         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
100         (print_version): Use PKGVERSION.
101         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
102         (print_version): Use PKGVERSION.
103         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
104         (print_version): Use PKGVERSION.
105         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
106         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
107         macro.
108         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
109         (print_version): Use PKGVERSION.
110         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
111         (print_version): Use PKGVERSION.
112         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
113         and PKGVERSION.
114
115         * timezone/checktab.awk: Update from tzcode 2012i.
116         * timezone/ialloc.c: Likewise.
117         * timezone/private.h: Likewise.
118         * timezone/scheck.c: Likewise.
119         * timezone/tzfile.h: Likewise.
120         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
121         (TZVERSION): Hardcode tzcode version number.
122         * timezone/zdump.c: Update from tzcode 2012i.
123         * timezone/zic.c: Likewise.
124         * timezone/version.h: New file.
125         * timezone/README: Describe version.h.  Update upstream location.
126
127         [BZ #14824]
128         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
129         (mktemp): Enable declaration.
130         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
131         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
132         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
133         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
134         Likewise.
135         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
136         Likewise.
137         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
138         Likewise.
139         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
140         Likewise.
141         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
142         Likewise.
143         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
144         Likewise.
145
146         [BZ #14821]
147         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
148         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
149         for copies of such integer values.
150         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
151         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
152
153 2012-11-09  Andreas Jaeger  <aj@suse.de>
154
155         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
156         definitions and declarations that are provided by
157         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
158
159 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
160
161         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
162         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
163         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
164         definition.
165
166 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
167
168         * elf/elf.h: Update comment before AArch64 relocations.
169
170 2012-11-07  David S. Miller  <davem@davemloft.net>
171
172         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
173         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
174         (__start_context): Declare.
175         (__makecontext_ret): Delete.
176         (__makecontext): Hook up __start_context instead of
177         __makecontext_ret.
178         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
179         (sysdep_routines): Add __start_context when in stdlib.
180
181 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
182
183         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
184         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
185         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
186         hardcoded "nm".
187         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
188         (READELF): New variable.  Use it instead of hardcoded "readelf".
189
190 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
191
192         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
193         * sysdeps/x86/Makefile: Here.
194         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
195         * sysdeps/x86/tst-xmmymm.sh: This.
196
197 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
198
199         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
200         expectations.
201         [UNIX98] (pthread_barrier_t): Do not expect.
202         [UNIX98] (pthread_barrierattr_t): Likewise.
203         [UNIX98] (pthread_spinlock_t): Likewise.
204         [UNIX98] (pthread_barrier_destroy): Likewise.
205         [UNIX98] (pthread_barrier_init): Likewise.
206         [UNIX98] (pthread_barrier_wait): Likewise.
207         [UNIX98] (pthread_barrierattr_destroy): Likewise.
208         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
209         [UNIX98] (pthread_barrierattr_init): Likewise.
210         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
211         [UNIX98] (pthread_getcpuclockid): Likewise.
212         [UNIX98] (pthread_mutex_timedlock): Likewise.
213         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
214         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
215         [UNIX98] (pthread_sigmask): Likewise.
216         [UNIX98] (pthread_spin_destroy): Likewise.
217         [UNIX98] (pthread_spin_init): Likewise.
218         [UNIX98] (pthread_spin_lock): Likewise.
219         [UNIX98] (pthread_spin_trylock): Likewise.
220         [UNIX98] (pthread_spin_unlock): Likewise.
221         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
222         Do not expect.
223         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
224         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
225         [XPG3 || XPG4] (pthread_cond_t): Likewise.
226         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
227         [XPG3 || XPG4] (pthread_key_t): Likewise.
228         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
229         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
230         [XPG3 || XPG4] (pthread_once_t): Likewise.
231         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
232         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
233         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
234         [XPG3 || XPG4] (pthread_t): Likewise.
235
236         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
237         not expect.
238         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
239
240         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
241         Change function return type to int.
242
243         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
244         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
245         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
246         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
247         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
248         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
249         [!POSIX] (posix_madvise): Likewise.
250         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
251         && !UNIX98].
252         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
253         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
254         (mode_t): Likewise.
255         (posix_mem_offset): Likewise.
256         (posix_typed_mem_get_info): Likewise.
257         (posix_typed_mem_open): Likewise.
258
259         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
260         Change condition to [XOPEN2K8].
261
262         * conform/conformtest.pl: Preprocess allow-header data with -x c
263         instead of from stdin.
264         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
265         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
266         [C99-based standards] (cerfc): Likewise.
267         [C99-based standards] (cexp2): Likewise.
268         [C99-based standards] (cexpm1): Likewise.
269         [C99-based standards] (clog10): Likewise.
270         [C99-based standards] (clog1p): Likewise.
271         [C99-based standards] (clog2): Likewise.
272         [C99-based standards] (clgamma): Likewise.
273         [C99-based standards] (ctgamma): Likewise.
274         [C99-based standards] (cerff): Likewise.
275         [C99-based standards] (cerfcf): Likewise.
276         [C99-based standards] (cexp2f): Likewise.
277         [C99-based standards] (cexpm1f): Likewise.
278         [C99-based standards] (clog10f): Likewise.
279         [C99-based standards] (clog1pf): Likewise.
280         [C99-based standards] (clog2f): Likewise.
281         [C99-based standards] (clgammaf): Likewise.
282         [C99-based standards] (ctgammaf): Likewise.
283         [C99-based standards] (cerfl): Likewise.
284         [C99-based standards] (cerfcl): Likewise.
285         [C99-based standards] (cexp2l): Likewise.
286         [C99-based standards] (cexpm1l): Likewise.
287         [C99-based standards] (clog10l): Likewise.
288         [C99-based standards] (clog1pl): Likewise.
289         [C99-based standards] (clog2l): Likewise.
290         [C99-based standards] (clgammal): Likewise.
291         [C99-based standards] (ctgammal): Likewise.
292         * conform/data/inttypes.h-data [C99-based standards]: Include
293         stdint.h-data.  Remove all expectations for stdint.h contents.
294         [C99-based standards] (PRI*): Do not allow.
295         [C99-based standards] (SCN*): Likewise.
296         [C99-based standards] (*_t): Likewise.
297         [C99-based-standards] (PRId8): Expect macro.
298         [C99-based-standards] (PRIi8): Likewise.
299         [C99-based-standards] (PRIo8): Likewise.
300         [C99-based-standards] (PRIu8): Likewise.
301         [C99-based-standards] (PRIx8): Likewise.
302         [C99-based-standards] (PRIX8): Likewise.
303         [C99-based-standards] (SCNd8): Likewise.
304         [C99-based-standards] (SCNi8): Likewise.
305         [C99-based-standards] (SCNo8): Likewise.
306         [C99-based-standards] (SCNu8): Likewise.
307         [C99-based-standards] (SCNx8): Likewise.
308         [C99-based-standards] (PRIdLEAST8): Likewise.
309         [C99-based-standards] (PRIiLEAST8): Likewise.
310         [C99-based-standards] (PRIoLEAST8): Likewise.
311         [C99-based-standards] (PRIuLEAST8): Likewise.
312         [C99-based-standards] (PRIxLEAST8): Likewise.
313         [C99-based-standards] (PRIXLEAST8): Likewise.
314         [C99-based-standards] (SCNdLEAST8): Likewise.
315         [C99-based-standards] (SCNiLEAST8): Likewise.
316         [C99-based-standards] (SCNoLEAST8): Likewise.
317         [C99-based-standards] (SCNuLEAST8): Likewise.
318         [C99-based-standards] (SCNxLEAST8): Likewise.
319         [C99-based-standards] (PRIdFAST8): Likewise.
320         [C99-based-standards] (PRIiFAST8): Likewise.
321         [C99-based-standards] (PRIoFAST8): Likewise.
322         [C99-based-standards] (PRIuFAST8): Likewise.
323         [C99-based-standards] (PRIxFAST8): Likewise.
324         [C99-based-standards] (PRIXFAST8): Likewise.
325         [C99-based-standards] (SCNdFAST8): Likewise.
326         [C99-based-standards] (SCNiFAST8): Likewise.
327         [C99-based-standards] (SCNoFAST8): Likewise.
328         [C99-based-standards] (SCNuFAST8): Likewise.
329         [C99-based-standards] (SCNxFAST8): Likewise.
330         [C99-based-standards] (PRId16): Likewise.
331         [C99-based-standards] (PRIi16): Likewise.
332         [C99-based-standards] (PRIo16): Likewise.
333         [C99-based-standards] (PRIu16): Likewise.
334         [C99-based-standards] (PRIx16): Likewise.
335         [C99-based-standards] (PRIX16): Likewise.
336         [C99-based-standards] (SCNd16): Likewise.
337         [C99-based-standards] (SCNi16): Likewise.
338         [C99-based-standards] (SCNo16): Likewise.
339         [C99-based-standards] (SCNu16): Likewise.
340         [C99-based-standards] (SCNx16): Likewise.
341         [C99-based-standards] (PRIdLEAST16): Likewise.
342         [C99-based-standards] (PRIiLEAST16): Likewise.
343         [C99-based-standards] (PRIoLEAST16): Likewise.
344         [C99-based-standards] (PRIuLEAST16): Likewise.
345         [C99-based-standards] (PRIxLEAST16): Likewise.
346         [C99-based-standards] (PRIXLEAST16): Likewise.
347         [C99-based-standards] (SCNdLEAST16): Likewise.
348         [C99-based-standards] (SCNiLEAST16): Likewise.
349         [C99-based-standards] (SCNoLEAST16): Likewise.
350         [C99-based-standards] (SCNuLEAST16): Likewise.
351         [C99-based-standards] (SCNxLEAST16): Likewise.
352         [C99-based-standards] (PRIdFAST16): Likewise.
353         [C99-based-standards] (PRIiFAST16): Likewise.
354         [C99-based-standards] (PRIoFAST16): Likewise.
355         [C99-based-standards] (PRIuFAST16): Likewise.
356         [C99-based-standards] (PRIxFAST16): Likewise.
357         [C99-based-standards] (PRIXFAST16): Likewise.
358         [C99-based-standards] (SCNdFAST16): Likewise.
359         [C99-based-standards] (SCNiFAST16): Likewise.
360         [C99-based-standards] (SCNoFAST16): Likewise.
361         [C99-based-standards] (SCNuFAST16): Likewise.
362         [C99-based-standards] (SCNxFAST16): Likewise.
363         [C99-based-standards] (PRId32): Likewise.
364         [C99-based-standards] (PRIi32): Likewise.
365         [C99-based-standards] (PRIo32): Likewise.
366         [C99-based-standards] (PRIu32): Likewise.
367         [C99-based-standards] (PRIx32): Likewise.
368         [C99-based-standards] (PRIX32): Likewise.
369         [C99-based-standards] (SCNd32): Likewise.
370         [C99-based-standards] (SCNi32): Likewise.
371         [C99-based-standards] (SCNo32): Likewise.
372         [C99-based-standards] (SCNu32): Likewise.
373         [C99-based-standards] (SCNx32): Likewise.
374         [C99-based-standards] (PRIdLEAST32): Likewise.
375         [C99-based-standards] (PRIiLEAST32): Likewise.
376         [C99-based-standards] (PRIoLEAST32): Likewise.
377         [C99-based-standards] (PRIuLEAST32): Likewise.
378         [C99-based-standards] (PRIxLEAST32): Likewise.
379         [C99-based-standards] (PRIXLEAST32): Likewise.
380         [C99-based-standards] (SCNdLEAST32): Likewise.
381         [C99-based-standards] (SCNiLEAST32): Likewise.
382         [C99-based-standards] (SCNoLEAST32): Likewise.
383         [C99-based-standards] (SCNuLEAST32): Likewise.
384         [C99-based-standards] (SCNxLEAST32): Likewise.
385         [C99-based-standards] (PRIdFAST32): Likewise.
386         [C99-based-standards] (PRIiFAST32): Likewise.
387         [C99-based-standards] (PRIoFAST32): Likewise.
388         [C99-based-standards] (PRIuFAST32): Likewise.
389         [C99-based-standards] (PRIxFAST32): Likewise.
390         [C99-based-standards] (PRIXFAST32): Likewise.
391         [C99-based-standards] (SCNdFAST32): Likewise.
392         [C99-based-standards] (SCNiFAST32): Likewise.
393         [C99-based-standards] (SCNoFAST32): Likewise.
394         [C99-based-standards] (SCNuFAST32): Likewise.
395         [C99-based-standards] (SCNxFAST32): Likewise.
396         [C99-based-standards] (PRId64): Likewise.
397         [C99-based-standards] (PRIi64): Likewise.
398         [C99-based-standards] (PRIo64): Likewise.
399         [C99-based-standards] (PRIu64): Likewise.
400         [C99-based-standards] (PRIx64): Likewise.
401         [C99-based-standards] (PRIX64): Likewise.
402         [C99-based-standards] (SCNd64): Likewise.
403         [C99-based-standards] (SCNi64): Likewise.
404         [C99-based-standards] (SCNo64): Likewise.
405         [C99-based-standards] (SCNu64): Likewise.
406         [C99-based-standards] (SCNx64): Likewise.
407         [C99-based-standards] (PRIdLEAST64): Likewise.
408         [C99-based-standards] (PRIiLEAST64): Likewise.
409         [C99-based-standards] (PRIoLEAST64): Likewise.
410         [C99-based-standards] (PRIuLEAST64): Likewise.
411         [C99-based-standards] (PRIxLEAST64): Likewise.
412         [C99-based-standards] (PRIXLEAST64): Likewise.
413         [C99-based-standards] (SCNdLEAST64): Likewise.
414         [C99-based-standards] (SCNiLEAST64): Likewise.
415         [C99-based-standards] (SCNoLEAST64): Likewise.
416         [C99-based-standards] (SCNuLEAST64): Likewise.
417         [C99-based-standards] (SCNxLEAST64): Likewise.
418         [C99-based-standards] (PRIdFAST64): Likewise.
419         [C99-based-standards] (PRIiFAST64): Likewise.
420         [C99-based-standards] (PRIoFAST64): Likewise.
421         [C99-based-standards] (PRIuFAST64): Likewise.
422         [C99-based-standards] (PRIxFAST64): Likewise.
423         [C99-based-standards] (PRIXFAST64): Likewise.
424         [C99-based-standards] (SCNdFAST64): Likewise.
425         [C99-based-standards] (SCNiFAST64): Likewise.
426         [C99-based-standards] (SCNoFAST64): Likewise.
427         [C99-based-standards] (SCNuFAST64): Likewise.
428         [C99-based-standards] (SCNxFAST64): Likewise.
429         [C99-based-standards] (PRIdMAX): Likewise.
430         [C99-based-standards] (PRIiMAX): Likewise.
431         [C99-based-standards] (PRIoMAX): Likewise.
432         [C99-based-standards] (PRIuMAX): Likewise.
433         [C99-based-standards] (PRIxMAX): Likewise.
434         [C99-based-standards] (PRIXMAX): Likewise.
435         [C99-based-standards] (SCNdMAX): Likewise.
436         [C99-based-standards] (SCNiMAX): Likewise.
437         [C99-based-standards] (SCNoMAX): Likewise.
438         [C99-based-standards] (SCNuMAX): Likewise.
439         [C99-based-standards] (SCNxMAX): Likewise.
440         [C99-based-standards] (PRIdPTR): Likewise.
441         [C99-based-standards] (PRIiPTR): Likewise.
442         [C99-based-standards] (PRIoPTR): Likewise.
443         [C99-based-standards] (PRIuPTR): Likewise.
444         [C99-based-standards] (PRIxPTR): Likewise.
445         [C99-based-standards] (PRIXPTR): Likewise.
446         [C99-based-standards] (SCNdPTR): Likewise.
447         [C99-based-standards] (SCNiPTR): Likewise.
448         [C99-based-standards] (SCNoPTR): Likewise.
449         [C99-based-standards] (SCNuPTR): Likewise.
450         [C99-based-standards] (SCNxPTR): Likewise.
451         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
452         allow.
453         * conform/data/stdint.h-data: Update comments to clarify
454         requirements.
455         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
456         type.
457         [C99-based standards] (INT8_MAX): Likewise.
458         [C99-based standards] (INT16_MIN): Likewise.
459         [C99-based standards] (INT16_MAX): Likewise.
460         [C99-based standards] (INT32_MIN): Likewise.
461         [C99-based standards] (INT32_MAX): Likewise.
462         [C99-based standards] (INT64_MIN): Likewise.
463         [C99-based standards] (INT64_MAX): Likewise.
464         [C99-based standards] (UINT8_MAX): Likewise.
465         [C99-based standards] (UINT16_MAX): Likewise.
466         [C99-based standards] (UINT32_MAX): Likewise.
467         [C99-based standards] (UINT64_MAX): Likewise.
468         [C99-based standards] (INT_LEAST8_MIN): Likewise.
469         [C99-based standards] (INT_LEAST8_MAX): Likewise.
470         [C99-based standards] (INT_LEAST16_MIN): Likewise.
471         [C99-based standards] (INT_LEAST16_MAX): Likewise.
472         [C99-based standards] (INT_LEAST32_MIN): Likewise.
473         [C99-based standards] (INT_LEAST32_MAX): Likewise.
474         [C99-based standards] (INT_LEAST64_MIN): Likewise.
475         [C99-based standards] (INT_LEAST64_MAX): Likewise.
476         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
477         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
478         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
479         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
480         [C99-based standards] (INT_FAST8_MIN): Likewise.
481         [C99-based standards] (INT_FAST8_MAX): Likewise.
482         [C99-based standards] (INT_FAST16_MIN): Likewise.
483         [C99-based standards] (INT_FAST16_MAX): Likewise.
484         [C99-based standards] (INT_FAST32_MIN): Likewise.
485         [C99-based standards] (INT_FAST32_MAX): Likewise.
486         [C99-based standards] (INT_FAST64_MIN): Likewise.
487         [C99-based standards] (INT_FAST64_MAX): Likewise.
488         [C99-based standards] (UINT_FAST8_MAX): Likewise.
489         [C99-based standards] (UINT_FAST16_MAX): Likewise.
490         [C99-based standards] (UINT_FAST32_MAX): Likewise.
491         [C99-based standards] (UINT_FAST64_MAX): Likewise.
492         [C99-based standards] (INTPTR_MIN): Likewise.
493         [C99-based standards] (INTPTR_MAX): Likewise.
494         [C99-based standards] (UINTPTR_MAX): Likewise.
495         [C99-based standards] (INTMAX_MIN): Likewise.
496         [C99-based standards] (INTMAX_MAX): Likewise.
497         [C99-based standards] (UINTMAX_MAX): Likewise.
498         [C99-based standards] (PTRDIFF_MIN): Likewise.
499         [C99-based standards] (PTRDIFF_MAX): Likewise.
500         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
501         [C99-based standards] (SIZE_MAX): Likewise.
502         [C99-based standards] (WCHAR_MAX): Likewise.
503         [C99-based standards] (WINT_MAX): Likewise.
504         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
505         constraint on value.
506         [C99-based standards] (WCHAR_MIN): Likewise.
507         [C99-based standards] (WINT_MIN): Likewise.
508         [C99-based standards] (*_t): Allow.
509         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
510         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
511         Include math.h-data and complex.h-data.  Remove all expectations
512         of math.h and complex.h contents.
513         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
514         at end of line.
515         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
516         (struct tm): Expect tag.
517         [C99-based-standards] (wcstof): Expect function.
518         [C99-based-standards] (wcstold): Likewise.
519         [C99-based-standards] (wcstoll): Likewise.
520         [C99-based-standards] (wcstoull): Likewise.
521         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
522         macro-int-constant.  Specify type.
523         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
524         constraint on value.
525         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
526         Specify type.
527         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
528         Specify value.
529         [ISO C standards]: Do not allow headers.
530         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
531         wcs[abcdefghijklmnopqrstuvwxyz]*.
532         [ISO C standards] (*_t): Do not allow.
533         * conform/data/wctype.h-data [C99-based standards] (iswblank):
534         Expect function.
535         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
536         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
537         Specify type.
538         [ISO C standards]: Do not allow headers.
539         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
540         is[abcdefghijklmnopqrstuvwxyz]*.
541         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
542         to[abcdefghijklmnopqrstuvwxyz]*.
543         [ISO C standards] (*_t): Do not allow.
544         * conform/data/stdalign.h-data: New file.
545         * conform/data/stdbool.h-data: Likewise.
546         * conform/data/stdnoreturn.h-data: Likewise.
547
548 2012-11-07  Andreas Jaeger  <aj@suse.de>
549
550         [BZ #14809]
551         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
552         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
553         guards are changed.  Only define if not yet defined, #undef back
554         after including linux/sysctl.h if defined here.
555
556 2012-11-07  Roland McGrath  <roland@hack.frob.com>
557
558         [BZ #14815]
559         * manual/filesys.texi (Directory Entries): Typo fix.
560         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
561
562 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
563
564         * elf/elf.h (EM_AARCH64): New macro.
565         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
566         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
567         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
568         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
569         (R_AARCH64_TLSDESC): Likewise.
570         (NT_ARM_TLS): Likewise.
571         (NT_ARM_HW_BREAK): Likewise.
572         (NT_ARM_HW_WATCH): Likewise.
573
574 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
575
576         [BZ #14811]
577         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
578         (__ieee754_powl): Saturate nonzero exponents with absolute value
579         below 0x1p-79 to +/- 0x1p-79.
580         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
581         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
582         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
583         nonzero exponents with absolute value below 0x1p-32 to +/-
584         0x1p-32.
585         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
586         (__ieee754_powl): Saturate nonzero exponents with absolute value
587         below 0x1p-79 to +/- 0x1p-79.
588         * math/libm-test.inc (pow_test): Add more tests.
589
590 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
591
592         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
593         _dl_s390_cap_flags with kernel. Increase string length.
594         (_dl_s390_platforms): Add z196 and zEC12.
595
596 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
597
598         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
599         Change XOPEN21K to XOPEN2K.
600
601 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
602
603         * string/memmove.c: Use memcpy when possible.
604
605 2012-11-06  Andreas Jaeger  <aj@suse.de>
606
607         * po/eo.po: Update from translation team.
608
609 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
610
611         [BZ #14793]
612         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
613         exponent and small x and y exponents, scale x or y up.  Increase
614         by 2 the exponent used in scaling up.
615         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
616         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
617         * math/libm-test.inc (fma_test): Add more tests.
618         (fma_test_towardzero): Likewise.
619         (fma_test_downward): Likewise.
620         (fma_test_upward): Likewise.
621
622 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
623
624         [BZ #14805]
625         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
626         fenv_t *.
627
628         [BZ #14801]
629         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
630         namespace for names of struct fields.
631         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
632         fenv_t fields.
633         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
634         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
635
636 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
637
638         [BZ #3665]
639         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
640
641 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
642
643         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
644         PTR_DEMANGLE.
645
646         [BZ #5246]
647         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
648         PTR_DEMANGLE.
649
650 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
651
652         [BZ #14797]
653         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
654         definitely overflow as x * y not x * y + z.
655         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
656         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
657         * math/libm-test.inc (fma_test): Add more tests.
658         (fma_test_towardzero): Likewise.
659         (fma_test_downward): Likewise.
660         (fma_test_upward): Likewise.
661
662 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
663
664         [BZ #157]
665
666         * include/stub-tag.h: Remove file.
667         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
668         '#include' of it.
669         * manual/maint.texi (Porting): Don't reference it.
670         * Makerules ($(objpfx)stubs): Likewise.
671         * dirent/closedir.c: Don't include <stub-tag.h>.
672         * dirent/dirfd.c: Likewise.
673         * dirent/fdopendir.c: Likewise.
674         * dirent/getdents.c: Likewise.
675         * dirent/getdents64.c: Likewise.
676         * dirent/opendir.c: Likewise.
677         * dirent/readdir.c: Likewise.
678         * dirent/readdir64.c: Likewise.
679         * dirent/readdir64_r.c: Likewise.
680         * dirent/readdir_r.c: Likewise.
681         * dirent/rewinddir.c: Likewise.
682         * dirent/seekdir.c: Likewise.
683         * dirent/telldir.c: Likewise.
684         * gmon/profil.c: Likewise.
685         * grp/setgroups.c: Likewise.
686         * inet/if_index.c: Likewise.
687         * io/access.c: Likewise.
688         * io/chdir.c: Likewise.
689         * io/chmod.c: Likewise.
690         * io/chown.c: Likewise.
691         * io/close.c: Likewise.
692         * io/dup.c: Likewise.
693         * io/dup2.c: Likewise.
694         * io/dup3.c: Likewise.
695         * io/euidaccess.c: Likewise.
696         * io/faccessat.c: Likewise.
697         * io/fchdir.c: Likewise.
698         * io/fchmod.c: Likewise.
699         * io/fchmodat.c: Likewise.
700         * io/fchown.c: Likewise.
701         * io/fchownat.c: Likewise.
702         * io/fcntl.c: Likewise.
703         * io/flock.c: Likewise.
704         * io/fstatfs.c: Likewise.
705         * io/fstatfs64.c: Likewise.
706         * io/fstatvfs.c: Likewise.
707         * io/fstatvfs64.c: Likewise.
708         * io/futimens.c: Likewise.
709         * io/fxstat.c: Likewise.
710         * io/fxstat64.c: Likewise.
711         * io/fxstatat.c: Likewise.
712         * io/fxstatat64.c: Likewise.
713         * io/getcwd.c: Likewise.
714         * io/isatty.c: Likewise.
715         * io/lchmod.c: Likewise.
716         * io/lchown.c: Likewise.
717         * io/link.c: Likewise.
718         * io/linkat.c: Likewise.
719         * io/lseek.c: Likewise.
720         * io/lseek64.c: Likewise.
721         * io/lxstat64.c: Likewise.
722         * io/mkdir.c: Likewise.
723         * io/mkdirat.c: Likewise.
724         * io/mkfifo.c: Likewise.
725         * io/mkfifoat.c: Likewise.
726         * io/open.c: Likewise.
727         * io/open64.c: Likewise.
728         * io/openat.c: Likewise.
729         * io/openat64.c: Likewise.
730         * io/pipe.c: Likewise.
731         * io/pipe2.c: Likewise.
732         * io/poll.c: Likewise.
733         * io/posix_fadvise.c: Likewise.
734         * io/posix_fadvise64.c: Likewise.
735         * io/posix_fallocate.c: Likewise.
736         * io/posix_fallocate64.c: Likewise.
737         * io/read.c: Likewise.
738         * io/readlink.c: Likewise.
739         * io/readlinkat.c: Likewise.
740         * io/rmdir.c: Likewise.
741         * io/sendfile.c: Likewise.
742         * io/sendfile64.c: Likewise.
743         * io/statfs.c: Likewise.
744         * io/statfs64.c: Likewise.
745         * io/statvfs.c: Likewise.
746         * io/statvfs64.c: Likewise.
747         * io/symlink.c: Likewise.
748         * io/symlinkat.c: Likewise.
749         * io/ttyname.c: Likewise.
750         * io/ttyname_r.c: Likewise.
751         * io/umask.c: Likewise.
752         * io/unlink.c: Likewise.
753         * io/unlinkat.c: Likewise.
754         * io/utime.c: Likewise.
755         * io/utimensat.c: Likewise.
756         * io/write.c: Likewise.
757         * io/xmknod.c: Likewise.
758         * io/xmknodat.c: Likewise.
759         * io/xstat.c: Likewise.
760         * io/xstat64.c: Likewise.
761         * login/getpt.c: Likewise.
762         * login/grantpt.c: Likewise.
763         * login/unlockpt.c: Likewise.
764         * math/e_acoshl.c: Likewise.
765         * math/e_acosl.c: Likewise.
766         * math/e_asinl.c: Likewise.
767         * math/e_atan2l.c: Likewise.
768         * math/e_atanhl.c: Likewise.
769         * math/e_coshl.c: Likewise.
770         * math/e_expl.c: Likewise.
771         * math/e_fmodl.c: Likewise.
772         * math/e_gammal_r.c: Likewise.
773         * math/e_hypotl.c: Likewise.
774         * math/e_j0l.c: Likewise.
775         * math/e_j1l.c: Likewise.
776         * math/e_jnl.c: Likewise.
777         * math/e_lgammal_r.c: Likewise.
778         * math/e_log10l.c: Likewise.
779         * math/e_log2l.c: Likewise.
780         * math/e_logl.c: Likewise.
781         * math/e_powl.c: Likewise.
782         * math/e_rem_pio2l.c: Likewise.
783         * math/e_sinhl.c: Likewise.
784         * math/e_sqrtl.c: Likewise.
785         * math/fclrexcpt.c: Likewise.
786         * math/fedisblxcpt.c: Likewise.
787         * math/feenablxcpt.c: Likewise.
788         * math/fegetenv.c: Likewise.
789         * math/fegetexcept.c: Likewise.
790         * math/fegetround.c: Likewise.
791         * math/feholdexcpt.c: Likewise.
792         * math/fesetenv.c: Likewise.
793         * math/fesetround.c: Likewise.
794         * math/feupdateenv.c: Likewise.
795         * math/fgetexcptflg.c: Likewise.
796         * math/fraiseexcpt.c: Likewise.
797         * math/fsetexcptflg.c: Likewise.
798         * math/ftestexcept.c: Likewise.
799         * math/k_cosl.c: Likewise.
800         * math/k_rem_pio2l.c: Likewise.
801         * math/k_sinl.c: Likewise.
802         * math/k_tanl.c: Likewise.
803         * math/s_asinhl.c: Likewise.
804         * math/s_atanl.c: Likewise.
805         * math/s_cbrtl.c: Likewise.
806         * math/s_erfl.c: Likewise.
807         * math/s_expm1l.c: Likewise.
808         * math/s_log1pl.c: Likewise.
809         * math/s_tanhl.c: Likewise.
810         * misc/acct.c: Likewise.
811         * misc/brk.c: Likewise.
812         * misc/chflags.c: Likewise.
813         * misc/chroot.c: Likewise.
814         * misc/fchflags.c: Likewise.
815         * misc/fgetxattr.c: Likewise.
816         * misc/flistxattr.c: Likewise.
817         * misc/fremovexattr.c: Likewise.
818         * misc/fsetxattr.c: Likewise.
819         * misc/fsync.c: Likewise.
820         * misc/ftruncate.c: Likewise.
821         * misc/futimes.c: Likewise.
822         * misc/futimesat.c: Likewise.
823         * misc/getdomain.c: Likewise.
824         * misc/getdtsz.c: Likewise.
825         * misc/gethostid.c: Likewise.
826         * misc/gethostname.c: Likewise.
827         * misc/getloadavg.c: Likewise.
828         * misc/getpagesize.c: Likewise.
829         * misc/getsysstats.c: Likewise.
830         * misc/getxattr.c: Likewise.
831         * misc/gtty.c: Likewise.
832         * misc/ioctl.c: Likewise.
833         * misc/lgetxattr.c: Likewise.
834         * misc/listxattr.c: Likewise.
835         * misc/llistxattr.c: Likewise.
836         * misc/lremovexattr.c: Likewise.
837         * misc/lsetxattr.c: Likewise.
838         * misc/lutimes.c: Likewise.
839         * misc/madvise.c: Likewise.
840         * misc/mincore.c: Likewise.
841         * misc/mlock.c: Likewise.
842         * misc/mlockall.c: Likewise.
843         * misc/mmap.c: Likewise.
844         * misc/mprotect.c: Likewise.
845         * misc/msync.c: Likewise.
846         * misc/munlock.c: Likewise.
847         * misc/munlockall.c: Likewise.
848         * misc/munmap.c: Likewise.
849         * misc/preadv.c: Likewise.
850         * misc/preadv64.c: Likewise.
851         * misc/ptrace.c: Likewise.
852         * misc/pwritev.c: Likewise.
853         * misc/pwritev64.c: Likewise.
854         * misc/readv.c: Likewise.
855         * misc/reboot.c: Likewise.
856         * misc/remap_file_pages.c: Likewise.
857         * misc/removexattr.c: Likewise.
858         * misc/revoke.c: Likewise.
859         * misc/select.c: Likewise.
860         * misc/setdomain.c: Likewise.
861         * misc/setegid.c: Likewise.
862         * misc/seteuid.c: Likewise.
863         * misc/sethostid.c: Likewise.
864         * misc/sethostname.c: Likewise.
865         * misc/setregid.c: Likewise.
866         * misc/setreuid.c: Likewise.
867         * misc/setxattr.c: Likewise.
868         * misc/sstk.c: Likewise.
869         * misc/stty.c: Likewise.
870         * misc/swapoff.c: Likewise.
871         * misc/swapon.c: Likewise.
872         * misc/sync.c: Likewise.
873         * misc/syncfs.c: Likewise.
874         * misc/syscall.c: Likewise.
875         * misc/truncate.c: Likewise.
876         * misc/ualarm.c: Likewise.
877         * misc/usleep.c: Likewise.
878         * misc/ustat.c: Likewise.
879         * misc/utimes.c: Likewise.
880         * misc/vhangup.c: Likewise.
881         * misc/writev.c: Likewise.
882         * posix/_exit.c: Likewise.
883         * posix/alarm.c: Likewise.
884         * posix/execve.c: Likewise.
885         * posix/fexecve.c: Likewise.
886         * posix/fork.c: Likewise.
887         * posix/fpathconf.c: Likewise.
888         * posix/getaddrinfo.c: Likewise.
889         * posix/getegid.c: Likewise.
890         * posix/geteuid.c: Likewise.
891         * posix/getgid.c: Likewise.
892         * posix/getgroups.c: Likewise.
893         * posix/getlogin.c: Likewise.
894         * posix/getlogin_r.c: Likewise.
895         * posix/getpgid.c: Likewise.
896         * posix/getpid.c: Likewise.
897         * posix/getppid.c: Likewise.
898         * posix/getresgid.c: Likewise.
899         * posix/getresuid.c: Likewise.
900         * posix/getsid.c: Likewise.
901         * posix/getuid.c: Likewise.
902         * posix/glob64.c: Likewise.
903         * posix/nanosleep.c: Likewise.
904         * posix/pathconf.c: Likewise.
905         * posix/pause.c: Likewise.
906         * posix/posix_madvise.c: Likewise.
907         * posix/pread.c: Likewise.
908         * posix/pread64.c: Likewise.
909         * posix/pwrite.c: Likewise.
910         * posix/pwrite64.c: Likewise.
911         * posix/sched_getaffinity.c: Likewise.
912         * posix/sched_getp.c: Likewise.
913         * posix/sched_gets.c: Likewise.
914         * posix/sched_primax.c: Likewise.
915         * posix/sched_primin.c: Likewise.
916         * posix/sched_rr_gi.c: Likewise.
917         * posix/sched_setaffinity.c: Likewise.
918         * posix/sched_setp.c: Likewise.
919         * posix/sched_sets.c: Likewise.
920         * posix/sched_yield.c: Likewise.
921         * posix/setgid.c: Likewise.
922         * posix/setlogin.c: Likewise.
923         * posix/setpgid.c: Likewise.
924         * posix/setresgid.c: Likewise.
925         * posix/setresuid.c: Likewise.
926         * posix/setsid.c: Likewise.
927         * posix/setuid.c: Likewise.
928         * posix/sleep.c: Likewise.
929         * posix/spawni.c: Likewise.
930         * posix/sysconf.c: Likewise.
931         * posix/times.c: Likewise.
932         * posix/wait.c: Likewise.
933         * posix/wait3.c: Likewise.
934         * posix/wait4.c: Likewise.
935         * posix/waitpid.c: Likewise.
936         * resolv/gai_sigqueue.c: Likewise.
937         * resource/getpriority.c: Likewise.
938         * resource/getrlimit.c: Likewise.
939         * resource/getrusage.c: Likewise.
940         * resource/nice.c: Likewise.
941         * resource/setpriority.c: Likewise.
942         * resource/setrlimit.c: Likewise.
943         * resource/ulimit.c: Likewise.
944         * rt/aio_cancel.c: Likewise.
945         * rt/aio_fsync.c: Likewise.
946         * rt/aio_read.c: Likewise.
947         * rt/aio_sigqueue.c: Likewise.
948         * rt/aio_suspend.c: Likewise.
949         * rt/aio_write.c: Likewise.
950         * rt/clock_getres.c: Likewise.
951         * rt/clock_gettime.c: Likewise.
952         * rt/clock_nanosleep.c: Likewise.
953         * rt/clock_settime.c: Likewise.
954         * rt/lio_listio.c: Likewise.
955         * rt/mq_close.c: Likewise.
956         * rt/mq_getattr.c: Likewise.
957         * rt/mq_notify.c: Likewise.
958         * rt/mq_open.c: Likewise.
959         * rt/mq_receive.c: Likewise.
960         * rt/mq_send.c: Likewise.
961         * rt/mq_setattr.c: Likewise.
962         * rt/mq_timedreceive.c: Likewise.
963         * rt/mq_timedsend.c: Likewise.
964         * rt/mq_unlink.c: Likewise.
965         * rt/shm_open.c: Likewise.
966         * rt/shm_unlink.c: Likewise.
967         * rt/timer_create.c: Likewise.
968         * rt/timer_delete.c: Likewise.
969         * rt/timer_getoverr.c: Likewise.
970         * rt/timer_gettime.c: Likewise.
971         * rt/timer_settime.c: Likewise.
972         * setjmp/__longjmp.c: Likewise.
973         * setjmp/setjmp.c: Likewise.
974         * signal/kill.c: Likewise.
975         * signal/killpg.c: Likewise.
976         * signal/raise.c: Likewise.
977         * signal/sigaction.c: Likewise.
978         * signal/sigaltstack.c: Likewise.
979         * signal/sigblock.c: Likewise.
980         * signal/sigignore.c: Likewise.
981         * signal/sigintr.c: Likewise.
982         * signal/signal.c: Likewise.
983         * signal/sigpause.c: Likewise.
984         * signal/sigpending.c: Likewise.
985         * signal/sigqueue.c: Likewise.
986         * signal/sigreturn.c: Likewise.
987         * signal/sigset.c: Likewise.
988         * signal/sigsetmask.c: Likewise.
989         * signal/sigstack.c: Likewise.
990         * signal/sigsuspend.c: Likewise.
991         * signal/sigtimedwait.c: Likewise.
992         * signal/sigvec.c: Likewise.
993         * signal/sigwait.c: Likewise.
994         * signal/sigwaitinfo.c: Likewise.
995         * signal/sysv_signal.c: Likewise.
996         * socket/accept.c: Likewise.
997         * socket/accept4.c: Likewise.
998         * socket/bind.c: Likewise.
999         * socket/connect.c: Likewise.
1000         * socket/getpeername.c: Likewise.
1001         * socket/getsockname.c: Likewise.
1002         * socket/getsockopt.c: Likewise.
1003         * socket/isfdtype.c: Likewise.
1004         * socket/listen.c: Likewise.
1005         * socket/recv.c: Likewise.
1006         * socket/recvfrom.c: Likewise.
1007         * socket/recvmsg.c: Likewise.
1008         * socket/send.c: Likewise.
1009         * socket/sendmsg.c: Likewise.
1010         * socket/sendto.c: Likewise.
1011         * socket/setsockopt.c: Likewise.
1012         * socket/shutdown.c: Likewise.
1013         * socket/sockatmark.c: Likewise.
1014         * socket/socket.c: Likewise.
1015         * socket/socketpair.c: Likewise.
1016         * stdio-common/ctermid.c: Likewise.
1017         * stdio-common/cuserid.c: Likewise.
1018         * stdio-common/remove.c: Likewise.
1019         * stdio-common/rename.c: Likewise.
1020         * stdio-common/renameat.c: Likewise.
1021         * stdio-common/tempname.c: Likewise.
1022         * stdlib/getcontext.c: Likewise.
1023         * stdlib/makecontext.c: Likewise.
1024         * stdlib/setcontext.c: Likewise.
1025         * stdlib/swapcontext.c: Likewise.
1026         * stdlib/system.c: Likewise.
1027         * streams/fattach.c: Likewise.
1028         * streams/fdetach.c: Likewise.
1029         * streams/getmsg.c: Likewise.
1030         * streams/getpmsg.c: Likewise.
1031         * streams/putmsg.c: Likewise.
1032         * streams/putpmsg.c: Likewise.
1033         * sysdeps/unix/bsd/getpt.c: Likewise.
1034         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1035         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1036         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1038         Likewise.
1039         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1040         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1041         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1042         * sysvipc/msgctl.c: Likewise.
1043         * sysvipc/msgget.c: Likewise.
1044         * sysvipc/msgrcv.c: Likewise.
1045         * sysvipc/msgsnd.c: Likewise.
1046         * sysvipc/semctl.c: Likewise.
1047         * sysvipc/semget.c: Likewise.
1048         * sysvipc/semop.c: Likewise.
1049         * sysvipc/semtimedop.c: Likewise.
1050         * sysvipc/shmat.c: Likewise.
1051         * sysvipc/shmctl.c: Likewise.
1052         * sysvipc/shmdt.c: Likewise.
1053         * sysvipc/shmget.c: Likewise.
1054         * termios/tcdrain.c: Likewise.
1055         * termios/tcflow.c: Likewise.
1056         * termios/tcflush.c: Likewise.
1057         * termios/tcgetattr.c: Likewise.
1058         * termios/tcgetpgrp.c: Likewise.
1059         * termios/tcsendbrk.c: Likewise.
1060         * termios/tcsetattr.c: Likewise.
1061         * termios/tcsetpgrp.c: Likewise.
1062         * time/adjtime.c: Likewise.
1063         * time/clock.c: Likewise.
1064         * time/getitimer.c: Likewise.
1065         * time/gettimeofday.c: Likewise.
1066         * time/setitimer.c: Likewise.
1067         * time/settimeofday.c: Likewise.
1068         * time/stime.c: Likewise.
1069         * time/time.c: Likewise.
1070
1071 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1072
1073         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1074         /usr/old/bin.
1075
1076         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1077         instead of spaces.
1078         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1079
1080 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1081
1082         [BZ #14796]
1083         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1084         FE_TONEAREST before applying Dekker multiplication and Knuth
1085         addition.  Clear inexact exceptions and check for exact zero
1086         results afterwards.
1087         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1088         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1089         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1090         * math/libm-test.inc (fma_test): Add more tests.
1091         (fma_test_towardzero): Likewise.
1092         (fma_test_downward): Likewise.
1093         (fma_test_upward): Likewise.
1094         * sysdeps/generic/math_private.h (default_libc_fesetround): New
1095         function.
1096         (libc_fesetround): New macro.
1097         (libc_fesetroundf): Likewise.
1098         (libc_fesetroundl): Likewise.
1099         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1100         function.
1101         (libc_fesetround_387): Likewise.
1102         (libc_fesetroundf): New macro.
1103         (libc_fesetround): Likewise.
1104         (libc_fesetroundl): Likewise.
1105         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1106         function.
1107         (libc_fesetroundf): New macro.
1108         (libc_fesetround): Likewise.
1109         (libc_fesetroundl): Likewise.
1110         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1111         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1112         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1113         libm_hidden_ver.
1114         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1115         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1116         libm_hidden_def.
1117         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1118         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1119         libm_hidden_ver.
1120         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1121         libm_hidden_def.
1122
1123         [BZ #3439]
1124         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1125         integer constant usable in #if and use that to give value to enum
1126         constant.
1127         (FE_DIVBYZERO): Likewise.
1128         (FE_UNDERFLOW): Likewise.
1129         (FE_OVERFLOW): Likewise.
1130         (FE_INVALID): Likewise.
1131         (FE_INVALID_SNAN): Likewise.
1132         (FE_INVALID_ISI): Likewise.
1133         (FE_INVALID_IDI): Likewise.
1134         (FE_INVALID_ZDZ): Likewise.
1135         (FE_INVALID_IMZ): Likewise.
1136         (FE_INVALID_COMPARE): Likewise.
1137         (FE_INVALID_SOFTWARE): Likewise.
1138         (FE_INVALID_SQRT): Likewise.
1139         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1140         (FE_TONEAREST): Likewise.
1141         (FE_TOWARDZERO): Likewise.
1142         (FE_UPWARD): Likewise.
1143         (FE_DOWNWARD): Likewise.
1144         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1145         (FE_DIVBYZERO): Likewise.
1146         (FE_OVERFLOW): Likewise.
1147         (FE_UNDERFLOW): Likewise.
1148         (FE_INEXACT): Likewise.
1149         (FE_TONEAREST): Likewise.
1150         (FE_DOWNWARD): Likewise.
1151         (FE_UPWARD): Likewise.
1152         (FE_TOWARDZERO): Likewise.
1153         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1154         (FE_UNDERFLOW): Likewise.
1155         (FE_OVERFLOW): Likewise.
1156         (FE_DIVBYZERO): Likewise.
1157         (FE_INVALID): Likewise.
1158         (FE_TONEAREST): Likewise.
1159         (FE_TOWARDZERO): Likewise.
1160         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1161         (FE_OVERFLOW): Likewise.
1162         (FE_UNDERFLOW): Likewise.
1163         (FE_DIVBYZERO): Likewise.
1164         (FE_INEXACT): Likewise.
1165         (FE_TONEAREST): Likewise.
1166         (FE_TOWARDZERO): Likewise.
1167         (FE_UPWARD): Likewise.
1168         (FE_DOWNWARD): Likewise.
1169         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1170         (FE_DIVBYZERO): Likewise.
1171         (FE_OVERFLOW): Likewise.
1172         (FE_UNDERFLOW): Likewise.
1173         (FE_INEXACT): Likewise.
1174         (FE_TONEAREST): Likewise.
1175         (FE_DOWNWARD): Likewise.
1176         (FE_UPWARD): Likewise.
1177         (FE_TOWARDZERO): Likewise.
1178
1179 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1180
1181         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1182
1183 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1184
1185         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1186         commands.  Quote $PWD.
1187         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1188         -x" by "export".
1189         (remove_newlines): Remove.
1190
1191 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1192
1193         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1194         * stdlib/stdlib.h (atof): Moved to ...
1195         * include/bits/stdlib-float.h: Here.  New file.
1196         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1197         * stdlib/bits/stdlib-float.h: New file.
1198         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1199         -mno-sse -mno-mmx.
1200         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1201         <xmmintrin.h>.
1202
1203 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1204
1205         * conform/conformtest.pl (@headers): Add fenv.h.
1206         * conform/data/fenv.h-data: New file.
1207         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1208         include of <math/fenv.h>.
1209
1210         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1211         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1212         && !UNIX98].  Enables tests for XOPEN2K8.
1213         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1214         POSIX2008]: Likewise.
1215
1216         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1217         (struct rusage): Do not expect type or its members.
1218
1219         [BZ #3439]
1220         * math/math.h (FP_NAN): Define macro to integer constant usable in
1221         #if and use that to give value to enum constant.
1222         (FP_INFINITE): Likewise.
1223         (FP_ZERO): Likewise.
1224         (FP_SUBNORMAL): Likewise.
1225         (FP_NORMAL): Likewise.
1226
1227 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1228
1229         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1230         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1231         arguments.
1232
1233 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1234
1235         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1236         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1237         autoconf-time if not.
1238         * configure.in: Remove AC_PREREQ.
1239
1240 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1241
1242         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1243         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1244         of the internal implementation.
1245
1246 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1247
1248         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1249         except include of <misc/sys/syslog.h>.
1250
1251 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1252
1253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1254         function returns with a NULL context exit with zero.
1255
1256 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1257
1258         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1259
1260 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1261
1262         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1263         (run_program_cmd): This.
1264         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1265         (tst_langinfo): New variable.  Use it.
1266
1267 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1268
1269         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1270         floating point opcodes.
1271
1272 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1273
1274         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1275         variable.
1276
1277         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1278
1279         * sysdeps/mach/hurd/powerpc: Remove directory.
1280         * sysdeps/mach/powerpc: Likewise.
1281
1282 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1283
1284         * scripts/check-local-headers.sh: Ignore c++ headers.
1285
1286 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1287
1288         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1289         __libc_cleanup_region_start argument.
1290
1291 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1292
1293         [BZ #14784]
1294         [BZ #14785]
1295         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1296         x * y using scaling, not as x * y + z.
1297         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1298         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1299         * math/libm-test.inc (fma_test): Add more tests.
1300         (fma_test_towardzero): Likewise.
1301         (fma_test_downward): Likewise.
1302         (fma_test_upward): Likewise.
1303
1304 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1305
1306         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1307
1308 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1309
1310         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1311         New variable.
1312
1313 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1314
1315         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1316
1317 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1318
1319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1320         Fix sort order.
1321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1322         Likewise.
1323
1324 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1325
1326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1327         Fix the order of the list for glibc 2.17.
1328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1329         Likewise.
1330
1331 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1332
1333         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1334
1335 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1336
1337         [BZ #14610]
1338         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1339         for low part of x being zero before using __atanl (y).
1340         * math/libm-test.inc (atan2_test): Add another test.
1341
1342         * manual/install.texi (Configuring and compiling): Document
1343         general use of test-wrapper and test-wrapper-env.
1344         * INSTALL: Regenerated.
1345
1346         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1347         (__fma): Do not extract and scale down low bits on after-rounding
1348         systems when result rounded to normal precision would have normal
1349         exponent.
1350         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1351         (__fmal): Do not extract and scale down low bits on after-rounding
1352         systems when result rounded to normal precision would have normal
1353         exponent.
1354         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1355         (__fmal): Do not extract and scale down low bits on after-rounding
1356         systems when result rounded to normal precision would have normal
1357         exponent.
1358         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1359         macro.
1360         (fma_test): Add more tests.
1361         (fma_test_towardzero): Likewise.
1362         (fma_test_downward): Likewise.
1363         (fma_test_upward): Likewise.
1364
1365 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1366
1367         * sysdeps/i386/tininess.h: Renamed to ...
1368         * sysdeps/x86/tininess.h: This.
1369         * sysdeps/x86_64/tininess.h: Removed.
1370
1371 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1372
1373         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1374         input.  Use $(build-program-cmd).
1375         ($(objpfx)tst-array1-static.out): Likewise.
1376         ($(objpfx)tst-array2.out): Likewise.
1377         ($(objpfx)tst-array3.out): Likewise.
1378         ($(objpfx)tst-array4.out): Likewise.
1379         ($(objpfx)tst-array5.out): Likewise.
1380         ($(objpfx)tst-array5-static.out): Likewise.
1381
1382 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1383
1384         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1385         if defined.
1386
1387         * nss/nsswitch.h (nss_interface_function): Provide new
1388         macro for use with NSS functions.
1389         * grp/initgroups.c: Use new macro.
1390         * nss/getXXbyYY.c: Likewise.
1391         * nss/getXXbyYY_r.c: Likewise.
1392         * nss/getXXent.c: Likewise.
1393         * nss/getXXent_r.c: Likewise.
1394         * sysdeps/posix/getaddrinfo.c: Likewise.
1395
1396 2012-10-30  Andreas Jaeger  <aj@suse.de>
1397
1398         * po/ru.po: Update Russion translation from translation project.
1399
1400 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1401
1402         [BZ #14152]
1403         [BZ #14783]
1404         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1405         result and shift together with sticky bit instead of replicating
1406         round-to-nearest rounding.
1407         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1408         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1409         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1410         missing underflow exceptions.
1411         (fma_test_towardzero): Add more tests.
1412         (fma_test_downward): Likewise.
1413         (fma_test_upward): Likewise.
1414
1415         [BZ #14047]
1416         * sysdeps/generic/tininess.h: New file.
1417         * sysdeps/i386/tininess.h: Likewise.
1418         * sysdeps/sh/tininess.h: Likewise.
1419         * sysdeps/x86_64/tininess.h: Likewise.
1420         * stdlib/tst-strtod-underflow.c: Likewise.
1421         * stdlib/tst-tininess.c: Likewise.
1422         * stdlib/strtod_l.c: Include <tininess.h>.
1423         (round_and_return): Do not set errno for exact underflow cases.
1424         Force an underflow exception when setting errno for underflow.
1425         Determine underflow based on rounding to normal precision if
1426         TININESS_AFTER_ROUNDING.
1427         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1428         ERANGE for exact underflow cases.
1429         * stdlib/Makefile (tests): Add tst-tininess and
1430         tst-strtod-underflow.
1431         ($(objpfx)tst-tininess): Use $(link-libm).
1432         ($(objpfx)tst-strtod-underflow): Likewise.
1433
1434 2012-10-30  Andreas Jaeger  <aj@suse.de>
1435
1436         [BZ#14767]
1437         * elf/Makefile (tests): Remove conditional for have-initfini-array
1438         since this is now always required and the variable does not exist
1439         anymore.
1440         (tests-static): Likewise.
1441         (modules-names): Likewise.
1442
1443         * po/eo.po: Add Esperanto translation from translation project.
1444
1445         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1446         merged with constructor/destructor.
1447         (init_array): Likewise.
1448         * elf/tst-array2dep.c (fini_array): Likewise.
1449         (init_array): Likewise.
1450
1451 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1452
1453         * manual/message.texi: Delete @cartouche tags.
1454
1455 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1456
1457         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1458         EOPNOTSUPP.
1459         * sysdeps/mach/hurd/fsync.c: Likewise.
1460
1461         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1462         [_POSIX_REALTIME_SIGNALS]: Change condition to
1463         [_POSIX_REALTIME_SIGNALS > 0].
1464
1465 2012-10-27  Andreas Jaeger  <aj@suse.de>
1466
1467         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1468         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1469         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1470         [__WORDSIZE != 64]: Likewise.
1471
1472 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1473
1474         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1475         *  iconvdata/tst-tables.sh: Likewise.
1476
1477 2012-10-25  David S. Miller  <davem@davemloft.net>
1478
1479         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1480         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1481         of strtoull.
1482
1483         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1484         ifunc-impl-list.c
1485         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1486         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1487         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1488         file.
1489
1490 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1491
1492         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1493         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1494         __getdirentries.
1495
1496 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1497             Jim Blandy  <jimb@codesourcery.com>
1498
1499         * scripts/cross-test-ssh.sh: New file.
1500         * manual/install.texi (Configuring and compiling): Document use of
1501         cross-test-ssh.sh.
1502         * INSTALL: Regenerated.
1503
1504 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1505
1506         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1507         EOPNOTSUPP.
1508
1509 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1510
1511         * Makeconfig (run-program-prefix): Fix comment.
1512
1513 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1514             Jim Blandy  <jimb@codesourcery.com>
1515
1516         * Makeconfig (test-wrapper): New variable,
1517         (test-wrapper-env): Likewise.
1518         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1519         (run-built-tests): Define to yes.
1520         (run-program-prefix): Use $(test-wrapper).
1521         (built-program-cmd): Likewise.
1522         * Rules (make-test-out): Use $(test-wrapper-env) and
1523         $(host-built-program-cmd).
1524         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1525         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1526         tst-pathopt.sh.
1527         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1528         $(test-wrapper-env) to tst-rtld-load-self.sh.
1529         ($(objpfx)order2.out): Use $(test-wrapper).
1530         ($(objpfx)tst-initorder.out): Likewise.
1531         ($(objpfx)tst-initorder2.out): Likewise.
1532         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1533         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1534         (test_wrapper_env): New variable.  Use it to run ld.so.
1535         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1536         Use it to run ld.so.
1537         (test_wrapper_env): Likewise.
1538         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1539         $(test-wrapper) to run-iconv-test.sh.
1540         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1541         (ICONV): Use $test_wrapper.
1542         * posix/Makefile ($(objpfx)globtest.out): Pass
1543         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1544         globtest.sh, not $(run-program-prefix).
1545         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1546         (test_wrapper): Likewise.
1547         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1548         set together with run_via_rtld_prefix.
1549         (run_program_prefix): Define in terms of test_wrapper and
1550         run_via_rtld_prefix.
1551
1552 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1553
1554         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1555         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1556         Targets removed.
1557
1558         [BZ #14743]
1559         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1560         Declare __clock_getres, __clock_gettime, __clock_settime,
1561         __clock_nanosleep, and __clock_getcpuclockid.
1562         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1563         Remove librt_hidden_def (clock_gettime).
1564         * sysdeps/unix/clock_gettime.c: Likewise.
1565         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1566         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1567         * rt/clock_getres.c: Define __clock_getres as an alias.
1568         * sysdeps/posix/clock_getres.c: Likewise.
1569         * rt/clock_settime.c: Define __clock_settime as an alias.
1570         * sysdeps/unix/clock_settime.c: Likewise.
1571         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1572         * sysdeps/unix/clock_nanosleep.c: Likewise.
1573         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1574         * rt/clock-compat.c: New file.
1575         * rt/Makefile (librt-routines): Add clock-compat and move
1576         $(clock-routines) to ...
1577         (routines): ... here, new variable.
1578         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1579         Don't add get_clockfreq here.
1580         * rt/Versions (libc: GLIBC_2.17): New version set.
1581         Add clock_* symbols here.
1582         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1583         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1584         (GLIBC_2.17): Add clock_* symbols.
1585         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1586         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1587         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1589         Likewise.
1590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1591         Likewise.
1592         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1593         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1594         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1595         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1596         * NEWS: Mention the move.
1597
1598         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1599         Use __open, __read, __close rather than their public counterparts.
1600         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1601         (__get_clockfreq_via_cpuinfo): Likewise.
1602         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1603         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1604
1605         * config.h.in (HAVE_IFUNC): New #undef.
1606         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1607         was successful.
1608         * configure: Regenerated.
1609
1610 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1611
1612         * configure.in: Move READELF check to start of file.
1613         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1614         libc_cv_asm_gnu_indirect_function in the process.
1615         * configure: Regenerated.
1616
1617 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1618
1619         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1620         send the output to /dev/null.
1621         (libc_cv_cc_with_libunwind): Likewise.
1622         (libc_cv_as_noexecstack): Likewise.
1623         * configure: Regenerate.
1624
1625 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1626
1627         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1628
1629         * posix/globtest.sh (TMPDIR): Do not set.
1630         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1631         (testout): Likewise.
1632
1633 2012-10-24  Andreas Jaeger  <aj@suse.de>
1634
1635         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1636         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1637         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1638         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1639         posix_fadvise64, posix_fallocate64.
1640
1641         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1642         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1643         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1644         Likewise.
1645         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1646         Likewise.
1647         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1648
1649         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1650         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1651         <bits/fcntl-linux.h>.
1652         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1653
1654         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1655         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1656         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1657         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1658         [__WORDSIZE != 64]: Likewise.
1659
1660 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1661
1662         * Makeconfig (run-built-tests): New variable.
1663         * Rules [$(cross-compiling) = yes]: Change condition to
1664         [$(run-built-tests) = no].
1665         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1666         to [$(run-built-tests) = yes].
1667         * elf/Makefile [$(cross-compiling) = no]: Likewise
1668         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1669         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1670         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1671         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1672         * io/Makefile [$(cross-compiling) = no]: Likewise.
1673         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1674         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1675         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1676         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1677         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1678         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1679         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1680         * string/Makefile [$(cross-compiling) = no]: Likewise.
1681
1682         * posix/Makefile ($(objpfx)globtest.out): Pass
1683         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1684         $(rtld-installed-name).
1685         * posix/globtest.sh (elf_objpfx): Remove variable.
1686         (rtld_installed_name): Likewise.
1687         (library_path): Likewise.
1688         (run_program_prefix): New variable.  Use for running globtest
1689         binary.
1690
1691 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1692             Joseph Myers  <joseph@codesourcery.com>
1693
1694         * Makeconfig (host-built-program-cmd): New variable.
1695         * elf/Makefile (tst-stackguard1-ARGS): Use
1696         $(host-built-program-cmd).
1697         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1698         (tst-spawn-ARGS): Likewise.
1699         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1700
1701 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1702             Jim Blandy  <jimb@codesourcery.com>
1703
1704         * Makeconfig (run-via-rtld-prefix): New variable.
1705         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1706         (built-program-cmd): Likewise.
1707
1708 2012-10-22  Andreas Jaeger  <aj@suse.de>
1709
1710         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1711         __O_RSYNC if it exists, otherwise to O_SYNC.
1712
1713 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1714             Joseph Myers  <joseph@codesourcery.com>
1715
1716         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1717         /dev/null.
1718         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1719         from /dev/null
1720         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1721         /dev/null.
1722
1723 2012-10-22  Andreas Jaeger  <aj@suse.de>
1724
1725         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1726         Define always.
1727         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1728
1729         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1730         bits/fcntl-linux.h.
1731
1732         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1733         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1734
1735         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1736         to __O_LARGEFILE.
1737         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1738         to __O_LARGEFILE.
1739
1740 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1741             Joseph Myers  <joseph@codesourcery.com>
1742
1743         * config.make.in (NM): New variable.
1744
1745 2012-10-21  Andreas Jaeger  <aj@suse.de>
1746
1747         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1748         definitions and declarations that are provided by
1749         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1750
1751 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1752
1753         [BZ #14683]
1754         * elf/Makefile (tests-static): Add tst-leaks1-static.
1755         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1756         ($(objpfx)tst-leaks1-static): New rule.
1757         ($(objpfx)tst-leaks1-static-mem): Likewise.
1758         (tst-leaks1-static-ENV): New macro.
1759         * elf/dl-open.c (dl_open_worker): Check the main application
1760         only if SHARED is defined.
1761         * elf/tst-leaks1-static.c: New file.
1762
1763 2012-10-20  Andreas Jaeger  <aj@suse.de>
1764
1765         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1766         generic values for Linux.
1767         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1768         and declarations that are provided by <bits/fcntl-linux.h> and
1769         include <bits/fcntl-linux.h>.
1770         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1771         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1772
1773 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1774
1775         * io/fcntl.h: Move include of <bits/types.h> to the top and
1776         include it unconditionally.
1777
1778 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1779
1780         * wcsmbs/Makefile (tests-ifunc): New variable.
1781         (tests): Add $(tests-ifunc).
1782         * wcsmbs/test-wcschr-ifunc.c: New file.
1783         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1784         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1785         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1786         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1787         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1788
1789         * string/Makefile (tests-ifunc): New variable.
1790         (tests): Add $(tests-ifunc).
1791         * string/test-memccpy.c (TEST_NAME): New macro.
1792         * string/test-memchr.c (TEST_NAME): Likewise.
1793         * string/test-memcmp.c (TEST_NAME): Likewise.
1794         * string/test-memcpy.c (TEST_NAME): Likewise.
1795         * string/test-memmem.c (TEST_NAME): Likewise.
1796         * string/test-memmove.c (TEST_NAME): Likewise.
1797         * string/test-memset.c (TEST_NAME): Likewise.
1798         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1799         * string/test-stpcpy.c (TEST_NAME): Likewise.
1800         * string/test-stpncpy.c (TEST_NAME): Likewise.
1801         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1802         * string/test-strcasestr.c (TEST_NAME): Likewise.
1803         * string/test-strcat.c (TEST_NAME): Likewise.
1804         * string/test-strchr.c (TEST_NAME): Likewise.
1805         * string/test-strcmp.c(TEST_NAME): Likewise.
1806         * string/test-strcpy.c (TEST_NAME): Likewise.
1807         * string/test-strcspn.c (TEST_NAME): Likewise.
1808         * string/test-strlen.c (TEST_NAME): Likewise.
1809         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1810         * string/test-strncmp.c (TEST_NAME): Likewise.
1811         * string/test-strncpy.c (TEST_NAME): Likewise.
1812         * string/test-strnlen.c (TEST_NAME): Likewise.
1813         * string/test-strpbrk.c (TEST_NAME): Likewise.
1814         * string/test-strrchr.c (TEST_NAME): Likewise.
1815         * string/test-strspn.c (TEST_NAME): Likewise.
1816         * string/test-strstr.c (TEST_NAME): Likewise.
1817         * string/test-bcopy-ifunc.c: New file.
1818         * string/test-bzero-ifunc.c: Likewise.
1819         * string/test-memccpy-ifunc.c: Likewise.
1820         * string/test-memchr-ifunc.c: Likewise.
1821         * string/test-memcmp-ifunc.c: Likewise.
1822         * string/test-memcpy-ifunc.c: Likewise.
1823         * string/test-memmem-ifunc.c: Likewise.
1824         * string/test-memmove-ifunc.c: Likewise.
1825         * string/test-mempcpy-ifunc.c: Likewise.
1826         * string/test-memset-ifunc.c: Likewise.
1827         * string/test-rawmemchr-ifunc.c: Likewise.
1828         * string/test-stpcpy-ifunc.c: Likewise.
1829         * string/test-stpncpy-ifunc.c: Likewise.
1830         * string/test-strcasecmp-ifunc.c: Likewise.
1831         * string/test-strcasestr-ifunc.c: Likewise.
1832         * string/test-strcat-ifunc.c: Likewise.
1833         * string/test-strchr-ifunc.c: Likewise.
1834         * string/test-strchrnul-ifunc.c: Likewise.
1835         * string/test-strcmp-ifunc.c: Likewise.
1836         * string/test-strcpy-ifunc.c: Likewise.
1837         * string/test-strcspn-ifunc.c: Likewise.
1838         * string/test-strlen-ifunc.c: Likewise.
1839         * string/test-strncasecmp-ifunc.c: Likewise.
1840         * string/test-strncat-ifunc.c: Likewise.
1841         * string/test-strncmp-ifunc.c: Likewise.
1842         * string/test-strncpy-ifunc.c: Likewise.
1843         * string/test-strnlen-ifunc.c: Likewise.
1844         * string/test-strpbrk-ifunc.c: Likewise.
1845         * string/test-strrchr-ifunc.c: Likewise.
1846         * string/test-strspn-ifunc.c: Likewise.
1847         * string/test-strstr-ifunc.c: Likewise.
1848
1849         * debug/Makefile (tests-ifunc): New variable.
1850         (tests): Add $(tests-ifunc).
1851         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1852         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1853         * debug/test-stpcpy_chk-ifunc.c: New file.
1854         * debug/test-strcpy_chk-ifunc.c: Likewise.
1855
1856 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1857
1858         [BZ #13601]
1859         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1860         header is not read in.
1861
1862 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1863
1864         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1865         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1866         directly.  Pass built executable to script as
1867         $(built-program-cmd).
1868         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1869         $testprogram without using LD_LIBRARY_PATH and $ldso.
1870
1871         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1872         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1873         $(rtld-installed-name).
1874         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1875         (rtld_installed_name): Likewise.
1876         (library_path): Likewise.
1877         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1878         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1879         $(run-program-prefix) to tst-tables.sh.
1880         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1881         it to run tst-table-from and tst-table-to.
1882         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1883         Pass it to tst-table.sh.
1884         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1885         $(run-program-prefix) to tst-gettext.sh.
1886         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1887         tst-translit.sh.
1888         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1889         tst-gettext2.sh.
1890         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1891         to run tst-gettext.
1892         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1893         to run tst-gettext2.
1894         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1895         to run tst-translit.
1896         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
1897         $(run-program-prefix) to tst-mtrace.sh.
1898         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
1899         to run tst-mtrace.
1900         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
1901         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
1902         $(rtld-installed-name).
1903         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
1904         (rtld_installed_name): Likewise.
1905         (run_program_prefix): New variable.  Use it to run wordexp-test.
1906
1907         * Makeconfig (ARCH): Remove all definitions.
1908         (machine): Likewise.
1909         [ARCH]: Remove conditional code.
1910         [!objdir]: Give error.
1911         [!objdir] (objpfx): Remove.
1912         [!objdir] (common-objpfx): Likewise.
1913         [!objdir] (common-objdir): Likewise.
1914         * configure.in (config_makefile): Remove.  Hardcode Makefile in
1915         AC_CONFIG_FILES call.
1916         * configure: Regenerated.
1917
1918         [BZ #13888]
1919         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
1920         or TMPDIR.
1921         (testout): Likewise.
1922
1923         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
1924         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
1925         $(rtld-installed-name).
1926         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
1927         (rtld_installed_name): Likwise.
1928         (runit): Remove function.
1929         (run_getconf): New variable,  Use it for running getconf binary.
1930
1931 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
1932
1933         [BZ #14716]
1934         * string/test-memmem.c (check_result): New function.
1935         (do_one_test): Use it.
1936         (check1): New function.
1937         (test_main): Use it.
1938
1939 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
1940
1941         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
1942
1943 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
1944
1945         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
1946         (_G_LSEEK64): Likewise.
1947         (_G_MMAP64): Likewise.
1948         (_G_FSTAT64): Likewise.
1949         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
1950         (_G_LSEEK64): Likewise.
1951         (_G_MMAP64): Likewise.
1952         (_G_FSTAT64): Likewise.
1953         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
1954         unconditional.  Call __mmap64 directly.
1955         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
1956         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
1957         __lseek64 directly.
1958         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
1959         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
1960         __mmap64 directly.
1961         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
1962         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1963         __lseek64 directly.
1964         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
1965         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
1966         __lseek64 directly.
1967         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
1968         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
1969         __lseek64 directly.
1970         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
1971         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
1972         __fxstat64 directly.
1973         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
1974         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
1975         unconditional.
1976         (freopen64) [!_G_OPEN64]: Remove conditional code.
1977         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
1978         unconditional.
1979         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
1980         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
1981         unconditional.
1982         (ftello64) [!_G_LSEEK64]: Remove conditional code.
1983         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
1984         unconditional.
1985         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1986         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
1987         unconditional.
1988         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
1989         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
1990         unconditional.
1991         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1992         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
1993         unconditional.
1994         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
1995         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
1996         unconditional.
1997         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
1998
1999 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2000
2001         [BZ #12140]
2002         * manual/memory.texi (Malloc Tunable Parameters): Add note
2003         about free list pointers overwriting some perturb bytes.
2004         Wording suggested by Roland McGrath.
2005
2006 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2007
2008         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2009         (lgamma_test): Likewise.
2010         (tgamma_test): Likewise.
2011
2012 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2013
2014         [BZ #14700]
2015         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2016         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2017
2018 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2019
2020         * NEWS: Mention BZ #14716.
2021         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2022         when removing AVAILABLE1_USES_J macro.
2023
2024 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2025
2026         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2027         (__bswap_64): __uint64_t for unsigned 64-bit int.
2028
2029 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2030
2031         * include/string.h (memmem): Declare libc hidden alias.
2032         * string/memmem.c (memmem): Define libc hidden alias.
2033         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2034         __read, __close instead of open, read, close.
2035
2036 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2037
2038         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2039         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2040         global and hidden.
2041         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2042         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2043         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2044         Likewise.
2045         (__rawmemchr_sse2): Likewise.
2046         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2047         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2048         (__strchr_sse2): Likewise.
2049         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2050         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2051         (__strcasecmp_sse2): Likewise.
2052         (__strncasecmp_sse2): Likewise.
2053         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2054         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2055         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2056         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2057         (__strrchr_sse2): Likewise.
2058         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2059         ifunc-impl-list.c.
2060         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2061         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2062         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2063         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2064         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2065         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2066         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2067         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2068         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2069         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2070         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2071         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2072         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2073         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2074         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2075         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2076         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2077         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2078         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2079         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2080         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2081         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2082         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2083         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2084         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2085         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2086         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2087         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2088         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2089         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2090
2091         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2092         global and hidden.
2093         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2094         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2095         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2096         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2097         Likewise.
2098         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2099         Likewise.
2100         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2101         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2102         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2103         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2104         ifunc-impl-list.c.
2105         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2106         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2107         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2108         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2109         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2110         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2111         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2112         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2113         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2114         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2115         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2116         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2117         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2118         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2119         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2120         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2121         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2122         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2123         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2124         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2125         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2126         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2127         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2128         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2129         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2130         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2131         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2132         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2133         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2134         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2135         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2136         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2137         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2138         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2139         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2140         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2141         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2142         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2143         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2144         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2145         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2146
2147         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2148         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2149         * include/ifunc-impl-list.h: New file.
2150         * misc/ifunc-impl-list.c: Likewise.
2151         * misc/Makefile (routines): Add ifunc-impl-list.
2152         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2153         * string/test-string.h: Include <ifunc-impl-list.h>.
2154         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2155         impl_array): New variables.
2156         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2157         are defined.
2158         (test_init): Call __libc_ifunc_impl_list to initialize
2159         func_list if TEST_IFUNC and TEST_NAME are defined.
2160
2161         * string/Makefile (strop-tests): Add bcopy and bzero.
2162         * string/test-bcopy.c: New file.
2163         * string/test-bzero.c: Likewise.
2164         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2165         defined.
2166         * string/test-memset.c: Support bzero test if TEST_BZERO is
2167         defined.
2168         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2169         __libc_memmove.
2170         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2171         __libc_memset.
2172         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2173         of memset.
2174
2175 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2176
2177         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2178         * configure: Regenerated.
2179
2180         * Makeconfig (+link-static-before-libc): Don't include
2181         $(link-static-libc).
2182
2183         * libio/libio.h (_IO_pos_t): Remove.
2184
2185 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2186
2187         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2188         McGrath.
2189
2190 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2191
2192         * crypt/crypt-entry.c: Include fips-private.h.
2193         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2194         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2195         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2196         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2197
2198 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2199
2200         * crypt/crypt-private.h: Include stdbool.h.
2201         (_ufc_setup_salt_r): Return bool.
2202         * crypt/crypt-entry.c: Include errno.h.
2203         (__crypt_r): Return NULL with EINVAL for bad salt.
2204         * crypt/crypt_util.c (bad_for_salt): New.
2205         (_ufc_setup_salt_r): Check that salt is long enough and within
2206         the specified alphabet.
2207         * crypt/badsalttest.c: New file.
2208         * crypt/Makefile (tests): Add it.
2209         ($(objpfx)badsalttest): New.
2210
2211 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2212
2213         * NEWS: Add entry for BZ #14602.
2214
2215 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2216
2217         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2218         type-generic.
2219         * math/libm-test.inc: Update comment listing what functions and
2220         macros are tested.
2221         (isgreater_test): New function.
2222         (isgreaterequal_test): Likewise.
2223         (isless_test): Likewise.
2224         (islessequal_test): Likewise.
2225         (islessgreater_test): Likewise.
2226         (isunordered_test): Likewise.
2227         (main): Call the new functions.
2228
2229 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2230
2231         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2232         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2233         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2234         * sysdeps/i386/configure: Regenerated.
2235         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2236         * sysdeps/mach/configure: Regenerated.
2237         * sysdeps/mach/hurd/configure: Regenerated.
2238         * sysdeps/powerpc/configure: Regenerated.
2239         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2240         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2241         * sysdeps/s390/s390-32/configure: Regenerated.
2242         * sysdeps/s390/s390-64/configure: Regenerated.
2243         * sysdeps/sh/configure: Regenerated.
2244         * sysdeps/sparc/configure: Regenerated.
2245         * sysdeps/unix/sysv/linux/configure: Regenerated.
2246         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2247         * sysdeps/x86_64/configure: Regenerated.
2248
2249         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2250         defined.  Don't check if MAP is NULL.
2251
2252 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2253
2254         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2255         (_G_stat64): Likewise.
2256         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2257         (_G_stat64): Likewise.
2258         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2259         instead of struct _G_stat64.
2260         * libio/fileops.c (mmap_remap_check): Likewise.
2261         (decide_maybe_mmap): Likewise.
2262         (_IO_new_file_seekoff): Likewise.
2263         (_IO_file_stat): Likewise.
2264         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2265         _G_off64_t.
2266         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2267         instead of struct _G_stat64.
2268         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2269
2270 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2271
2272         [BZ #14602]
2273         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2274         Replace with ...
2275         (CHECK_EOL): New macro.
2276         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2277         CHECK_EOL.
2278         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2279         Replace with CHECK_EOL.
2280         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2281         Replace with CHECK_EOL.
2282
2283 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2284
2285         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2286         type-generic.
2287         * math/libm-test.inc: Update comment listing what functions and
2288         macros are tested.
2289         (finite_test): New function.
2290         (isinf_test): Likewise.
2291         (isnan_test): Likewise.
2292         (fpclassify_test): Test subnormal input.
2293         (isfinite_test): Likewise.
2294         (isnormal_test): Likewise.
2295         (main): Call the new functions.
2296
2297 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2298
2299         [BZ #14660]
2300         * Makerules (%.dynsym): Force C locale when running
2301         $(OBJDUMP) --dynamic-syms.
2302
2303 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2304
2305         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2306         <stdint.h>.
2307
2308 2012-10-06  David S. Miller  <davem@davemloft.net>
2309
2310         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2311         upper 32-bits of the length value in %o2 since we use branch-on-register
2312         tests which consider the entire 64-bit register.
2313
2314 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2315
2316         * string/test-strstr.c (check2): Add a test for page boundary.
2317
2318 2012-10-05  David S. Miller  <davem@davemloft.net>
2319
2320         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2321         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2322         file.
2323         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2324         sysdep_routines.
2325         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2326         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2327         and bzero when HWCAP_SPARC_CRYPTO is present.
2328
2329 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2330
2331         [BZ #14602]
2332         * string/test-strstr.c (check2): New function.
2333         (test_main): Call check2.
2334
2335         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2336         and bug-strchr1.
2337         * string/bug-strcasestr1.c (do_test): Moved to ...
2338         * string/test-strcasestr.c (check1): Here.  New function.
2339         (do_one_test): Break out result checking code into ...
2340         (check_result): This.  New function.
2341         (do_one_test): Call check_result.
2342         (test_main): Call check1.
2343         * string/bug-strchr1.c (do_test): Moved to ...
2344         * string/test-strchr.c (check1): Here.  New function.
2345         (do_one_test): Break out result checking code into ...
2346         (check_result): This.  New function.
2347         (do_one_test): Call check_result.
2348         (test_main): Call check1.
2349         * string/bug-strstr1.c (main): Moved to ...
2350         * string/test-strchr.c (check1): Here.  New function.
2351         (do_one_test): Break out result checking code into ...
2352         (check_result): This.  New function.
2353         (do_one_test): Call check_result.
2354         (test_main): Call check1.
2355         * string/bug-strcasestr1.c: Removed.
2356         * string/bug-strchr1.c: Likewise.
2357         * string/bug-strstr1.c: Likewise.
2358
2359         * elf/Makefile (dl-routines): Add hwcaps.
2360         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2361         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2362         (_dl_important_hwcaps): Moved to ...
2363         * elf/dl-hwcaps.c: Here.  New file.
2364         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2365
2366         [BZ #14557]
2367         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2368         if IS_IN_rtld isn't defined.
2369
2370         * elf/dl-support.c (_dl_sysinfo_map): New.
2371         Include "get-dynamic-info.h" and "setup-vdso.h".
2372         (_dl_non_dynamic_init): Call setup_vdso.
2373         * elf/dynamic-link.h: Don't include <assert.h>.
2374         (elf_get_dynamic_info): Moved to ...
2375         * elf/get-dynamic-info.h: Here.  New file.
2376         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2377         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2378         * elf/setup-vdso.h: Here.  New file.
2379         * elf/rtld.c: Include "setup-vdso.h".
2380         (dl_main): Call setup_vdso.
2381
2382 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2383
2384         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2385         creal in comment listing functions tested.  List finite, isinf,
2386         isnan, isless, islessequal, isgreater, isgreaterequal,
2387         islessgreater, isunordered, lgamma_r and pow10 as functions and
2388         macros not tested.  Mention which functions not tested are aliases
2389         for other functions.  Fix typo.  Note that signs of NaNs are not
2390         tested.
2391
2392         * scripts/config.guess: Update from config.git.
2393         * scripts/config.sub: Likewise.
2394
2395 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2396
2397         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2398         * misc/madvise.c (madvise): Renamed to __madvise.
2399         Make madvise a weak alias.
2400         * include/sys/mman.h: Declare __madvise.
2401         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2402         * sysdeps/unix/syscalls.list
2403         (madvise): Make __madvise the strong name, and madvise a weak alias.
2404         * sysdeps/unix/sysv/linux/syscalls.list
2405         (madvise, mmap): Remove redundant entries.
2406         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2407         * malloc/malloc.c (mtrim): Likewise.
2408         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2409
2410 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2411
2412         * sysdeps/mach/hurd/dl-cache.c: File removed.
2413         * config.h.in (USE_LDCONFIG): New #undef.
2414         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2415         * configure: Regenerated.
2416         * elf/Makefile (dl-routines): Add dl-cache only under
2417         [$(use-ldconfig) = yes].
2418         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2419         cache on [USE_LDCONFIG].
2420         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2421         [USE_LDCONFIG].
2422         * elf/rtld.c (dl_main): Likewise.
2423
2424 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2425
2426         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2427         _SC_LEVEL4_CACHE_LINESIZE.
2428
2429 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2430
2431         * sysdeps/unix/bsd/confstr.h: File removed.
2432
2433 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2434
2435         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2436         sys/sdt-config.h.
2437
2438 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2439
2440         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2441         Make 'mapoff' field ElfW(Off) rather than off_t.
2442
2443 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2444
2445         * nscd/Makefile: Remove nscd-cflags and all its users.
2446         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2447         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2448
2449         [BZ #10631]
2450         * malloc.c (malloc_printerr): Clarify error message.
2451
2452 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2453
2454         [BZ #14648]
2455         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2456         Set bit_FMA_Usable if FMA is supported.
2457         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2458         macro.
2459         (bit_FMA4_Usable): Updated.
2460         (index_FMA_Usable): New macro.
2461         (CPUID_FMA): Likewise
2462         (HAS_FMA): Defined with bit_FMA_Usable.
2463
2464 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2465
2466         * bits/types.h (__swblk_t): Type removed.
2467         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2468         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2469         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2470         (__SWBLK_T_TYPE): Likewise.
2471         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2472         (__SWBLK_T_TYPE): Likewise.
2473         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2474         (__SWBLK_T_TYPE): Likewise.
2475         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2476         (__SWBLK_T_TYPE): Likewise.
2477
2478 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2479             Honza Horak <hhorak@redhat.com>
2480
2481         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2482         (xdr_mapname): Use YPMAXMAP as maxsize.
2483         (xdr_peername): Use YPMAXPEER as maxsize.
2484         (xdr_keydat): Use YPAXRECORD as maxsize.
2485         (xdr_valdat): Use YPMAXRECORD as maxsize.
2486
2487 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2488
2489         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2490
2491         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2492         * csu/init-first.c: ... here.
2493         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2494         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2495         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2496         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2497         * sysdeps/i386/init-first.c: File removed.
2498         * sysdeps/sh/init-first.c: File removed.
2499
2500 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2501
2502         [BZ #14645]
2503         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2504         if x * y might underflow to zero and z is zero.
2505         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2506         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2507         * math/libm-test.inc (min_subnorm_value): New variable.
2508         (fma_test): Add more tests.
2509         (fma_test_towardzero): Likewise.
2510         (fma_test_downward): Likewise
2511         (fma_test_upward): Likewise.
2512         (initialize): Set min_subnorm_value.
2513
2514 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2515
2516         [BZ #14638]
2517         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2518         0 + 0.
2519         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2520         mode for addition resulting in exact zero.
2521         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2522         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2523         exact 0 + 0.
2524         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2525         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2526         * math/libm-test.inc (fma_test): Add more tests.
2527         (fma_test_towardzero): New function.
2528         (fma_test_downward): Likewise.
2529         (fma_test_upward): Likewise.
2530         (main): Call the new functions.
2531
2532 2012-09-28  David S. Miller  <davem@davemloft.net>
2533
2534         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2535
2536 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2537
2538         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2539         instead of SIGALRM.
2540
2541         * sysdeps/gnu/_G_config.h: Moved to ...
2542         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2543         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2544         * sysdeps/generic/_G_config.h: ... here.
2545
2546         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2547
2548         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2549
2550         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2551         Conditionalize target on [libnss_test1.so-version].
2552
2553         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2554
2555         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2556         (elfobjdir): Move out of conditionals.
2557
2558         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2559         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2560         (__nss_lookup_function): Conditionalize label remove_from_tree on
2561         [!DO_STATIC_NSS || SHARED], matching its only use.
2562
2563 2012-09-28  David S. Miller  <davem@davemloft.net>
2564
2565         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2566         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2567         file.
2568         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2569         sysdep_routines.
2570         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2571         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2572         when HWCAP_SPARC_CRYPTO is present.
2573
2574 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2575
2576         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2577
2578 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2579
2580         [BZ #6530]
2581         * stdio-common/vfprintf.c (process_string_arg): Revert
2582         2000-07-22 change.
2583
2584 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2585
2586         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2587         for testcase.
2588         * stdio-common/tst-sprintf.c: Include <locale.h>
2589         (main): Test sprintf's handling of incomplete multibyte
2590         characters.
2591
2592 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2593
2594         * elf/dl-runtime.c (VERSYMIDX): Removed.
2595         * elf/dl-version.c (VERSYMIDX): Likewise.
2596         * elf/do-rel.h (VERSYMIDX): Likewise.
2597         (VALIDX): Likewise.
2598         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2599         * elf/rtld.c (VALIDX): Likewise.
2600         (ADDRIDX): Likewise.
2601         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2602         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2603         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2604         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2605         (VALIDX): Likewise.
2606         (ADDRIDX): Likewise.
2607
2608 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2609
2610         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2611
2612 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2613
2614         [BZ #11438]
2615         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2616         to global scope.
2617         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2618         addresses are in the same scope as 192.0.2/24.
2619         * posix/gai.conf: Document new scope table defaults.
2620
2621 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2622
2623         [BZ #5298]
2624         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2625         for ftell.  Compute offsets from write pointers instead.
2626         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2627
2628 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2629
2630         [BZ #14543]
2631         * libio/Makefile (tests): New test case tst-fseek.
2632         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2633         combination works in wide mode.
2634         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2635         state when the external buffer state changes.
2636
2637 2012-09-27  David S. Miller  <davem@davemloft.net>
2638
2639         [BZ #14376]
2640         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2641         pass reloc->r_addend in as the 'high' argument to
2642         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2643
2644         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2645
2646 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2647
2648         * rt/tst-aio2.c: Include <pthread.h>.
2649         * rt/tst-aio3.c: Likewise.
2650
2651 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2652
2653         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2654
2655 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2656
2657         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2658         contents on [SHARED].
2659
2660 2012-09-26  Marek Polacek  <polacek@redhat.com>
2661
2662         [BZ #14530]
2663         [BZ #13741]
2664         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2665         for C++ and GCC <4.3 as well as for non GCC compilers.
2666
2667 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2668
2669         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2670
2671 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2672
2673         * Makefile.in (all, install): Declare with .PHONY.
2674         Reported by Michael Hope <michael.hope@linaro.org>.
2675
2676 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2677
2678         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2679         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2680         system header.
2681         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2682         Likewise.
2683         (sydep_routines): Add the new and the internal functions.
2684         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2685         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2687         (GLIBC_2.17): Add the new function.
2688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2689         (GLIBC_2.17): Likewise.
2690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2691         (GLIBC_2.17): Likewise.
2692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2693         (GLIBC_2.17): Likewise.
2694         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2695
2696 2012-09-25  Alan Modra  <amodra@gmail.com>
2697
2698         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2699         Add release barrier before setting once_control to say
2700         initialisation is done.  Add hints on lwarx.  Use macro in
2701         place of isync.
2702         (clear_once_control): Add release barrier.
2703
2704 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2705
2706         [BZ #13629]
2707         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2708         specially.
2709         * math/s_clog10.c (__clog10): Likewise.
2710         * math/s_clog10f.c (__clog10f): Likewise.
2711         * math/s_clog10l.c (__clog10l): Likewise.
2712         * math/s_clogf.c (__clogf): Likewise.
2713         * math/s_clogl.c (__clogl): Likewise.
2714         * math/Makefile (libm-calls): Add x2y2m1.
2715         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2716         (__x2y2m1): Likewise.
2717         (__x2y2m1l): Likewise.
2718         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2719         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2720         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2721         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2722         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2723         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2724         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2725         * sysdeps/i386/fpu/libm-test-ulps: Update.
2726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2727
2728         [BZ #14621]
2729         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2730         int as type of variable DEPTH.
2731         (glob): Use size_t instead of int as type of variables NEWCOUNT
2732         and OLD_PATHC.
2733
2734 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2735
2736         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2737         Add s_sincosf-sse2.
2738         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2739         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2740         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2741         macros for using routine as __sincosf_ia32.
2742         Use macro for function declaration and weak_alias.
2743         * sysdeps/i386/fpu/libm-test-ulps: Update.
2744
2745         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2746         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2747
2748         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2749         subnormal argument.
2750         * math/s_cexpf.c (__cexpf): Likewise.
2751         * math/s_csinf.c (__csinf): Likewise.
2752         * math/s_csinhf.c (__csinhf): Likewise.
2753         * math/s_ctanf.c (__ctanf): Likewise.
2754         * math/s_ctanhf.c (__ctanhf): Likewise.
2755         * math/s_ccosh.c (__ccoshf): Likewise.
2756         * math/s_cexp.c (__cexpl): Likewise.
2757         * math/s_csin.c (__csin): Likewise.
2758         * math/s_csinh.c (__csinh): Likewise.
2759         * math/s_ctan.c (__ctan): Likewise.
2760         * math/s_ctanh.c (ctanh): Likewise.
2761         * math/s_ccoshl.c (__ccoshl): Likewise.
2762         * math/s_cexpl.c (__cexpl): Likewise.
2763         * math/s_csinl.c (__csinl): Likewise.
2764         * math/s_csinhl.c (__csinhl): Likewise.
2765         * math/s_ctanl.c (__ctanl): Likewise.
2766         * math/s_ctanhl.c (__ctanhl): Likewise.
2767
2768 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2769
2770         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2771         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2772         (_IO_off_t): Define to __off_t, not _G_off_t.
2773         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2774         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2775         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2776         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2777         type of __dummy and __dummy2 fields.
2778         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2779         (_G_ssize_t): Likewise.
2780         (_G_off_t): Likewise.
2781         (_G_pid_t): Likewise.
2782         (_G_uid_t): Likewise.
2783         (_G_wchar_t): Likewise.
2784         (_G_wint_t): Likewise.
2785         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2786         (_G_ssize_t): Likewise.
2787         (_G_off_t): Likewise.
2788         (_G_pid_t): Likewise.
2789         (_G_uid_t): Likewise.
2790         (_G_wchar_t): Likewise.
2791         (_G_wint_t): Likewise.
2792         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2793         (_G_ssize_t): Likewise.
2794         (_G_off_t): Likewise.
2795         (_G_pid_t): Likewise.
2796         (_G_uid_t): Likewise.
2797         (_G_wchar_t): Likewise.
2798         (_G_wint_t): Likewise.
2799
2800 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2801
2802         * malloc/arena.c: Include malloc-sysdep.h.
2803         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2804         is sufficient to shrink the heap or an unmap is needed.
2805         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2806         new function check_may_shrink_heap.
2807         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2808         new function check_may_shrink_heap.
2809
2810 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2811
2812         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2813         comments.
2814
2815 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2816
2817         * catgets/test-gencat.sh: Add "set -e".
2818         * elf/tst-pathopt.sh: Likewise.
2819         * grp/tst_fgetgrent.sh: Likewise.
2820         * iconvdata/run-iconv-test.sh: Likewise.
2821         * intl/tst-gettext.sh: Likewise.
2822         * intl/tst-gettext2.sh: Likewise.
2823         * intl/tst-gettext4.sh: Likewise.
2824         * intl/tst-gettext6.sh: Likewise.
2825         * intl/tst-translit.sh: Likewise.
2826         * io/ftwtest-sh: Likewise.
2827         * libio/test-freopen.sh: Likewise.
2828         * malloc/tst-mtrace.sh: Likewise.
2829         * posix/globtest.sh: Likewise.
2830         * posix/tst-getconf.sh: Likewise.
2831         * posix/wordexp-tst.sh: Likewise.
2832         * stdio-common/tst-printf.sh: Likewise.
2833         * stdio-common/tst-unbputc.sh: Likewise.
2834         * stdlib/tst-fmtmsg.sh: Likewise.
2835         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2836         * catgets/Makefile: Do not specify -e option when running
2837         testsuite shell scripts.
2838         * elf/Makefile: Likewise.
2839         * grp/Makefile: Likewise.
2840         * iconvdata/Makefile: Likewise.
2841         * intl/Makefile: Likewise.
2842         * io/Makefile: Likewise.
2843         * libio/Makefile: Likewise.
2844         * malloc/Makefile: Likewise.
2845         * posix/Makefile: Likewise.
2846         * stdio-common/Makefile: Likewise.
2847         * stdlib/Makefile: Likewise.
2848         * sysdeps/x86_64/Makefile: Likewise.
2849
2850         * io/ftwtest-sh: Add copyright header.
2851         * posix/globtest.sh: Likewise.
2852         * posix/tst-getconf.sh: Likewise.
2853         * posix/wordexp-tst.sh: Likewise.
2854         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2855
2856 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2857
2858         [BZ #13679]
2859         * Makeconfig (+link): Defined as $(+link-static) if
2860         $(build-shared) isn't yes.
2861         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2862         isn't yes.
2863         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2864
2865         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2866
2867         [BZ #14562]
2868         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2869         new chunk size with MALLOC_ALIGN_MASK.
2870
2871 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2872
2873         [BZ #5044]
2874         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2875         <rounding-mode.h>.
2876         (__printf_fphex): Determine rounding using get_rounding_mode and
2877         round_away.
2878         * stdio-common/tst-printf-round.c (struct hex_test): New
2879         structure.
2880         (hex_tests): New variable.
2881         (test_hex_in_one_mode): New function.
2882         (do_test): Also run tests for hex float output.
2883
2884 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2885
2886         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2887         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2888         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2889         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2890         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2891         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2892         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2893         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2894
2895 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
2896
2897         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
2898         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
2899         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
2900         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
2901
2902 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
2903
2904         [BZ #14579]
2905         * elf/rtld.c (dl_main): Limit the check for self loading to normal
2906         mode only.
2907         * elf/tst-rtld-load-self.sh: New test.
2908         * elf/Makefile: Run it.
2909
2910 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
2911
2912         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
2913         (tst-writev-ENV): Remove.
2914         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
2915
2916 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
2917
2918         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
2919
2920 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
2921
2922         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
2923         unconditional.
2924         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
2925         Likewise.
2926         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
2927         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
2928         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
2929         Likewise.
2930
2931 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2932
2933         [BZ #14587]
2934         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
2935         * config.make.in (have-cpp-asm-debuginfo): Removed.
2936         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
2937         * configure: Regenerated.
2938
2939 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
2940
2941         [BZ #5044]
2942         * stdio-common/printf_fp.c: Include <stdbool.h> and
2943         <rounding-mode.h>.
2944         (___printf_fp): Determine rounding using get_rounding_mode and
2945         round_away.
2946         * stdio-common/tst-printf-round.c: New file.
2947         * stdio-common/Makefile (tests): Add tst-printf-round.
2948         (link-libm): New variable.
2949         ($(objpfx)tst-printf-round): Depend in $(link-libm).
2950
2951 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2952
2953         [BZ #14576]
2954         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
2955         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
2956         Likewise.
2957         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
2958         Likewise.
2959
2960 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
2961
2962         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
2963         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2964         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2965         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
2966
2967 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
2968
2969         [BZ #14518]
2970         * include/rounding-mode.h: New file.
2971         * sysdeps/generic/get-rounding-mode.h: Likewise.
2972         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
2973         * stdlib/strtod_l.c: Include <rounding-mode.h>.
2974         (MAX_VALUE): New macro.
2975         (MIN_VALUE): Likewise.
2976         (overflow_value): New function.
2977         (underflow_value): Likewise.
2978         (round_and_return): Use overflow_value and underflow_value to
2979         determine return values in overflow and underflow cases.  Use
2980         round_away to determine rounding depending on rounding mode.
2981         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
2982         determine return values in overflow and underflow cases.
2983         * stdlib/tst-strtod-round.c: Include <fenv.h>.
2984         (struct test_results): New structure.
2985         (struct test): Use struct test_results to store expected results
2986         for all rounding modes.
2987         (TEST): Include expected results for all rounding modes.
2988         (test_in_one_mode): New function.
2989         (do_test): Use test_in_one_mode to compute and check results.
2990         Check results for all rounding modes.
2991         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
2992         $(link-libm).
2993
2994 2012-12-09  Allan McRae  <allan@archlinux.org>
2995
2996         * sysdeps/i386/fpu/libm-test-ulps: Update
2997
2998 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
2999
3000         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3001         (_G_int32_t): Likewise.
3002         (_G_uint16_t): Likewise.
3003         (_G_uint32_t): Likewise.
3004         (_G_HAVE_BOOL): Likewise.
3005         (_G_HAVE_ATEXIT): Likewise.
3006         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3007         (_G_HAVE_IO_FILE_OPEN): Likewise.
3008         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3009         (_G_int32_t): Likewise.
3010         (_G_uint16_t): Likewise.
3011         (_G_uint32_t): Likewise.
3012         (_G_HAVE_BOOL): Likewise.
3013         (_G_HAVE_ATEXIT): Likewise.
3014         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3015         (_G_HAVE_IO_FILE_OPEN): Likewise.
3016         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3017         (_G_int32_t): Likewise.
3018         (_G_uint16_t): Likewise.
3019         (_G_uint32_t): Likewise.
3020         (_G_HAVE_BOOL): Likewise.
3021         (_G_HAVE_ATEXIT): Likewise.
3022         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3023         (_G_HAVE_IO_FILE_OPEN): Likewise.
3024
3025 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3026
3027         * csu/libc-tls.c: Update copyright years.
3028
3029 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3030
3031         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3032         [!_G_USING_THUNKS]: Remove conditional code.
3033         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3034         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3035
3036         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3037         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3038         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3039         (_G_VTABLE_LABEL_PREFIX): Likewise.
3040         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3041         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3042         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3043         (_G_VTABLE_LABEL_PREFIX): Likewise.
3044         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3045         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3046         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3047         (_G_VTABLE_LABEL_PREFIX): Likewise.
3048         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3049
3050 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3051
3052         * libio/Makefile: Include ../Makeconfig before tests.
3053         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3054         only if $(build-shared) is yes.
3055
3056         * iconv/gconv_db.c: Update copyright years.
3057
3058 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3059
3060         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3061         unwind info if defined PIC. Fix special cases description.
3062         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3063
3064         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3065         DP_HI_MASK entry.
3066         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3067
3068 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3069
3070         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3071
3072         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3073         is NULL.
3074
3075         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3076         (LDLIBS-tst-chk4): This.
3077         (LDFLAGS-tst-chk5): Renamed to ...
3078         (LDLIBS-tst-chk5): This.
3079         (LDFLAGS-tst-chk6): Renamed to ...
3080         (LDLIBS-tst-chk6): This.
3081         (LDFLAGS-tst-lfschk4): Renamed to ...
3082         (LDLIBS-tst-lfschk4): This.
3083         (LDFLAGS-tst-lfschk5): Renamed to ...
3084         (LDLIBS-tst-lfschk5): This.
3085         (LDFLAGS-tst-lfschk6): Renamed to ...
3086         (LDLIBS-tst-lfschk6): This.
3087
3088         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3089         on $(common-objpfx)soversions.mk.
3090
3091 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
3092
3093         [BZ #10014]
3094         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3095         example host name.
3096
3097 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3098
3099         * malloc/arena.c (arena_get_retry): New function that gets
3100         another arena for the caller to try its request on.
3101         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3102         current arena cannot fulfill the request.
3103         (__libc_memalign): Likewise.
3104         (__libc_memalign): Likewise.
3105         (__libc_pvalloc): Likewise.
3106         (__libc_calloc): Likewise.
3107
3108 2012-09-05  John Tobey  <john.tobey@gmail.com>
3109
3110         [BZ #13542]
3111         * manual/arith.texi (Operations on Complex): Fix description
3112         of carg branch cut.
3113
3114 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3115
3116         [BZ #10014]
3117         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3118         host name.
3119
3120         [BZ #10038]
3121         * manual/memory.texi (Memory): Make order of menu items match
3122         order of sections.
3123
3124 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3125
3126         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3127         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3128         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3129
3130 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3131
3132         * csu/libc-tls.c (static_dtv): Renamed to ...
3133         (_dl_static_dtv): This.  Make it global.
3134         (_dl_initial_dtv): Removed.
3135         (__libc_setup_tls): Updated.
3136         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3137         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3138         DL_INITIAL_DTV.
3139
3140 2012-09-06  Petr Machata  <pmachata@redhat.com>
3141
3142         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3143         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3144         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3145         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3146
3147 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3148
3149         [BZ #14545]
3150         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3151         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3152         freeing dtv[-1].
3153
3154 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3155
3156         [BZ #14544]
3157         * Makeconfig (link-static-before-libc): Replace $(+prector)
3158         with $(+prectorT).
3159         (link-static-after-libc): Replace $(+postctor) with
3160         $(+postctorT).
3161         (link-bounded): Replace $(+prector)/$(+postctor) with
3162         $(+prectorT)/$(+postctorT).
3163         (+prectorT): New macro.
3164         (+postctorT): Likewise.
3165
3166 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3167
3168         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3169         (round_str): Handle values above the maximum for IBM long double
3170         as inexact.
3171         * stdlib/tst-strtod-round.c (tests): Regenerated.
3172
3173 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3174
3175         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3176         assembler flag.
3177         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3178         zarch_nohighgprs around the zarch optimized routines.
3179         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3180         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3181         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3182         for zarch.
3183
3184 2012-09-05  David S. Miller  <davem@davemloft.net>
3185
3186         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3187
3188         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3189         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3190         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3191         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3192         entries.
3193
3194 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3195
3196         * malloc/arena.c: Fold copyright years.
3197         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3198
3199 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3200
3201         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3202
3203 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3204
3205         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3206
3207 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3208
3209         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3210         change internal state upon failure.
3211
3212 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3213
3214         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3215         * malloc/memusage.c (mmap): Likewise.
3216         (mmap64, mremap): Likewise.  Adjust name in comment.
3217
3218 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3219
3220         * libio/fileops.c: Fix typos in comments.
3221         * libio/oldfileops.c: Likewise.
3222         * libio/wfileops.c: Likewise.
3223
3224 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3225
3226         [BZ #1349]
3227         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3228         (tst-malloc-usable-ENV): Set environment for test case.
3229         * malloc/hooks.c (malloc_check_get_size): New function to get
3230         requested size.
3231         * malloc/malloc.c (musable): Use malloc_check_get_size.
3232         * malloc/tst-malloc-usable.c: New test case.
3233
3234 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3235
3236         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3237
3238 2012-09-05  Allan McRae  <allan@archlinux.org>
3239
3240         [BZ #13966]
3241         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3242         determine header location.
3243         * configure: Regenerated.
3244
3245 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3246
3247         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3248         float format.
3249         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3250         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3251         format.
3252         (test): Regenerate.
3253
3254 2012-09-04  David S. Miller  <davem@davemloft.net>
3255
3256         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3257         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3258         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3259
3260 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3261
3262         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3263         failures.
3264
3265         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3266
3267 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3268
3269         [BZ #9914]
3270         * libio/iogetdelim.c: Include <limits.h>.
3271         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3272         + len + 1 would overflow.
3273
3274 2012-09-03  Andreas Jaeger  <aj@suse.de>
3275
3276         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3277         * sysdeps/i386/fpu/libm-test-ulps: Update.
3278
3279 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3280
3281         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3282         Add s_sinf-sse2, s_conf-sse2.
3283
3284         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3285         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3286         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3287         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3288
3289         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3290         for using routine as __sinf_ia32.
3291         Use macro for function declaration and weak_alias.
3292         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3293         for using routine as __cosf_ia32.
3294         Use macro for function declaration and weak_alias.
3295
3296         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3297         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3298
3299         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3300         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3301         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3302
3303         * math/libm-test.inc (cos_test): Add more test cases.
3304         (sin_test): Likewise.
3305         (sincos_test): Likewise.
3306
3307 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3308
3309         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3310         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3311         hidden.
3312         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3313
3314 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3315
3316         [BZ #14538]
3317         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3318         first element of the GOT.
3319         (elf_machine_load_address): Return the difference between
3320         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3321
3322 2012-09-01  Allan McRae  <allan@archlinux.org>
3323
3324         [BZ #13412]
3325         * configure.in (AWK): Require gawk version 3.0 or later.
3326         * configure: Regenerated.
3327
3328 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3329
3330         * sysdeps/unix/sysv/linux/kernel-features.h
3331         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3332         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3333         [__NR_clock_getres]: Make code unconditional.
3334         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3335         (clock_getcpuclockid): Remove code left unreachable by removal of
3336         conditionals.
3337         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3338         code unconditional.
3339         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3340         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3341         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3342         Make code unconditional.
3343         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3344         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3345         * sysdeps/unix/sysv/linux/clock_settime.c
3346         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3347         conditional code.
3348         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3349         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3350
3351 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3352
3353         [BZ #14476]
3354         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3355         scripts/test-installation.pl.
3356
3357         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3358         and $ld_so_version if it is set.
3359
3360 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3361
3362         [BZ #14516]
3363         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3364         failure if reading from procfs failed.
3365         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3366
3367 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3368
3369         * sysdeps/unix/sysv/linux/kernel-features.h
3370         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3371         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3372         Remove conditional code.
3373         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3374         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3375         Remove conditional code.
3376         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3377         * sysdeps/unix/sysv/linux/i386/fxstat.c
3378         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3379         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3380         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3381         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3382         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3383         * sysdeps/unix/sysv/linux/i386/lxstat.c
3384         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3385         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3386         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3387         Remove conditional code.
3388         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3389         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3390         Remove conditional code.
3391         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3392         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3393         <kernel-features.h>.
3394         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3395         Remove.
3396         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3397         Remove conditional code.
3398         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3399         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3400         Remove conditional.
3401
3402 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3403
3404         [BZ #5400]
3405         * NEWS: Add fixed bug number.
3406
3407 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3408
3409         [BZ #14519]
3410         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3411         underflowing exponent in case of negative sign.
3412         * stdlib/tst-strtod-round-data: Add more tests.
3413         * stdlib/tst-strtod-round.c (tests): Regenerated.
3414
3415         [BZ #3479]
3416         * stdlib/strtod_l.c (NDIG): Remove.
3417         (HEXNDIG): Likewise.
3418         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3419         smallest representable value.
3420         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3421         lie within an exact representation of 1/2 ulp of the result.
3422         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3423         unconditionally.
3424         (TENS_P9_IDX): Define unconditionally.
3425         (TENS_P9_SIZE): Likewise.
3426         (TENS_P10_IDX): Likewise.
3427         (TENS_P10_SIZE): Likewise.
3428         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3429         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3430         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3431         entries for 10^2^13 and 10^2^14.
3432         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3433         (TENS_P13_IDX): Define.
3434         (TENS_P13_SIZE): Likewise.
3435         (TENS_P14_IDX): Likewise.
3436         (TENS_P14_SIZE): Likewise.
3437         (_fpioconst_pow10): Change array size to
3438         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3439         unconditional.
3440         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3441         1024]: Add entries for 10^2^13 and 10^2^14.
3442         [LAST_POW10 > _LAST_POW10]: Remove #error.
3443         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3444         (_fpioconst_pow10): Change array size to
3445         FPIOCONST_POW10_ARRAY_SIZE.
3446         * stdlib/gen-fpioconst.c: New file.
3447         * stdlib/gen-tst-strtod-round.c: Likewise.
3448         * stdlib/tst-strtod-round-data: Likewise.
3449         * stdlib/tst-strtod-round.c: Likewise.
3450         * stdlib/Makefile (tests): Add tst-strtod-round.
3451
3452         [BZ #14459]
3453         * stdlib/strtod_l.c: Include <stdint.h>.
3454         (NDEBUG): Do not define.
3455         (round_and_return): Change EXPONENT parameter to type intmax_t.
3456         Rearrange calculations to avoid internal overflow possibilities.
3457         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3458         Rearrange calculations to avoid internal overflow possibilities.
3459         Assert that number fits inside MPNSIZE limbs.
3460         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3461         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3462         calculations and add assertions to avoid internal overflow
3463         possibilities.  Add casts to avoid signed/unsigned operations.
3464         * stdlib/tst-strtod-overflow.c: New file.
3465         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3466
3467 2012-08-25  Marek Polacek  <polacek@redhat.com>
3468
3469         * time/time.h: Fix some typos in comments.
3470
3471 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3472
3473         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3474         * posix/tst-rfc3484-2.c: Likewise.
3475         * posix/tst-rfc3484-3.c: Likewise.
3476
3477 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3478
3479         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3480         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3481
3482 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3483
3484         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3485         #include of fxstatat64.c.
3486
3487 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3488
3489         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3490         * shadow/getspent_r.c: Likewise.
3491         * shadow/getspnam.c: Likewise.
3492         * shadow/getspnam_r.c: Likewise.
3493         * gshadow/getsgent.c: Likewise.
3494         * gshadow/getsgent_r.c: Likewise.
3495         * gshadow/getsgnam.c: Likewise.
3496         * gshadow/getsgnam_r.c: Likewise.
3497         * inet/getnetbyad.c: Likewise.
3498         * inet/getnetbyad_r.c: Likewise.
3499         * inet/getnetbynm.c: Likewise.
3500         * inet/getnetbynm_r.c: Likewise.
3501         * inet/getnetent.c: Likewise.
3502         * inet/getnetent_r.c: Likewise.
3503         * inet/getproto.c: Likewise.
3504         * inet/getproto_r.c: Likewise.
3505         * inet/getprtent.c: Likewise.
3506         * inet/getprtent_r.c: Likewise.
3507         * inet/getprtname.c: Likewise.
3508         * inet/getprtname_r.c: Likewise.
3509         * inet/getrpcbyname.c: Likewise.
3510         * inet/getrpcbyname_r.c: Likewise.
3511         * inet/getrpcbynumber.c: Likewise.
3512         * inet/getrpcbynumber_r.c: Likewise.
3513         * inet/getrpcent.c: Likewise.
3514         * inet/getrpcent_r.c: Likewise.
3515         * inet/getaliasent.c: Likewise.
3516         * inet/getaliasent_r.c: Likewise.
3517         * inet/getaliasname.c: Likewise.
3518         * inet/getaliasname_r.c: Likewise.
3519         * nscd/getgrgid_r.c: Likewise.
3520         * nscd/getgrnam_r.c: Likewise.
3521         * nscd/gethstbyad_r.c: Likewise.
3522         * nscd/gethstbynm3_r.c: Likewise.
3523         * nscd/getpwnam_r.c: Likewise.
3524         * nscd/getpwuid_r.c: Likewise.
3525         * nscd/getsrvbynm_r.c: Likewise.
3526         * nscd/getsrvbypt_r.c: Likewise.
3527         * nscd/gai.c: Likewise.
3528
3529         * configure.in (build_nscd): New substituted variable, set
3530         by --disable-build-nscd and defaults to $use_nscd.
3531         * configure: Regenerated.
3532         * config.make.in (build-nscd): New substituted variable.
3533         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3534         Change conditional to require [$(build-nscd) = yes] as well.
3535         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3536
3537         [BZ# 13696]
3538         * configure.in (use_nscd): New substituted variable, set by
3539         --disable-nscd.  If enabled, define USE_NSCD.
3540         * configure: Regenerated.
3541         * config.h.in: Add USE_NSCD.
3542         * config.make.in (use-nscd): New substituted variable.
3543         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3544         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3545         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3546         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3547         (CFLAGS-getgrnam_r.c): Likewise.
3548         (CFLAGS-initgroups.c): Likewise.
3549         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3550         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3551         Variables removed.
3552         * inet/getnetgrent_r.c
3553         (nscd_setnetgrent): New function, broken out of ...
3554         (setnetgrent): ... here.  Call it.
3555         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3556         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3557         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3558         * nscd/Makefile (routines, aux): Move definitions after include of
3559         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3560         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3561         Conditionalize on [USE_NSCD].
3562         (is_nscd, nscd_init_cb): Likewise.
3563         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3564         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3565         * nss/nss_db/db-init.c: Likewise.
3566         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3567         [USE_NSCD].
3568         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3569         (make_request): Use it.
3570         (cache_valid_p): New function.
3571         (__check_pf): Use it.
3572         * NEWS: Add item for --disable-nscd.
3573
3574 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3575
3576         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3577         to support sed >= 4.2.1-20-ga9bf076.
3578         * configure: Regenerated.
3579
3580 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3581
3582         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3583         Conditionalize whole body on [IREL].
3584
3585 2012-08-22  Jeff Law <law@redhat.com>
3586
3587         [BZ #14505]
3588         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3589         if the family is PF_UNSPEC.
3590
3591 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3592
3593         * Makerules (lib-version): Rename from V.
3594         (install-lib-nosubdir): Change V to lib-version.
3595
3596 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3597
3598         [BZ #14252]
3599         * powerpc32/power6/wcschr.c: New file.
3600         * powerpc32/power6/wcscpy.c: New file.
3601         * powerpc32/power6/wcsrchr.c: New file.
3602         * powerpc64/power6/wcschr.c: New file.
3603         * powerpc64/power6/wcscpy.c: New file.
3604         * powerpc64/power6/wcsrchr.c: New file.
3605
3606 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3607
3608         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3609         (two_way_short_needle): Use it.
3610         * string/strstr.c (AVAILABLE1_USES_J): Define.
3611         * string/strcasestr.c: Likewise.
3612
3613         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3614         array references.
3615         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3616
3617         [BZ #11607]
3618         * NEWS: Add an entry.
3619         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3620         define their defaults.
3621         (two_way_short_needle): Detect end-of-string on-the-fly.
3622         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3623         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3624         * string/bug-strcasestr1.c: New test.
3625         * string/Makefile: Run it.
3626
3627 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3628
3629         [BZ #11607]
3630         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3631         the first character.
3632
3633 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3634
3635         * csu/elf-init.c (__libc_csu_irel): Function removed.
3636         * csu/libc-start.c (apply_irel): New function.
3637         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3638
3639 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3640
3641         * sysdeps/unix/sysv/linux/kernel-features.h
3642         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3643         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3644         <kernel-features.h>.
3645         [__NR_fadvise64_64]: Make code unconditional.
3646         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3647         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3648         !__NR_fadvise64_64)]: Likewise.
3649         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3650         !__NR_fadvise64_64))]: Likewise.
3651         [__NR_fadvise64]: Make code unconditional.
3652         [!__NR_fadvise64]: Remove conditional code.
3653         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3654         <kernel-features.h>.
3655         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3656         unconditional.
3657         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3658         conditional code.
3659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3660         not include <kernel-features.h>.
3661         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3662         unconditional.
3663         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3664         conditional code.
3665         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3666         include <kernel-features.h>.
3667         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3668         unconditional.
3669         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3670         conditional code.
3671
3672 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3673
3674         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3675         slight instruction rearrangements per scrollpipe analysis.
3676         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3677
3678 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3679
3680         * manual/syslog.texi (syslog; vsyslog, closelog):
3681         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3682         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3683
3684         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3685         DSOCAPS to match condition on defining it.
3686
3687 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3688
3689         * sysdeps/unix/sysv/linux/kernel-features.h
3690         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3692         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3693         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3695         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3696         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3698         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3699         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3700
3701         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3702         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3703
3704         * sysdeps/unix/sysv/linux/kernel-features.h
3705         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3706         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3707         unconditional.
3708         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3709         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3710         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3711         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3712         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3713         Make code unconditional.
3714         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3715         (__mmap64) [!__NR_mmap2]: Likewise.
3716         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3717         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3718         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3719         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3720         [__NR_mmap2]: Make code unconditional.
3721         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3722         (__mmap64) [!__NR_mmap2]: Likewise.
3723
3724 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3725
3726         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3727
3728 2012-08-18  Andreas Jaeger  <aj@suse.de>
3729
3730         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3731
3732 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3733
3734         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3735         * include/unistd.h (__have_sock_cloexec): Likewise.
3736         (__have_pipe2): Likewise.
3737         (__have_dup3): Likewise.
3738
3739 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3740
3741         [BZ #9685]
3742         * include/unistd.h (__have_pipe2): Change define into an extern int.
3743         (__have_dup3): Likewise.
3744         * socket/have_sock_cloexec.c: Include fcntl.h.
3745         (__have_pipe2): New variable.
3746         (__have_dup3): Likewise.
3747
3748 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3749
3750         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3751
3752 2012-08-17  Marek Polacek  <polacek@redhat.com>
3753
3754         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3755         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3756
3757 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3758
3759         * configure.in: Add AC_SUBST for sysheaders.
3760         * configure: Regenerated.
3761         * config.make.in (sysheaders): New substituted variable.
3762
3763         * sysdeps/unix/mkfifo.c: Moved ...
3764         * sysdeps/posix/mkfifo.c: ... here.
3765         * sysdeps/unix/mkfifoat.c: Moved ...
3766         * sysdeps/posix/mkfifoat.c: ... here.
3767
3768         * sysdeps/unix/utime.c: Moved ...
3769         * sysdeps/posix/utime.c: ... here.
3770
3771         * sysdeps/unix/time.c: Moved ...
3772         * sysdeps/posix/time.c: ... here.
3773         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3774         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3775
3776         * sysdeps/unix/nice.c: Moved ...
3777         * sysdeps/posix/nice.c: ... here.
3778
3779         * sysdeps/unix/alarm.c: Moved ...
3780         * sysdeps/posix/alarm.c: ... here.
3781
3782         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3783
3784 2012-08-17  Jeff Law <law@redhat.com>
3785
3786         * intl/Makefile (codeset_mo): New variable.
3787         ($(codeset_mo)): New target.
3788         (tst-codeset.out): Depend on that.  Remove explicit rule.
3789         (tst-gettext3.out, tst-gettext5.out): Likewise.
3790         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3791         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3792         * intl/tst-codeset.sh: Remove.
3793         * intl/tst-gettext3.sh: Likewise.
3794         * intl/tst-gettext5.sh: Likewise.
3795
3796 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3797
3798         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3799         * sysdeps/unix/syscalls.list: ... here.
3800
3801         * sysdeps/posix/getaddrinfo.c
3802         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3803         (gaiconf_init, gaiconf_reload): Use them.
3804         [!_STATBUF_ST_NSEC]
3805         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3806         Define using time_t rather than struct timespec.
3807
3808         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3809         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3810         Macros removed.
3811         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3812         [!NO_THREADS].
3813         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3814         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3815         Likewise.
3816
3817         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3818         __libc_cleanup_push argument.
3819
3820         * bits/param.h: New file.
3821         * misc/sys/param.h: New file.
3822         * include/sys/param.h: New file.
3823         * misc/Makefile (headers): Add bits/param.h.
3824         * sysdeps/generic/sys/param.h: File removed.
3825         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3826         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3827         * sysdeps/mach/hurd/bits/param.h: New file.
3828         * sysdeps/mach/hurd/sys/param.h: File removed.
3829
3830         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3831         last change.
3832
3833         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3834         [_IO_MTSAFE_IO].
3835         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3836         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3837         New macros.
3838
3839         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3840         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3841         rather than -D_IO_MTSAFE_IO conditionally.
3842         * stdio-common/Makefile (CPPFLAGS): Likewise.
3843         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3844         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3845         Use $(libio-mtsafe).
3846         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3847         of -D_IO_MTSAFE_IO.
3848         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3849         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3850         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3851         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3852         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3853         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3854         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3855         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3856         (CFLAGS-fread_u_chk.c): Likewise.
3857         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3858         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3859         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3860         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3861         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3862         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3863         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3864         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3865         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3866
3867         * libio/Makefile: Test [$(libc-reentrant) = yes]
3868         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3869
3870         * Makeconfig
3871         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3872         * sysdeps/pthread/configure: File removed.
3873         * sysdeps/pthread/Makeconfig: New file.
3874         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3875         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3876
3877 2012-08-16  Gary Benson  <gbenson@redhat.com>
3878
3879         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3880         unmapping the first object in a namespace.
3881
3882 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3883
3884         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3885         (__internal_setnetgrent): ... this.  Add internal_function to
3886         definition.  Add libc_hidden_def.
3887         (setnetgrent): Update caller.
3888         (internal_endnetgrent): Renamed to ...
3889         (__internal_endnetgrent): ... this.  Add internal_function to
3890         definition.  Add libc_hidden_def.
3891         (endnetgrent): Update caller.
3892         (internal_getnetgrent_r): Renamed to ...
3893         (__internal_getnetgrent_r): ... this.  Add internal_function to
3894         definition.  Add libc_hidden_def.
3895         (__getnetgrent_r): Update caller.
3896         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
3897
3898 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3899
3900         * stdlib/longlong.h: Update from GCC.
3901
3902 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3903
3904         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
3905         on _QL, which is set by umul_ppmm but never used.
3906         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
3907         variables, which are set by GMP macros but never used.
3908         * stdio-common/_itowa.c (_itowa): Likewise.
3909         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
3910         * stdlib/mod_1.c (mpn_mod_1): Likewise.
3911
3912 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
3913
3914         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
3915         struct La_sh_regs is not constant.
3916         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
3917         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
3918         and struct La_sparc64_regs are not constant.
3919
3920 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
3921
3922         * sysdeps/unix/sysv/linux/kernel-features.h
3923         (__ASSUME_POSIX_TIMERS): Remove.
3924         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3925         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3926         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
3927         Make code unconditional.
3928         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3929         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
3930         Make code unconditional.
3931         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3932         * sysdeps/unix/sysv/linux/clock_nanosleep.c
3933         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
3934         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3935         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
3936         Make code unconditional.
3937         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
3938         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
3939         (__libc_missing_posix_timers): Remove.
3940
3941 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3942
3943         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
3944         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
3945
3946         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
3947
3948         * elf/dl-sym.c: Include <stdlib.h>.
3949
3950         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
3951         constants, which avoids warnings in 32-bit builds.
3952
3953         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
3954         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
3955
3956         * misc/lseek.c: File moved to ...
3957         * io/lseek.c: ... here.
3958
3959         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
3960
3961         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
3962         shifting LEN more than 31 bits at once.
3963
3964 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3965
3966         [BZ #14195]
3967         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
3968         segmentation fault for a case of two empty input strings.
3969         * string/test-strncasecmp.c (check1): Renamed to...
3970         (bz12205): ...this.
3971         (bz14195): Add new testcase for two empty input strings and N > 0.
3972         (test_main): Call new testcase, adapt for renamed function.
3973
3974 2012-08-15  Andreas Jaeger  <aj@suse.de>
3975
3976         [BZ #14090]
3977         * crypt/md5test2.c: New test, based on test supplied by Serge
3978         Belyshev <belyshev@depni.sinp.msu.ru>.
3979         * crypt/Makefile (xtests): Add md5test-giant..
3980         * crypt/Makefile ($(objpfx)md5test-giant): Add.
3981
3982 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3983
3984         [BZ #14090]
3985         * crypt/md5.c (md5_process_block): Don't assume the buffer
3986         length is less than 2**32.
3987         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
3988         length is less than 2**64.
3989
3990 2012-08-15  Roland McGrath  <roland@hack.frob.com>
3991
3992         * string/str-two-way.h: Include <sys/param.h>.
3993         (MAX): Macro removed.
3994
3995         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
3996         Move #define and #undef of memmove to just before and after
3997         including <string.h>.
3998
3999         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4000         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4001         and after including <string.h>.  Move declarations of
4002         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4003         to before #include "string/memmove.c".
4004
4005         * include/dirent.h: Declare __getdirentries.
4006
4007         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4008         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4009
4010 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4011
4012         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4013         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4014         * sysdeps/i386/configure: Regenerated.
4015         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4016         STABS_CURRENT_FILE, and STABS_FUN.
4017         (END): Remove call to STABS_FUN_END.
4018         (STABS_CURRENT_FILE1): Delete.
4019         (STABS_CURRENT_FILE): Likewise.
4020         (STABS_FUN): Likewise.
4021         (STABS_FUN_END): Likewise.
4022         (STABS_FUN2): Likewise.
4023         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4024         * sysdeps/x86_64/configure: Regenerated.
4025
4026 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4027
4028         * elf/dl-open.c: Include <atomic.h>.
4029         * elf/dl-lookup.c: Likewise.
4030
4031 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4032
4033         * sysdeps/unix/sysv/linux/kernel-features.h
4034         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4035         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4036         unconditionally.
4037         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4038         unconditionally.
4039         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4040         condition on __ASSUME_CLONE_THREAD_FLAGS.
4041
4042 2012-08-14  Andreas Jaeger  <aj@suse.de>
4043
4044         * sysdeps/i386/fpu/libm-test-ulps: Update.
4045
4046 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4047
4048         * include/atomic.h (atomic_exchange_and_add): Split into ...
4049         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4050         New atomic macros.
4051
4052 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4053
4054         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4055
4056 2012-08-13  Jeff Law <law@redhat.com>
4057
4058         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4059         null byte in the output string.
4060
4061 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4062
4063         * sysdeps/unix/sysv/linux/kernel-features.h
4064         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4065         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4066         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4067         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4068         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4069         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4070         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4071
4072 2012-08-09  Jeff Law <law@redhat.com>
4073
4074         [BZ #13939]
4075         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4076         When avoid_arena is set, don't retry in the that arena.  Pick the
4077         next one, whatever it might be.
4078         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4079         (arena_lock): Pass in new parameter to arena_get2.
4080         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4081         arena_get2.
4082         (__libc_malloc): Unify retrying after main arena failure with
4083         __libc_memalign version.
4084         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4085
4086 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4087
4088         [BZ #14166]
4089         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4090         to __redirect_strstr.
4091         (__strstr_sse42): Use typeof __redirect_strstr.
4092         (__strstr_ia32): Likewise.
4093         (__libc_strstr): New prototype.
4094         (strstr): Renamed to ...
4095         (__libc_strstr): This.
4096         (strstr): New strong alias of __libc_strstr.
4097         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4098         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4099         __redirect_time.
4100         Include <time.h>.
4101         (__libc_time): New prototype.
4102         (time_ifunc): Replace time with __libc_time.
4103         (time): New strong alias and hidden definition of __libc_time.
4104         (__GI_time): Remove strong alias.
4105         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4106         Include <stddef.h>.
4107         (memmove): Redefined to __redirect_memmove.
4108         (__memmove_sse2): Use typeof __redirect_memmove.
4109         (__memmove_ssse3): Likewise.
4110         (__memmove_ssse3_back): Likewise.
4111         (__libc_memmove): New prototype.
4112         (memmove): Renamed to ...
4113         (__libc_memmove): This.
4114         (memmove): New strong alias of __libc_memmove.
4115
4116 2012-08-08  Mark Salter  <msalter@redhat.com>
4117
4118         * elf/elf.h
4119         (R_MN10300_TLS_GD): Define.
4120         (R_MN10300_TLS_LD): Likewise.
4121         (R_MN10300_TLS_LDO): Likewise.
4122         (R_MN10300_TLS_GOTIE): Likewise.
4123         (R_MN10300_TLS_IE): Likewise.
4124         (R_MN10300_TLS_LE): Likewise.
4125         (R_MN10300_TLS_DTPMOD): Likewise.
4126         (R_MN10300_TLS_DTPOFF): Likewise.
4127         (R_MN10300_TLS_TPOFF): Likewise.
4128         (R_MN10300_SYM_DIFF): Likewise.
4129         (R_MN10300_ALIGN): Likewise.
4130         (R_MN10300_NUM): Update.
4131
4132 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4133
4134         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4135         Remove.
4136
4137 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4138
4139         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4140
4141         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4142         sysdeps/unix -> sysdeps/posix move.
4143         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4144
4145 2012-08-07      Allan McRae     <allan@archlinux.org>
4146
4147         [BZ #14303]
4148         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4149         (SUNOS_CPP): Likewise.
4150         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4151         not found.
4152         (open_input): Call CPP using execvp.
4153
4154 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4155
4156         * sysdeps/unix/sysv/linux/kernel-features.h
4157         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4158         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4159         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4160         (__ASSUME_WAITID_SYSCALL): Likewise.
4161         * sysdeps/unix/sysv/linux/dl-execstack.c
4162         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4163         code unconditional.
4164         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4165         conditional code.
4166         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4167         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4168         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4169         code.
4170         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4171         unconditional.
4172         [__ASSUME_WAITID_SYSCALL]: Likewise.
4173         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4174
4175 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4176
4177         * sysdeps/unix/closedir.c: Renamed to ...
4178         * sysdeps/posix/closedir.c: ... here.
4179         * sysdeps/unix/dirfd.c: Renamed to ...
4180         * sysdeps/posix/dirfd.c: ... here.
4181         * sysdeps/unix/dirstream.h: Renamed to ...
4182         * sysdeps/posix/dirstream.h: ... here.
4183         * sysdeps/unix/fdopendir.c: Renamed to ...
4184         * sysdeps/posix/fdopendir.c: ... here.
4185         * sysdeps/unix/opendir.c: Renamed to ...
4186         * sysdeps/posix/opendir.c: ... here.
4187         * sysdeps/unix/readdir.c: Renamed to ...
4188         * sysdeps/posix/readdir.c: ... here.
4189         * sysdeps/unix/readdir_r.c: Renamed to ...
4190         * sysdeps/posix/readdir_r.c: ... here.
4191         * sysdeps/unix/rewinddir.c: Renamed to ...
4192         * sysdeps/posix/rewinddir.c: ... here.
4193         * sysdeps/unix/seekdir.c: Renamed to ...
4194         * sysdeps/posix/seekdir.c: ... here.
4195         * sysdeps/unix/telldir.c: Renamed to ...
4196         * sysdeps/posix/telldir.c: ... here.
4197         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4198         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4199         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4200         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4201
4202         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4203         * bits/fcntl.h: ... here.
4204
4205         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4206         not 0.
4207         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4208         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4209         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4210         (struct flock): Move l_start, l_len to the beginning.
4211         Use __pid_t for l_pid.
4212         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4213         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4214         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4215         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4216         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4217         [__USE_LARGEFILE64] (struct flock64): New type.
4218         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4219
4220         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4221         * bits/dirent.h: ... here.
4222
4223         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4224         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4225
4226 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4227
4228         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4229         Change from 2.6.0 to 2.6.16.
4230         * sysdeps/unix/sysv/linux/configure: Regenerated.
4231         * sysdeps/unix/sysv/linux/kernel-features.h
4232         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4233         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4234         version.
4235         (__ASSUME_UTIMES): Likewise.
4236         (__ASSUME_CLONE_STOPPED): Remove.
4237         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4238         architectures, not kernel version.
4239         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4240         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4241         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4242         (__ASSUME_WAITID_SYSCALL): Likewise.
4243         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4244         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4245         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4246         refer to older versions.
4247
4248 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4249
4250         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4251         Define alphasort64 as an alias.
4252         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4253         Define versionsort64 as an alias.
4254         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4255         Define scandir64 as an alias.
4256         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4257         Define scandirat64 as an alias.
4258         * dirent/alphasort64.c (alphasort64):
4259         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4260         * dirent/versionsort64.c: Likewise.
4261         * dirent/scandir64.c: Likewise.
4262         * dirent/scandirat64.c: Likewise.
4263         * sysdeps/wordsize-64/alphasort.c: File removed.
4264         * sysdeps/wordsize-64/alphasort64.c: File removed.
4265         * sysdeps/wordsize-64/scandir.c: File removed.
4266         * sysdeps/wordsize-64/scandir64.c: File removed.
4267         * sysdeps/wordsize-64/scandirat.c: File removed.
4268         * sysdeps/wordsize-64/scandirat64.c: File removed.
4269         * sysdeps/wordsize-64/versionsort.c: File removed.
4270         * sysdeps/wordsize-64/versionsort64.c: File removed.
4271         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4272         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4273         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4274         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4275         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4276         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4277         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4278         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4279
4280         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4281         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4282         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4283         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4284         [defined __arch64__ || defined __sparcv9]
4285         (__INO_T_MATCHES_INO64_T): New macro.
4286         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4287         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4288         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4289         * sysdeps/unix/sysv/linux/bits/dirent.h
4290         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4291         (_DIRENT_MATCHES_DIRENT64): New macro.
4292
4293         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4294         Define lockf64 as an alias.
4295         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4296         Define fseeko64 as an alias.
4297         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4298         Define ftello64 as an alias.
4299         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4300         Define _IO_fgetpos64 and fgetpos64 as aliases.
4301         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4302         Define _IO_fsetpos64 and fsetpos64 as aliases.
4303         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4304         Conditionalize body on this.
4305         * libio/fseeko64.c: Likewise.
4306         * libio/ftello64.c: Likewise.
4307         * libio/iofgetpos64.c: Likewise.
4308         * libio/iofsetpos64.c: Likewise.
4309         * sysdeps/wordsize-64/lockf.c: File removed.
4310         * sysdeps/wordsize-64/lockf64.c: File removed.
4311         * sysdeps/wordsize-64/fseeko.c: File removed.
4312         * sysdeps/wordsize-64/fseeko64.c: File removed.
4313         * sysdeps/wordsize-64/ftello.c: File removed.
4314         * sysdeps/wordsize-64/ftello64.c: File removed.
4315         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4316         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4317         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4318         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4319         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4320         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4321         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4322         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4323         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4324         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4325         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4326         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4327         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4328         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4329
4330         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4331         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4332         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4333         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4334         [defined __arch64__ || defined __sparcv9]
4335         (__OFF_T_MATCHES_OFF64_T): New macro.
4336         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4337         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4338         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4339         (__OFF_T_MATCHES_OFF64_T): New macro.
4340
4341 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4342
4343         * stdlib/secure-getenv.c (__secure_getenv): Replace
4344         GLIBC_2_16 with GLIBC_2_17.
4345
4346 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4347
4348         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4349         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4350
4351 2012-08-03  David S. Miller  <davem@davemloft.net>
4352
4353         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4354
4355 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4356
4357         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4358         Remove.
4359         (__ASSUME_CORRECT_SI_PID): Likewise.
4360         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4361         (__ASSUME_TMPFS_NAME): Likewise.
4362         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4363         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4364         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4365         (HAVE_AUX_SECURE): Make definition unconditional.
4366         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4367         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4368
4369 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4370
4371         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4372         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4373         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4374         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4375         __eloop_threshold instead of SYMLOOP_MAX.
4376
4377         * sysdeps/generic/eloop-threshold.h: New file.
4378         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4379         of MAXSYMLINKS.
4380         * elf/chroot_canon.c (chroot_canon): Likewise.
4381
4382 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4383
4384         [BZ #13717]
4385         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4386         Change to 2.6.0 everywhere.
4387         * sysdeps/unix/sysv/linux/configure: Regenerated.
4388         * sysdeps/unix/sysv/linux/kernel-features.h
4389         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4390         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4391         kernel versions.
4392         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4393         (__ASSUME_FUTEX_REQUEUE): Remove.
4394         (__ASSUME_STATFS64): Define unconditionally.
4395         (__ASSUME_AT_SECURE): Likewise.
4396         (__ASSUME_CORRECT_SI_PID): Likewise.
4397         (__ASSUME_TGKILL): Define without depending on kernel version for
4398         i386.
4399         (__ASSUME_UTIMES): Likewise.
4400         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4401         kernel version.
4402         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4403         (__ASSUME_TMPFS_NAME): Likewise.
4404         * README: Update reference to Linux kernel versions.
4405
4406 2012-08-02  Marek Polacek  <polacek@redhat.com>
4407
4408         [BZ# 14150]
4409         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4410         libc_cv_asm_type_prefix with %.
4411         * configure: Regenerated.
4412         * include/libc-symbols.h: Remove comment about
4413         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4414         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4415         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4416         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4417         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4418         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4419         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4420         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4421         * elf/tst-unique2mod1.c: Likewise.
4422         * elf/tst-unique1mod2.c: Likewise.
4423         * elf/tst-unique1mod1.c: Likewise.
4424         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4425         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4426         Replace ASM_TYPE_DIRECTIVE with .type.
4427         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4428         * sysdeps/i386/sysdep.h: Likewise.
4429         * sysdeps/x86_64/sysdep.h: Likewise.
4430         * sysdeps/sh/sysdep.h: Likewise.
4431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4432         Do not define ASM_TYPE_DIRECTIVE.
4433         * sysdeps/powerpc/sysdep.h: Likewise.
4434         * sysdeps/powerpc/powerpc32/sysdep.h:
4435         Replace ASM_TYPE_DIRECTIVE with .type.
4436         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4437         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4438         * sysdeps/i386/fpu/e_powf.S: Likewise.
4439         * sysdeps/i386/fpu/e_expl.S: Likewise.
4440         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4441         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4442         * sysdeps/i386/fpu/e_pow.S: Likewise.
4443         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4444         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4445         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4446         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4447         * sysdeps/i386/fpu/e_log2.S: Likewise.
4448         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4449         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4450         * sysdeps/i386/fpu/e_powl.S: Likewise.
4451         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4452         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4453         * sysdeps/i386/fpu/e_logl.S: Likewise.
4454         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4455         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4456         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4457         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4458         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4459         * sysdeps/i386/fpu/e_log.S: Likewise.
4460         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4461         * sysdeps/i386/fpu/e_logf.S: Likewise.
4462         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4463         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4464         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4465         * sysdeps/i386/fpu/e_log10.S: Likewise.
4466         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4467         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4468         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4469         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4470         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4471         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4472         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4473         * sysdeps/i386/i686/strtok.S: Likewise.
4474         * sysdeps/i386/i386-mcount.S: Likewise.
4475         * sysdeps/i386/strtok.S: Likewise.
4476         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4477         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4478         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4479         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4480         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4481         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4482         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4483         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4484         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4485         * sysdeps/x86_64/_mcount.S: Likewise.
4486         * sysdeps/x86_64/strtok.S: Likewise.
4487         * sysdeps/sh/_mcount.S: Likewise.
4488
4489 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4490
4491         * libio/iofopen.c: Include <fcntl.h>.
4492         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4493         (_IO_fopen64, fopen64): Define as aliases.
4494         * libio/iofopen64.c: Include <fcntl.h>.
4495         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4496         Conditionalize body on this.
4497         * sysdeps/wordsize-64/iofopen.c: File removed.
4498         * sysdeps/wordsize-64/iofopen64.c: File removed.
4499
4500 2012-08-01  Marek Polacek  <polacek@redhat.com>
4501
4502         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4503         Use dlfcn directly instead of a variable.
4504         (binfmt-subdir): Do not define.
4505         (dlfcn): Likewise.
4506
4507 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4508
4509         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4510         Remove all definitions.
4511         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4512         <kernel-features.h>.
4513         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4514         (miss_F_GETOWN_EX): Remove all definitions.
4515         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4516         macro definition.
4517         [!__ASSUME_FCNTL64]: Remove conditional code.
4518         [__ASSUME_FCNTL64]: Make code unconditional.
4519         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4520         <kernel-features.h>.
4521         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4522         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4523         (lockf64) [__NR_fcntl64]: Make code unconditional.
4524         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4525
4526         * sysdeps/unix/sysv/linux/kernel-features.h
4527         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4528         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4529         Make code unconditional.
4530         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4531         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4533         [__NR_vfork]: Make code unconditional.
4534         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4535         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4537         [__NR_vfork]: Make code unconditional.
4538         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4539         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4540
4541 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4542
4543         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4544         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4545
4546         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4547         Define mkstemp64 as an alias.
4548         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4549         Define mkstemps64 as an alias.
4550         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4551         Define mkostemp64 as an alias.
4552         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4553         Define mkostemps64 as an alias.
4554         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4555         Conditionalize body on this.
4556         * misc/mkostemp64.c: Likewise.
4557         * misc/mkostemps64.c: Likewise.
4558         * misc/mkstemps64.c: Likewise.
4559         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4560         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4561         * sysdeps/wordsize-64/mkostemp.c: File removed.
4562         * sysdeps/wordsize-64/mkstemp.c: File removed.
4563         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4564         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4565         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4566         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4567
4568         [BZ #14138]
4569         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4570         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4571         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4572         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4573
4574         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4575         compat_symbol macros from <shlib-compat.h> rather than the underlying
4576         default_symbol_version and symbol_version macros, so that DEFAULT
4577         lines in shlib-versions are respected.
4578         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4579
4580 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4581
4582         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4583         Declare with warn_unused_result.
4584         (setgid, setregid, setegid, setresgid): Likewise.
4585         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4586         Likewise.
4587         * WUR-REPORT: Remove set*id functions.
4588
4589 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4590
4591         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4592
4593 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4594
4595         * include/sys/socket.h (__libc_accept, __libc_accept4):
4596         Add attribute_hidden.
4597         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4598
4599         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4600         use of PTR_MANGLE.
4601         * inet/getnetgrent_r.c (setup): Likewise.
4602
4603         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4604
4605 2012-07-31  David S. Miller  <davem@davemloft.net>
4606
4607         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4608
4609 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4610
4611         [BZ #13629]
4612         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4613         value between 1.0 and 2.0 and smaller part has absolute value less
4614         than 1.0.
4615         * math/s_clog10.c (__clog10): Likewise.
4616         * math/s_clog10f.c (__clog10f): Likewise.
4617         * math/s_clog10l.c (__clog10l): Likewise.
4618         * math/s_clogf.c (__clogf): Likewise.
4619         * math/s_clogl.c (__clogl): Likewise.
4620         * math/libm-test.inc (clog_test): Add more tests.
4621         (clog10_test): Likewise.
4622         * sysdeps/i386/fpu/libm-test-ulps: Update.
4623         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4624
4625 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4626
4627         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4628         Exit with zero in case no suitable GID is found, and write a
4629         message to standard error.
4630
4631 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4632
4633         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4634         rather than to 1.
4635         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4636         (MAXPATHLEN): Removed.
4637         (NOGROUP, NODEV): New macros.
4638         (setbit, clrbit, isset, isclr): New macros.
4639         (howmany, roundup, powerof2): New macros.
4640         (DEV_BSIZE): New macro.
4641
4642         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4643         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4644
4645         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4646         definition on [!__NO_LONG_DOUBLE_MATH].
4647
4648         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4649         PTR_MANGLE and PTR_DEMANGLE.
4650
4651         * socket/accept4.c (accept4): Rename to __libc_accept4.
4652         Define accept4 as a weak alias.
4653
4654         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4655         on [_DIRENT_HAVE_D_TYPE].
4656         * io/ftw.c (ftw_dir): Likewise.
4657
4658         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4659
4660         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4661
4662         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4663         Use the BSD numbers rather than the arbitrary ones we had.
4664         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4665         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4666         (SIGXCPU, SIGXFSZ): New macros.
4667         (_NSIG): Now 32.
4668
4669         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4670         initializer on [_LIBC_REENTRANT].
4671
4672         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4673         definitions inside [_POSIX_MAPPED_FILES].
4674
4675         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4676
4677         * dirent/opendir.c: Include <fcntl.h>.
4678
4679         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4680         (__libc_getspecific): Likewise.
4681         (__libc_key_create): Likewise.
4682
4683         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4684         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4685         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4686         (tmpfile64): Define as alias.
4687         * sysdeps/wordsize-64/tmpfile.c: File removed.
4688         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4689         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4690         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4691
4692         * stdio-common/vfscanf.c: Include <stdbool.h>.
4693         * nss/makedb.c: Likewise.
4694         * stdio-common/_i18n_number.h: Likewise.
4695         * argp/argp-help.c: Likewise.
4696         * posix/wordexp.c: Likewise.
4697         * sysdeps/posix/spawni.c: Likewise.
4698         * nss/nss_files/files-initgroups.c: Likewise.
4699         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4700         * nss/nss_files/files-initgroups.c: Likewise.
4701         * nss/nss_db/db-netgrp.c: Likewise.
4702         * nss/nss_db/db-initgroups.c: Likewise.
4703         * io/fchmodat.c: Include <sys/stat.h>.
4704
4705         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4706         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4707
4708         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4709         [HAVE_MMAP].
4710
4711         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4712         Add multiple inclusion protection.
4713
4714 2012-07-27  David S. Miller  <davem@davemloft.net>
4715
4716         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4717
4718 2012-07-27  Gary Benson  <gbenson@redhat.com>
4719
4720         [BZ #14298]
4721         * elf/rtld.c: Include <stap-probe.h>.
4722         (dl_main): Added static probes "init_start" and "init_complete".
4723         * elf/dl-load.c: Include <stap-probe.h>.
4724         (lose): Take new parameter "nsid".
4725         Added static probe "map_failed".
4726         (_dl_map_object_from_fd): Pass namespace id to lose.
4727         Added static probe "map_start".
4728         (open_verify): Pass namespace id to lose.
4729         * elf/dl-open.c: Include <stap-probe.h>.
4730         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4731         and "reloc_complete".
4732         * elf/dl-close.c: Include <stap-probe.h>.
4733         (_dl_close_worker): Added static probes "unmap_start" and
4734         "unmap_complete".
4735         * elf/rtld-debugger-interface.txt: New file documenting the above.
4736
4737 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4738
4739         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4740         rather than a string variable.
4741         * sunrpc/rpc_main.c (h_output): Likewise.
4742         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4743
4744 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4745
4746         * inet/check_native.c: New file.
4747
4748 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4749
4750         [BZ #13629]
4751         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4752         if larger part has absolute value 1.0.
4753         * math/s_clog10.c (__clog10): Likewise.
4754         * math/s_clog10f.c (__clog10f): Likewise.
4755         * math/s_clog10l.c (__clog10l): Likewise.
4756         * math/s_clogf.c (__clogf): Likewise.
4757         * math/s_clogl.c (__clogl): Likewise.
4758         * math/libm-test.inc (clog_test): Add more tests.
4759         (clog10_test): Likewise.
4760         * sysdeps/i386/fpu/libm-test-ulps: Update.
4761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4762
4763         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4764         (pltexit): Likewise.
4765         (La_regs): Likewise.
4766         (La_retval): Likewise.
4767         (int_retval): Likewise.
4768         Update #error for removed macros to refer only to definitions in
4769         tst-audit.h.
4770         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4771         macro.
4772         (pltexit): Likewise.
4773         (La_regs): Likewise.
4774         (La_retval): Likewise.
4775         (int_retval): Likewise.
4776         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4777         macro.
4778         (pltexit): Likewise.
4779         (La_regs): Likewise.
4780         (La_retval): Likewise.
4781         (int_retval): Likewise.
4782         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4783         macro.
4784         (pltexit): Likewise.
4785         (La_regs): Likewise.
4786         (La_retval): Likewise.
4787         (int_retval): Likewise.
4788         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4789         macro.
4790         (pltexit): Likewise.
4791         (La_regs): Likewise.
4792         (La_retval): Likewise.
4793         (int_retval): Likewise.
4794         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4795         macro.
4796         (pltexit): Likewise.
4797         (La_regs): Likewise.
4798         (La_retval): Likewise.
4799         (int_retval): Likewise.
4800         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4801         macro.
4802         (pltexit): Likewise.
4803         (La_regs): Likewise.
4804         (La_retval): Likewise.
4805         (int_retval): Likewise.
4806         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4807         macro definitions in tst-audit.h.
4808         * sysdeps/i386/tst-audit.h: New file.
4809         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4810         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4811         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4812         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4813         * sysdeps/sh/tst-audit.h: Likewise.
4814         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4815         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4816         * sysdeps/x86_64/tst-audit.h: Likewise.
4817
4818 2012-07-26  Andreas Jaeger  <aj@suse.de>
4819
4820         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4821         ptrace.
4822
4823         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4824         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4825         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4826         PTRACE_O_MASK.
4827         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4828         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4829         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4830
4831         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4832         value.
4833
4834         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4835         _sigsys.
4836         (si_call_addr, si_syscall, si_arch): Define new macro.
4837         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4838         _sigsys.
4839         (si_call_addr, si_syscall, si_arch): Define new marcro.
4840         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4841         _sigsys.
4842         (si_call_addr, si_syscall, si_arch): Define new macro.
4843         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4844         _sigsys.
4845         (si_call_addr, si_syscall, si_arch): Define new macro.
4846
4847 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4848
4849         [BZ #13717]
4850         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4851         Change to 2.4.21 where previously 2.4.1.
4852         * sysdeps/unix/sysv/linux/configure: Regenerated.
4853         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4854         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4855         Linux kernel version.
4856         (__ASSUME_STD_AUXV): Remove.
4857         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4858         kernel version.
4859         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4860         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4861         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4862         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4863         (__ASSUME_NETLINK_SUPPORT): Likewise.
4864         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4865         (__no_netlink_support): Remove conditional definition.
4866         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4867         Remove.
4868         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4869         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4870         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4871         (if_nameindex_ioctl): Remove.
4872         (if_nameindex_netlink): Do not handle __no_netlink_support.
4873         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4874         code.
4875         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4876         Remove conditional code.
4877         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4878         code.
4879         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4880         unconditional.
4881         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4882         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4883         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4884         Remove.
4885         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4886         [!__ASSUME_STD_AUXV]: Remove conditional code.
4887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4888         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4889         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4891         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4892         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4893         code.
4894         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
4896         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
4897         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4898         conditional code.
4899         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
4901         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4902         code.
4903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
4904         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
4905         conditional code.
4906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
4907         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4908         code unconditional.
4909         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4910         conditional code.
4911         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4912         unconditional.
4913         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4914         conditional code.
4915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4916         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4917         unconditional.
4918         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4919         conditional code.
4920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
4921         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4922         code unconditional.
4923         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4924         conditional code.
4925         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4926         unconditional.
4927         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4928         conditional code.
4929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
4930         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
4931         code unconditional.
4932         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4933         conditional code.
4934         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
4935         unconditional.
4936         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
4937         conditional code.
4938
4939 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
4940
4941         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
4942         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
4943         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4944         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
4945         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
4946         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4947         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
4948         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
4949         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
4950         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4951         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
4952         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4953         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
4954         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
4955         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4956         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
4957         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
4958         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
4959         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
4960         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
4961         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
4962         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
4963         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4964
4965 2012-07-25  Florian Weimer  <fweimer@redhat.com>
4966
4967         * Versions.def: Add GLIBC_2.17.
4968         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
4969         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
4970         Introduce __libc_secure_getenv.
4971         * stdlib/Versions (2.17): Add secure_getenv
4972         (GLIBC_PRIVATE): Add __libc_secure_getenv.
4973         * stdlib/secure-getenv.c: Rename __secure_getenv to
4974         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
4975         symbol __secure_getenv for GLIBC_2.0.
4976         * stdlib/tst-secure-getenv.c: New.
4977         * stdlib/Makefile (tests): Add testcase.
4978         * manual/startup.texi (Environment Access): Document
4979         secure_getenv.
4980         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
4981         __libc_secure_getenv.
4982         * inet/ruserpass.c (ruserpass): Likewise.
4983         * malloc/mtrace.c (mtrace): Likewise.
4984         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
4985         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
4986         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
4987         * sysdeps/posix/tempname.c: Likewise.  Evaluate
4988         HAVE_SECURE_GETENV.
4989         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
4990         __secure_getenv to __libc_secure_getenv.
4991         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
4992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4993         Likewise.
4994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4995         Likewise.
4996         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
4997         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
4998         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
4999         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5000         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5001         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5002         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5003
5004 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5005
5006         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5007         (struct La_i86_retval): Likewise.
5008         (struct La_x86_64_regs): Likewise.
5009         (struct La_x86_64_retval): Likewise.
5010         (struct La_x32_regs): Likewise.
5011         (struct La_x32_retval): Likewise.
5012         (struct La_ppc32_regs): Likewise.
5013         (struct La_ppc32_retval): Likewise.
5014         (struct La_ppc64_regs): Likewise.
5015         (struct La_ppc64_retval): Likewise.
5016         (struct La_sh_regs): Likewise.
5017         (struct La_sh_retval): Likewise.
5018         (struct La_s390_32_regs): Likewise.
5019         (struct La_s390_32_retval): Likewise.
5020         (struct La_s390_64_regs): Likewise.
5021         (struct La_s390_64_retval): Likewise.
5022         (struct La_sparc32_regs): Likewise.
5023         (struct La_sparc32_retval): Likewise.
5024         (struct La_sparc64_regs): Likewise.
5025         (struct La_sparc64_retval): Likewise.
5026         (struct audit_ifaces): Remove architecture-specific pltenter and
5027         pltexit members.
5028         * sysdeps/i386/ldsodefs.h: New file.
5029         * sysdeps/powerpc/ldsodefs.h: Likewise.
5030         * sysdeps/s390/ldsodefs.h: Likewise.
5031         * sysdeps/sh/ldsodefs.h: Likewise.
5032         * sysdeps/sparc/ldsodefs.h: Likewise.
5033         * sysdeps/x86_64/ldsodefs.h: Likewise.
5034
5035 2012-07-25  Marek Polacek  <polacek@redhat.com>
5036
5037         [BZ #6808]
5038         * math/libm-test.inc (yn_test): Add another test.
5039         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5040         to ERANGE when the result is +-Inf.
5041         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5042         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5043         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5044         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5045
5046 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5047
5048         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5049         equal to 0.
5050         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5051         clock_t.
5052         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5053
5054 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5055
5056         * configure.in <sysdeps resolving>: Correct printing
5057         Implies_before.
5058         * configure: Regenerate.
5059
5060 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5061
5062         * math/w_ilogb.c: Include <limits.h>.
5063         * math/w_ilogbl.c: Likewise.
5064
5065 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5066
5067         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5068         va_copy.  Document allowing for unavailable va_copy only as
5069         pre-C99 compatibility.
5070         * manual/string.texi (Copying and Concatenation): Use va_copy
5071         instead of __va_copy in concat example.
5072
5073 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5074
5075         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5076         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5077         it if not null.
5078
5079         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5080         with O_NOLINK passed to __file_name_lookup.
5081
5082         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5083         with O_NOLINK passed to __file_name_lookup.
5084
5085         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5086         negative N or less than NGIDS.
5087
5088         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5089         type to string_t.  Set ERANGE as errno and return it if NAME is not big
5090         enough.  Use memcpy instead of strncpy.
5091
5092 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5093
5094         * elf/Makefile (check-data): Remove.
5095         (localplt.data): New vpath directive.
5096         ($(objpfx)check-localplt.out): Use localplt.data from vpath
5097         instead of $(check-data).
5098         * scripts/data/localplt-generic.data: Move to ...
5099         * sysdeps/generic/localplt.data: ... here.
5100         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5101         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5102         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5104         ... here.
5105         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5107         ... here.
5108         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5109         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5110         ... here.
5111         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5112         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5113         ... here.
5114         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5115         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5116         ... here.
5117         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5118         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5119         ... here.
5120
5121 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5122
5123         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5124         PPC32 and PPC64 files.
5125         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5126         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5127
5128 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5129
5130         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5131         __makecontext_ret to ...
5132         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5133         ... here and call exit if uc_link is NULL.  New file.
5134         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5135         __makecontext_ret.S.
5136         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5137         __makecontext_ret to ...
5138         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5139         ... here and call exit if uc_link is NULL.  New file.
5140         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5141         __makecontext_ret.S.
5142
5143 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5144
5145         * elf/elf.h (R_390_IRELATIVE): New definition.
5146         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5147         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5148         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5149         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5150         (elf_machine_lazy_rel): Likewise.
5151         * sysdeps/s390/dl-irel.h: New file.
5152         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5153         * sysdeps/s390/s390-64/memset.S: New asm code.
5154         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5155         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5156         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5157         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5158         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5159         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5160         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5161         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5162         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5163         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5164         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5165         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5166         * sysdeps/s390/s390-32/memset.S: New asm code.
5167         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5168
5169 2012-07-17  Marek Polacek  <polacek@redhat.com>
5170
5171         [BZ #14349]
5172         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5173         * sysdeps/s390/s390-64/configure.in: Likewise.
5174         * sysdeps/sparc/configure.in: Likewise.
5175         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5176         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5177         * sysdeps/i386/configure.in: Likewise.
5178         * sysdeps/x86_64/configure.in: Likewise.
5179         * sysdeps/sh/configure.in: Likewise.
5180         * sysdeps/s390/s390-32/configure: Regenerated.
5181         * sysdeps/s390/s390-64/configure: Likewise.
5182         * sysdeps/x86_64/configure: Likewise.
5183         * sysdeps/sh/configure: Likewise.
5184         * sysdeps/powerpc/powerpc64/configure: Likewise.
5185         * sysdeps/powerpc/powerpc32/configure: Likewise.
5186         * sysdeps/sparc/configure: Likwise.
5187         * sysdeps/i386/configure: Likewise.
5188
5189         * elf/dl-open.c: Comment fixes.
5190
5191 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5192
5193         * Makefile [CXX] (check-data): Remove.
5194         [CXX] (c++-types.data): New vpath directive.
5195         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5196         vpath.  Do not allow for C++ type data being missing.
5197         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5198         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5199         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5200         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5201         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5202         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5203         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5205         ... here.
5206         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5208         ... here.
5209         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5210         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5211         ... here.
5212         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5213         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5214         ... here.
5215         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5216         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5217         ... here.
5218         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5219         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5220         ... here.
5221         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5222         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5223         ... here.
5224         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5225         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5226
5227         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5228         definitions to architecture-specific files.
5229         (TLS_IE): Likewise.
5230         (TLS_LD): Likewise.
5231         (TLS_GD): Likewise.
5232         * sysdeps/i386/tls-macros.h: New file.
5233         * sysdeps/powerpc/tls-macros.h: Likewise.
5234         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5235         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5236         * sysdeps/sh/tls-macros.h: Likewise.
5237         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5238         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5239         * sysdeps/x86_64/tls-macros.h: Likewise.
5240
5241 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5242
5243         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5244         zero value for regular exit case.
5245
5246         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5247         (__start_context): Preserve zero value for regular exit case.
5248
5249 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5250             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5251
5252         * manual/setjmp.texi (setcontext): Clarify normal process
5253         termination when uc_link is the null pointer.
5254         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5255         exit call.
5256
5257 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5258
5259         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5260         preprocessor.  Test for each exception mask separately.
5261
5262 2012-07-16  Andreas Jaeger  <aj@suse.de>
5263
5264         * po/ru.po: Update from translation team.
5265
5266 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5267
5268         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5269         equal to 0.
5270         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5271         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5272         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5273         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5274         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5275
5276 2012-07-13  Andreas Jaeger  <aj@suse.de>
5277
5278         * po/fr.po: Update from translation team.
5279
5280 2012-07-12  Marek Polacek  <polacek@redhat.com>
5281
5282         [BZ #14173]
5283         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5284         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5285         loop condition.
5286
5287 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5288
5289         [BZ #13717]
5290         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5291         Change to 2.4.1 where previously 2.4.0.
5292         * sysdeps/unix/sysv/linux/configure: Regenerated.
5293         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5294         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5295         version.
5296         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5297         (__ASSUME_AT_CLKTCK): Remove.
5298         (__ASSUME_AT_PAGESIZE): Likewise.
5299         (__ASSUME_AT_XID): Likewise.
5300         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5301         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5302         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5303         unconditionally.
5304         (HAVE_AUX_PAGESIZE): Likewise.
5305         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5306         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5307         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5308
5309 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5310
5311         [BZ #14307]
5312         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5313         the temporary buffer used to invoke __gethostbyname2_r,
5314         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5315         host_data / struct gaih_addrtuple.
5316         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5317         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5318         header file nss/nsswitch.h.
5319         * nss/nsswitch.h (global scope): Add definition of implementation
5320         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5321         resolv/nss_dns/dns-host.c).
5322
5323 2012-07-11  Andreas Jaeger  <aj@suse.de>
5324
5325         * po/fr.po: Update from translation team.
5326
5327         * po/sv.po: Update from translation team
5328         * po/fr.po: Another update from translation team.
5329
5330 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5331
5332         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5333         for subnormals or multiply small sinh result by itself.
5334         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5335         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5336
5337 2012-07-11  David S. Miller  <davem@davemloft.net>
5338
5339         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5340
5341 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5342
5343         [BZ #14347]
5344         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5345         (INTERNAL_MARK): Shift it here.
5346
5347 2012-07-10  Marek Polacek  <polacek@redhat.com>
5348
5349         [BZ #14151]
5350         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5351         libc_cv_asm_global_directive with .globl.
5352         * configure: Regenerated.
5353         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5354         with .globl.
5355         * sysdeps/i386/configure: Regenerated.
5356         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5357         with .globl.
5358         * sysdeps/x86_64/configure: Regenerated.
5359         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5360         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5361         * elf/tst-unique2mod2.c: Likewise.
5362         * elf/tst-unique2mod1.c: Likewise.
5363         * elf/tst-unique1mod2.c: Likewise.
5364         * elf/tst-unique1mod1.c: Likewise.
5365         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5366         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5367         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5368         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5369         * sysdeps/mach/sysdep.h: Likewise.
5370         * sysdeps/i386/sysdep.h: Likewise.
5371         * sysdeps/i386/i386-mcount.S: Likewise.
5372         * sysdeps/x86_64/_mcount.S: Likewise.
5373         * sysdeps/x86_64/sysdep.h: Likewise.
5374         * sysdeps/sh/_mcount.S: Likewise.
5375         * sysdeps/sh/sysdep.h: Likewise.
5376         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5377         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5378         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5379         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5380         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5381         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5382         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5383         * locale/localeinfo.h: Likewise.
5384         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5385         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5386
5387 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5388
5389         [BZ #14336]
5390         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5391         system".
5392         * manual/message.texi (The Uniforum approach): Likewise.
5393         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5394         (glibc iconv Implementation): Likewise.
5395
5396 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5397
5398         [BZ #14337]
5399         * math/s_clog.c (__clog): Avoid scaling a value down where that
5400         could result in underflow.
5401         * math/s_clog10.c (__clog10): Likewise.
5402         * math/s_clog10f.c (__clog10f): Likewise.
5403         * math/s_clog10l.c (__clog10l): Likewise.
5404         * math/s_clogf.c (__clogf): Likewise.
5405         * math/s_clogl.c (__clogl): Likewise.
5406         * math/libm-test.inc (clog_test): Add more tests.
5407         (clog10_test): Likewise.
5408         * sysdeps/i386/fpu/libm-test-ulps: Update.
5409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5410
5411 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5412
5413         [BZ #14283]
5414         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5415         by 7 not 8 to examine high bit of fractional part.
5416
5417         [BZ #14042]
5418         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5419         for call to __mcount_internal.
5420         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5421         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5422         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5423
5424 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5425
5426         [BZ #14154]
5427         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5428         approximation for values within 0x1p-13f of an odd multiple of
5429         pi/4.
5430         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5431         exception.  Add more tests.
5432         * sysdeps/i386/fpu/libm-test-ulps: Update.
5433
5434         [BZ #6778]
5435         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5436         inputs and return -1 for them.  Do not check for +Inf in case not
5437         reachable for +Inf.
5438         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5439         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5440         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5441         and return -1 for them.  Do not check for +Inf in case not
5442         reachable for +Inf.
5443         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5444         define.
5445         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5446         and return -1 for them.  Do not check for +Inf in case not
5447         reachable for +Inf.
5448         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5449         spurious underflow.
5450         * sysdeps/i386/fpu/libm-test-ulps: Update.
5451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5452
5453 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5454
5455         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5456
5457 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5458
5459         [BZ #14157]
5460         [BZ #14331]
5461         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5462         could result in spurious underflow.  Scale down values above
5463         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5464         * math/s_csqrtf.c (__csqrtf): Likewise.
5465         * math/s_csqrtl.c (__csqrtl): Likewise.
5466         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5467         spurious underflow.
5468         * sysdeps/i386/fpu/libm-test-ulps: Update.
5469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5470
5471 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5472
5473         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5474         xopen-msg.sed.
5475         * catgets/xopen-msg.awk: New file.
5476         * catgets/xopen-msg.sed: Removed.
5477
5478         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5479         po2text.sed.
5480         * intl/po2test.awk: New file.
5481         * intl/po2test.sed: Removed.
5482
5483 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5484
5485         [BZ #14328]
5486         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5487         or multiply small sinh result by itself.
5488         * math/s_ctanf.c (__ctanf): Likewise.
5489         * math/s_ctanh.c (__ctanh): Likewise.
5490         * math/s_ctanhf.c (__ctanhf): Likewise.
5491         * math/s_ctanhl.c (__ctanhl): Likewise.
5492         * math/s_ctanl.c (__ctanl): Likewise.
5493         * math/libm-test.inc (ctan_test_tonearest): New function.
5494         (ctan_test_towardzero): Likewise.
5495         (ctan_test_downward): Likewise.
5496         (ctan_test_upward): Likewise.
5497         (ctanh_test_tonearest): Likewise.
5498         (ctanh_test_towardzero): Likewise.
5499         (ctanh_test_downward): Likewise.
5500         (ctanh_test_upward): Likewise.
5501         (main): Call these new functions.
5502         * sysdeps/i386/fpu/libm-test-ulps: Update.
5503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5504
5505 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5506
5507         * .gitignore: Delete /ports entry.
5508
5509 2012-07-03  Andreas Jaeger  <aj@suse.de>
5510
5511         * po/bg.po: Update from translation team.
5512         * po/cs.po: Likewise.
5513         * po/de.po: Likewise.
5514         * po/hr.po: Likewise.
5515         * po/nl.pl: Likewise.
5516         * po/pl.po: Likewise.
5517         * po/vi.po: Likewise.
5518
5519 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5520
5521         * Makeconfig [!+link] (+link-before-libc): New variable.
5522         [!+link] (+link-after-libc): Likewise.
5523         [!+link] (+link-tests): Likewise.
5524         [!+link] (+link): Define in terms of $(+link-before-libc) and
5525         $(+link-after-libc).
5526         [!+link-static] (+link-static-before-libc): New variable.
5527         [!+link-static] (+link-static-after-libc): Likewise.
5528         [!+link-static] (+link-static-tests): Likewise.
5529         [!+link-static] (+link-static): Define in terms of
5530         $(+link-static-before-libc) and $(+link-static-after-libc).
5531         [build-shared] (link-libc-before-gnulib): New variable.
5532         [build-shared] (link-libc-tests): Likewise.
5533         [build-shared] (link-libc): Define in terms of
5534         $(link-libc-before-gnulib).
5535         [!build-shared] (link-libc-tests): New variable.
5536         (link-libc-static-tests): New variable.
5537         [!gnulib] (gnulib-arch): New variable.
5538         [!gnulib] (gnulib-tests): Likewise.
5539         [!gnulib] (static-gnulib-arch): Likewise.
5540         [!gnulib] (static-gnulib-tests): Likewise.
5541         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5542         Define with "=" instead of ":=".
5543         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5544         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5545         * Rules (binaries-all-notests): New variable.
5546         (binaries-all-tests): Likewise.
5547         (binaries-static-notests): Likewise.
5548         (binaries-static-tests): Likewise.
5549         (binaries-all): Define using $(binaries-all-notests) and
5550         $(binaries-all-tests).
5551         (binaries-static): Define using $(binaries-static-notests) and
5552         $(binaries-static-tests).
5553         (binaries-shared-tests): New variable.
5554         (binaries-shared-notests): Likewise.
5555         (binaries-shared): Remove variable.
5556         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5557         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5558         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5559         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5560         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5561         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5562         * elf/Makefile (sln-modules): New variable.
5563         (extra-objs): Add $(sln-modules:=.o).
5564         (ldconfig-modules): Add static-stubs.
5565         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5566         * elf/static-stubs.c: New file.
5567
5568         [BZ #14283]
5569         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5570         by 7 not 8 to examine high bit of fractional part.  Use volatile
5571         variables when splitting into final array of floats if
5572         __FLT_EVAL_METHOD__ != 0.
5573         * math/libm-test.inc (cos_test): Add another test.
5574         (sin_test): Likewise.
5575         * sysdeps/i386/fpu/libm-test-ulps: Update.
5576
5577         [BZ #14273]
5578         * math/libm-test.inc (cosh_test): Add more tests.
5579
5580         * version.h (RELEASE): Set to "development".
5581         (VERSION): Set to "2.16.90".
5582
5583 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5584
5585         * NEWS: Update copyright. Remove last-updated date.
5586         Mention math library bug fixes and timezone data changes.
5587         * README: Mention GNU/Hurd, x32, and HPPA support status.
5588
5589 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5590
5591         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5592
5593 2012-06-27  Andreas Jaeger  <aj@suse.de>
5594
5595         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5596
5597 2012-06-25  Andreas Jaeger  <aj@suse.de>
5598
5599         * sysdeps/s390/fpu/libm-test-ulps: Update.
5600
5601 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5602             Thomas Schwinge  <thomas@codesourcery.com>
5603
5604         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5605         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5606         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5607         fanotify_mark.
5608
5609 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5610
5611         * sysdeps/mach/start.c: Remove file.
5612         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5613         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5614         * sysdeps/sh/init-first.c: Likewise.
5615
5616         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5617         registers for frame unwinding purposes, add CFI directives.
5618         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5619         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5620         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5621         Likewise.
5622
5623         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5624         __fortify_fail returning.
5625         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5626
5627         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5628         sysdeps/sh/____longjmp_chk.S.
5629         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5630         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5631         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5632         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5633
5634         * sysdeps/sh/abort-instr.h: New file.
5635         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5636         process in case exit returns.
5637
5638         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5639         initialize the GOT register before use.
5640
5641         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5642         calculation of ARGC > 4.
5643
5644         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5645         meaningful names to some local labels.
5646
5647 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5648             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5649
5650         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5651         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5652         (__arch_compare_and_exchange_val_16_acq): Likewise.
5653         (__arch_compare_and_exchange_val_32_acq): Likewise.
5654         (atomic_exchange_and_add): Fix gUSA sequence.
5655         (atomic_add): Likewise.
5656         (atomic_add_negative): Likewise.
5657         (atomic_add_zero): Likewise.
5658         (atomic_bit_test_set): Likewise.
5659
5660 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5661
5662         [BZ #13579]
5663         * include/link.h (struct link_map): Add l_free_initfini.
5664         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5665         l_initfini.
5666         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5667         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5668         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5669         set.
5670
5671 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5672
5673         * configure.in: Use AC_LANG_SOURCE.
5674         * configure: Regenerate.
5675
5676 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5677
5678         * configure.in (libc_cv_localstatedir): New substituted variable.
5679         * configure: Regenerated.
5680         * config.make.in (localstatedir): New variable, substituted from
5681         libc_cv_localstatedir.
5682         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5683         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5684         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5685         * sysdeps/gnu/configure: Regenerated.
5686
5687 2012-06-21  Jeff Law  <law@redhat.com>
5688
5689         [BZ #14277]
5690         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5691         free.  Simplify list management for _LIBC case.
5692
5693 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5694
5695         [BZ #14273]
5696         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5697         Clear sign bit of 64-bit integer value before comparing against
5698         overflow value.
5699
5700         * sysdeps/mach/configure: Regenerated.
5701
5702 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5703
5704         [BZ #14278]
5705         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5706
5707 2012-06-21  Jeff Law  <law@redhat.com>
5708
5709         [BZ #13882]
5710         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5711         uint16_t for elements in the "seen" array to avoid char overflows.
5712         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5713         * elf/dl-open.c (dl_open_worker): Likewise.
5714
5715 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5716
5717         * scripts/list-sources.sh: Scan PORTS for translations.
5718         * po/libc.pot: Regenerated.
5719
5720 2012-06-21  Andreas Jaeger  <aj@suse.de>
5721
5722         [BZ #12194]
5723         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5724         warning.
5725         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5726         * bits/byteswap-16.h (__bswap_16): Likewise.
5727         * bits/byteswap.h (__bswap_constant_16): Likewise.
5728
5729 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5730
5731         [BZ #14117]
5732         * sysdeps/i386/fpu_control.h: Removed.
5733         * sysdeps/x86_64/fpu_control.h: Moved to ...
5734         * sysdeps/x86/fpu_control.h: Here.
5735
5736         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5737         (_FPU_SETCW): Likewise.
5738
5739 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5740
5741         [BZ #14117]
5742         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5743         * sysdeps/x86/fpu/bits/mathinline.h: This.
5744         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5745
5746         [BZ #14050]
5747         [BZ #14117]
5748         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5749         functions if __x86_64__ is defined.
5750
5751 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5752
5753         * string/endian.h: Add !__ASSEMBLER__ condition for including
5754         conversion interfaces.
5755
5756 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5757
5758         [BZ #14241]
5759         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5760         of ABS(x) in calculating zero to negative powers other than odd
5761         integers.
5762         * math/libm-test.inc (pow_test): Add more tests.
5763
5764 2012-06-15  Andreas Jaeger  <aj@suse.de>
5765
5766         * manual/contrib.texi (Contributors): Update entry of Liubov
5767         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5768         Machado Filho.
5769
5770 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5771
5772         * string/string.h: Add __wur to GNU version of strerror_r.
5773
5774 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5775
5776         [BZ #14229]
5777         * string/Makefile (tests): Add tst-strtok_r.
5778         * string/tst-strtok_r.c: New file.
5779         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5780         RAX_LP/RDX_LP on SAVE_PTR.
5781
5782 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5783
5784         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5785
5786 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5787
5788         * libm_test.inc (csqrt_test): Allow more spurious underflow
5789         exceptions.
5790         (j0_test): Likewise.
5791         (j1_test): Likewise.
5792         (y0_test): Likewise.
5793         (y1_test): Likewise.
5794
5795 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5796
5797         * po/Makefile (libc.pot): Use UTF-8 charset.
5798
5799 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5800
5801         [BZ #14210]
5802         Suppress sign-conversion warning from FD_SET.
5803         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5804         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5805         not unsigned long int.
5806         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5807
5808 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5809
5810         [BZ #14050]
5811         [BZ #14117]
5812         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5813         __extern_always_inline instead of __extern_inline.
5814         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5815         (__signbit): Likewise.
5816         (__signbitl): Support C++ namespace.
5817         (lrintf): New inline function.
5818         (lrint): Likewise.
5819         (llrintf): Likewise.
5820         (llrint): Likewise.
5821         (fmaxf): Likewise.
5822         (fmax): Likewise.
5823         (fminf): Likewise.
5824         (fmin): Likewise.
5825         (rint): Likewise.
5826         (rintf): Likewise.
5827         (ceil): Likewise.
5828         (ceilf): Likewise.
5829         (floor): Likewise.
5830         (floorf): Likewise.
5831         (nearbyint): Likewise.
5832         (nearbyintf): Likewise.
5833
5834 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5835
5836         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5837         non-default versions.
5838
5839 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5840
5841         [BZ #14218]
5842         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5843
5844 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5845
5846         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5847         (FE_UPWARD, FE_DOWNWARD): Don't define.
5848         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5849         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5850
5851         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5852         reading it.
5853         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5854         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5855
5856 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5857
5858         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5859         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5860         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5861         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5862
5863 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5864
5865         [BZ #14117]
5866         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5867         * sysdeps/i386/fpu/Implies: New file.
5868         * sysdeps/x86_64/fpu/Implies: Likewise.
5869         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5870         * sysdeps/x86/fpu/bits/fenv.h: This.
5871
5872         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5873         __SSE_MATH__.
5874
5875 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5876
5877         [BZ #14134]
5878         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5879         character 0xffff that matches the last element of the
5880         conversion table.
5881
5882 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5883
5884         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5885         fmodl commit.
5886
5887 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5888
5889         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5890         values higher than 25.6283.
5891
5892 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5893
5894         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5895         subnormal exponent extraction and add some __builtin_expect.
5896         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
5897         Fix for subnormal mantissa calculation.
5898
5899 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
5900
5901         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
5902         cpu2 is -1 and errno is not ENOSYS.
5903
5904 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5905
5906         [BZ #14117]
5907         * sysdeps/i386/i486/bits/string.h: Renamed to ...
5908         * sysdeps/x86/bits/string.h: This.
5909         * sysdeps/x86_64/bits/string.h: Removed.
5910
5911         * sysdeps/i386/i486/bits/string.h: Define inline functions only
5912         if not compiling for x86-64, but compiling for >= i486.
5913
5914         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
5915         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
5916
5917         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
5918         New macro from Linux kernel 3.4.0.
5919         (FP_XSTATE_MAGIC2): Likewise.
5920         (FP_XSTATE_MAGIC2_SIZE): Likewise.
5921         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
5922         (struct _fpx_sw_bytes): New struct.
5923         (struct _xsave_hdr): Likewise.
5924         (struct _ymmh_state): Likewise.
5925         (struct _xstate): Likewise.
5926
5927         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
5928         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
5929         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
5930         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
5931         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
5932         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
5933
5934         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
5935         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
5936         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
5937         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
5938         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
5939         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
5940
5941 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5942
5943         [BZ #13743]
5944         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
5945         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
5946         (sysdep_headers): Include sys/platform/ppc.h.
5947         * sysdeps/powerpc/test-gettimebase.c: Test for
5948         __ppc_get_timebase() to catch future ISA opcode/insn changes.
5949         * manual/Makefile (appendices): Include platform.texi.
5950         * manual/contrib.texi (Contributors): Update @node pointers.
5951         * manual/maint.texi (Maintenance): Likewise.
5952         (Platform): New node.
5953         * manual/platform.texi: New file.  Document the new features.
5954
5955 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5956             Jakub Jelinek  <jakub@redhat.com>
5957
5958         [BZ #14188]
5959         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
5960         where __builtin_expect is unavailable.
5961
5962 2012-06-03  David S. Miller  <davem@davemloft.net>
5963
5964         * stdlib/longlong.h: Updated from GCC.
5965
5966 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
5967
5968         [BZ #14042]
5969         * sysdeps/powerpc/powerpc32/mcount.c: New file.
5970         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
5971         __mcount_internal.
5972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
5973         (GLIBC_2.16): Likewise.
5974
5975 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
5976
5977         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
5978
5979 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
5980
5981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
5982         (default-abi): New variable.
5983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
5984         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
5985         variable.
5986         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
5987         Likewise.
5988         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
5989         Likewise.
5990         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
5991         Likewise.
5992
5993         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
5994         definition.  Document in comment.
5995
5996 2012-06-01  David S. Miller  <davem@davemloft.net>
5997
5998         * stdlib/longlong.h: Updated from GCC.
5999
6000 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6001
6002         [BZ #14117]
6003         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6004         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6005         sys/debugreg.h sys/io.h here.
6006         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6007         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6008         sys/io.h.
6009         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6010         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6011         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6012         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6013         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6014         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6015
6016         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6017         Define only if __x86_64__ is defined.
6018
6019 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6020
6021         [BZ #14048]
6022         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6023         Use int64_t for variable i.
6024         * math/libm-test.inc (fmod_test): Add more tests.
6025
6026         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6027         z computation is not scheduled after fetestexcept.
6028         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6029         Use math_force_eval instead of asm to ensure calculation scheduled
6030         before exception test.
6031         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6032         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6033
6034 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6035
6036         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6037         computation is not scheduled after fetestexcept.
6038
6039 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6040
6041         [BZ #14117]
6042         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6043         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6044
6045 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6046
6047         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6048         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6049
6050 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6051
6052         [BZ #14117]
6053         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6054         <bits/wordsize.h>.
6055         (__WCHAR_MIN): Support __WORDSIZE == 64.
6056         (__WCHAR_MAX): Likewise.
6057
6058         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6059         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6060
6061         [BZ #14183]
6062         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6063         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6064
6065         [BZ #14117]
6066         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6067         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6068
6069         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6070         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6071
6072         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6073         Defined to 1 if __x86_64__ isn't defined.
6074         (_STAT_VER_LINUX_OLD): New.
6075         (st_atime): Remove duplicate.
6076         (st_mtime): Likewise.
6077         (st_ctime): Likewise.
6078
6079 2012-05-31  David S. Miller  <davem@davemloft.net>
6080
6081         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6082         entries.
6083
6084 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6085
6086         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6087         gen-libm-test.pl.
6088
6089         [BZ #14132]
6090         * elf/dl-reloc.c: Include <_itoa.h>.
6091         (_dl_reloc_bad_type): Remove use of INTUSE.
6092         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6093         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6094         * stdio-common/psiginfo.c (psiginfo): Likewise.
6095         * stdio-common/psignal.c (psignal): Likewise.
6096         * string/strsignal.c (strsignal): Likewise.
6097         * include/signal.h (_sys_siglist): Declare hidden proto.
6098         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
6099         INTVARDEF with libc_hidden_data_def.
6100         * stdio-common/itoa-udigits.c: Likewise.
6101         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6102         (_itoa_lower_digits_internal): Remove declaration.
6103         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6104         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6105         (_sys_sigabbrev_internal): Remove aliases.
6106         (_sys_siglist): Define hidden alias.
6107
6108 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6109
6110         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6111         bits/sysctl.h.
6112
6113 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6114
6115         [BZ #14117]
6116         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6117         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6118
6119         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6120         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6121         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6122         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6123         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6124         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6125
6126         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6127         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6128         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6129
6130         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6131         with __addr.
6132         (insw): Likewise.
6133         (insl): Likewise.
6134         (outsb): Likewise.
6135         (outsw): Likewise.
6136         (outsl): Likewise.
6137
6138         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6139         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6140         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6141
6142         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6143         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6144         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6145         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6146         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6147         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6148
6149         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6150         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6151
6152         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6153         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6154
6155         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6156         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6157         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6158
6159         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6160         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6161         to ...
6162         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6163
6164         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6165         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6166         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6167
6168         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6169         for x86-64.
6170         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6171
6172 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6173
6174         * math/math.h (M_El): Use two more decimal places.
6175         (M_LOG2El): Likewise.
6176         (M_LOG10El): Likewise.
6177         (M_LN2l): Likewise.
6178         (M_LN10l): Likewise.
6179         (M_PIl): Likewise.
6180         (M_PI_2l): Likewise.
6181         (M_PI_4l): Likewise.
6182         (M_1_PIl): Likewise.
6183         (M_2_PIl): Likewise.
6184         (M_2_SQRTPIl): Likewise.
6185         (M_SQRT2l): Likewise.
6186         (M_SQRT1_2l): Likewise.
6187
6188 2012-05-31  David S. Miller  <davem@davemloft.net>
6189
6190         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6191         values between float registers.
6192         * sysdeps/sparc/sparc64/memset.S: Likewise.
6193         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6194
6195 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6196
6197         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6198         -D_FORTIFY_SOURCE=1.
6199         (CPPFLAGS-tst-longjmp_chk.c): Define.
6200         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6201         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6202         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6203         CFLAGS-tst-wchar-h.c.
6204
6205 2012-05-31  Marek Polacek  <polacek@redhat.com>
6206
6207         [BZ #14132]
6208         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6209         __endmntent_internal): Remove declaration.
6210         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6211         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6212         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6213
6214 2012-05-30  David S. Miller  <davem@davemloft.net>
6215
6216         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6217         (___Q_simulate_exceptions): Use real FP ops rather than writing
6218         into the %fsr.
6219         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6220         Likewise.
6221
6222 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6223
6224         [BZ #14117]
6225         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6226         * sysdeps/x86/bits/xtitypes.h: This.
6227
6228         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6229         * sysdeps/x86/bits/wordsize.h: This.
6230
6231         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6232         * sysdeps/x86/bits/huge_vall.h: This.
6233
6234         * sysdeps/i386/bits/select.h: Removed.
6235         * sysdeps/x86_64/bits/select.h: Renamed to ...
6236         * sysdeps/x86/bits/select.h: This.
6237
6238         * sysdeps/i386/bits/setjmp.h: Removed.
6239         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6240         * sysdeps/x86/bits/setjmp.h: This.
6241
6242         * sysdeps/i386/bits/mathdef.h: Removed.
6243         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6244         * sysdeps/x86/bits/mathdef.h: This.
6245
6246 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6247
6248         [BZ #14132]
6249         * include/sys/socket.h (__connect_internal)
6250         (__libc_sa_len_internal): Remove declaration.
6251         (__connect, __libc_sa_len): Declare hidden_proto.
6252         (SA_LEN): Remove use of INTUSE.
6253         * socket/connect.c: Add libc_hidden_def.
6254         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6255         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6256         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6257         alias.
6258         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6259         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6260         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6261         of adding _internal alias.
6262
6263 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6264
6265         [BZ #14117]
6266         * sysdeps/i386/bits/link.h: Removed.
6267         * sysdeps/i386/bits/linkmap.h: Likewise.
6268         * sysdeps/x86_64/bits/link.h: Renamed to ...
6269         * sysdeps/x86/bits/link.h: This.
6270         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6271         * sysdeps/x86/bits/linkmap.h: This.
6272
6273         * sysdeps/i386/bits/endian.h: Removed.
6274         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6275         * sysdeps/x86/bits/endian.h: This.
6276
6277         * sysdeps/i386/bits/byteswap.h: Removed.
6278         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6279         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6280         * sysdeps/x86/bits/byteswap.h: This.
6281         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6282         * sysdeps/x86/bits/byteswap-16.h: This.
6283         * sysdeps/i386/Implies: Add x86.
6284         * sysdeps/x86_64/Implies: Likewise.
6285
6286 2012-05-30  David S. Miller  <davem@davemloft.net>
6287
6288         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6289         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6290         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6291         (FP_TRAPPING_EXCEPTIONS): Define.
6292         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6293         (FP_TRAPPING_EXCEPTIONS): Define.
6294         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6295         subnormals only when inexact has been signalled or underflow
6296         exceptions are enabled.
6297         (_FP_PACK_CANONICAL): Likewise.
6298
6299 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6300
6301         [BZ #14183]
6302         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6303         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6304
6305 2012-05-30  Richard Henderson  <rth@twiddle.net>
6306
6307         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6308         with #ifndef NOT_IN_libc.
6309
6310         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6311         marked to avoid plt entry.
6312
6313 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6314
6315         [BZ #14112]
6316         * Makeconfig (default-abi): New macro.
6317         (abi-includes): Likewise.
6318         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6319         $(abi-$(default-abi)-lib-soname) for soname if defined.
6320         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6321         abi-variants.
6322         * Makefile (installed-stubs): Likewise.
6323         * include/stubs-biarch.h: Removed.
6324         * scripts/lib-names.awk: Only handle one library at a time.
6325         * scripts/soversions.awk: Remove WORDSIZE support.
6326         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6327         entries.
6328         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6329         Removed.
6330         (syscall-list-default-condition): Likewise.
6331         (syscall-list-default-condition): Likewise.
6332         (syscall-list-includes): Likewise.
6333         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6334         syscall-list-* with abi-*.  Handle undefined abi-variants.
6335         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6336         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6337         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6338         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6339         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6340         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6341         Removed.
6342         (syscall-list-32-options): Likewise.
6343         (syscall-list-32-condition): Likewise.
6344         (syscall-list-64-options): Likewise.
6345         (syscall-list-64-condition): Likewise.
6346         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6347         macro.
6348         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6349         Renamed to ...
6350         (abi-*): This.
6351         (abi-64-ld-soname): New macro.
6352         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6353         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6354         Renamed to ...
6355         (abi-*): This.
6356         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6357         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6358
6359 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6360
6361         * sysdeps/unix/sysv/linux/kernel-features.h
6362         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6363         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6364         include <kernel-features.h>.
6365         [!__NR_ftruncate64]: Remove conditional code.
6366         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6367         [__NR_ftruncate64]: Make code unconditional.
6368         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6369         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6370         include <kernel-features.h>.
6371         [!__NR_ftruncate64]: Remove conditional code.
6372         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6373         [__NR_ftruncate64]: Make code unconditional.
6374         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6376         include <kernel-features.h>.
6377         [!__NR_ftruncate64]: Remove conditional code.
6378         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6379         [__NR_ftruncate64]: Make code unconditional.
6380         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6382         include <kernel-features.h>.
6383         [!__NR_ftruncate64]: Remove conditional code.
6384         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6385         [__NR_ftruncate64]: Make code unconditional.
6386         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6387
6388         * configure.in (libc_cv_fpie): Weaken to a compile test using
6389         LIBC_TRY_CC_OPTION.
6390         * configure: Regenerated.
6391
6392 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6393
6394         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6395         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6396         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6397         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6398         Refreshed.
6399         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6400         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6401         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6402         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6403         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6404         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6405         Refreshed.
6406
6407 2012-05-27  David S. Miller  <davem@davemloft.net>
6408
6409         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6410         (___Q_zero): New.
6411         (__Q_simulate_exceptions): Return void.  Change to simulate
6412         exceptions by writing into the %fsr.
6413         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6414         (__Qp_handle_exceptions): Likewise.
6415         (numbers): Delete.
6416         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6417         __Qp_handle_exceptions.
6418         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6419         __Qp_handle_exceptions.
6420         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6421         as unused and give dummy FP_RND_NEAREST initializer.
6422         (FP_INHIBIT_RESULTS): Define.
6423         (___Q_simulate_exceptions): Update declaration.
6424         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6425         formatting.
6426         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6427         as unused and give dummy FP_RND_NEAREST initializer.
6428         (__Qp_handle_exceptions): Update declaration.
6429         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6430         formatting.
6431
6432 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6433
6434         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6435         the temporary FPU control word.
6436         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6437         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6438         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6439         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6440         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6441         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6442         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6443         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6444         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6445         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6446         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6447
6448 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6449
6450         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6451         fields.
6452
6453 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6454
6455         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6456         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6457         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6458         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6459         Likewise.
6460         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6461         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6462         Likewise.
6463
6464 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6465
6466         * po/h.po: Update from translation team.
6467
6468 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6469
6470         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6471
6472         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6473         handling of denormals.
6474         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6475         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6476         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6477         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6478         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6479         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6480         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6481         Likewise.
6482
6483 2012-05-26  Marek Polacek  <polacek@redhat.com>
6484
6485         [BZ #14152]
6486         * math/libm-test.inc (fma_test): Don't always expect underflow
6487         exception.
6488
6489 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6490
6491         [BZ #12416]
6492         * elf/tst-execstack.c: Include stackinfo.h.
6493         (do_test): Adjust test case to ensure that pthread_getattr_np
6494         behaviour remains the same after marking stack executable.
6495
6496 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6497
6498         * sysdeps/unix/sysv/linux/kernel-features.h
6499         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6500         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6501         kernel-features.h.
6502         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6503         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6504         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6505         kernel-features.h.
6506         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6507         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6508
6509 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6510
6511         * configure.in: Define the default includes to being none.
6512         * configure: Regenerated.
6513
6514 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6515
6516         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6517         * sysdeps/x86_64/setjmp.S: Likewise.
6518         * sysdeps/i386/bsd-setjmp.S: Likewise.
6519         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6520         * sysdeps/i386/setjmp.S: Likewise.
6521         * sysdeps/i386/__longjmp.S: Likewise.
6522         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6523         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6524
6525         * include/stap-probe.h: New file.
6526         * configure.in: Handle --enable-systemtap.
6527         * configure: Regenerated.
6528         * config.h.in (USE_STAP_PROBE): New #undef.
6529         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6530         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6531         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6532
6533 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6534
6535         [BZ #13717]
6536         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6537         to 2.4.0 where earlier.
6538         * sysdeps/unix/sysv/linux/configure: Regenerated.
6539         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6540         <kernel-features.h>.
6541         [__ASSUME_32BITUIDS]: Make code unconditional.
6542         [!__ASSUME_32BITUIDS]: Remove conditional code.
6543         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6544         <kernel-features.h>.
6545         [__ASSUME_32BITUIDS]: Make code unconditional.
6546         [!__ASSUME_32BITUIDS]: Remove conditional code.
6547         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6548         [__ASSUME_32BITUIDS]: Make code unconditional.
6549         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6550         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6551         <kernel-features.h>.
6552         [__ASSUME_32BITUIDS]: Make code unconditional.
6553         [!__ASSUME_32BITUIDS]: Remove conditional code.
6554         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6555         <kernel-features.h>.
6556         [__ASSUME_32BITUIDS]: Make code unconditional.
6557         [!__ASSUME_32BITUIDS]: Remove conditional code.
6558         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6559         <kernel-features.h>.
6560         [__ASSUME_32BITUIDS]: Make code unconditional.
6561         [!__ASSUME_32BITUIDS]: Remove conditional code.
6562         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6563         <kernel-features.h>.
6564         [__ASSUME_32BITUIDS]: Make code unconditional.
6565         [!__ASSUME_32BITUIDS]: Remove conditional code.
6566         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6567         <kernel-features.h>.
6568         [__ASSUME_32BITUIDS]: Make code unconditional.
6569         [!__ASSUME_32BITUIDS]: Remove conditional code.
6570         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6571         <kernel-features.h>.
6572         [__ASSUME_32BITUIDS]: Make code unconditional.
6573         [!__ASSUME_32BITUIDS]: Remove conditional code.
6574         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6575         <kernel-features.h>.
6576         [__ASSUME_32BITUIDS]: Make code unconditional.
6577         [!__ASSUME_32BITUIDS]: Remove conditional code.
6578         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6579         <kernel-features.h>.
6580         [__ASSUME_32BITUIDS]: Make code unconditional.
6581         [!__ASSUME_32BITUIDS]: Remove conditional code.
6582         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6583         <kernel-features.h>.
6584         [__ASSUME_32BITUIDS]: Make code unconditional.
6585         [!__ASSUME_32BITUIDS]: Remove conditional code.
6586         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6587         <kernel-features.h>.
6588         [__ASSUME_32BITUIDS]: Make code unconditional.
6589         [!__ASSUME_32BITUIDS]: Remove conditional code.
6590         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6591         <kernel-features.h>.
6592         [__NR_setresgid] (__setresgid): Do not declare.
6593         [__ASSUME_32BITUIDS]: Make code unconditional.
6594         [!__ASSUME_32BITUIDS]: Remove conditional code.
6595         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6596         <kernel-features.h>.
6597         [__NR_setresuid] (__setresuid): Do not declare.
6598         [__ASSUME_32BITUIDS]: Make code unconditional.
6599         [!__ASSUME_32BITUIDS]: Remove conditional code.
6600         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6601         <kernel-features.h>.
6602         [__ASSUME_32BITUIDS]: Make code unconditional.
6603         [!__ASSUME_32BITUIDS]: Remove conditional code.
6604         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6605         <kernel-features.h>.
6606         [__ASSUME_32BITUIDS]: Make code unconditional.
6607         [!__ASSUME_32BITUIDS]: Remove conditional code.
6608         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6609         <kernel-features.h>.
6610         [__ASSUME_32BITUIDS]: Make code unconditional.
6611         [!__ASSUME_32BITUIDS]: Remove conditional code.
6612         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6613         <kernel-features.h>.
6614         [__ASSUME_32BITUIDS]: Make code unconditional.
6615         [!__ASSUME_32BITUIDS]: Remove conditional code.
6616         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6617         <kernel-features.h>.
6618         [__ASSUME_32BITUIDS]: Make code unconditional.
6619         [!__ASSUME_32BITUIDS]: Remove conditional code.
6620         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6621         <kernel-features.h>.
6622         [__ASSUME_32BITUIDS]: Make code unconditional.
6623         [!__ASSUME_32BITUIDS]: Remove conditional code.
6624         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6625         <kernel-features.h>.
6626         [__ASSUME_32BITUIDS]: Make code unconditional.
6627         [!__ASSUME_32BITUIDS]: Remove conditional code.
6628         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6629         <kernel-features.h>.
6630         [__ASSUME_32BITUIDS]: Make code unconditional.
6631         [!__ASSUME_32BITUIDS]: Remove conditional code.
6632         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6633         <kernel-features.h>.
6634         [__ASSUME_32BITUIDS]: Make code unconditional.
6635         [!__ASSUME_32BITUIDS]: Remove conditional code.
6636         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6637         <kernel-features.h>.
6638         [__ASSUME_32BITUIDS]: Make code unconditional.
6639         [!__ASSUME_32BITUIDS]: Remove conditional code.
6640         * sysdeps/unix/sysv/linux/kernel-features.h
6641         (__ASSUME_SETRESUID_SYSCALL): Remove.
6642         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6643         (__ASSUME_32BITUIDS): Likewise.
6644         (__ASSUME_LDT_WORKS): Likewise.
6645         (__ASSUME_O_DIRECTORY): Likewise.
6646         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6647         architecture but not kernel version.
6648         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6649         (__ASSUME_MMAP2_SYSCALL): Likewise.
6650         (__ASSUME_STAT64_SYSCALL): Likewise.
6651         (__ASSUME_IPC64): Likewise.
6652         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6653         <kernel-features.h>.
6654         [__ASSUME_32BITUIDS]: Make code unconditional.
6655         [!__ASSUME_32BITUIDS]: Remove conditional code.
6656         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6657         <kernel-features.h>.
6658         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6659         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6660         132096]: Remove conditional code.
6661         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6662         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6663         <kernel-features.h>.
6664         [__ASSUME_32BITUIDS]: Make code unconditional.
6665         [!__ASSUME_32BITUIDS]: Remove conditional code.
6666         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6667         <kernel-features.h>.
6668         [__ASSUME_32BITUIDS]: Make code unconditional.
6669         [!__ASSUME_32BITUIDS]: Remove conditional code.
6670         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6671         <kernel-features.h>.
6672         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6673         unconditional.
6674         (__setresgid): Do not declare.
6675         [__ASSUME_32BITUIDS]: Make code unconditional.
6676         [!__ASSUME_32BITUIDS]: Remove conditional code.
6677         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6678         <kernel-features.h>.
6679         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6680         unconditional.
6681         (__setresuid): Do not declare.
6682         [__ASSUME_32BITUIDS]: Make code unconditional.
6683         [!__ASSUME_32BITUIDS]: Remove conditional code.
6684         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6685         <kernel-features.h>.
6686         [__ASSUME_32BITUIDS]: Make code unconditional.
6687         [!__ASSUME_32BITUIDS]: Remove conditional code.
6688         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6689         <kernel-features.h>.
6690         [__ASSUME_32BITUIDS]: Make code unconditional.
6691         [!__ASSUME_32BITUIDS]: Remove conditional code.
6692
6693 2012-05-25  Richard Henderson  <rth@twiddle.net>
6694
6695         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6696         dl_hwcap to ifunc resolver.
6697         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6698         elf_ifunc_invoke.
6699         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6700         dl_hwcap to ifunc resolver.
6701         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6702
6703 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6704
6705         [BZ #14153]
6706         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6707         for |x| <= 2**-26, not 2**-57.
6708         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6709         exception.
6710
6711 2012-05-24  Jeff Law  <law@redhat.com>
6712
6713         * stdio-common/Makefile (tests): Add bug25.
6714         * stdio-common/bug25.c: New test.
6715
6716 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6717
6718         [BZ #13576]
6719         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6720         multiple of MALLOC_ALIGNMENT in size.
6721         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6722
6723 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6724
6725         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6726         Require >= 256.
6727         (FILENAME_MAX): Use macro-int-constant.
6728         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6729         (_IOFBF): Use macro-int-constant.
6730         (_IOLBF): Likewise.
6731         (_IONBF): Likewise.
6732         (SEEK_CUR): Likewise.
6733         (SEEK_END): Likewise.
6734         (SEEK_SET): Likewise.
6735         (TMP_MAX): Likewise.
6736         (EOF): Use macro-int-constant.  Require < 0.
6737         (NULL): Use macro-constant.  Require == 0.
6738         (stdin): Require type to be FILE *.
6739         (stdout): Likewise.
6740         (stderr): Likewise.
6741         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6742         macro-int-constant.
6743         (EXIT_SUCCESS): Likewise.
6744         (NULL): Use macro-constant.  Require == 0.
6745         (RAND_MAX): Use macro-int-constant.
6746         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6747         [C99-based standards] (strtof): Require function.
6748         [C99-based standards] (strtold): Likewise.
6749         [C99-based standards] (strtoll): Likewise.
6750         [C99-based standards] (strtoull): Likewise.
6751         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6752         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6753         [ISO || ISO99 || ISO11] (math.h): Likewise.
6754         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6755         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6756         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6757
6758 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6759
6760         [BZ #14132]
6761         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6762         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6763         * intl/dgettext.c (DCGETTEXT): Likewise.
6764         * intl/gettext.c (DCGETTEXT): Likewise.
6765         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6766         * posix/regex_internal.h (gettext): Likewise.
6767         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6768         Remove declaration.
6769         * include/argz.h (__argz_count_internal)
6770         (__argz_stringify_internal): Remove declaration.
6771         (__argz_count, __argz_stringify): Declare hidden proto.
6772         * intl/dcgettext.c: Remove use of INTDEF.
6773         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6774         * string/argz-stringify.c: Likewise.
6775         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6776         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6777         Declare hidden proto.
6778         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6779         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6780         Declare hidden proto.
6781         * include/stdio.h (__asprintf_internal): Don't declare.
6782         (__asprintf): Don't define as macro.  Declare hidden proto.
6783         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6784         (__fsetlocking): Declare hidden proto.
6785         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6786         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6787         hidden proto.
6788         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6789         (_IO_setlinebuf): Remove use of INTUSE.
6790         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6791         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6792         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6793         Remove declaration.
6794         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6795         (_IO_do_flush): Remove use of INTUSE.
6796         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6797         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6798         (_IO_adjust_column, _IO_least_wmarker)
6799         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6800         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6801         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6802         (_IO_default_doallocate, _IO_wdefault_doallocate)
6803         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6804         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6805         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6806         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6807         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6808         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6809         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6810         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6811         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6812         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6813         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6814         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6815         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6816         proto.
6817         (_IO_flush_all_internal, _IO_adjust_column_internal)
6818         (_IO_default_uflow_internal, _IO_default_finish_internal)
6819         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6820         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6821         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6822         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6823         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6824         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6825         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6826         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6827         (_IO_file_close_internal, _IO_file_close_it_internal)
6828         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6829         (_IO_file_init_internal, _IO_file_attach_internal)
6830         (_IO_file_fopen_internal, _IO_file_read_internal)
6831         (_IO_file_sync_internal, _IO_file_seek_internal)
6832         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6833         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6834         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6835         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6836         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6837         (_IO_list_all_internal, _IO_link_in_internal)
6838         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6839         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6840         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6841         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6842         (_IO_do_write_internal, _IO_padn_internal)
6843         (_IO_getline_info_internal, _IO_getline_internal)
6844         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6845         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6846         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6847         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6848         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6849         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6850         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6851         with libc_hidden_ver, remove use of INTUSE.
6852         * libio/genops.c: Likewise.
6853         * libio/freopen.c: Likewise.
6854         * libio/freopen64.c: Likewise.
6855         * libio/iofclose.c: Likewise.
6856         * libio/iofdopen.c: Likewise.
6857         * libio/iofflush.c: Likewise.
6858         * libio/iofflush_u.c: Likewise.
6859         * libio/iofgets.c: Likewise.
6860         * libio/iofgets_u.c: Likewise.
6861         * libio/iofopen.c: Likewise.
6862         * libio/iofopncook.c: Likewise.
6863         * libio/iofread.c: Likewise.
6864         * libio/iofread_u.c: Likewise.
6865         * libio/ioftell.c: Likewise.
6866         * libio/iofwrite.c: Likewise.
6867         * libio/iogetline.c: Likewise.
6868         * libio/iogets.c: Likewise.
6869         * libio/iogetwline.c: Likewise.
6870         * libio/iopadn.c: Likewise.
6871         * libio/iopopen.c: Likewise.
6872         * libio/ioseekoff.c: Likewise.
6873         * libio/ioseekpos.c: Likewise.
6874         * libio/iosetbuffer.c: Likewise.
6875         * libio/iosetvbuf.c: Likewise.
6876         * libio/ioungetc.c: Likewise.
6877         * libio/ioungetwc.c: Likewise.
6878         * libio/iovdprintf.c: Likewise.
6879         * libio/iovsprintf.c: Likewise.
6880         * libio/iovsscanf.c: Likewise.
6881         * libio/memstream.c: Likewise.
6882         * libio/obprintf.c: Likewise.
6883         * libio/oldfileops.c: Likewise.
6884         * libio/oldiofclose.c: Likewise.
6885         * libio/oldiofdopen.c: Likewise.
6886         * libio/oldiofopen.c: Likewise.
6887         * libio/oldiopopen.c: Likewise.
6888         * libio/oldstdfiles.c: Likewise.
6889         * libio/putc.c: Likewise.
6890         * libio/setbuf.c: Likewise.
6891         * libio/setlinebuf.c: Likewise.
6892         * libio/stdfiles.c: Likewise.
6893         * libio/strops.c: Likewise.
6894         * libio/vasprintf.c: Likewise.
6895         * libio/vscanf.c: Likewise.
6896         * libio/vsnprintf.c: Likewise.
6897         * libio/vswprintf.c: Likewise.
6898         * libio/wfiledoalloc.c: Likewise.
6899         * libio/wfileops.c: Likewise.
6900         * libio/wgenops.c: Likewise.
6901         * libio/wmemstream.c: Likewise.
6902         * libio/wstrops.c: Likewise.
6903         * libio/__fpurge.c: Likewise.
6904         * libio/__fsetlocking.c: Likewise.
6905         * assert/assert.c: Likewise.
6906         * debug/fgets_chk.c: Likewise.
6907         * debug/fgets_u_chk.c: Likewise.
6908         * debug/fread_chk.c: Likewise.
6909         * debug/fread_u_chk.c: Likewise.
6910         * debug/gets_chk.c: Likewise.
6911         * debug/obprintf_chk.c: Likewise.
6912         * debug/vasprintf_chk.c: Likewise.
6913         * debug/vdprintf_chk.c: Likewise.
6914         * debug/vsnprintf_chk.c: Likewise.
6915         * debug/vsprintf_chk.c: Likewise.
6916         * malloc/mtrace.c: Likewise.
6917         * misc/error.c: Likewise.
6918         * misc/syslog.c: Likewise.
6919         * stdio-common/asprintf.c: Likewise.
6920         * stdio-common/fxprintf.c: Likewise.
6921         * stdio-common/getw.c: Likewise.
6922         * stdio-common/isoc99_fscanf.c: Likewise.
6923         * stdio-common/isoc99_scanf.c: Likewise.
6924         * stdio-common/isoc99_vfscanf.c: Likewise.
6925         * stdio-common/isoc99_vscanf.c: Likewise.
6926         * stdio-common/isoc99_vsscanf.c: Likewise.
6927         * stdio-common/printf-prs.c: Likewise.
6928         * stdio-common/printf_fp.c: Likewise.
6929         * stdio-common/printf_fphex.c: Likewise.
6930         * stdio-common/printf_size.c: Likewise.
6931         * stdio-common/putw.c: Likewise.
6932         * stdio-common/scanf.c: Likewise.
6933         * stdio-common/sprintf.c: Likewise.
6934         * stdio-common/tmpfile.c: Likewise.
6935         * stdio-common/vfprintf.c: Likewise.
6936         * stdio-common/vfscanf.c: Likewise.
6937         * stdlib/strfmon_l.c: Likewise.
6938         * sunrpc/openchild.c: Likewise.
6939         * sunrpc/xdr_stdio.c: Likewise.
6940         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
6941         * sysdeps/mach/hurd/tmpfile.c: Likewise.
6942
6943 2012-05-24  Roland McGrath  <roland@hack.frob.com>
6944
6945         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6946
6947         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
6948         in the third column, to generate for the shared library an IFUNC
6949         that uses _dl_vdso_vsym.
6950         * Makerules (COMPILE.c, compile-stdin.c): New variables.
6951         * Makeconfig (object-suffixes-noshared): New variable.
6952
6953         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
6954         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
6955         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
6956         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
6957
6958         [BZ #14132]
6959         * include/sys/time.h (__gettimeofday): Remove macro.
6960         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
6961         * time/gettimeofday.c (__gettimeofday): Remove #undef.
6962         Remove INTDEF.
6963         (__gettimeofday): Add libc_hidden_def.
6964         (gettimeofday): Add libc_hidden_weak.
6965         * sysdeps/mach/gettimeofday.c: Likewise.
6966         * sysdeps/posix/gettimeofday.c: Likewise.
6967         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
6968         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
6969         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
6970         (__gettimeofday_internal): Remove strong_alias.
6971         (__gettimeofday): Add libc_hidden_def.
6972         (gettimeofday): Add libc_hidden_weak.
6973         * sysdeps/unix/syscalls.list (gettimeofday):
6974         Remove __gettimeofday_internal alias.
6975
6976 2012-05-24  Daniel Jacobowitz  <drow@false.org>
6977             H.J. Lu  <hongjiu.lu@intel.com>
6978
6979         [BZ #12495]
6980         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
6981         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
6982         (largebin_index_32_big): New.
6983         (largebin_index): Use it for 16-byte alignment.
6984         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
6985         correction with front_misalign.
6986
6987 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6988
6989         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
6990         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
6991         Likewise.
6992         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
6993         Likewise.
6994         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6995         Likewise.
6996         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
6997         Likewise.
6998         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
6999         Likewise.
7000         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7001         Likewise.
7002         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7003         Likewise.
7004         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7005         Likewise.
7006         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7007         Likewise.
7008         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7009         Likewise.
7010         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7011         Likewise.
7012         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7013         Likewise.
7014
7015         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7016         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7017
7018 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7019
7020         [BZ #10846]
7021         [BZ #14036]
7022         * math/libm-test.inc (exp_test): Add test from bug 14036.
7023         (pow_test): Add test from bug 10846.
7024
7025         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7026         and other flags.
7027         (special_function): Do not include flags in test name.
7028         (parse_args): Likewise.
7029         * sysdeps/i386/fpu/libm-test-ulps: Update.
7030         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7031         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7032         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7034
7035         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7036         exceptions.
7037         * math/libm-test.inc ("Philosophy"): Update comment about
7038         exception testing.
7039         (UNDERFLOW_EXCEPTION): New macro.
7040         (UNDERFLOW_EXCEPTION_OK): Likewise.
7041         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7042         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7043         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7044         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7045         (INVALID_EXCEPTION_OK): Update value.
7046         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7047         (OVERFLOW_EXCEPTION_OK): Likewise.
7048         (IGNORE_ZERO_INF_SIGN): Likewise.
7049         (test_exceptions): Handle underflow exceptions.
7050         (acos_test): Update for underflow exception expectations.
7051         (cexp_test): Likewise.
7052         (clog_test): Likewise.
7053         (clog10_test): Likewise.
7054         (csqrt_test): Likewise.
7055         (ctan_test): Likewise.
7056         (ctanh_test): Likewise.
7057         (exp_test): Likewise.
7058         (exp10_test): Likewise.
7059         (exp2_test): Likewise.
7060         (expm1_test): Likewise.
7061         (fma_test): Likewise.
7062         (j0_test): Likewise.
7063         (jn_test): Likewise.
7064         (nexttoward_test): Likewise.
7065         (pow_test): Likewise.
7066         (scalbn_test): Likewise.
7067         (scalbln_test): Likewise.
7068         (tan_test): Likewise.
7069         (y1_test): Likewise.
7070         * sysdeps/i386/fpu/libm-test-ulps: Update.
7071         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7072
7073 2012-05-23  David S. Miller  <davem@davemloft.net>
7074
7075         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7076         (__libc_sigaction): Remove unused local variables.
7077
7078 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7079
7080         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7081
7082 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7083
7084         mktime: avoid signed integer overflow
7085         * time/mktime.c (__mktime_internal): Do not mishandle the case
7086         where diff == INT_MIN.
7087
7088         mktime: simplify computation of average
7089         * time/mktime.c (ranged_convert): Use new time_t_avg function
7090         instead of rolling our own (probably-slower) code.
7091
7092         mktime: do not assume signed right shift propagates sign bit
7093         * time/mktime.c (isdst_differ): New static function.
7094         (__mktime_internal): No need to normalize tm_isdst now.
7095         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7096         tm_isdst values.
7097
7098         mktime: merge another wrapv change from gnulib
7099         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7100         from some compilers.
7101
7102         mktime: remove incorrect attempt at unusual arithmetics
7103         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7104         The code didn't really work on such machines anyway.
7105         (TYPE_MINIMUM): Assume two's complement.
7106         (twos_complement_arithmetic): Verify that long_int and time_t
7107         are two's complement (or unsigned, in the latter case).
7108
7109         mktime: check signed shifts on long_int and time_t, too
7110         * time/mktime.c (SHR): Check that shifts work as desired
7111         on the types long_int and time_t too, as SHR is used on
7112         such types.
7113
7114         mktime: do not assume 'long' is wide enough
7115         * time/mktime.c (verify): Move decl up.
7116         (long_int): New type.
7117         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7118         to remove assumption in the code that 'long' is wide enough to
7119         store year values.  This assumption is not true on x32 and on
7120         some non-glibc platforms.
7121
7122         mktime: merge wrapv change from gnulib
7123         * time/mktime.c (WRAPV): New macro.
7124         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7125         (guess_time_tm, __mktime_internal): Do not assume that signed
7126         integer overflow wraps around; modern compilers generate code
7127         where this assumption is no longer valid.
7128
7129 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7130
7131         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7132         Replace "jmp L(pseudo_end)" with "ret".
7133         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7134         Likewise.
7135
7136 2012-05-23  Andreas Jaeger  <aj@suse.de>
7137
7138         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7139         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7140
7141 2012-05-23  Andreas Jaeger  <aj@suse.de>
7142             Maximilian Attems  <max@stro.at>
7143
7144         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7145         New macros.
7146
7147 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7148
7149         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7150         code so that pseudo_end is just ret and the stack pointer is
7151         correct also for static library in error case.
7152
7153 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7154
7155         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7156         move to syscalls.list.
7157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7158         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7161
7162         * manual/install.texi (Running make install): Do not mention Linux
7163         kernel version for which pt_chown is not needed.
7164         (Linux): Do not mention problems with nscd with 2.0 kernels.
7165         * INSTALL: Regenerated.
7166
7167 2012-05-23  Andreas Jaeger  <aj@suse.de>
7168
7169         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7170         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7171         macro.
7172         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7173         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7174         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7175         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7176         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7177         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7178         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7179         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7180         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7181         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7182         * sysdeps/unix/sysv/linux/bits/in.h
7183         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7184
7185 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7186
7187         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7188         (PREPARE_VERSION): Just use assert instead, it will be elided
7189         under [NDEBUG] anyway.
7190
7191 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7192
7193         * sysdeps/unix/sysv/linux/Makefile: Include
7194         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7195         (sysdep_routines): Remove sysctl.
7196         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7197         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7198         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7199         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7200         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7201
7202 2012-05-22  Andreas Jaeger  <aj@suse.de>
7203
7204         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7205         that pseudo_end is just ret and the stack pointer is correct also
7206         for static library in error case.
7207
7208 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7209
7210         [BZ #14122]
7211         * nss/nsswitch.c (defconfig_entries): New variable.
7212         (__nss_database_lookup): Don't leak defconfig entries.
7213         (nss_parse_service_list): Don't leak on error paths.
7214         (free_database_entries): New function.
7215         (free_defconfig): New function.
7216         (free_mem): Move common code to free_database_entries.
7217
7218 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7219
7220         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7221         Add arch_prctl.
7222         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7223
7224         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7225         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7226         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7227         New macro.
7228         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7229         (INTERNAL_SYSCALL_TYPES): Likewise.
7230         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7231         (LOAD_REGS_TYPES_[1-6]): Likewise.
7232         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7233         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7234
7235 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7236
7237         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7238         copysignl for GLIBC_2_0.
7239         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7240         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7241         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7242         logbl for GLIBC_2_0.
7243         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7244         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7245
7246 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7247
7248         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7249         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7250
7251         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7252         Use "neg %eax".
7253
7254         * time/mktime.c: Update copyright years.
7255
7256 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7257
7258         mktime: merge comment-quoting-style change from gnulib
7259         * time/mktime.c: Quote 'like this' in comments.
7260         The GNU coding standards suggest that we no longer quote `like this',
7261         as "`" and "'" are typically rendered asymmetrically nowadays.
7262         The typical gnulib style is to quote 'like this' when quoting
7263         code, and "like this" when quoting English.
7264
7265         * time/mktime.c (compile-command): Add "-I.".
7266
7267         mktime: merge mktime-internal.h change from gnulib
7268         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7269
7270         mktime: merge time_r change from gnulib
7271         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7272
7273         mktime: merge DEBUG change from gnulib
7274         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7275         case system <time.h> has a #define.
7276
7277         mktime: merge <sys/types.h> change from gnulib
7278         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7279         since <time.t> is now guaranteed to define time_t.
7280
7281         mktime: merge HAVE_CONFIG_H change from gnulib
7282         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7283
7284 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7285
7286         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7287         Use "neg %eax".
7288
7289         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7290         __rlim_t cast.
7291         (struct rusage): Use anonymous union to pad each field to
7292         __syscall_slong_t.
7293
7294 2012-05-21  David S. Miller  <davem@davemloft.net>
7295
7296         * Makefules (o-iterator): Remove .s cases.
7297         (compile-command.s): Delete.
7298         (COMPILE.s): Delete.
7299         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7300
7301 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7302
7303         * configure.in (libc_cv_predef_stack_protector): Only consider
7304         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7305         * configure: Regenerated.
7306
7307 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7308
7309         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7310         New macro.  Use R*LP on int and pointer.
7311         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7312         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7313         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7314         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7315
7316         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7317         [__WORDSIZE_TIME64_COMPAT32] instead of
7318         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7319         (struct utmp): Likewise.
7320         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7321         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7322         Renamed to ...
7323         (__WORDSIZE_TIME64_COMPAT32): This.
7324         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7325         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7326         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7327         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7328         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7329         (__WORDSIZE_TIME64_COMPAT32): New macro.
7330
7331 2012-05-21  Andreas Jaeger  <aj@suse.de>
7332
7333         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7334         only if [SHARED]. Add prototype for __wcschr_ia32.
7335
7336 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7337
7338         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7339         of %rbp unmolested in the jmp_buf while mangling the low bits.
7340         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7341         unmolested high bits of %rbp while demangling the low bits.
7342         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7343
7344 2012-05-21  Andreas Jaeger  <aj@suse.de>
7345
7346         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7347         * sunrpc/svc_simple.c: Use it for registerrpc.
7348         * sunrpc/xcrypt.c: Use it for passwd2des.
7349
7350         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7351
7352 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7353
7354         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7355         Don't define if [__SYSCALL_WORDSIZE != 32].
7356         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7357         New macro.
7358
7359 2012-05-21  Bruno Haible  <bruno@clisp.org>
7360             Andreas Jaeger  <aj@suse.de>
7361
7362         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7363         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7364         inptr and inend for must_buffer_ch.
7365         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7366         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7367         * stdio-common/Makefile (tests): Remove bug15.
7368         (bug15-ENV): Remove macro.
7369         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7370         anymore.
7371
7372 2012-05-19  Andreas Jaeger  <aj@suse.de>
7373             Roland McGrath  <roland@hack.frob.com>
7374
7375         * manual/contrib.texi: Completely rewritten. It contains now an
7376         alphabetical list of contributors and their contributions.
7377
7378 2012-05-21  Richard Henderson  <rth@twiddle.net>
7379
7380         * misc/getauxval.c (__getauxval): Use unsigned long int.
7381         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7382         (getauxval): Use unsigned long int.
7383
7384 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7385
7386         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7387
7388 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7389
7390         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7391         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7392         __alignof__ (long double).
7393
7394 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7395
7396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7397
7398 2012-05-20  Richard Henderson  <rth@twiddle.net>
7399
7400         * misc/getauxval.c: New file.
7401         * misc/sys/auxv.h: New file.
7402         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7403         (routines): Add getauxval.
7404         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7405         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7406         * elf/dl-sysdep.c (_dl_auxv): Remove.
7407         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7408         * elf/dl-support.c (_dl_auxv): New variable.
7409         (_dl_aux_init): Initialize it.
7410         * manual/startup.texi (Auxiliary Vector): New node.
7411         * sysdeps/generic/bits/hwcap.h: New file.
7412         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7413         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7414         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7415         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7416         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7417         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7419         Update.
7420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7421         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7422         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7423         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7424         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7425         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7426         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7427         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7428
7429 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7430
7431         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7432
7433 2012-05-19  David S. Miller  <davem@davemloft.net>
7434
7435         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7436
7437 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7438
7439         [BZ #14123]
7440         * math/s_ccosh.c: Include <float.h>
7441         (__ccosh): Avoid internal overflow calculating sinh and cosh
7442         values before multiplying by sin and cos values.
7443         * math/s_ccoshf.c: Likewise.
7444         * math/s_ccoshl.c: Likewise.
7445         * math/s_csin.c: Likewise.
7446         * math/s_csinf.c: Likewise.
7447         * math/s_csinl.c: Likewise.
7448         * math/s_csinh.c: Likewise.
7449         * math/s_csinhf.c: Likewise.
7450         * math/s_csinhl.c: Likewise.
7451         * math/libm-test.inc (ccos_test): Add more tests.
7452         (ccosh_test): Likewise.
7453         (csin_test): Likewise.
7454         (csinh_test): Likewise.
7455         * sysdeps/i386/fpu/libm-test-ulps: Update.
7456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7457
7458 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7459
7460         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7461         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7462
7463         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7464
7465 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7466
7467         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7468         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7469         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7470         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7471         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7472         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7473         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7474         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7475         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7476         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7477         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7478         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7479         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7480         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7481         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7482         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7483         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7484         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7485         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7486         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7487         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7488         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7489         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7490         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7491         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7492         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7493         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7494         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7495         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7496         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7497         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7498
7499 2012-05-18  Andreas Jaeger  <aj@suse.de>
7500
7501         * csu/.gitignore: Delete.
7502
7503 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7504
7505         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7506         (timex): Use __syscall_slong_t.
7507
7508 2012-05-18  Andreas Jaeger  <aj@suse.de>
7509             Carlos O'Donell  <carlos_odonell@mentor.com>
7510
7511         * manual/install.texi (Configuring and compiling): Update
7512         description about files modified in the source directory.
7513         * INSTALL: Regenerated.
7514
7515 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7516
7517         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7518         value.  Use "or" to set return value to -1.
7519         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7520         negate return value.
7521
7522 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7523
7524         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7525         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7526         failure if the compiler has Graphite support disabled.
7527         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7528         Likewise.
7529         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7530         CFLAGS-memmove.c): Likewise.
7531         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7532         Likewise.
7533
7534 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7535
7536         * sysdeps/x86_64/x32/_itoa.h: New file.
7537
7538         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7539         getdents system call only if kernel and user dirents have the
7540         same d_ino and d_off.
7541
7542         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7543         LLONG_MAX != LONG_MAX.
7544         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7545         (_fitoa_word): Likewise.
7546
7547         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7548         years.
7549         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7550         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7551         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7552
7553         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7554         include <bits/wordsize.h>.  Check __x86_64__ instead of
7555         __WORDSIZE.
7556         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7557         if __x86_64__ is defined.  Use anonymous union on fpstate.
7558
7559         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7560         anonymous union.
7561
7562 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7563
7564         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7565         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7566         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7567         Refer to _rtld_local_ro instead of _rtld_global_ro.
7568         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7569         Likewise.
7570         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7571         Likewise.
7572         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7573         Likewise.
7574         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7575         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7576         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7577
7578         * sysdeps/powerpc/powerpc32/dl-machine.c
7579         (__elf_machine_runtime_setup) [PROF]: Don't reference
7580         _dl_prof_resolve.
7581
7582 2012-05-18  Andreas Jaeger  <aj@suse.de>
7583
7584         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7585         function only available for GCCs before 3.4 since GCC 3.4
7586         introduced a builtin.
7587         (lrint): Likewise.
7588         (llrintf): Likewise.
7589         (llrint): Likewise.
7590         (fmaxf): Likewise.
7591         (fmax): Likewise.
7592         (fminf): Likewise.
7593         (fmin): Likewise.
7594         (rint): Likewise.
7595         (rintf): Likewise.
7596         (nearbyint): Likewise.
7597         (nearbyintf): Likewise.
7598         (ceil): Likewise.
7599         (ceilf): Likewise.
7600         (floor): Likewise.
7601         (floorf): Likewise.
7602
7603 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7604
7605         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7606         on both fields and cast pointer to __syscall_ulong_t.
7607
7608         * bits/types.h (__fsword_t): New type.
7609         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7610         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7611         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7612         (__FSWORD_T_TYPE): Likewise.
7613         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7614         (__FSWORD_T_TYPE): Likewise.
7615         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7616         (__FSWORD_T_TYPE): Likewise.
7617         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7618         (__FSWORD_T_TYPE): Likewise.
7619         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7620         __SWORD_TYPE with __fsword_t.
7621         (statfs64): Likewise.
7622
7623 2012-05-17  David S. Miller  <davem@davemloft.net>
7624
7625         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7626
7627 2012-05-17  Andreas Jaeger  <aj@suse.de>
7628
7629         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7630         warning.
7631
7632 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7633
7634         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7635
7636 2012-05-17  Andreas Jaeger  <aj@suse.de>
7637
7638         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7639         when it is used.
7640
7641 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7642
7643         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7644
7645 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7646
7647         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7648         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7649
7650 2012-05-17  Andreas Jaeger  <aj@suse.de>
7651             Carlos O'Donell  <carlos_odonell@mentor.com>
7652
7653         [BZ #14059]
7654         * sysdeps/x86_64/multiarch/init-arch.h
7655         (bit_YMM_Usable): Rename to...
7656         (bit_AVX_Usable): ... this.
7657         (bit_FMA4_Usable): New macro.
7658         (bit_XMM_state): New macro.
7659         (bit_YMM_state): New macro.
7660         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7661         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7662         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7663         (CPUID_OSXSAVE): New macro.
7664         (CPUID_AVX): New macro.
7665         (CPUID_FMA4): New macro.
7666         (index_YMM_Usable): Rename to...
7667         (index_AVX_Usable): ... this.
7668         (HAS_AVX): Use HAS_ARCH_FEATURE.
7669         (HAS_FMA4): Likewise.
7670         (HAS_YMM_USABLE): Remove.
7671         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7672         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7673         are present.
7674         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7675         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7676         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7677         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7678         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7679
7680 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7681
7682         * math/libm-test.c: Support platforms without multiple rounding modes.
7683         * math/bug-nextafter.c: Support platforms without FP exceptions.
7684         * math/bug-nexttoward.c: Likewise.
7685         * math/test-fenv.c: Likewise.
7686         * math/test-misc.c: Likewise.
7687         * stdlib/bug-getcontext.c: Likewise.
7688
7689 2012-05-17  Andreas Jaeger  <aj@suse.de>
7690
7691         * manual/examples/search.c (critter_cmp): Change signature to
7692         avoid warnings.
7693         * manual/string.texi (Collation Functions): Likewise.
7694
7695 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7696
7697         * bits/types.h: Fold copyright years.
7698         * bits/typesizes.h: Likewise.
7699         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7700         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7701         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7702         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7703         * time/time.h: Likewise.
7704
7705 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7706
7707         [BZ #208]
7708         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7709         in instead of returning them.  Return void.
7710         (__libc_mallinfo): Accumulate over all arenas.
7711         (__malloc_stats): Adjust for change in int_mallinfo interface.
7712
7713 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7714
7715         [BZ #10375]
7716         * configure.in (NM): Add AC_CHECK_TOOL for it.
7717         (libc_extra_cflags): New substituted variable.
7718         Check for -fstack-protector being used implicitly.
7719         * configure: Regenerated.
7720         * config.make.in (config-extra-cflags): New variable,
7721         gets @libc_extra_cflags@.
7722         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7723
7724         [BZ #10375]
7725         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7726         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7727         * configure: Regenerated.
7728         * config.make.in (CPPUNDEFS): New substituted variable.
7729         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7730         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7731         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7732
7733 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7734
7735         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7736         (mq_attr): Use __syscall_slong_t.
7737
7738 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7739
7740         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7741         Check __x86_64__ instead of __WORDSIZE.
7742         (_STAT_VER_LINUX): Likewise.
7743         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7744         __syscall_ulong_t and __syscall_slong_t.
7745         (stat64): Likewise.
7746
7747 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7748
7749         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7750
7751 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7752
7753         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7754
7755 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7756
7757         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7758         __syscall_ulong_t.
7759
7760         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7761         include <bits/wordsize.h>.  Check __x86_64__ instead of
7762         __WORDSIZE.
7763         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7764         defined.
7765         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7766
7767         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7768         include <bits/wordsize.h>.  Check __x86_64__ instead of
7769         __WORDSIZE.
7770         (user_regs_struct): Use "__extension__ unsigned long long"
7771         instead of "unsigned long" if __x86_64__ is defined.
7772         (user): Likewise.  Pad after pointer field if __ILP32__ is
7773         defined.
7774
7775 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7776
7777         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7778         versions 5 to 9.
7779         * configure: Regenerated.
7780         * manual/install.texi (texinfo): Increase version requirement to
7781         4.5 or later.
7782         * INSTALL: Regenerated.
7783
7784         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7785
7786 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7787
7788         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7789
7790         * sysdeps/x86_64/x32/ffs.c: New file.
7791
7792         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7793         __syscall_ulong_t.
7794         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7795         defined.  Use __syscall_ulong_t.
7796         (shminfo): Use __syscall_ulong_t.
7797         (shm_info): Likewise.
7798
7799         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7800         __syscall_ulong_t.
7801
7802         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7803         <bits/wordsize.h>.
7804         (msgqnum_t): Use __syscall_ulong_t.
7805         (msglen_t): Likewise.
7806         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7807         __syscall_ulong_t.
7808
7809         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7810         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7811
7812         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7813
7814         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7815         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7816
7817         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7818         __syscall_slong_t.
7819
7820         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7821         include <bits/wordsize.h>.  Check __x86_64__ instead of
7822         __WORDSIZE.
7823
7824         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7825         "unsigned long long int" if __x86_64__ is defined.
7826         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7827
7828         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7829         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7830         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7831
7832         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7833         <stdint.h>.
7834         (GET_PC): Cast to uintptr_t first.
7835         (GET_FRAME): Likewise.
7836         (GET_STACK): Likewise.
7837
7838         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7839         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7840         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7841         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7842         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7843         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7844         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7845         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7846         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7847         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7848         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7849         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7850         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7851         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7852         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7853         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7854         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7855         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7856         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7857         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7858         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7859         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7860         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7861         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7862         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7863         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7864         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7865         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7866         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7867
7868 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7869
7870         * Makerules (+depfiles): Also collect depfiles from .oS in
7871         $(extra-objs).
7872         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7873         .oS, $(libnldbl-routines)).
7874
7875         * Makerules (native-compile-mkdep-flags): Define.
7876         * sunrpc/Makefile (extra-objs): Add $(addprefix
7877         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7878         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7879         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7880         calling $(make-target-directory).
7881
7882 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7883
7884         * bits/types.h (__snseconds_t): Removed.
7885         * time/time.h (struct timespec): Replace __snseconds_t with
7886         __syscall_slong_t.
7887         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7888         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7889         Likewise.
7890         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7891         (__SNSECONDS_T_TYPE): Likewise.
7892         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7893         (__SNSECONDS_T_TYPE): Likewise.
7894         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7895         (__SNSECONDS_T_TYPE): Likewise.
7896
7897 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7898
7899         * sysdeps/mach/hurd/bits/typesizes.h
7900         (__SYSCALL_SLONG_TYPE): New macro.
7901         (__SYSCALL_ULONG_TYPE): Likewise.
7902
7903 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7904
7905         * bits/types.h (__syscall_slong_t): New type.
7906         (__syscall_ulong_t): Likewise.
7907
7908         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
7909         (__SYSCALL_ULONG_TYPE): Likewise.
7910         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7911         (__SYSCALL_SLONG_TYPE): Likewise.
7912         (__SYSCALL_ULONG_TYPE): Likewise.
7913         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7914         (__SYSCALL_SLONG_TYPE): Likewise.
7915         (__SYSCALL_ULONG_TYPE): Likewise.
7916         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7917         (__SYSCALL_SLONG_TYPE): Likewise.
7918         (__SYSCALL_ULONG_TYPE): Likewise.
7919
7920 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7921
7922         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
7923         Add sigaltstack-offsets.sym.
7924         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
7925         <sigaltstack-offsets.h>.
7926         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
7927         longjmp_msg pointer.
7928         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
7929         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
7930         signal stack.
7931         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
7932
7933 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
7934
7935         * elf/stackguard-macros.h: Remove file.
7936         * sysdeps/generic/stackguard-macros.h: New file.
7937         * sysdeps/i386/stackguard-macros.h: Likewise.
7938         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
7939         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
7940         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7941         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7942         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
7943         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
7944         * sysdeps/x86_64/stackguard-macros.h: Likewise.
7945         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
7946         <elf/stackguard-macros.h>.
7947
7948         [BZ #14109]
7949         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
7950         __aligned__ in attribute.
7951         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
7952         (gregset_t): Likewise.
7953
7954 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7955
7956         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
7957         * sysdeps/x86_64/64/Implies-after: Here.  New file.
7958         * sysdeps/x86_64/x32/Implies-after: New file.
7959
7960 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7961
7962         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
7963         and access return value for _dl_profile_fixup.  Use R10_LP to
7964         load frame size.
7965
7966 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7967
7968         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
7969
7970 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7971
7972         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
7973         * sysdeps/x86_64/x32/sysdep.h: New file.
7974
7975 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7976
7977         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
7978         * sysdeps/x86_64/setjmp.S: Likewise.
7979
7980 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7981
7982         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
7983         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
7984         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
7985         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
7986         remove unused global constant.
7987
7988 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
7989
7990         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
7991         include of <not-cancel.h>.
7992
7993 2012-05-15  Roland McGrath  <roland@hack.frob.com>
7994
7995         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
7996
7997 2012-05-15  Jeff Law  <law@redhat.com>
7998             Andreas Jaeger  <aj@suse.de>
7999
8000         [BZ #13594]
8001         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8002         out from...
8003         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8004         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8005         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8006         code changing __hst_map_handle.map.
8007
8008 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8009
8010         * configure.in (sysnames): Look for Implies-before and Implies-after
8011         files.
8012         * configure: Regenerated.
8013
8014 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8015
8016         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8017         8-byte data alignment with LP_SIZE alignment.
8018
8019 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8020
8021         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8022         into R10_LP.
8023
8024 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8025
8026         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8027
8028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8029
8030         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8031         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8032         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8033         Likewise.
8034         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8035
8036 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8037
8038         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8039         (stackinfo_sub_sp): Likewise.
8040
8041 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8042
8043         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8044         RAX_LP.
8045
8046 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8047
8048         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8049         into R*_LP.
8050
8051 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8052
8053         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8054         sizes into R*_LP.
8055
8056 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8057
8058         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8059
8060 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8061
8062         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8063         into R11_LP and load __x86_64_shared_cache_size_half into
8064         R8_LP.
8065
8066 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8067
8068         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8069         R8_LP.
8070
8071 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8072
8073         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8074         logb for POWER7.
8075         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8076         logbf for POWER7.
8077         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8078         logbl for POWER7.
8079         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8080         powerpc32/power7/fpu/s_logb.c via #include.
8081         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8082         powerpc32/power7/fpu/s_logbf.c via #include.
8083         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8084         powerpc32/power7/fpu/s_logbl.c via #include.
8085
8086 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8087
8088         * README.libm: Remove file.
8089
8090 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8091
8092         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8093         count for x32.  Use R*_LP and omit operand-size suffix.
8094
8095 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8096
8097         * shlib-versions: Move x86_64-.*-linux.* entries to ...
8098         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
8099         * sysdeps/x86_64/x32/shlib-versions: New file.
8100
8101 2012-05-14  Roland McGrath  <roland@hack.frob.com>
8102
8103         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8104         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8105         Use _dl_fatal_printf instead.
8106
8107 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8108
8109         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8110         set if not set by the user.  Do not allow for being unset.
8111         * sysdeps/unix/sysv/linux/configure: Regenerated.
8112
8113 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8114
8115         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8116         the `q' suffix from lea and replace .quad with ASM_ADDR.
8117
8118 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8119
8120         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8121         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8122         instead of $17.
8123         (PTR_DEMANGLE): Likewise.
8124
8125 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8126
8127         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8128         (LP_OP): Likewise.
8129         (ASM_ADDR): Likewise.
8130         (RAX_LP): Likewise.
8131         (RBP_LP): Likewise.
8132         (RBX_LP): Likewise.
8133         (RCX_LP): Likewise.
8134         (RDI_LP): Likewise.
8135         (RSI_LP): Likewise.
8136         (RSP_LP): Likewise.
8137         (R8_LP): Likewise.
8138         (R9_LP): Likewise.
8139         (R10_LP): Likewise.
8140         (R10_LP): Likewise.
8141         (R11_LP): Likewise.
8142         (R12_LP): Likewise.
8143         (R13_LP): Likewise.
8144         (R14_LP): Likewise.
8145         (R15_LP): Likewise.
8146
8147 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8148
8149         * sysdeps/x86_64/x32/dl-machine.h: New file.
8150
8151 2012-05-14  Andreas Jaeger  <aj@suse.de>
8152
8153         * manual/Makefile (subdir): Remove export of subdir.
8154         (all): Remove target.
8155         (.PHONY): Remove all from list.
8156         (mkinstalldirs): Remove.
8157         (.PHONY): Remove installdirs from list.
8158         ($(inst_infodir)/libc.info): Use make-target-directory.
8159         (installdirs): Remove.
8160         (subdir_%): Remove.
8161         (glibc-targets): Remove.
8162         (lib): Remove.
8163         (stubs): Remove.
8164         ($(objpfx)stubs ../po/manual.pot): Remove.
8165         ($(objpfx)stamp%): Remove.
8166         (make-target-directory): Remove.
8167         (subdir_install): Remove.
8168         (routines): Remove.
8169         (aux): Remove.
8170         (sources): Remove.
8171         (objects): Remove.
8172         (headers): Remove.
8173
8174         [BZ #13750]
8175         * manual/.gitignore: Remove, it's not needed anymore.
8176         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8177         all files in it.
8178         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8179         directory.
8180         (texis): Renamed to $(objpfx)texis.
8181         (texis-path): New, contains path to generated files.
8182         (chapters.%): Use texis-path for complete path, add extra argument
8183         libc-texinfo.sh.
8184         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8185         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8186         (summary,texi, stamp-summary): Use complete path of
8187         files. Generate files in build dir.
8188         (dir-add.texi): Build in build dir.
8189         (libm-err.texi,stamp-libm-err): Likewise.
8190         (version.texi, stamp-version): Likewise.
8191         (.%c.texi): Likewise.
8192         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8193         (mostlyclean): Remove target.
8194         (realclean): Remove target.
8195         (generated): Add new variable with contents from mostlyclean and
8196         realclean, remove entries duplicated in common-mostlyclean, add
8197         stamp-libm-err and stamp-version.
8198         (generated-dirs): Add libc directory.
8199         ($(inst_infodir)/libc.info): Install files from build dir.
8200
8201         * manual/install.texi (Configuring and compiling): Adjust since
8202         the info files are not part of the tar ball anymore.
8203
8204 2012-05-14  Andreas Jaeger  <aj@suse.de>
8205
8206         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8207         variable.
8208
8209 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8210
8211         [BZ #13717]
8212         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8213         to 2.2.0 where earlier.
8214         * sysdeps/unix/sysv/linux/configure: Regenerated.
8215         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8216         Remove conditional code.
8217         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8218         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8219         Remove conditional code.
8220         [!__NR_lchown]: Likewise.
8221         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8222         [__NR_lchown]: Likewise.
8223         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8224         comment referencing __ASSUME_LCHOWN_SYSCALL.
8225         * sysdeps/unix/sysv/linux/i386/sigaction.c
8226         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8227         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8228         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8229         Remove conditional code.
8230         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8231         (__protocol_available): Remove #if 0 code.
8232         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8233         conditional code.
8234         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8235         * sysdeps/unix/sysv/linux/kernel-features.h
8236         (__ASSUME_GETCWD_SYSCALL): Don't define.
8237         (__ASSUME_REALTIME_SIGNALS): Likewise.
8238         (__ASSUME_PREAD_SYSCALL): Likewise.
8239         (__ASSUME_PWRITE_SYSCALL): Likewise.
8240         (__ASSUME_POLL_SYSCALL): Likewise.
8241         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8242         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8243         non-SPARC.
8244         (__ASSUME_SIOCGIFNAME): Don't define.
8245         (__ASSUME_MSG_NOSIGNAL): Likewise.
8246         (__ASSUME_SENDFILE): Define unconditionally.
8247         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8248         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8249         conditional code.
8250         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8251         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8252         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8253         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8254         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8255         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8256         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8258         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8259         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8261         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8262         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8264         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8265         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8267         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8268         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8270         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8271         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8273         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8274         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8276         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8277         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8279         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8280         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8281         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8282         Remove conditional code.
8283         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8284         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8285         Remove conditional code.
8286         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8287         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8288         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8289         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8290         Remove conditional code.
8291         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8292         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8293         Remove conditional code.
8294         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8295         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8296         Remove conditional code.
8297         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8298         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8299         Remove conditional code.
8300         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8301         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8302         Remove conditional code.
8303         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8304         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8305         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8306         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8307         * sysdeps/unix/sysv/linux/sigaction.c
8308         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8309         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8310         * sysdeps/unix/sysv/linux/sigpending.c
8311         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8312         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8313         * sysdeps/unix/sysv/linux/sigprocmask.c
8314         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8315         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8316         * sysdeps/unix/sysv/linux/sigsuspend.c
8317         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8318         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8319         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8320         (__libc_missing_rt_sigs): Remove.
8321         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8322         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8323         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8324         Remove conditional code.
8325         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8326         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8327         return 1.
8328         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8329         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8330         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8331         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8332
8333 2012-05-14  Andreas Jaeger  <aj@suse.de>
8334
8335         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8336         it's not used in glibc.
8337         (__coshm1): Likewise.
8338         (__acosh1p): Likewise.
8339         (__sgn): Likewise.
8340
8341         * manual/string.texi (Copying and Concatenation): Add missing
8342         variable in concat example.
8343         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8344
8345 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8346
8347         [BZ #14103]
8348         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8349         __builtin_clzl with __builtin_clzll.
8350
8351 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8352
8353         [BZ #14104]
8354         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8355         libc_freeres_ptr.
8356
8357 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8358
8359         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8360         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8361         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8362         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8363
8364 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8365
8366         * NEWS: Update ia64 info.
8367
8368 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8369
8370         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8371         used as bcopy.
8372
8373 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8374
8375         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8376         * sysdeps/unix/syscalls.list (dup3): Likewise.
8377         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8378         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8379
8380 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8381
8382         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8383         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8384
8385 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8386
8387         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8388         thread pointer.
8389         (TLS_IE): Use mov/add instead of movq/addq to load thread
8390         pointer.
8391         (TLS_GD_PREFIX): New.
8392         (TLS_GD): Use it.
8393
8394 2012-05-11  David S. Miller  <davem@davemloft.net>
8395
8396         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8397         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8398         (_FPU_SETCW): Likewise.
8399
8400 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8401
8402         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8403         is 32-byte aligned.
8404
8405 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8406
8407         [BZ #11837]
8408         * iconvdata/gb18030.c: Update tables.
8409         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8410         characters specially.
8411         (BODY for TO_LOOP): Add encoding of missing ranges.
8412
8413 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8414
8415         [BZ #13673]
8416         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8417         * sysdeps/mach/hurd/dup3.c: Likewise.
8418         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8419         * sysdeps/powerpc/memmove.c:: Likewise.
8420
8421 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8422
8423         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8424         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8425
8426 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8427
8428         * elf/elf.h (R_X86_64_RELATIVE64): New.
8429         (R_X86_64_NUM): Updated.
8430         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8431         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8432         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8433         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8434         tst-quad1pie tst-quad2pie
8435         (modules-names): Add tst-quadmod1 tst-quadmod2.
8436         ($(objpfx)tst-quad1): New dependency.
8437         ($(objpfx)tst-quad2): Likewise.
8438         ($(objpfx)tst-quad1pie): Likewise.
8439         ($(objpfx)tst-quad2pie): Likewise.
8440         * sysdeps/x86_64/tst-quad1.c: New file.
8441         * sysdeps/x86_64/tst-quad1pie.c: New file.
8442         * sysdeps/x86_64/tst-quad2.c: Likewise.
8443         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8444         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8445         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8446         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8447         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8448
8449 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8450
8451         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8452         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8453         * streams/stropts.h (t_scalar_t): Define type.
8454
8455         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8456         (_PATH_PRESERVE): Set to "/var/lib".
8457         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8458
8459         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8460         instead of int.
8461
8462         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8463         if __dir_mkfile succeeded.
8464
8465         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8466         checking for _hurd_dtablesize.  Unlock it right after having
8467         finished _hurd_dtable allocation.
8468
8469 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8470
8471         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8472         * sysdeps/mach/hurd/configure: Regenerated.
8473         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8474         special-casing to...
8475         * sysdeps/gnu/configure.in: ... this new file.
8476         * sysdeps/unix/sysv/linux/configure: Regenerated.
8477         * sysdeps/gnu/configure: New generated file.
8478
8479         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8480         for Linux: use nsec instead of usec, as well as:
8481         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8482         members of type struct timespec.
8483         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8484         New macros.
8485         (struct stat64): Likewise.
8486         (_STATBUF_ST_NSEC): New macro.
8487         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8488
8489         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8490         __strtoul_internal rather than strtoul.
8491
8492 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8493
8494         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8495         and reject them.
8496
8497 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8498
8499         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8500         which preserves existing values.
8501         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8502
8503 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8504
8505         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8506         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8507         greater than FD_SETSIZE.
8508
8509 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8510
8511         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8512         allocated, call __vm_protect to finish enabling the existing space, and
8513         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8514         allocate the remainder.
8515
8516 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8517
8518         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8519         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8520
8521 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8522
8523         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8524         sysdeps/mach/hurd/readlink.c.
8525
8526         * posix/tst-sysconf.c (posix_options): Only use
8527         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8528         _POSIX_SYNCHRONIZED_IO when they are defined
8529         * sysdeps/mach/hurd/bits/posix_opt.h:
8530         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8531         (_XOPEN_REALTIME): Undefine macro.
8532         (_XOPEN_REALTIME_THREADS): Undefine macro.
8533         (_XOPEN_SHM): Undefine macro.
8534         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8535         macro to -1.
8536         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8537         macro to -1.
8538         (_POSIX_ASYNC_IO): Undefine macro.
8539         (_POSIX_PRIORITIZED_IO): Undefine macro.
8540         (_POSIX_SPIN_LOCKS): Define macro to -1.
8541
8542         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8543         SA_NODEFER, SA_RESETHAND.
8544         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8545         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8546         F_DUPFD_CLOEXEC.
8547
8548 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8549
8550         * elf/Makefile (pldd-modules): Define unconditionally.
8551
8552 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8553
8554         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8555
8556 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8557
8558         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8559         Return ENOENT when name is empty.
8560         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8561
8562 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8563
8564         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8565
8566         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8567
8568 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8569
8570         Fix mlock in all cases except non-readable pages.
8571         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8572         instead of VM_PROT_ALL as parameter to __vm_wire function.
8573
8574         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8575         (__mkdir): When path is `/', just fail with EEXIST.
8576         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8577
8578 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8579
8580         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8581         <sys/uio.h> (for writev).
8582         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8583         and <sys/param.h> (for MIN).
8584
8585 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8586
8587         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8588         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8589         if interrupted.
8590
8591 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8592
8593         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8594         Depend on against $(link-rpcuserlibs).
8595
8596 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8597
8598         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8599         (__libc_stack_end): Do not use attribute_relro.
8600         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8601         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8602         to libthread-provided value.
8603         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8604         attribute_relro.
8605
8606 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8607
8608         [BZ #3748]
8609         * bits/libc-lock.h (__libc_once_get): New macro.
8610         * sysdeps/mach/bits/libc-lock.h: Likewise.
8611         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8612         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8613         instead of using implementation details.
8614
8615         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8616         * libio/freopen.c: Likewise.
8617         * libio/freopen64.c: Likewise.
8618         * misc/syslog.c: Likewise.
8619         * nscd/connections.c: Likewise.
8620         * nscd/netgroupcache.c: Likewise.
8621         * sysdeps/posix/getcwd.c: Likewise.
8622
8623 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8624
8625         * math/w_ilogbf.c: Add #include <limits.h>.
8626
8627 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8628
8629         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8630         path instead of returning without unlocking.
8631
8632         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8633         immediate-write ioctls.
8634         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8635
8636 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8637
8638         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8639         __builtin_frame_address instead of making assumptions about the
8640         location of the return address relative to DATA.  Force early load of
8641         the return address.
8642         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8643         __builtin_frame_address.
8644
8645         dup3 for GNU Hurd.
8646         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8647         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8648         implement dup3 and do some further code clean-ups.
8649         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8650         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8651
8652 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8653
8654         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8655
8656         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8657         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8658         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8659         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8660         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8661         d->port.lock.
8662
8663         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8664         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8665         when handler == SIG_ERR, not when handler != SIG_ERR.
8666
8667 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8668
8669         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8670         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8671         definitions.
8672
8673         accept4 for GNU Hurd.
8674         * include/sys/socket.h (__libc_accept4): New prototype.
8675         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8676         to implement __libc_accept4.
8677         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8678         __libc_accept4.
8679         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8680
8681         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8682         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8683         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8684         signal-defines.sym.
8685
8686 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8687
8688         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8689
8690 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8691
8692         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8693         assertion on O_CLOEXEC flag.
8694         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8695         * hurd/intern-fd.c: Likewise.
8696         * hurd/port2fd.c: Likewise.
8697
8698 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8699
8700         [BZ #3906]
8701         * bits/in.h (IPV6_PKTINFO): Define new macro.
8702         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8703
8704 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8705
8706         [BZ #13954]
8707         [BZ #13955]
8708         [BZ #13956]
8709         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8710         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8711         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8712         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8713         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8714         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8715         * math/libm-test.inc (logb_test) : Additional logb tests.
8716
8717 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8718             Andreas Jaeger  <aj@suse.de>
8719
8720         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8721         * configure: Regenerated.
8722         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8723         * config.make.in (link-obsolete-rpc): New substituted variable.
8724         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8725         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8726         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8727         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8728         so that libc.a contains the symbols.
8729         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8730         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8731         * sunrpc/auth_none.c: Likewise.
8732         * sunrpc/auth_unix.c: Likewise.
8733         * sunrpc/authdes_prot.c: Likewise.
8734         * sunrpc/authuxprot.c: Likewise.
8735         * sunrpc/clnt_gen.c: Likewise.
8736         * sunrpc/clnt_perr.c: Likewise.
8737         * sunrpc/clnt_raw.c: Likewise.
8738         * sunrpc/clnt_simp.c: Likewise.
8739         * sunrpc/clnt_tcp.c: Likewise.
8740         * sunrpc/clnt_udp.c: Likewise.
8741         * sunrpc/clnt_unix.c: Likewise.
8742         * sunrpc/des_crypt.c: Likewise.
8743         * sunrpc/des_soft.c: Likewise.
8744         * sunrpc/get_myaddr.c: Likewise.
8745         * sunrpc/key_call.c: Likewise.
8746         * sunrpc/key_prot.c: Likewise.
8747         * sunrpc/netname.c: Likewise.
8748         * sunrpc/pm_getmaps.c: Likewise.
8749         * sunrpc/pm_getport.c: Likewise.
8750         * sunrpc/pmap_clnt.c: Likewise.
8751         * sunrpc/pmap_prot.c: Likewise.
8752         * sunrpc/pmap_prot2.c: Likewise.
8753         * sunrpc/pmap_rmt.c: Likewise.
8754         * sunrpc/publickey.c: Likewise.
8755         * sunrpc/rpc_cmsg.c: Likewise.
8756         * sunrpc/rpc_common.c: Likewise.
8757         * sunrpc/rpc_dtable.c: Likewise.
8758         * sunrpc/rpc_prot.c: Likewise.
8759         * sunrpc/rpc_thread.c: Likewise.
8760         * sunrpc/rtime.c: Likewise.
8761         * sunrpc/svc.c: Likewise.
8762         * sunrpc/svc_auth.c: Likewise.
8763         * sunrpc/svc_raw.c: Likewise.
8764         * sunrpc/svc_run.c: Likewise.
8765         * sunrpc/svc_tcp.c: Likewise.
8766         * sunrpc/svc_udp.c: Likewise.
8767         * sunrpc/svc_unix.c: Likewise.
8768         * sunrpc/svcauth_des.c: Likewise.
8769         * sunrpc/xcrypt.c: Likewise.
8770         * sunrpc/xdr.c: Likewise.
8771         * sunrpc/xdr_array.c: Likewise.
8772         * sunrpc/xdr_float.c: Likewise.
8773         * sunrpc/xdr_intXX_t.c: Likewise.
8774         * sunrpc/xdr_mem.c: Likewise.
8775         * sunrpc/xdr_rec.c: Likewise.
8776         * sunrpc/xdr_ref.c: Likewise.
8777         * sunrpc/xdr_sizeof.c: Likewise.
8778         * sunrpc/xdr_stdio.c: Likewise.
8779
8780 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8781
8782         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8783         change.  Update copyright years.
8784
8785 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8786
8787         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8788
8789 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8790             Joseph Myers  <joseph@codesourcery.com>
8791             Paul Pluzhnikov  <ppluzhnikov@google.com>
8792
8793         [BZ #14012]
8794         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8795         requiring rpcgen.
8796         [cross-compiling] (extra-libs): Likewise.
8797         [cross-compiling] (extra-libs-others): Likewise.
8798         [cross-compiling] (librpcsvc-routines): Likewise.
8799         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8800         [cross-compiling] (omit-deps): Likewise.
8801         (sunrpc-CPPFLAGS): New variable.
8802         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8803         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8804         (cross-rpcgen-objs): New variable.
8805         (extra-objs): Append $(cross-rpcgen-objs).
8806         ($(cross-rpcgen-objs)): New rule.
8807         ($(objpfx)cross-rpcgen): Likewise.
8808         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8809         comment.
8810         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8811         ($(objpfx)x%.stmp): Likewise.
8812         * sunrpc/proto.h [IS_IN_build] (_): Define.
8813         [IS_IN_build] (_libc_intl_domainname): Likewise.
8814
8815 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8816
8817         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8818         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8819         and R_X86_64_TPOFF64.
8820
8821 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8822
8823         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8824         sysdeps/unix/sysv/syscalls.list.
8825         (stime): Likewise.
8826         (utime): Likewise.
8827         * sysdeps/unix/sysv/syscalls.list: Remove file.
8828
8829 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8830
8831         [BZ #3440]
8832         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8833         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8834         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8835         (__LC_IDENTIFICATION): Make these macros useful in #if
8836         expressions, as required by C99.
8837
8838 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8839
8840         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8841         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8842         after this.
8843
8844 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8845
8846         * stdlib/longlong.h: Updated from GCC.
8847
8848 2012-05-09  Andreas Jaeger  <aj@suse.de>
8849
8850         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8851         default is first entry.
8852         (run_mode): Set type.
8853         (main): Remove informal message about syslog.
8854         (options): Fix typo.
8855
8856         [BZ #14053]
8857         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8858         to asm.
8859         (lrint): Likewise.
8860         (llrintf): Likewise.
8861         (llrint): Likewise.
8862         (rint): Likewise.
8863         (rintf): Likewise.
8864         (nearbyint): Likewise.
8865         (nearbyintf): Likewise.
8866
8867 2012-05-09  Andreas Jaeger  <aj@suse.de>
8868             Pedro Alves  <palves@redhat.com>
8869
8870         * nscd/nscd.c (run_mode): Use enum.
8871         (main): Cleanup coding style issue.
8872
8873 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8874             Andreas Jaeger  <aj@suse.de>
8875
8876         * nscd/nscd.c (go_background): Replaced with...
8877         (run_mode): ... this.
8878         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8879         (options): Add -F --foreground.
8880         (main): Implement it.
8881         (parse_opt): Parse it.
8882
8883 2012-05-09  Andreas Jaeger  <aj@suse.de>
8884
8885         [BZ #14083]
8886         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8887         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8888         -Wconversion warning.
8889         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8890         Likewise.
8891
8892 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8893
8894         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8895         == 0.
8896         (LC_ALL): Use macro-int-constant.
8897         (LC_COLLATE): Likewise.
8898         (LC_CTYPE): Likewise.
8899         (LC_MESSAGES): Likewise.
8900         (LC_MONETARY): Likewise.
8901         (LC_NUMERIC): Likewise.
8902         (LC_TIME): Likewise.
8903         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
8904         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8905         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8906         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
8907         Specify type.
8908         [C99-based standards] (float_t): Expect type.
8909         [C99-based standards] (double_t): Expect type.
8910         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
8911         type.
8912         [C99-based standards] (HUGE_VALL): Likewise.
8913         [C99-based standards] (INFINITY): Likewise.
8914         [C99-based standards] (NAN): Likewise.
8915         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
8916         [C99-based standards] (FP_NAN): Likewise.
8917         [C99-based standards] (FP_NORMAL): Likewise.
8918         [C99-based standards] (FP_SUBNORMAL): Likewise.
8919         [C99-based standards] (FP_ZERO): Likewise.
8920         [C99-based standards] (FP_FAST_FMA): Use
8921         optional-macro-int-constant.  Specify type.  Require == 1.
8922         [C99-based standards] (FP_FAST_FMAF): Likewise.
8923         [C99-based standards] (FP_FAST_FMAL): Likewise.
8924         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
8925         [C99-based standards] (FP_ILOGBNAN): Likewise.
8926         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
8927         Specify type.
8928         [C99-based standards] (MATH_ERREXCEPT): Likewise.
8929         [C99-based standards] (math_errhandling): Specify type.
8930         [ISO99 || ISO11] (signgam): Do not allow.
8931         [non-C99-based standards] (copysignf): Do not allow.
8932         [non-C99-based standards] (exp2f): Likewise.
8933         [non-C99-based standards] (log2f): Likewise.
8934         [non-C99-based standards] (modff): Allow.
8935         [non-C99-based standards] (erff): Do not allow.
8936         [non-C99-based standards] (erfcf): Likewise.
8937         [non-C99-based standards] (gammaf): Likewise.
8938         [non-C99-based standards] (hypotf): Likewise.
8939         [non-C99-based standards] (j0f): Likewise.
8940         [non-C99-based standards] (j1f): Likewise.
8941         [non-C99-based standards] (jnf): Likewise.
8942         [non-C99-based standards] (lgammaf): Likewise.
8943         [non-C99-based standards] (tgammaf): Likewise.
8944         [non-C99-based standards] (y0f): Likewise.
8945         [non-C99-based standards] (y1f): Likewise.
8946         [non-C99-based standards] (ynf): Likewise.
8947         [non-C99-based standards] (isnanf): Likewise.
8948         [non-C99-based standards] (acoshf): Likewise.
8949         [non-C99-based standards] (asinhf): Likewise.
8950         [non-C99-based standards] (atanhf): Likewise.
8951         [non-C99-based standards] (cbrtf): Likewise.
8952         [non-C99-based standards] (expm1f): Likewise.
8953         [non-C99-based standards] (ilogbf): Likewise.
8954         [non-C99-based standards] (log1pf): Likewise.
8955         [non-C99-based standards] (logbf): Likewise.
8956         [non-C99-based standards] (nextafterf): Likewise.
8957         [non-C99-based standards] (remainderf): Likewise.
8958         [non-C99-based standards] (rintf): Likewise.
8959         [non-C99-based standards] (scalbf): Likewise.
8960         [non-C99-based standards] (copysignl): Likewise.
8961         [non-C99-based standards] (exp2l): Likewise.
8962         [non-C99-based standards] (log2l): Likewise.
8963         [non-C99-based standards] (modfl): Allow.
8964         [non-C99-based standards] (erfl): Do not allow.
8965         [non-C99-based standards] (erfcl): Likewise.
8966         [non-C99-based standards] (gammal): Likewise.
8967         [non-C99-based standards] (hypotl): Likewise.
8968         [non-C99-based standards] (j0l): Likewise.
8969         [non-C99-based standards] (j1l): Likewise.
8970         [non-C99-based standards] (jnl): Likewise.
8971         [non-C99-based standards] (lgammal): Likewise.
8972         [non-C99-based standards] (tgammal): Likewise.
8973         [non-C99-based standards] (y0l): Likewise.
8974         [non-C99-based standards] (y1l): Likewise.
8975         [non-C99-based standards] (ynl): Likewise.
8976         [non-C99-based standards] (isnanl): Likewise.
8977         [non-C99-based standards] (acoshl): Likewise.
8978         [non-C99-based standards] (asinhl): Likewise.
8979         [non-C99-based standards] (atanhl): Likewise.
8980         [non-C99-based standards] (cbrtl): Likewise.
8981         [non-C99-based standards] (expm1l): Likewise.
8982         [non-C99-based standards] (ilogbl): Likewise.
8983         [non-C99-based standards] (log1pl): Likewise.
8984         [non-C99-based standards] (logbl): Likewise.
8985         [non-C99-based standards] (nextafterl): Likewise.
8986         [non-C99-based standards] (remainderl): Likewise.
8987         [non-C99-based standards] (rintl): Likewise.
8988         [non-C99-based standards] (scalbl): Likewise.
8989         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8990         [non-C99-based standards] (FP_*): Do not allow.
8991         [C99-based standards] (FP_*): Change to
8992         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
8993         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8994         allow.
8995         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
8996         (SIG_ERR): Likewise.
8997         [X/Open-based standards] (SIG_HOLD): Likewise.
8998         (SIG_IGN): Likewise.
8999         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9000         positive value.
9001         (SIGFPE): Likewise.
9002         (SIGILL): Likewise.
9003         (SIGINT): Likewise.
9004         (SIGSEGV): Likewise.
9005         (SIGTER): Likewise.
9006         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9007         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9008         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9009         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9010         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9011         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9012         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9013         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9014         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9015         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9016         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9017         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9018         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9019         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9020         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9021         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9022         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9023         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9024         [X/Open-based standards] (SIGTRAP): Likewise.
9025         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9026         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9027         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9028         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9029         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9030         allow.
9031
9032 2012-05-08  Ian Wienand  <ianw@vmware.com>
9033
9034         [BZ #14080]
9035         * time/tzset.c (__tzset_parse_tz): Update default rules for
9036         daylight time changes in the Energy Policy Act of 2005.
9037
9038 2012-05-09  Andreas Jaeger  <aj@suse.de>
9039
9040         [BZ #13983]
9041         * elf/ldconfig.c (parse_conf): Change string to make clear that
9042         ldconfig only issued a warning if ld.so.conf does not exist.
9043
9044 2012-05-08  David S. Miller  <davem@davemloft.net>
9045
9046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9047         movxtod instead of popping the value on the stack.
9048
9049         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9050
9051 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9052
9053         * config.h.in: Add HAVE_ARM_PCS_VFP.
9054
9055 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9056
9057         [BZ #13979]
9058         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9059         checking but the checks are disabled for any reason.
9060
9061 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9062
9063         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9064         and ELF64_R_TYPE with ELFW(R_TYPE).
9065
9066 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9067
9068         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9069         (ulimit): Likewise.
9070
9071         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9072         (settimeofday): Likewise.
9073
9074 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9075
9076         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9077         a struct th_u2 inside the union, and move tu_block/tu_code into
9078         a new th_u3 union of tu_block/tu_code inside of that.  Move
9079         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9080         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9081         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9082         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9083         (th_stuff): Change to th_u1.tu_stuff.
9084         (th_data): Define.
9085         (th_msg): Change to th_u1.th_u2.tu_data.
9086
9087 2012-05-07  David S. Miller  <davem@davemloft.net>
9088
9089         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9090
9091         [BZ #14074]
9092         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9093         (SETUP_PIC_REG): Use it.
9094         (SETUP_PIC_REG_LEAF): Use it.
9095
9096 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
9097
9098         [BZ #13885]
9099         [BZ #13923]
9100         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9101         USE_AS_EXPM1L.
9102         (EXPL_FINITE): Likewise.
9103         (FLDLOG): Likewise.
9104         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9105         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9106         e_expl.S.
9107         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9108         USE_AS_EXPM1L.
9109         (EXPL_FINITE): Likewise.
9110         (FLDLOG): Likewise.
9111         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9112         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9113         e_expl.S.
9114         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9115         test of -max_value argument for long double.
9116         * sysdeps/i386/fpu/libm-test-ulps: Update.
9117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9118
9119 2012-05-06  David S. Miller  <davem@davemloft.net>
9120
9121         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9122         quad soft-float symbols whose references which are compiler
9123         generated.
9124         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9125
9126 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9127
9128         [BZ #13884]
9129         [BZ #13914]
9130         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9131         USE_AS_EXP10L.
9132         (EXPL_FINITE): Likewise.
9133         (FLDLOG): Likewise.
9134         (c0): Likewise.
9135         (c1): Likewise.
9136         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9137         Adjust comments for base varying.
9138         (__expl_finite): Change alias to EXPL_FINITE.
9139         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9140         e_expl.S.
9141         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9142         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9143         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9144         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9145         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9146         USE_AS_EXP10L.
9147         (EXPL_FINITE): Likewise.
9148         (FLDLOG): Likewise.
9149         (c0): Likewise.
9150         (c1): Likewise.
9151         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9152         Adjust comments for base varying.
9153         (__expl_finite): Change alias to EXPL_FINITE.
9154         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9155         tests for bugs.
9156         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9157
9158         [BZ #14064]
9159         * math/libm-test.inc (check_float_internal): Correct ulp
9160         calculation for subnormal expected results.
9161
9162 2012-05-06  Andreas Jaeger  <aj@suse.de>
9163
9164         * Makeconfig (+math-flags): New, set to -frounding-math.
9165         (+cflags): Add +math-flags so that all of glibc gets compiled with
9166         it.
9167
9168         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9169
9170 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9171
9172         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9173         Disable one test.
9174
9175         [BZ #13787]
9176         [BZ #13922]
9177         [BZ #14036]
9178         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9179         (__ieee754_expl): Allow for and saturate large arguments.
9180         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9181         (u_threshold): Likewise.
9182         (__exp): Call __ieee754_exp before checking for overflow and
9183         underflow.
9184         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9185         (u_threshold): Likewise.
9186         (__expf): Call __ieee754_expf before checking for overflow and
9187         underflow.
9188         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9189         (u_threshold): Likewise.
9190         (__expl): Call __ieee754_expl before checking for overflow and
9191         underflow.
9192         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9193         (__ieee754_expl): Allow for and saturate large arguments.
9194         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9195         missing overflow exception on overflow.
9196         (expm1_test): Do not allow missing overflow exception on overflow.
9197
9198         * sysdeps/i386/fpu/e_expl.c: Move to ...
9199         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9200         rather than using inline asm.
9201         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9202         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9203         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9204
9205         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9206         (nice): Likewise.
9207         (poll): Likewise.
9208         (signal): Likewise.
9209         (time): Likewise.
9210         (times): Likewise.
9211
9212 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9213
9214         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9215         sysdeps/unix/common/syscalls.list.
9216         (fchmod): Likewise.
9217         (fchown): Likewise.
9218         (ftruncate): Likewise.
9219         (getrusage): Likewise.
9220         (gettimeofday): Likewise.
9221         (setpgid): Likewise.
9222         (setregid): Likewise.
9223         (setreuid): Likewise.
9224         (sigaction): Likewise.
9225         (truncate): Likewise.
9226         (vhangup): Likewise.
9227         * sysdeps/unix/common/syscalls.list: Remove file.
9228         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9229         * sysdeps/unix/sysv/linux/Implies: Likewise.
9230
9231 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9232
9233         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9234         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9235         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9236         Moved to ...
9237         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9238         Here.
9239         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9240         to ...
9241         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9242         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9243         to ...
9244         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9245         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9246         to ...
9247         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9248         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9249         to ...
9250         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9251         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9252         to ...
9253         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9254         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9255         to ...
9256         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9257         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9258         to ...
9259         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9260         Here.
9261         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9262         to ...
9263         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9264         Here.
9265         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9266         to ...
9267         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9268         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9269         Moved to ...
9270         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9271         Here.
9272         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9273         to ...
9274         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9275
9276 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9277
9278         * sysdeps/unix/common/bits/dirent.h: Remove file.
9279         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9280
9281         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9282         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9283         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9284         * sysdeps/unix/bsd/isatty.c: Likewise.
9285         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9286         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9287         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9288
9289 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9290
9291         [BZ #13563]
9292         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9293         long double comparison inaccuracies.
9294         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9295         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9296
9297 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9298
9299         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9300         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9301
9302 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9303
9304         [BZ #14049]
9305         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9306         nonzero digits before rounding a hex value.
9307         * stdlib/tst-strtod.c (tests): Add another test.
9308
9309 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9310
9311         * sysdeps/s390/fpu/libm-test-ulps: Update.
9312
9313 2012-05-03  Andreas Jaeger  <aj@suse.de>
9314
9315         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9316         does not get optimized out.
9317         (malloc_opt_barrier): New.
9318
9319 2012-05-03  Andreas Jaeger  <aj@suse.de>
9320             Roland McGrath  <roland@hack.frob.com>
9321
9322         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9323         intermediate file deletion.
9324         (generated): Add .symlist files.
9325
9326 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9327
9328         [BZ #13775]
9329         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9330         Redirect under this condition.
9331         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9332         [__USE_GNU] (__dprintf_chk): Not under this condition.
9333         [__USE_GNU] (__vdprintf_chk): Likewise.
9334         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9335         under this condition.
9336         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9337         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9338         [__USE_XOPEN2K8] (vdprintf): Likewise.
9339         [__USE_GNU] (__dprintf_chk): Not under this condition.
9340         [__USE_GNU] (__vdprintf_chk): Likewise.
9341         [__USE_GNU] (dprintf): Likewise.
9342         [__USE_GNU] (vdprintf): Likewise.
9343
9344 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9345
9346         * elf/Makefile (common-generated): Set this instead of generated for
9347         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9348         $(all-built-dso)-derived lists.
9349
9350 2012-05-03  Andreas Jaeger  <aj@suse.de>
9351
9352         * sysdeps/i386/fpu/libm-test-ulps: Update.
9353
9354         * FAQ: Removed.
9355         * FAQ.in: Likewise.
9356         * scripts/gen-FAQ.pl: Likewise.
9357         * manual/install.texi (Installation): Point to online location of
9358         FAQ.
9359         * Makefile (files-for-dist): Remove FAQ.
9360         (FAQ): Remove.
9361
9362 2012-05-02  Allan McRae  <allan@archlinux.org>
9363
9364         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9365         (LDFLAGS-reldepmod5.so): Likewise.
9366         (LDFLAGS-reldep6mod1.so): Likewise.
9367         (LDFLAGS-reldep6mod4.so): Likewise.
9368         (LDFLAGS-reldep8mod3.so): Likewise.
9369         (LDFLAGS-unload4mod1.so): Likewise.
9370         (LDFLAGS-unload4mod2.so): Likewise.
9371         (LDFLAGS-tst-initorder): Likewise.
9372         (LDFLAGS-tst-initordera2.so): Likewise.
9373         (LDFLAGS-tst-initordera3.so): Likewise.
9374         (LDFLAGS-tst-initordera4.so): Likewise.
9375         (LDFLAGS-tst-initorderb2.so): Likewise.
9376         (LDFLAGS-noload): Likewise.
9377         (LDFLAGS-next): Likewise.
9378         (LDFLAGS-order2mod1.so): Likewise.
9379         (LDFLAGS-order2mod2.so): Likewise.
9380         (LDFLAGS-tst-initorder2): Likewise.
9381         (LDFLAGS-tst-initorder2a.so): Likewise.
9382         (LDFLAGS-tst-initorder2b.so): Likewise.
9383         (LDFLAGS-tst-initorder2c.so): Likewise.
9384         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9385
9386 2012-05-02  David S. Miller  <davem@davemloft.net>
9387
9388         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9389
9390 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9391
9392         [BZ #14055]
9393         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9394
9395 2012-05-02  Andreas Jaeger  <aj@suse.de>
9396
9397         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9398         since we manipulate rounding mode.
9399         (CPPFLAGS-test-idouble.c): Likewise.
9400         (CPPFLAGS-test-ifloat.c): Likewise.
9401         (CFLAGS-test-ldouble.c): Likewise.
9402         (CFLAGS-test-double.c): Likewise.
9403         (CFLAGS-test-float.c): Likewise.
9404         (CFLAGS-test-misc.c): Likewise.
9405         (CFLAGS-test-test-fenv.c): Likewise.
9406
9407 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9408
9409         [BZ #2550]
9410         [BZ #2570]
9411         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9412         comparisons to determine direction to adjust input.
9413
9414 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9415
9416         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9417         output to the target.
9418
9419         * scripts/localplt.awk: New file.
9420         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9421         (check-localplt-CFLAGS): Variable removed.
9422         ($(all-built-dso:=.jmprel)): New static pattern rule.
9423         (generated): Add those targets.
9424         (localplt-built-dso): New variable.
9425         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9426
9427         * elf/check-localplt.c: File removed.
9428
9429         * scripts/check-execstack.awk: New file.
9430         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9431         (check-execstack-CFLAGS): Variable removed.
9432         ($(objpfx)check-execstack.h): Target removed.
9433         ($(objpfx)execstack-default): New target.
9434         (generated): Add that instead of check-execstack.h.
9435         ($(all-built-dso:=.phdr)): New static pattern rule.
9436         (generated): Add those targets.
9437         * elf/check-execstack.c: File removed.
9438
9439         * scripts/check-textrel.awk: New file.
9440         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9441         (check-textrel-CFLAGS): Variable removed.
9442         (all-built-dso): Use := to define.o
9443         ($(all-built-dso:=.dyn)): New static pattern rule.
9444         (generated): Add those targets.
9445         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9446         * config.make.in (READELF): New substituted variable.
9447         * elf/check-textrel.c: File removed.
9448
9449 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9450
9451         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9452         allow.
9453         * conform/data/ctype.h-data [C99-based standards] (isblank):
9454         Expect function.
9455         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9456         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9457         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9458         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9459         Specify type.  Require positive value.
9460         (EILSEQ): Likewise.
9461         (ERANGE): Likewise.
9462         [ISO || POSIX] (EILSEQ): Do not expect.
9463         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9464         Specify type.  Require positive value.
9465         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9466         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9467         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9468         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9469         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9470         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9471         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9472         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9473         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9474         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9475         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9476         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9477         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9478         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9479         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9480         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9481         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9482         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9483         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9484         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9485         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9486         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9487         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9488         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9489         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9490         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9491         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9492         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9493         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9494         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9495         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9496         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9497         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9498         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9499         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9500         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9501         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9502         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9503         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9504         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9505         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9506         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9507         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9508         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9509         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9510         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9511         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9512         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9513         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9514         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9515         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9516         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9517         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9518         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9519         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9520         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9521         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9522         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9523         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9524         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9525         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9526         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9527         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9528         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9529         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9530         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9531         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9532         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9533         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9534         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9535         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9536         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9537         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9538         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9539         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9540         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9541         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9542         Require >= 2.
9543         (FLT_ROUNDS): Expect as macro, not constant.
9544         (FLT_MANT_DIG): Use macro-int-constant.
9545         (DBL_MANT_DIG): Likewise.
9546         (LDBL_MANT_DIG): Likewise.
9547         (FLT_DIG): Likewise.
9548         (DBL_DIG): Likewise.
9549         (LDBL_DIG): Likewise.
9550         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9551         (DBL_MIN_EXP): Likewise.
9552         (LDBL_MIN_EXP): Likewise.
9553         (FLT_MAX_EXP): Use macro-int-constant.
9554         (DBL_MAX_EXP): Likewise.
9555         (LDBL_MAX_EXP): Likewise.
9556         (FLT_MAX_10_EXP): Likewise.
9557         (DBL_MAX_10_EXP): Likewise.
9558         (LDBL_MAX_10_EXP): Likewise.
9559         (FLT_MAX): Use macro-constant.
9560         (DBL_MAX): Likewise.
9561         (LDBL_MAX): Likewise.
9562         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9563         (DBL_EPSILON): Likewise.
9564         (LDBL_EPSILON): Likewise.
9565         (FLT_MIN): Likewise.
9566         (DBL_MIN): Likewise.
9567         (LDBL_MIN): Likewise.
9568         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9569         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9570         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9571         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9572         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9573         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9574         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9575         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9576         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9577         [ISO11] (FLT_TRUE_MIN): Likewise.
9578         [ISO11] (LDBL_TRUE_MIN): Likewise.
9579         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9580         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9581         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9582         (SCHAR_MAX): Likewise.
9583         (UCHAR_MAX): Likewise.
9584         (CHAR_MIN): Likewise.
9585         (CHAR_MAX): Likewise.
9586         (MB_LEN_MAX): Use macro-int-constant.
9587         (SHRT_MIN): Use macro-int-constant.  Specify type.
9588         (SHRT_MAX): Likewise.
9589         (USHRT_MAX): Likewise.
9590         (INT_MAX): Likewise.
9591         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9592         bound negative.
9593         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9594         bound with "U".
9595         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9596         bound with "L".
9597         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9598         bound negative.  Suffix upper bound with "L".
9599         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9600         bound with "UL".
9601         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9602         Specify type.
9603         [C99-based standards] (LLONG_MAX): Likewise.
9604         [C99-based standards] (ULLONG_MAX): Likewise.
9605         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9606         == 0.
9607         [ISO11] (max_align_t): Require type.
9608         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9609
9610         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9611         from $CFLAGS, without defining away __attribute__ calls.
9612         (checknamespace): Use $CFLAGS_namespace.
9613
9614         * conform/conformtest.pl (@keywords): Only include C99 keywords
9615         for standards based on C99 or C11.
9616
9617         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9618         Disable tests.
9619         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9620         UNIX98]: Likewise.
9621
9622         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9623         usability of symbols in #if.
9624
9625         * conform/conformtest.pl: If macro or constant types start
9626         "promoted:", expect the symbol to be of the following type
9627         promoted by the integer promotions.
9628
9629         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9630         in one place.  Also handle "macro-constant".
9631
9632         * conform/conformtest.pl: Only accept expected macro values with
9633         "==".  Parse all "macro" lines in one place.
9634         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9635
9636         * conform/conformtest.pl: Handle braced types on "constant" lines
9637         instead of handling "typed-constant".
9638         * conform/data/signal.h-data: Use "constant" instead of
9639         "typed-constant".
9640
9641         * conform/conformtest.pl: Handle "optional-" at start of lines in
9642         one place rather than duplicating several cases.  Handle each
9643         format of "macro" line with initial "optional-".
9644
9645         * conform/conformtest.pl: Only accept expected constant or
9646         optional-constant values with "==".  Parse all "constant" lines in
9647         one place.  Parse all "optional-constant" lines in one place.
9648         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9649         * conform/data/fmtmsg.h-data: Likewise.
9650         * conform/data/netinet/in.h-data: Likewise.
9651         * conform/data/tar.h-data: Likewise.
9652         * conform/data/limits.h-data: Use "==" form on "constant" and
9653         "optional-constant" lines.
9654
9655         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9656         Use -std=c99 for XOPEN2K.
9657         (@knownproblems): Remove.
9658         (newtoken): Don't check %isknown.
9659
9660         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9661         Do not expect macro.
9662         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9663         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9664         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9665         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9666         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9667         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9668         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9669         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9670         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9671         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9672         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9673         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9674         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9675         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9676         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9677         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9678         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9679         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9680         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9681         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9682         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9683         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9684         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9685         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9686         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9687         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9688         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9689         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9690         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9691         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9692         [XPG3] (acosh): Likewise.
9693         [XPG3] (asinh): Likewise.
9694         [XPG3] (atanh): Likewise.
9695         [XPG3] (cbrt): Likewise.
9696         [XPG3] (expm1): Likewise.
9697         [XPG3] (ilogb): Likewise.
9698         [XPG3] (log1p): Likewise.
9699         [XPG3] (logb): Likewise.
9700         [XPG3] (nextafter): Likewise.
9701         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9702         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9703         [XPG3] (remainder): Likewise.
9704         [XPG3] (rint): Likewise.
9705         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9706         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9707         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9708         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9709         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9710         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9711         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9712         [UNIX98 || XOPEN2K] (scalb): Expect.
9713         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9714         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9715         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9716         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9717         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9718         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9719         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9720         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9721         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9722         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9723         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9724         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9725         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9726         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9727         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9728         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9729         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9730         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9731         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9732         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9733         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9734         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9735         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9736         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9737         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9738         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9739         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9740         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9741         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9742         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9743         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9744         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9745         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9746         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9747         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9748         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9749         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9750         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9751         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9752         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9753         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9754         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9755         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9756         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9757         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9758         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9759         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9760         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9761         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9762         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9763         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9764         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9765         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9766         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9767         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9768         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9769         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9770         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9771         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9772         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9773         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9774         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9775         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9776         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9777         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9778         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9779         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9780         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9781         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9782         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9783         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9784         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9785         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9786         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9787         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9788         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9789         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9790         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9791         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9792         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9793         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9794         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9795         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9796         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9797         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9798         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9799         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9800         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9801         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9802         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9803         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9804         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9805         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9806         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9807         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9808         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9809         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9810         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9811         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9812         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9813         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9814         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9815         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9816         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9817         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9818         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9819         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9820         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9821         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9822         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9823         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9824         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9825         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9826         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9827         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9828         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9829         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9830         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9831         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9832         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9833         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9834         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9835         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9836         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9837         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9838         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9839         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9840         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9841         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9842         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9843         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9844         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9845         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9846         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9847         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9848         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9849         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9850
9851         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9852         _XOPEN_SOURCE_EXTENDED for XPG4.
9853
9854         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9855
9856         * Makeconfig (localtime): Remove variable.
9857         (inst_localtime-file): Likewise.
9858
9859 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9860
9861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9862         Update.
9863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9864         Update.
9865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9866         Update.
9867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9868         Update.
9869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9870         Update.
9871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9872         Update.
9873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9874         Update.
9875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9876         Update.
9877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9878         Update.
9879
9880 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9881
9882         [BZ #2550]
9883         [BZ #2570]
9884         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9885         comparisons to determine direction to adjust input.
9886         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9887         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9888         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9889         Likewise.
9890         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9891         Likewise.
9892         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9893         Likewise.
9894         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9895         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9896         Likewise.
9897         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9898         Likewise.
9899         * math/libm-test.inc (nexttoward_test): Add more tests.
9900
9901 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9902
9903         [BZ #14040]
9904         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
9905         in version GLIBC_2.1, not GLIBC_2.0.
9906         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
9907         Likewise.
9908
9909 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
9910
9911         [BZ #13942]
9912         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
9913         (1 - x) * (1 + x).
9914         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9915         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
9916         * math/libm-test.inc (acos_test): Add more tests.
9917         (asin_test): Likewise.
9918         * sysdeps/i386/fpu/libm-test-ulps: Update.
9919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9920
9921         [BZ #14034]
9922         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
9923         of square root.
9924         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
9925         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
9926         * math/libm-test.inc (acos_test_tonearest): New function.
9927         (acos_test_towardzero): Likewise.
9928         (acos_test_downward): Likewise.
9929         (acos_test_upward): Likewise.
9930         (asin_test_tonearest): Likewise.
9931         (asin_test_towardzero): Likewise.
9932         (asin_test_downward): Likewise.
9933         (asin_test_upward): Likewise.
9934         (main): Call the new functions.
9935         * sysdeps/i386/fpu/libm-test-ulps: Update.
9936         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9937
9938         [BZ #13884]
9939         [BZ #13924]
9940         * math/e_exp10.c: Include <float.h>.
9941         (__ieee754_exp10): Handle underflow here rather than multiplying
9942         large negative argument by M_LN10.
9943         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
9944         of __ieee754_expf.
9945         * math/e_exp10l.c: Include <float.h>.
9946         (__ieee754_exp10l): Handle underflow here rather than multiplying
9947         large negative argument by M_LN10l.
9948         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
9949         spurious overflow exception on underflow.
9950
9951 2012-04-29  Marek Polacek  <polacek@redhat.com>
9952
9953         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
9954         (__fortify_function): New macro.
9955         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
9956         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
9957         __extern_always_inline.
9958         * libio/bits/stdio2.h: Likewise.
9959         * libio/bits/stdio.h: Likewise.
9960         * string/string.h: Likewise.
9961         * string/bits/string3.h: Likewise.
9962         * include/stdio.h: Likewise.
9963         * stdlib/bits/stdlib.h: Likewise.
9964         * stdlib/stdlib.h: Likewise.
9965         * rt/bits/mqueue2.h: Likewise.
9966         * rt/mqueue.h: Likewise.
9967         * posix/bits/unistd.h: Likewise.
9968         * posix/unistd.h: Likewise.
9969         * io/bits/poll2.h: Likewise.
9970         * io/bits/fcntl2.h: Likewise.
9971         * io/fcntl.h: Likewise.
9972         * io/sys/poll.h: Likewise.
9973         * misc/bits/syslog.h: Likewise.
9974         * misc/bits/syslog-ldbl.h: Likewise.
9975         * misc/sys/syslog.h: Likewise.
9976         * socket/bits/socket2.h: Likewise.
9977         * socket/sys/socket.h: Likewise.
9978         * debug/tst-chk1.c: Likewise.
9979         * wcsmbs/bits/wchar2.h: Likewise.
9980         * wcsmbs/bits/wchar-ldbl.h: Likewise.
9981         * wcsmbs/wchar.h: Likewise.
9982
9983 2012-04-29  Andreas Jaeger  <aj@suse.de>
9984
9985         * Makerules (tests): Remove enable-check-abi protection.
9986         (check-abi-warn): Remove.
9987         (check-abi-%): Remove check-abi-warn usage.
9988
9989         * configure.in: Remove check-abi configure option.
9990         * configure: Regenerated.
9991         * config.make.in (enable-check-abi): Remove.
9992
9993 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
9994
9995         [BZ #14033]
9996         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
9997         double functions to double *_finite functions.
9998
9999         [BZ #13941]
10000         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10001         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10002         LDBL_MIN_EXP.
10003         * stdio-common/Makefile (tests): Add tst-sprintf3.
10004         * stdio-common/tst-sprintf3.c: New file.
10005
10006         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10007         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10008
10009 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10010
10011         * conform/conformtest.pl: Remove duplicate typed-constant
10012         handling.
10013
10014 2012-04-28  David S. Miller  <davem@davemloft.net>
10015
10016         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10017         (check-abi-%): Remove AWK script prerequisite and explicit
10018         abilist directory.
10019         (check-abi): Rewrite to just diff the symlist with the abilist.
10020         (config-tls, config-abi-config): Delete, no longer used.
10021         (update-abi-%): Remove AWK script and explicit abilist directory.
10022         (update-abi): Rewrite to simply compare and conditionally copy the
10023         symlist and the sysdep abilist file.  Remove update-abi-config
10024         checks.
10025         * abilist/ld.abilist: Remove.
10026         * abilist/libBrokenLocale.abilist: Remove.
10027         * abilist/libanl.abilist: Remove.
10028         * abilist/libcrypt.abilist: Remove.
10029         * abilist/libdl.abilist: Remove.
10030         * abilist/librt.abilist: Remove.
10031         * abilist/libthread_db.abilist: Remove.
10032         * abilist/libutil.abilist: Remove.
10033         * scripts/extract-abilist.awk: Remove.
10034         * scripts/merge-abilist.awk: Remove.
10035         * sysdeps/generic/libcidn.abilist: New file.
10036         * sysdeps/generic/libnss_compat.abilist: New file.
10037         * sysdeps/generic/libnss_db.abilist: New file.
10038         * sysdeps/generic/libnss_dns.abilist: New file.
10039         * sysdeps/generic/libnss_files.abilist: New file.
10040         * sysdeps/generic/libnss_hesiod.abilist: New file.
10041         * sysdeps/generic/libnss_nis.abilist: New file.
10042         * sysdeps/generic/libnss_nisplus.abilist: New file.
10043         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10044         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10045         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10046         file.
10047         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10048         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10049         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10050         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10051         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10052         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10053         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10054         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10055         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10056         file.
10057         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10058         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10059         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10060         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10061         file.
10062         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10063         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10064         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10065         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10066         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10067         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10068         file.
10069         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10070         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10071         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10072         file.
10073         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10074         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10075         New file.
10076         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10077         New file.
10078         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10079         New file.
10080         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10081         New file.
10082         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10083         New file.
10084         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10085         New file.
10086         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10087         New file.
10088         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10089         New file.
10090         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10091         New file.
10092         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10093         New file.
10094         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10095         New file.
10096         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10097         New file.
10098         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10099         New file.
10100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10101         file.
10102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10103         New file.
10104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10105         New file.
10106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10107         file.
10108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10109         New file.
10110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10111         New file.
10112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10113         file.
10114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10115         New file.
10116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10117         New file.
10118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10119         New file.
10120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10121         New file.
10122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10123         New file.
10124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10125         New file.
10126         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10127         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10128         file.
10129         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10130         New file.
10131         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10132         file.
10133         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10134         file.
10135         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10136         file.
10137         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10138         file.
10139         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10140         file.
10141         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10142         New file.
10143         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10144         file.
10145         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10146         file.
10147         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10148         New file.
10149         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10150         file.
10151         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10152         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10153         file.
10154         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10155         New file.
10156         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10157         file.
10158         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10159         file.
10160         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10161         file.
10162         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10163         file.
10164         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10165         file.
10166         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10167         New file.
10168         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10169         file.
10170         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10171         file.
10172         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10173         New file.
10174         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10175         file.
10176         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10177         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10178         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10179         file.
10180         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10181         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10182         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10183         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10184         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10185         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10186         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10187         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10188         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10189         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10190         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10191         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10192         file.
10193         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10194         New file.
10195         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10196         file.
10197         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10198         file.
10199         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10200         file.
10201         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10202         file.
10203         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10204         file.
10205         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10206         New file.
10207         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10208         New file.
10209         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10210         file.
10211         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10212         New file.
10213         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10214         file.
10215         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10216         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10217         file.
10218         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10219         New file.
10220         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10221         file.
10222         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10223         file.
10224         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10225         file.
10226         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10227         file.
10228         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10229         file.
10230         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10231         New file.
10232         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10233         New file.
10234         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10235         file.
10236         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10237         New file.
10238         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10239         file.
10240
10241 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10242
10243         * conform/conformtest.pl: Fix typo in handling typed-constant from
10244         allow-header.
10245
10246 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10247
10248         * README: Cut down references to pre-2.6 Linux kernels and
10249         Linuxthreads.  Update lists of configurations in libc and ports
10250         and sort alphabetically.  Say "or newer" with Linux kernel version
10251         requirements.
10252
10253         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10254
10255 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10256
10257         [BZ #887]
10258         * math/libm-test.inc (logb_test_downward): New test to expose
10259         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10260         rounding mode.
10261
10262 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10263
10264         [BZ #14027]
10265         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10266         to be done.
10267         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10268         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10269
10270 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10271
10272         * sysdeps/unix/i386/brk.S: Remove file.
10273         * sysdeps/unix/i386/dl-brk.S: Likewise.
10274         * sysdeps/unix/i386/pipe.S: Likewise.
10275         * sysdeps/unix/i386/sigreturn.S: Likewise.
10276         * sysdeps/unix/i386/syscall.S: Likewise.
10277         * sysdeps/unix/i386/vfork.S: Likewise.
10278         * sysdeps/unix/i386/wait.S: Likewise.
10279
10280         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10281         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10282
10283         * configure.in (arm*-none*): Do not allow without
10284         --enable-hacker-mode.
10285         (netbsd*): Remove case setting base_os.
10286         (386bsd*): Likewise.
10287         (freebsd*): Likewise.
10288         (bsdi*): Likewise.
10289         (osf*): Likewise.
10290         (sunos*): Likewise.
10291         (ultrix*): Likewise.
10292         (newsos*): Likewise.
10293         (dynix*): Likewise.
10294         (*bsd*): Likewise.
10295         (sysv*): Likewise.
10296         (isc*): Likewise.
10297         (esix*): Likewise.
10298         (sco*): Likewise.
10299         (minix*): Likewise.
10300         (irix4*): Likewise.
10301         (irix6*): Likewise.
10302         (solaris[2-9]*): Likewise.
10303         (none): Likewise.
10304         * configure: Regenerated.
10305
10306 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10307
10308         [BZ #11521]
10309         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10310         overflow or cancellation in calculating denominator.
10311         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10312         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10313         down expression to avoid unexpected rounding in newer GCCs.
10314         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10315
10316 2012-04-26  David S. Miller  <davem@davemloft.net>
10317
10318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10319         long-double compat symbols.
10320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10330         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10331         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10332         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10333
10334 2012-04-25  David S. Miller  <davem@davemloft.net>
10335
10336         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10337         HWCAP_* values only after the memory barriers have been defined.
10338         (atomic_full_barrier): Define.
10339         (atomic_read_barrier): Define.
10340         (atomic_write_barrier): Define.
10341
10342 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10343
10344         * shlib-versions: Add libgcc_s version information.
10345         * sysdeps/generic/libgcc_s.h: Remove.
10346         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10347         libgcc_s.h.
10348         * sysdeps/gnu/unwind-resume.c: Likewise.
10349         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10350
10351 2012-04-25  David S. Miller  <davem@davemloft.net>
10352
10353         * sysdeps/unix/sparc/brk.S: Delete.
10354         * sysdeps/unix/sparc/dl-brk.S: Delete.
10355         * sysdeps/unix/sparc/pipe.S: Delete.
10356         * sysdeps/unix/sparc/sysdep.S: Delete.
10357         * sysdeps/unix/sparc/sysdep.h: Delete.
10358         * sysdeps/unix/sparc/vfork.S: Delete.
10359         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10360         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10361         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10362         ret_ERRVAL, r0, r1, MOVE): Define.
10363         (JUMPTARGET): Remove.
10364         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10365         sysdeps/unix/sparc/sysdep.h
10366         (ENTRY, END): Remove.
10367         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10368
10369 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10370
10371         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10372         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10373         -DIS_IN_build.
10374
10375         * timezone/README: Update upstream location and email address for
10376         tzcode and tzdata.
10377         * timezone/zdump.c: Update from tzcode 2012b.
10378         * timezone/zic.c: Likewise.
10379
10380         * configure.in (libc_cv_as_needed): Remove test.
10381         * configure: Regenerated.
10382         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10383         conditional definition.
10384         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10385         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10386         * config.make.in (have-as-needed): Remove variable.
10387
10388 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10389             Paul Pluzhnikov  <ppluzhnikov@google.com>
10390
10391         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10392         strings correctly.
10393
10394 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10395
10396         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10397         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10398         * sysdeps/sh/strlen.S: Likewise.
10399
10400 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10401
10402         * sysdeps/unix/fork.S: Remove file.
10403         * sysdeps/unix/i386/fork.S: Likewise.
10404         * sysdeps/unix/sparc/fork.S: Likewise.
10405
10406         * sysdeps/unix/system.c: Remove file.
10407         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10408
10409         * sysdeps/unix/getegid.S: Remove file.
10410         * sysdeps/unix/geteuid.S: Likewise.
10411
10412 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10413
10414         * scripts/check-localplt.awk: New file.
10415         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10416         of diff.
10417         * scripts/data/localplt-generic.data: Add a comment.
10418
10419         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10420         NODE when __dir_mkfile failed.
10421         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10422         Reported by Ludovic Courtès <ludo@gnu.org>.
10423
10424 2012-04-24  Andreas Jaeger  <aj@suse.de>
10425
10426         * Makerules (common-clean): Also remove gen-as-const-headers
10427         files.
10428
10429 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10430
10431         * Makerules (native-compile): Do not change working directory for
10432         build.  Use $(OUTPUT_OPTION) in command.
10433         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10434
10435 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10436
10437         [BZ #13886]
10438         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10439         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10440         * math/libm-test.inc (floor_test): Add more tests.
10441         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10442
10443 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10444
10445         * sysdeps/unix/getdents.c: Remove file.
10446         * sysdeps/unix/sysv/getdents.c: Likewise.
10447         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10448
10449         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10450         sysdeps/unix/mman/syscalls.list.
10451         (mmap): Likewise.
10452         (mprotect): Likewise.
10453         (msync): Likewise.
10454         (munmap): Likewise.
10455         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10456         * sysdeps/unix/mman/syscalls.list: Remove.
10457         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10458
10459         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10460         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10461         * configure: Regenerated.
10462         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10463         $(libgcc_s_suffix).
10464         * config.make.in (libgcc_s_suffix): Remove variable.
10465
10466 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10467
10468         * sysdeps/unix/sysv/gethostname.c: Move to ...
10469         * sysdeps/posix/gethostname.c: ... here.
10470
10471         * sysdeps/unix/execve.S: Remove file.
10472
10473         * sysdeps/unix/_exit.S: Remove file.
10474
10475 2012-04-23  Andreas Jaeger  <aj@suse.de>
10476
10477         [BZ #13739]
10478         * manual/Makefile: Remove make dist support, there's no
10479         need for a stand-alone documentation tar ball.
10480         (TEXI2DVI): Define always, it's not in Makeconfig.
10481         (dist): Removed.
10482         (tar-it): Removed.
10483         (edition): Removed.
10484         (glibc-doc-$(edition).tar): Removed
10485         (%.Z): Removed.
10486         (%.gz): Removed.
10487         (%.uu): Removed.
10488         (ETAGS): Remove, it's in Makeconfig.
10489         (move-if-change): Remove, it's in Makeconfig.
10490
10491 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10492
10493         [BZ #13970]
10494         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10495         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10496         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10497         (strtod_l, strtof_l, strtold_l): Remove __wur.
10498         It is not necessarily an error to ignore strtol's return value.
10499         One can reliably look at the stored endptr to decide whether
10500         the number had valid syntax.
10501
10502 2012-04-21  Andreas Jaeger  <aj@suse.de>
10503
10504         [BZ #13739]
10505         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10506
10507 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10508
10509         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10510         * sysdeps/unix/sysv/Versions: Remove file.
10511
10512 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10513
10514         [BZ #13927]
10515         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10516
10517 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10518
10519         [BZ #7064]
10520         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10521         version from __vm86.
10522
10523 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10524
10525         * sysdeps/unix/common/lxstat.c: Remove file.
10526         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10527
10528         * sysdeps/unix/sysv/Makefile: Remove file.
10529
10530         * sysdeps/unix/sysv/direct.h: Remove file.
10531
10532         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10533         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10534         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10535         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10536         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10537         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10538         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10539
10540         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10541
10542         * sysdeps/unix/xmknod.c: Remove file.
10543         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10544
10545         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10546
10547         * sysdeps/unix/sysv/i386/time.S: Remove file.
10548
10549         * sysdeps/unix/fxstat.c: Remove file.
10550         * sysdeps/unix/xstat.c: Likewise.
10551         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10552
10553         * sysdeps/unix/sysv/sigaction.c: Remove file.
10554
10555         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10556         (sysdep_headers): Remove variable.
10557         [termio.h not in sysdep_headers] (generated): Likewise.
10558         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10559         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10560         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10561         * sysdeps/unix/sysv/tcflow.c: Likewise.
10562         * sysdeps/unix/sysv/tcflush.c: Likewise.
10563         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10564         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10565         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10566         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10567         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10568
10569         * sysdeps/unix/siglist.c: Remove file.
10570
10571         * sysdeps/unix/getppid.S: Remove file.
10572
10573         * sysdeps/unix/mkdir.c: Remove file.
10574         * sysdeps/unix/rmdir.c: Likewise.
10575
10576 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10577
10578         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10579         ERR_MAX value.
10580         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10581         errlist-compat value.
10582
10583 2012-04-18  David S. Miller  <davem@davemloft.net>
10584
10585         * sysdeps/generic/memcopy.h (reg_char): Delete.
10586         * debug/strcat_chk.c: Use char, not reg_char.
10587         * debug/strcpy_chk.c: Likewise.
10588         * debug/strncat_chk.c: Likewise.
10589         * debug/strncpy_chk.c: Likewise.
10590         * string/memchr.c: Likewise.
10591         * string/memrchr.c: Likewise.
10592         * string/rawmemchr.c: Likewise.
10593         * string/strcat.c: Likewise.
10594         * string/strchr.c: Likewise.
10595         * string/strchrnul.c: Likewise.
10596         * string/strcmp.c: Likewise.
10597         * string/strcpy.c: Likewise.
10598         * string/strncat.c: Likewise.
10599         * string/strncmp.c: Likewise.
10600         * string/strncpy.c: Likewise.
10601
10602 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10603
10604         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10605         __builtin_memcopy is called when src and dest ranges are known to not
10606         overlap.
10607
10608 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10609
10610         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10611         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10612         fwd_align_merge macro call.
10613         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10614         bwd_align_merge macro call.
10615         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10616
10617 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10618
10619         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10620         bwd_align_merge macros.
10621         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10622         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10623         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10624
10625 2012-04-18  David S. Miller  <davem@davemloft.net>
10626
10627         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10628
10629 2012-04-18  Andreas Jaeger  <aj@suse.de>
10630
10631         [BZ# 6794]
10632         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10633         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10634         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10635
10636         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10637         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10638         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10639
10640         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10641         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10642         Adjust for changed ldbl-128 files.
10643
10644         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10645         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10646         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10647
10648 2012-04-17  David S. Miller  <davem@davemloft.net>
10649
10650         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10651
10652 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10653
10654         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10655         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10656         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10657         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10658         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10659         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10660
10661 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10662
10663         [BZ #6794]
10664         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10665         * math/libm-test.inc: Add ilogb errno and exception tests.
10666         * math/w_ilogb.c: New file: ilogb wrapper.
10667         * math/w_ilogbf.c: New file: ilogbf wrapper.
10668         * math/w_ilogbl.c: New file: ilogbl wrapper.
10669         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10670         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10671         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10672         exception being thrown with 0.0 as argument.
10673         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10674         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10675         exception being thrown with 0.0 as argument.
10676         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10677         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10678         exception being thrown with 0.0 as argument.
10679         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10680         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10681         exception being thrown with 0.0 as argument.
10682         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10683         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10684         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10685         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10686         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10687         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10688         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10689         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10690         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10691
10692 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10693
10694         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10695         with altivec.
10696
10697 2012-04-16  Marek Polacek  <polacek@redhat.com>
10698
10699         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10700
10701 2012-04-16  Marek Polacek  <polacek@redhat.com>
10702
10703         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10704         operands of fdivp instruction.
10705
10706 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10707
10708         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10709         * elf/tst-auditmod3b.c: Likewise.
10710         * elf/tst-auditmod4b.c: Likewise.
10711         * elf/tst-auditmod5b.c: Likewise.
10712         * elf/tst-auditmod6b.c: Likewise.
10713         * elf/tst-auditmod6c.c: Likewise.
10714         * elf/tst-auditmod7b.c: Likewise.
10715         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10716         * sysdeps/x86_64/preconfigure.in: Likewise.
10717         * sysdeps/x86_64/preconfigure: Regenerated.
10718
10719 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10720
10721         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10722         __ILP32__.
10723
10724 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10725
10726         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10727         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10728
10729 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10730
10731         [BZ #13973]
10732         * locale/iso-639.def: Fix gl language name. Spotted by
10733         Yaron Shahrabani.
10734
10735 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10736
10737         [BZ #2074]
10738         * libio/libio.h (__io_write_fn): Update comment.
10739
10740 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10741
10742         [BZ #2074]
10743         * stdio.texi (Hook Functions): The user provided writer function
10744         is not allowed to return -1.
10745
10746 2012-04-11  David S. Miller  <davem@davemloft.net>
10747
10748         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10749
10750 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10751
10752         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10753         Add a leading slash to rtkaio.
10754
10755 2012-04-11  Jim Meyering  <meyering@redhat.com>
10756
10757         [BZ #11959]
10758         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10759         It is not necessarily an error to ignore fwrite's return
10760         value.  One can reliably use ferror to test for errors after
10761         the fact.
10762
10763 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10764
10765         * bits/types.h (__snseconds_t): New type.
10766         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10767
10768         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10769         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10770         (__SNSECONDS_T_TYPE): Likewise.
10771         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10772         (__SNSECONDS_T_TYPE): Likewise.
10773         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10774         (__SNSECONDS_T_TYPE): Likewise.
10775
10776 2012-04-10  Andreas Jaeger  <aj@suse.de>
10777
10778         [BZ #2636]
10779         * manual/time.texi (Processor Time): Return type of times is
10780         elapsed real time since an arbitrary point in the past.
10781         (CPU Time): Move CLK_TCK from here...
10782         (Processor Time): ...to here.  Correct description.
10783         * manual/conf.texi (Constants for Sysconf): Correct description of
10784         _SC_CLK_TCK.
10785
10786 2012-04-10  David S. Miller  <davem@davemloft.net>
10787
10788         [BZ #13967]
10789         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10790         where the is a gap between DT_REL(A) and DT_JMPREL.
10791
10792 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10793
10794         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10795         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10796         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10797
10798 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10799
10800         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10801         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10802         (dl_main): Handle --inhibit-cache.
10803         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10804         _dl_inhibit_cache.
10805         * elf/dl-load.c (_dl_map_object): Use it.
10806         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10807
10808 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10809
10810         [BZ #13872]
10811         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10812         (__ieee754_powl): Saturate large exponents rather than testing for
10813         overflow of y*log2(x).
10814         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10815         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10816         exceptions.
10817
10818         [BZ #11521]
10819         * math/s_ctan.c: Include <float.h>.
10820         (__ctan): Avoid internal overflow or cancellation in calculating
10821         denominator.
10822         * math/s_ctanf.c: Likewise.
10823         * math/s_ctanl.c: Likewise.
10824         * math/s_ctanh.c: Likewise.
10825         * math/s_ctanhf.c: Likewise.
10826         * math/s_ctanhl.c: Likewise.
10827         * math/libm-test.inc (ctan_test): Add more tests.
10828         (ctanh_test): Likewise.
10829         * sysdeps/i386/fpu/libm-test-ulps: Update.
10830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10831
10832 2012-04-09  Andreas Jaeger  <aj@suse.de>
10833
10834         [BZ #6894]
10835         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10836         is an optional BSD extension.
10837
10838         [BZ #10254]
10839         * manual/stdio.texi (Opening Streams): Document additional fopen
10840         parameters.
10841
10842 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10843
10844         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10845         %eax without telling the compiler.
10846
10847 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10848
10849         [BZ # 13963]
10850         * manual/install.texi: Use sourceware.org.
10851
10852 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10853
10854         [BZ #13873]
10855         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10856         (__ieee754_pow): Generate overflow and underflow using huge*huge
10857         and tiny*tiny rather than just returning constant infinity or zero
10858         for large exponents.
10859         * math/libm-test.inc (pow_test): Require overflow exceptions for
10860         applicable cases of large exponents.
10861
10862         [BZ #706]
10863         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10864         (__ieee754_pow): Use iterative multiplication algorithm only for
10865         integer exponents with absolute value below 1024.  Check for odd
10866         integer exponents when using algorithm for real exponents.
10867         * math/libm-test.inc (pow_test): Add more tests.
10868         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10869
10870 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10871
10872         [BZ #13705]
10873         * math/libm-test.inc (exp_test): Do not allow overflow exception
10874         on underflow test.
10875
10876 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10877
10878         [BZ #13705]
10879         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10880         instead of __kernel_standard_f.
10881
10882 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10883
10884         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10885         * sysdeps/x86_64/memset_chk.S: Likewise.
10886
10887 2012-04-08  Andreas Jaeger  <aj@suse.de>
10888
10889         [BZ #10153]
10890         * manual/startup.texi (Environment Access): Describe return value
10891         for putenv and setenv.
10892
10893         [BZ #6895]
10894         * manual/filesys.texi (Directory Entries): Add description for
10895         DT_LNK.
10896
10897         [BZ #6890]
10898         * manual/filesys.texi (Directory Entries): Clarify that it's file
10899         system not operating system in the description of DT_UNKNOWN.
10900
10901         [BZ #6578]
10902         * manual/syslog.texi (closelog): Fix reference, it's openlog.
10903
10904 2012-04-08  Stephen Compall  <s11@member.fsf.org>
10905
10906         [BZ #6649]
10907         * manual/llio.texi (Opening and Closing Files): Add cross
10908         reference to explain mode argument.
10909
10910 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
10911
10912         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
10913         * sysdeps/x86_64/memset_chk.S: Likewise.
10914
10915 2012-04-07  David S. Miller  <davem@davemloft.net>
10916
10917         * elf/elf.h (R_SPARC_WDISP10): Define.
10918         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
10919         R_SPARC_SIZE32.
10920         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
10921         R_SPARC_SIZE64 and R_SPARC_H34.
10922
10923 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
10924
10925         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
10926         conditions and remove no longer applicable assertion.
10927
10928 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10929
10930         * bits/byteswap.h: Include <features.h>.
10931         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10932         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10933
10934 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10935
10936         * bits/byteswap.h (__bswap_16): Removed.
10937         Include <bits/byteswap-16.h> to get __bswap_16.
10938         * sysdeps/i386/bits/byteswap.h: Likewise.
10939         * sysdeps/s390/bits/byteswap.h: Likewise.
10940         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10941         * bits/byteswap-16.h: New file.
10942         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10943         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10944         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
10945         * string/Makefile (headers): Add bits/byteswap-16.h.
10946
10947 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
10948
10949         [BZ #13895]
10950         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
10951         extra indirection.
10952         * nss/Makefile (tests-static, tests): Add tst-nss-static.
10953         * nss/tst-nss-static.c: New.
10954
10955 2012-04-06  Robert Millan  <rmh@gnu.org>
10956
10957         [BZ #6486]
10958         * manual/llio.texi (File Position Primitive): lseek
10959         refers to WHENCE when it really means OFFSET.
10960
10961 2012-04-06  Andreas Jaeger  <aj@suse.de>
10962
10963         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
10964         strncmp declarations.
10965
10966         * abilist/libc.abilist: Add __poll and __ppoll.
10967
10968 2012-04-05  David S. Miller  <davem@davemloft.net>
10969
10970         * scripts/check-local-headers.sh: Accept a host triplet in the
10971         path matched by the exclude regexp.
10972
10973         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
10974         definition.
10975         * sysdeps/powerpc/powerpc32/dl-machine.h
10976         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
10977         * sysdeps/s390/s390-32/dl-machine.h
10978         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10979         * sysdeps/sparc/sparc32/dl-machine.h
10980         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10981         * sysdeps/sparc/sparc64/dl-machine.h
10982         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
10983
10984         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
10985         lazy binding.
10986         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
10987         undefined symbol errors.
10988
10989         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
10990         DT_NEEDED entries.
10991
10992 2012-04-05  Michael Matz  <matz@suse.de>
10993
10994         [BZ #13592]
10995         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
10996
10997 2012-04-05  Andreas Jaeger  <aj@suse.de>
10998
10999         [BZ #13908]
11000         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11001         comment.
11002
11003 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11004
11005         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11006         which ROUND is no valid rounding mode.
11007
11008 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11009
11010         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11011         read again.
11012         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11013
11014 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11015
11016         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11017         an exception using FPU order intentionally.
11018
11019 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11020
11021         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11022         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11023         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11024         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11025
11026 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11027
11028         [BZ #12340]
11029         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11030         EINVAL when BUFLEN is too smal.
11031
11032 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11033
11034         [BZ #13553]
11035         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11036         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11037
11038 2012-04-03  Andreas Jaeger  <aj@suse.de>
11039
11040         [BZ #13938]
11041         * manual/setjmp.texi (System V contexts): Fix sentence.
11042
11043         [BZ #13926]
11044         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11045         New macro for this case.
11046         [!__GNUC__] (__bswap_64): New inline function for this case.
11047         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11048         * bits/byteswap.h: Likewise.
11049         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11050         ull, guard with __GLIBC_HAVE_LONG_LONG.
11051
11052         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11053         __GLIBC_HAVE_LONG_LONG.
11054
11055         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11056         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11057
11058 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11059
11060         [BZ #13691]
11061         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11062         inptr and inend, rather than using last_ch.
11063
11064 2012-04-02  David S. Miller  <davem@davemloft.net>
11065
11066         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11067         * stdio-common/printf-parse.h (read_int): Change return type to
11068         'int', return -1 on INT_MAX overflow.
11069         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11070         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11071         overflows INT_MAX.  Check for overflow of in-format-string precision
11072         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11073         SIZE_MAX not INT_MAX for integer overflow test.
11074         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11075         skip the construct in the format string but do not record anything.
11076         * stdio-common/bug22.c: Adjust to test both width/prevision
11077         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11078         explicitly for proper errno values.
11079
11080 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11081
11082         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11083         CHAR_MAX.
11084         * string/test-strcmp.c [! WIDE]: Likewise.
11085         * time/tst-mktime2.c: Likewise for INT_MAX.
11086         * string/test-string.h: #include <sys/param.h> for MIN.
11087
11088         * csu/init-first.c (__libc_init_first): Call __ctype_init.
11089         * sysdeps/i386/init-first.c (init): Likewise.
11090         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11091         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11092         * sysdeps/sh/init-first.c (init): Likewise.
11093
11094 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
11095
11096         * po/ru.po: Update from translation team.
11097         * po/vi.po: Likewise.
11098
11099 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11100
11101         * resolv/nss_dns/dns-host.c: Merge copyright years.
11102
11103 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11104
11105         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11106         Optimize memcpy with prefetch if
11107         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
11108         src, dst pointers have unequal 16 byte alignments.
11109
11110 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11111
11112         [BZ #13928]
11113         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11114         from a CNAME entry and return the minimum ttl for the query.
11115         (gaih_getanswer_slice): Likewise.
11116
11117 2012-03-30  Jeff Law  <law@redhat.com>
11118
11119         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11120         due to long keys.
11121         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11122         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11123
11124         * resolv/nss_dns/dns-host.c: Update copyright year.
11125
11126 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11127
11128         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11129         requests to save a system call.  Fix check that all bytes are sent.
11130
11131         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11132         comments for sendmmsg.
11133
11134 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11135
11136         [BZ #13691]
11137         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11138         with only 1 character between 0x0041 and 0x01b0.
11139         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11140         * wcsmbs/tst-mbsnrtowcs.c: New file.
11141
11142 2012-03-29  David S. Miller  <davem@davemloft.net>
11143
11144         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11145         small copies by hand.
11146
11147 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11148
11149         [BZ #13761]
11150         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11151         _nss_compat_initgroups_dyn): Fall back to malloc/free
11152         for large group memberships.
11153
11154 2012-03-28  David S. Miller  <davem@davemloft.net>
11155
11156         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11157         that branches into memcpy.
11158         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11159         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11160         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11161         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11162         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11163         bits.
11164         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11165         implementation too.
11166         * sysdeps/sparc/mempcpy.S: New file.
11167
11168         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11169         the IFUNC routine in the libc case.
11170         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11171
11172         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11173         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11174         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11175         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11176         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11177         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11178         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11179         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11180
11181         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11182         loop to 256 bytes instead of 64 bytes and fix test signedness.
11183
11184         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11185         * sysdeps/sparc/sparc32/Makefile: rather than here...
11186         * sysdeps/sparc/sparc64/Makefile: and here.
11187
11188 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11189
11190         * malloc/mallocbug.c: Avoid warnings about unused variables.
11191
11192 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11193
11194         [BZ #13760]
11195         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11196         in the right place. Discard and retry query if response is
11197         larger than input buffer size.
11198
11199 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11200
11201         [BZ #369]
11202         [BZ #2678]
11203         [BZ #3866]
11204         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11205         x for large integer exponent.
11206         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11207         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11208         sign of result as needed afterwards.
11209         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11210         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11211         result for underflowing pow the same as for overflow.
11212         (__kernel_standard_l): Handle powl overflow and underflow here
11213         rather than calling __kernel_standard.
11214         * math/libm-test.inc (pow_test): Add more tests.
11215
11216         [BZ #3868]
11217         [BZ #13879]
11218         [BZ #13910]
11219         [BZ #13911]
11220         [BZ #13912]
11221         [BZ #13913]
11222         [BZ #13915]
11223         [BZ #13916]
11224         [BZ #13917]
11225         [BZ #13918]
11226         [BZ #13919]
11227         [BZ #13920]
11228         [BZ #13921]
11229         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11230         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11231         (__kernel_standard_l): New function.
11232         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11233         __kernel_standard.
11234         * math/w_acosl.c (__acosl): Likewise.
11235         * math/w_asinl.c (__asinl): Likewise.
11236         * math/w_atan2l.c (__atan2l): Likewise.
11237         * math/w_atanhl.c (__atanhl): Likewise.
11238         * math/w_coshl.c (__coshl): Likewise.
11239         * math/w_exp10l.c (__exp10l): Likewise.
11240         * math/w_exp2l.c (__exp2l): Likewise.
11241         * math/w_fmodl.c (__fmodl): Likewise.
11242         * math/w_hypotl.c (__hypotl): Likewise.
11243         * math/w_j0l.c (__j0l, __y0l): Likewise.
11244         * math/w_j1l.c (__j1l, __y1l): Likewise.
11245         * math/w_jnl.c (__jnl, __ynl): Likewise.
11246         * math/w_lgammal.c (__lgammal): Likewise.
11247         * math/w_log10l.c (__log10l): Likewise.
11248         * math/w_log2l.c (__log2l): Likewise.
11249         * math/w_logl.c (__logl): Likewise.
11250         * math/w_powl.c (__powl): Likewise.
11251         * math/w_remainderl.c (__remainderl): Likewise.
11252         * math/w_scalbl.c (sysv_scalbl): Likewise.
11253         * math/w_sinhl.c (__sinhl): Likewise.
11254         * math/w_sqrtl.c (__sqrtl): Likewise.
11255         * math/w_tgammal.c (__tgammal): Likewise.
11256         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11257         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11258         * math/libm-test.inc (acos_test): Add more tests.
11259         (acosh_test): Likewise.
11260         (asin_test): Likewise.
11261         (atanh_test): Likewise.
11262         (exp_test): Likewise.
11263         (exp10_test): Likewise.
11264         (exp2_test): Likewise.
11265         (expm1_test): Likewise.
11266         (lgamma_test): Likewise.
11267         (log_test): Likewise.
11268         (log10_test): Likewise.
11269         (log1p_test): Likewise.
11270         (log2_test): Likewise.
11271         (pow_test): Do not allow some spurious overflow exceptions.
11272         (sqrt_test): Add more tests.
11273         (tgamma_test): Likewise.
11274         (y0_test): Likewise.
11275         (y1_test): Likewise.
11276         (yn_test): Likewise.
11277
11278 2012-03-27  Anton Blanchard  <anton@samba.org>
11279
11280         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11281         MAP_HUGETLB.
11282         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11283         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11284         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11285
11286 2012-03-27  David S. Miller  <davem@davemloft.net>
11287
11288         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11289
11290         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11291         have-as-vis3 check.
11292
11293 2012-03-27  Andreas Jaeger  <aj@suse.de>
11294
11295         * sysdeps/x86_64/elf/configure.in: Moved to ...
11296         * sysdeps/x86_64/configure.in: ... here.
11297         * sysdeps/x86_64/elf/start.S: Moved to ...
11298         * sysdeps/x86_64/start.S: ... here.
11299         * sysdeps/x86_64/elf/configure: Delete.
11300
11301         * sysdeps/x86_64/configure.in: Merge contents from
11302         sysdeps/i386/configure.in (without i686 check).
11303
11304         * sysdeps/i386/elf/Versions: Merge into ...
11305         * sysdeps/i386/Versions: ... this.
11306         * sysdeps/i386/elf/Versions: Delete file.
11307         * sysdeps/i386/elf/start.S: Moved to ...
11308         * sysdeps/i386/start.S: ...here.
11309         * sysdeps/i386/elf/configure.in: Merge into...
11310         * sysdeps/i386/configure.in: ...here.
11311         * sysdeps/i386/elf/configure.in: Delete file.
11312         * sysdeps/i386/elf/configure: Delete file.
11313
11314         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11315         * debug/backtracesyms.c: ... here.
11316         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11317         * debug/backtracesymsfd.c: ... here.
11318         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11319         * sysdeps/generic/ifunc-sel.h: ... here.
11320
11321         * sysdeps/unix/i386/start.c: Delete file.
11322         * sysdeps/unix/sparc/start.c: Delete file.
11323         * sysdeps/unix/start.c: Delete file.
11324
11325         * sysdeps/sh/elf/configure.in: Moved to ...
11326         * sysdeps/sh/configure.in: ... here.
11327         * sysdeps/sh/elf/start.S: Moved to ...
11328         * sysdeps/sh/start.S: ... here.
11329         * sysdeps/sh/elf/configure: Delete file.
11330
11331         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11332         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11333         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11334         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11335         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11336         * sysdeps/powerpc/powerpc64/start.S: here.
11337         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11338         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11339         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11340         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11341         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11342
11343         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11344         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11345         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11346         * sysdeps/powerpc/powerpc32/start.S: ... here.
11347         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11348         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11349         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11350
11351         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11352         * sysdeps/powerpc/ifunc-sel.h: ... here.
11353         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11354         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11355
11356         * sysdeps/sparc/elf/configure.in: Moved to ...
11357         * sysdeps/sparc/configure.in: ... here.
11358         * sysdeps/sparc/elf/configure: Delete file.
11359         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11360         * sysdeps/sparc/sparc32/start.S: ... here.
11361         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11362         * sysdeps/sparc/sparc64/start.S: ... here.
11363         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11364         * sysdeps/sparc/sparc32/Makefile: ... this.
11365         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11366         * sysdeps/sparc/sparc64/Makefile: ... this.
11367
11368         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11369         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11370         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11371         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11372         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11373         * sysdeps/s390/s390-32/setjmp.S: ... here.
11374         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11375         * sysdeps/s390/s390-32/configure.in: ... here.
11376         * sysdeps/s390/s390-32/elf/configure: Delete file.
11377         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11378         * sysdeps/s390/s390-32/start.S: ... here.
11379
11380         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11381         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11382         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11383         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11384         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11385         * sysdeps/s390/s390-64/setjmp.S: ... here.
11386         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11387         * sysdeps/s390/s390-64/configure.in: ... here
11388         * sysdeps/s390/s390-64/elf/configure: Delete file.
11389         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11390         * sysdeps/s390/s390-64/start.S: ... here.
11391         * sysdeps/s390/s390-64/elf/configure: Delete.
11392
11393         * configure.in: Remove support for elf directories in sysdeps.
11394
11395         * configure: Regenerated.
11396         * sysdeps/i386/configure: Regenerated.
11397         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11398         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11399         * sysdeps/s390/s390-32/configure: Regenerated.
11400         * sysdeps/s390/s390-64/configure: Regenerated.
11401         * sysdeps/sh/configure: Regenerated.
11402         * sysdeps/sparc/configure: Regenerated.
11403         * sysdeps/x86_64/configure: Regenerated.
11404
11405 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11406
11407         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11408
11409         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11410         denormal result into account.
11411
11412 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11413
11414         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11415         Reported by Allan McRae <allan@archlinux.org>.
11416
11417 2012-03-23  Jeff Law  <law@redhat.com>
11418
11419         * nss/getnssent.c (__nss_getent): Fix typo.
11420
11421 2012-03-23  David S. Miller  <davem@davemloft.net>
11422
11423         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11424
11425 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11426
11427         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11428         to pad to uint64_t for each field.
11429         (dl_tls_index): Replace unsigned long with uint64_t.
11430
11431 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11432         Paul Pluzhnikov  <ppluzhnikov@google.com>
11433
11434         [BZ #6528]
11435         * grp/Makefile (otherlibs): Don't set it.
11436         * inet/Makefile (otherlibs): Likewise.
11437         * login/Makefile (otherlibs): Likewise.
11438         * nscd/Makefile (otherlibs): Likewise.
11439         * posix/Makefile (otherlibs): Likewise.
11440         * pwd/Makefile (otherlibs): Likewise.
11441         * rt/Makefile (otherlibs): Likewise.
11442         * sunrpc/Makefile (otherlibs): Likewise.
11443         * nss/Makefile (otherlibs): Likewise.
11444         Add libnss_files to routines and static-only-routines.
11445         ($(objpfx)getent): Remove rule.
11446         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11447         static-only-routines.
11448
11449 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11450
11451         [BZ #13892]
11452         * math/s_cexp.c: Include <float.h>.
11453         (__cexp): Handle exp result overflowing not necessarily
11454         overflowing both real and imaginary parts of result.
11455         * math/s_cexpf.c: Likewise.
11456         * math/s_cexpl.c: Likewise.
11457         * math/libm-test.inc (cexp_test): Add more tests.
11458         * sysdeps/i386/fpu/libm-test-ulps: Update.
11459         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11460
11461 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11462
11463         * include/link.h (ELFW): New macro.
11464         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11465         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11466
11467 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11468
11469         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11470         with uint64_t.
11471
11472 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11473
11474         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11475         declaration.
11476         (struct La_x32_retval): Likewise.
11477
11478 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11479
11480         * sysdeps/x86_64/preconfigure.in: New file.
11481         * sysdeps/x86_64/preconfigure: New generated file.
11482
11483 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11484
11485         [BZ #13824]
11486         * math/e_exp2l.c: Include <float.h>.
11487         (__ieee754_exp2l): Handle overflow and underflow cases
11488         separately.  Only pass fractional part of argument to
11489         __ieee754_expl.
11490         * math/libm-test.inc (exp2_test): Add more tests.
11491
11492         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11493         negating x to take absolute value.
11494         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11495         Likewise.
11496         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11497         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11498         Likewise.
11499         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11500         computing low part if x was negated.
11501         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11502
11503 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11504
11505         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11506         la_x32_gnu_pltexit.
11507         (pltexit): Cast int_retval to ptrdiff_t.
11508         * elf/tst-auditmod3b.c: Likewise.
11509         * elf/tst-auditmod4b.c: Likewise.
11510         * elf/tst-auditmod5b.c: Likewise.
11511         * elf/tst-auditmod6b.c: Likewise.
11512         * elf/tst-auditmod6c.c: Likewise.
11513         * elf/tst-auditmod7b.c: Likewise.
11514
11515         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11516         and x32_gnu_pltexit.
11517
11518         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11519         __ELF_NATIVE_CLASS.
11520         (La_x32_regs): New macro.
11521         (La_x32_retval): Likewise.
11522         (la_x32_gnu_pltenter): New function prototype.
11523         (la_x32_gnu_pltexit): Likewise.
11524
11525 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11526
11527         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11528         exponent.
11529
11530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11531
11532         * configure.in (libc_cv_cc_nofma): Check for option to disable
11533         generation of FMA instructions.
11534         * configure: Regenerate.
11535         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11536         * sysdeps/ieee754/dbl-64/Makefile: New file.
11537         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11538         Remove brandred-fma4.
11539         (CFLAGS-brandred-fma4.c): Remove.
11540         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11541         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11542         define.
11543         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11544         define.
11545
11546 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11547
11548         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11549         LLONG_MAX != LONG_MAX.
11550         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11551         (_fitoa_word): Likewise.
11552         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11553         LLONG_MAX != LONG_MAX.
11554         * stdio-common/_itowa.h: Include <_itoa.h>.
11555         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11556         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11557         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11558         only if not defined.
11559         (_ITOA_WORD_TYPE): Likewise.
11560         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11561         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11562
11563 2012-03-21  David S. Miller  <davem@davemloft.net>
11564
11565         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11566
11567 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11568
11569         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11570         of x86_64 when setting libc_cv_slibdir, libdir and
11571         libc_cv_localedir.
11572         * sysdeps/unix/sysv/linux/configure: Regenerated.
11573
11574 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11575
11576         * manual/lang.texi (Old Varargs): Remove section.
11577         (How Variadic): Update menu.
11578         (va_start): Do not mention varargs.h.
11579
11580 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11581             Joseph Myers  <joseph@codesourcery.com>
11582
11583         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11584         link test.
11585         * configure: Regenerated.
11586
11587 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11588
11589         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11590         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11591         conformtest.pl
11592
11593 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11594
11595         * NOTES: Remove.
11596         * Makefile (files-for-dist): Remove NOTES.
11597         (NOTES): Remove rule.
11598         * README: Don't refer to NOTES.
11599         * manual/creature.texi: Don't include macros.texi.
11600         * manual/intro.texi (creature.texi): Remove comment referring to
11601         NOTES.
11602
11603         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11604         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11605         * configure: Regenerated.
11606         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11607         LIBC_TRY_CC_OPTION.
11608         (libc_cv_as_i686): Likewise.
11609         (libc_cv_cc_avx): Likewise.
11610         (libc_cv_cc_sse2avx): Likewise.
11611         (libc_cv_cc_fma4): Likewise.
11612         (libc_cv_cc_novzeroupper): Likewise.
11613         * sysdeps/i386/configure: Regenerated.
11614
11615         [BZ #13883]
11616         * sysdeps/i386/fpu/s_cexp.S: Remove.
11617         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11618         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11619         * math/libm-test.inc (cexp_test): Add more tests.
11620         * sysdeps/i386/fpu/libm-test-ulps: Update.
11621         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11622
11623 2012-03-21  Allan McRae  <allan@archlinux.org>
11624
11625         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11626
11627 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11628
11629         [BZ #13871]
11630         * math/w_exp2.c: Do not include <float.h>.
11631         (o_threshold, u_threshold): Remove.
11632         (__exp2): Calculate result before checking finiteness and calling
11633         __kernel_standard.
11634         * math/w_exp2f.c: Likewise.
11635         * math/w_exp2l.c: Likewise.
11636         * math/libm-test.inc (exp2_test): Require overflow exception for
11637         1e6 input.
11638
11639         [BZ #3866]
11640         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11641         range of signed 64-bit integers before using fistpll.  Remove
11642         checks for whether integers fit in mantissa bits.
11643         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11644         the range of signed 32-bit integers before using fistpl.  Remove
11645         checks for whether integers fit in mantissa bits.
11646         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11647         (__ieee754_powl): Test for y outside the range of signed 64-bit
11648         integers before using fistpll.  Reduce 64-bit values to 63-bit
11649         ones as needed.
11650         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11651         divide-by-zero is raised for zero to large negative powers.
11652         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11653         (__ieee754_powl): Test for y outside the range of signed 64-bit
11654         integers before using fistpll.  Reduce 64-bit values to 63-bit
11655         ones as needed.
11656         * math/libm-test.inc (pow_test): Add more tests.
11657
11658 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11659
11660         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11661         <stdio-common/_itoa.h>.
11662         * debug/segfault.c: Likewise.
11663         * elf/dl-cache.c: Likewise.
11664         * elf/dl-minimal.c: Likewise.
11665         * elf/dl-misc.c: Likewise.
11666         * elf/dl-sysdep.c: Likewise.
11667         * elf/dl-version.c: Likewise.
11668         * elf/rtld.c: Likewise.
11669         * hurd/hurdsock.c: Likewise.
11670         * hurd/lookup-retry.c: Likewise.
11671         * malloc/malloc.c: Likewise.
11672         * malloc/mtrace.c: Likewise.
11673         * nscd/nscd_getgr_r.c: Likewise.
11674         * nscd/nscd_getpw_r.c: Likewise.
11675         * nscd/nscd_getserv_r.c: Likewise.
11676         * posix/getopt_init.c: Likewise.
11677         * posix/wordexp.c: Likewise.
11678         * stdio-common/_itoa.c: Likewise.
11679         * stdio-common/printf_fphex.c: Likewise.
11680         * stdio-common/vfprintf.c: Likewise.
11681         * string/_strerror.c: Likewise.
11682         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11683         * sysdeps/i386/i686/hp-timing.h: Likewise.
11684         * sysdeps/mach/_strerror.c: Likewise.
11685         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11686         * sysdeps/mach/hurd/sethostid.c: Likewise.
11687         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11688         * sysdeps/mach/xpg-strerror.c: Likewise.
11689         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11690         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11691         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11692         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11693         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11694         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11695         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11696         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11697         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11698         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11699         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11700         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11701         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11702         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11703         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11704         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11705         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11706         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11707         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11708         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11709         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11710
11711         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11712
11713         * stdio-common/_itoa.h: Moved to ...
11714         * sysdeps/generic/_itoa.h: Here.
11715
11716         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11717
11718         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11719         instead of "_itoa.h" and "_itowa.h".
11720         * stdio-common/vfprintf.: Likewise.
11721
11722 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11723
11724         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11725         <bits/wordsize.h>.
11726         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11727         (__signbit): Likwise.
11728         (llrintf): Likwise.
11729         (llrint): Likwise.
11730
11731 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11732
11733         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11734         __WORDSIZE != 64.
11735
11736 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11737
11738         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11739         OVERFLOW_EXCEPTION_OK.
11740         * math/libm-test.inc ("Philosophy"): Update comment about
11741         exception testing.
11742         (OVERFLOW_EXCEPTION): Define.
11743         (OVERFLOW_EXCEPTION_OK): Likewise.
11744         (INVALID_EXCEPTION_OK): Renumber.
11745         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11746         (IGNORE_ZERO_INF_SIGN): Likewise.
11747         (test_exceptions): Handle FE_OVERFLOW.
11748         (exp10_test): Expect overflow exceptions.
11749         (exp2_test): Likewise.
11750         (expm1_test): Likewise.
11751         (nextafter_test): Likewise.
11752         (pow_test): Likewise.
11753         (scalbn_test): Likewise.
11754         (scalbln_test): Likewise.
11755
11756 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11757
11758         * sysdeps/x86_64/bits/atomic.h
11759         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11760         64bit integer.
11761         (atomic_exchange_acq): Likewise.
11762         (__arch_exchange_and_add_body): Likewise.
11763         (__arch_add_body): Likewise.
11764         (atomic_add_negative): Likewise.
11765         (atomic_add_zero): Likewise.
11766
11767 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11768
11769         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11770         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11771
11772 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11773
11774         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11775         Check __x86_64__ instead of __WORDSIZE.
11776
11777 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11778
11779         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11780
11781 2012-03-19  David S. Miller  <davem@davemloft.net>
11782
11783         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11784
11785         * sysdeps/sparc/fpu/fenv_private.h: New file.
11786         * sysdeps/sparc/fpu/math_private.h: Use it.
11787         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11788         Remove.
11789         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11790         (libc_feholdexcept_setroundl): Remove.
11791         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11792         Remove.
11793         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11794         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11795
11796 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11797
11798         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11799         int64_t instead of long int.
11800         (INSERT_WORDS64): Likwise.
11801
11802 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11803
11804         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11805         _Unwind_GetCFA return to _Unwind_Ptr first.
11806
11807 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11808
11809         [BZ #13629]
11810         * math/s_clog.c: Include <float.h>.
11811         (__clog): Scale large or subnormal inputs.
11812         * math/s_clogf.c: Likewise.
11813         * math/s_clogl.c: Likewise.
11814         * math/s_clog10.c: Include <float.h>.
11815         (M_LOG10_2): Define.
11816         (__clog10): Scale large or subnormal inputs.
11817         * math/s_clog10f.c: Likewise.
11818         * math/s_clog10l.c: Likewise.
11819         * math/libm-test.inc (clog_test): Add more tests.
11820         (clog10_test): Likewise.
11821         * sysdeps/i386/fpu/libm-test-ulps: Update.
11822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11823
11824         [BZ #11451]
11825         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11826         x and y.
11827         * math/libm-test.inc (atan2_test): Add another test.
11828
11829         * Makerules (common-objdir-compile): Remove.
11830         * sysdeps/unix/Makefile (config-generated): Do not add
11831         $(unix-generated) to variable.
11832         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11833         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11834         Remove rule.
11835         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11836         Likewise.
11837         [generic bits/local_lim.h] (before-compile): Do not append to
11838         variable.
11839         [generic bits/local_lim.h] (common-generated): Likewise.
11840         [generic sys/param.h] (before-compile): Do not append to variable.
11841         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11842         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11843         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11844         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11845         include.
11846         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11847         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11848         [generic sys/param.h] ($(addprefix
11849         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11850         [generic sys/param.h] (common-generated): Do not append to
11851         variable.
11852         [generic sys/param.h] (sysdep_headers): Likewise.
11853         [generic bits/errno.h] (before-compile): Do not append to
11854         variable.
11855         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11856         rule.
11857         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11858         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11859         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11860         [generic bits/errno.h] (common-generated): Do not append to
11861         variable.
11862         [generic bits/ioctls.h] (before-compile): Do not append to
11863         variable.
11864         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11865         rule.
11866         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11867         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11868         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11869         rule.
11870         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11871         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11872         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11873         [generic bits/ioctls.h] (common-generated): Do not append to
11874         variable.
11875         [generic sys/syscall.h] (syscall.h): Remove variable.
11876         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11877         rule.
11878         [generic sys/syscall.h] (before-compile): Do not append to
11879         variable.
11880         [generic sys/syscall.h] (common-generated): Likewise.
11881         * sysdeps/unix/errnos-tmpl.c: Remove file.
11882         * sysdeps/unix/errnos.awk: Likewise.
11883         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11884         * sysdeps/unix/ioctls.awk: Likewise.
11885         * sysdeps/unix/mk-local_lim.c: Likewise.
11886         * sysdeps/unix/snarf-ioctls: Likewise.
11887
11888 2012-03-19  Richard Henderson  <rth@twiddle.net>
11889
11890         * sysdeps/i386/fpu/fenv_private.h: New file.
11891         * sysdeps/i386/fpu/math_private.h: Use it.
11892         (math_opt_barrier, math_force_eval): Remove.
11893         (libc_feholdexcept_setround_53bit): Remove.
11894         (libc_feupdateenv_53bit): Remove.
11895         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11896         (math_opt_barrier, math_force_eval): Remove.
11897         (libc_feholdexcept): Remove.
11898         (libc_feholdexcept_setround): Remove.
11899         (libc_fetestexcept, libc_fesetenv): Remove.
11900         (libc_feupdateenv_test): Remove.
11901         (libc_feupdateenv, libc_feholdsetround): Remove.
11902         (libc_feresetround): Remove.
11903
11904         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
11905         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
11906
11907         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
11908         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
11909         (libc_feupdateenv_testl): New.
11910         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
11911         (libc_feupdateenv_testf): New.
11912         (libc_feupdateenv): Use libc_feupdateenv_test.
11913         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
11914         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
11915
11916         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
11917         (libc_feholdsetroundf, libc_feholdsetroundl): New.
11918         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
11919         (libc_feresetround_noex): New.
11920         (libc_feresetround_noexf): New.
11921         (libc_feresetround_noexl): New.
11922         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
11923         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
11924         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
11925         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
11926         SET_RESTORE_ROUND.
11927         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
11928         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
11929         (__cos): Likewise.
11930         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
11931         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11932         SET_RESTORE_ROUND_NOEX.
11933         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
11934         SET_RESTORE_ROUND_NOEXF.
11935         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
11936         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
11937         (libc_feholdsetroundf): New.
11938         (libc_feresetround, libc_feresetroundf): New.
11939
11940         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
11941         (libc_feholdexcept_setround_53bit): Convert from macro to function.
11942         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
11943
11944         * sysdeps/generic/math_private.h: Include <fenv.h>.
11945         (default_libc_feholdexcept): New.
11946         (default_libc_feholdexcept_setround): New.
11947         (default_libc_fesetenv, default_libc_feupdateenv): New.
11948         (libc_feholdexcept): Only define if undefined.
11949         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
11950         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
11951         (libc_feholdexcept_setroundl): Likewise.
11952         (libc_feholdexcept_setround_53bit): Likewise.
11953         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
11954         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
11955         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
11956         (libc_feupdateenv_53bit): Likewise.
11957         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
11958         (libc_feholdexcept): Convert from macro to inline function.
11959         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
11960         (libc_fesetenv, libc_feupdateenv): Likewise.
11961
11962         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
11963         not previously defined.
11964         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
11965         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
11966         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
11967         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
11968         * sysdeps/ieee754/flt-32/math_private.h: New file.
11969         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
11970         math_private.h below SET_FLOAT_WORD.
11971         (__isnan, __isinf_ns, __finite): Remove.
11972         (__isnanf, __isinf_nsf, __finitef): Remove.
11973
11974 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
11975
11976         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11977
11978 2012-03-17  David S. Miller  <davem@davemloft.net>
11979
11980         [BZ #6471]
11981         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
11982         for 2.16.
11983
11984 2012-03-16  David S. Miller  <davem@davemloft.net>
11985
11986         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
11987         warnings.
11988
11989         [BZ #6471]
11990         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
11991         properly.
11992         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
11993         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
11994         sysdep_routines when subdir is sysvipc.
11995         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
11996         __getshmlba helper.
11997
11998         * sysdeps/sparc/fpu/libm-test/ulps: Update.
11999
12000 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12001
12002         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12003         [__LP64__].
12004
12005 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12006
12007         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12008         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12009         (__lround): Renamed to ...
12010         (__llround): This.  Replace long int with long long int.
12011         Define lround functions as aliases of llround functions.
12012         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12013
12014 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12015
12016         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12017         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12018         adresses to uintptr_t.  Replace "long int" and "unsigned long
12019         int" with "greg_t" on va_arg.
12020
12021 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12022
12023         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12024         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12025
12026         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12027         Move e_machine check before EI_CLASS check.  Handle x32
12028         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12029         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12030         SKIP_EM_IA_64 and include
12031         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12032
12033         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12034         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12035         (add_system_dir): New macro.
12036
12037         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12038         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12039
12040 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12041
12042         [BZ #2551]
12043         [BZ #2552]
12044         [BZ #2553]
12045         [BZ #2554]
12046         [BZ #2562]
12047         [BZ #2563]
12048         [BZ #2565]
12049         [BZ #2566]
12050         [BZ #2576]
12051         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12052         (y0): Likewise.
12053         * math/w_j0f.c (j0f): Likewise.
12054         (y0f): Likewise.
12055         * math/w_j0l.c (__j0l): Likewise.
12056         (__y0l): Likewise.
12057         * math/w_j1.c (j1): Likewise.
12058         (y1): Likewise.
12059         * math/w_j1f.c (j1f): Likewise.
12060         (y1f): Likewise.
12061         * math/w_j1l.c (__j1l): Likewise.
12062         (__y1l): Likewise.
12063         * math/w_jn.c (jn): Likewise.
12064         (yn): Likewise.
12065         * math/w_jnf.c (jnf): Likewise.
12066         (ynf): Likewise.
12067         * math/w_jnl.c (__jnl): Likewise.
12068         (__ynl): Likewise.
12069         * math/libm-test.inc (j0_test): Add more tests.
12070         (j1_test): Likewise.
12071         (jn_test): Likewise.  Add trailing semicolon to existing test.
12072         (y0_test): Likewise.
12073         (y1_test): Likewise.
12074         * sysdeps/i386/fpu/libm-test-ulps: Update.
12075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12076
12077         [BZ #13851]
12078         [BZ #13854]
12079         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12080         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12081         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12082         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12083         (__tanl): Set errno for infinite argument.
12084         * sysdeps/i386/fpu/mptan.c: Remove.
12085         * sysdeps/i386/fpu/s_tan.S: Likewise.
12086         * sysdeps/i386/fpu/s_tanl.S: Likewise.
12087         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12088         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12089         * math/libm-test.inc (tan_test): Add more tests and enable more
12090         tests for double and long double.
12091         * sysdeps/i386/fpu/libm-test-ulps: Update.
12092         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12093
12094 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12095
12096         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12097         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12098
12099 2012-03-16  Roland McGrath  <roland@hack.frob.com>
12100
12101         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12102         * configure.in: Use it for both main tree and add-ons.
12103         * configure: Regenerated.
12104
12105 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12106
12107         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12108
12109 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12110
12111         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12112         in comment.
12113
12114         [BZ #13851]
12115         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12116         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12117         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12118         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12119         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12120         infinite argument.
12121         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12122         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12123         != 0 for prec == 2.
12124         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12125         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12126         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12127         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12128         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12129         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12130         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12131         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12132         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12133         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12134         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12135         * math/libm-test.inc (cos_test): Add more tests and enable more
12136         tests for long double.
12137         (sin_test): Likewise.
12138         (sincos_test): Likewise.
12139         * sysdeps/i386/fpu/libm-test-ulps: Update.
12140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12141
12142 2012-03-16  David S. Miller  <davem@davemloft.net>
12143
12144         * sysdeps/sparc/fpu/math_private.h: New file.
12145
12146 2012-03-15  David S. Miller  <davem@davemloft.net>
12147
12148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12149         file.
12150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12152         file.
12153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12154         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12155         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12156         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12157         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12158         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12159         sysdep routines.
12160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12161
12162         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12163         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12164
12165         * sysdeps/sparc/sparc-ifunc.h: New file.
12166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12167         sparc-ifunc.h
12168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12170         Likewise.
12171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12172         Likewise.
12173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12177         Likewise.
12178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12183         Likewise.
12184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12185         Likewise.
12186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12190         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12191         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12192         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12193         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12194         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12195         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12196         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12197         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12198         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12199         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12200         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12201         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12202         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12203         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12204         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12205         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12206         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12207         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12208         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12209         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12210
12211 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12212
12213         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12214         scaling.
12215         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12216
12217 2012-03-15  Andreas Jaeger  <aj@suse.de>
12218
12219         [BZ #13852]
12220         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12221         ieee754/flt-32 implementation for sin, cos and sincos.
12222         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12223         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12224         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12225         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12226         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12227         ieee754/flt-32 implementation for tan.
12228
12229         * math/libm-test.inc (cos_test): Enable some large input tests for
12230         float as well
12231         (sin_test): Likewise.
12232         (sincos_test): Likewise.
12233         (tan_test): Add tests for large input.
12234
12235         * sysdeps/i386/fpu/libm-test-ulps: Update.
12236
12237 2012-03-15  Andreas Jaeger  <aj@suse.de>
12238
12239         [BZ #13658]
12240         * math/libm-test.inc (cos_test): Add more test cases.
12241         (sin_test): Likewise.
12242         (sincos_test): Likewise.
12243
12244 2012-03-15  Andreas Jaeger  <aj@suse.de>
12245
12246         [BZ #13837]
12247         * math/libm-test.inc (cos_test): Add a test case for large input
12248         value.
12249         (sin_test): Likewise.
12250         (sincos_test): Likewise.
12251
12252 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12253         Joseph Myers  <joseph@codesourcery.com>
12254
12255         [BZ #13658]
12256         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12257         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12258         * sysdeps/i386/fpu/branred.c: Likewise.
12259         * sysdeps/i386/fpu/dosincos.c: Likewise.
12260         * sysdeps/i386/fpu/mpa.c: Likewise.
12261         * sysdeps/i386/fpu/s_cos.S: Likewise.
12262         * sysdeps/i386/fpu/s_sin.S: Likewise.
12263         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12264         * sysdeps/i386/fpu/sincos32.c: Likewise.
12265
12266         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12267         Define.
12268         (libc_feupdateenv_53bit): Define.
12269         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12270         Define.
12271         (libc_feupdateenv_53bit): Define.
12272
12273         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12274         53 bit (without extend i386 double precision).
12275
12276         * math/libm-test.inc (sincos_test): Add tests for large input.
12277         (sin): Likewise.
12278         (cos): Likewise.
12279
12280         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12281
12282 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12283
12284         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12285
12286 2012-03-15  David S. Miller  <davem@davemloft.net>
12287
12288         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12289         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12290         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12291         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12292         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12293         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12294         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12295         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12296         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12297         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12298         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12299         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12300         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12301         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12302         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12304         file.
12305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12307         file.
12308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12310         file.
12311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12313         file.
12314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12315         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12316         fmin/fmax sysdep routines.
12317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12318
12319 2012-03-14  David S. Miller  <davem@davemloft.net>
12320
12321         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12322         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12323         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12324         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12325         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12326         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12327         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12328         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12329         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12330         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12331         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12332         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12333         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12334         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12335         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12336         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12337         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12338         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12339         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12340         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12341         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12342         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12343         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12344         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12345         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12346         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12347         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12348         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12349         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12350         routines.
12351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12352         file.
12353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12355         file.
12356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12358         file.
12359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12361         file.
12362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12364         file.
12365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12367         file.
12368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12369         file.
12370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12371         file.
12372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12373         file.
12374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12375         New file.
12376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12377         file.
12378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12379         file.
12380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12382         file.
12383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12385         file.
12386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12388         file.
12389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12391         VIS3 routines.
12392
12393         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12394         New file.
12395
12396         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12397
12398         * sysdeps/sparc/configure.in: New file.
12399         * sysdeps/sparc/configure: Generate.
12400         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12401         * configure: Regenerate.
12402         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12403         * config.make.in (have-as-vis3): New.
12404         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12405         available use -Av9d instead of -Av9a.
12406         * sysdeps/sparc/sparc64/Makefile: Likewise.
12407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12409         New file.
12410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12411         file.
12412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12413         New file.
12414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12415         file.
12416         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12417         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12418         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12419         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12420         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12421
12422         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12423         fzeros/fnegs to load 0x80000000 into a float register instead of
12424         using the stack.
12425         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12426
12427 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12428
12429         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12430         bits/syscall.h.
12431         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12432         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12433         ($(inst_includedir)/bits/syscall.h): Remove rule.
12434         ($(objpfx)bits/syscall.d): Include instead of
12435         $(objpfx)syscall-list.d.
12436         (generated): Change syscall-list.h and syscall-list.d to
12437         bits/syscall.h and bits/syscall.d.
12438
12439 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12440
12441         [BZ #13846]
12442         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12443
12444 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12445
12446         [BZ #13841]
12447         * math/s_csqrt.c: Include <float.h>.
12448         (__csqrt): Scale large or subnormal inputs.
12449         * math/s_csqrtf.c: Likewise.
12450         * math/s_csqrtl.c: Likewise.
12451         * math/libm-test.inc (csqrt_test): Add more tests.
12452         * sysdeps/i386/fpu/libm-test-ulps: Update.
12453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12454
12455         [BZ #13840]
12456         * math/libm-test.inc (hypot_test): Add more tests.
12457
12458 2012-03-13  David S. Miller  <davem@davemloft.net>
12459
12460         [BZ #13840]
12461         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12462         double-precision for the calculation instead of scaling.
12463
12464 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12465
12466         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12467         manipulate bits before adding and subtracting TWO52[sx].
12468         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12469         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12470         Likewise.
12471         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12472
12473 2012-03-13  David S. Miller  <davem@davemloft.net>
12474
12475         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12476         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12477         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12478         rtld-global-offsets.h
12479         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12480
12481         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12482         large parameters.
12483
12484         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12485
12486         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12487         'err' in the ifdef scope in which it is actually used.
12488
12489         * nss/nss_db/db-init.c: Include string.h
12490
12491 2012-03-12  David S. Miller  <davem@davemloft.net>
12492
12493         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12494         masking out of the most significant byte of random value used.
12495         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12496         Fix coding style in previous change.
12497
12498         * sysdeps/unix/sysv/linux/kernel-features.h
12499         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12500         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12501         expression.
12502         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12503         later.
12504
12505 2012-03-11  David S. Miller  <davem@davemloft.net>
12506
12507         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12508         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12509         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12510         for 'resultvar' otherwise things get truncated on 64-bit.
12511
12512         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12513         Fix masking out of the most significant byte of random value used.
12514
12515         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12516
12517 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12518
12519         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12520
12521 2012-03-09  David S. Miller  <davem@davemloft.net>
12522
12523         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12524         variables with appropriate CPP guards.
12525         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12526         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12527         on resulting framesize and the management of the outregs buffer for pltexit.
12528         Preserve floating point return values across _dl_call_pltexit call.
12529         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12530         framesize and the management of the outregs buffer for pltexit.
12531         Preserve floating point return values across _dl_call_pltexit
12532         call.
12533         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12534         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12535         (print_exit): Fix format string for return register value.
12536
12537 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12538
12539         * sunrpc/Makefile (others): Add rpcgen.
12540         ($(objpfx)rpcgen): Remove special build rule and dependency on
12541         libc.
12542         * sunrpc/rpcgen.c: New file.
12543
12544 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         [BZ #13673]
12547         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12548         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12549         * sysdeps/i386/crti.S: Likewise.
12550         * sysdeps/i386/crtn.S: Likewise.
12551         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12552         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12553         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12554         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12555         * sysdeps/sh/crti.S: Likewise.
12556         * sysdeps/sh/crtn.S: Likewise.
12557         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12558
12559         [BZ #13673]
12560         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12561         with URL.
12562         * locale/programs/locfile-kw.gperf: Likewise.
12563         * locale/programs/charmap-kw.h: Regenerated.
12564         * locale/programs/locfile-kw.h: Likewise.
12565
12566         [BZ #13673]
12567         * intl/plural.y: Replace FSF snail mail address with URL.
12568         * intl/plural.c: Regenerated.
12569
12570 2012-03-09  Richard Henderson  <rth@twiddle.net>
12571
12572         * include/math_private.h: Remove file.
12573         * math/math_private.h: Move file ...
12574         * sysdeps/generic/math_private.h: ... here.
12575
12576         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12577         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12578         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12579
12580         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12581         and <math_private.h>.
12582         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12583         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12584         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12585         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12586         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12587         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12588         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12589         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12590         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12591         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12592         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12593         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12594         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12595         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12596         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12597         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12598         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12599         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12600         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12601         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12602         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12603         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12604         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12605         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12606         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12607         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12608         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12609         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12610         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12611         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12612         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12613         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12614         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12615         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12616         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12617         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12618         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12619         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12620         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12621         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12622         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12623         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12624         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12625         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12626         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12627         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12628         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12629         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12630         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12631         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12632         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12633         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12634         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12635         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12636         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12637         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12638         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12639         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12640         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12641         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12642         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12643         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12644         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12645         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12646         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12647         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12648         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12649         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12650         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12651         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12652         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12653         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12654         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12655         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12656         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12657         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12658         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12659         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12660         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12661         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12662         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12663         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12664         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12665         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12666         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12667         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12668         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12669         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12670         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12671         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12672         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12673         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12674         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12675         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12676         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12677         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12678         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12679         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12680         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12681         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12682         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12683         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12684         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12685         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12686         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12687         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12688         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12689         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12690         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12691         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12692         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12693         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12694         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12695         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12696         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12697         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12698         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12699         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12700         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12701         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12702         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12703         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12704         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12705         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12706         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12707         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12708         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12709         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12710         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12711         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12712         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12713         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12714         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12715         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12716         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12717         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12718         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12719         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12720         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12721         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12722         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12723         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12724         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12725         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12726         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12727         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12728         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12729         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12730         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12731         * sysdeps/ieee754/k_standard.c: Likewise.
12732         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12733         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12734         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12735         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12736         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12737         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12738         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12739         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12740         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12741         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12742         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12743         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12744         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12745         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12746         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12747         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12748         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12749         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12750         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12751         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12752         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12753         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12754         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12755         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12756         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12757         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12758         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12759         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12760         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12761         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12762         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12763         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12764         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12765         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12766         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12767         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12768         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12769         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12770         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12771         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12772         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12773         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12774         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12775         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12776         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12777         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12778         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12779         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12780         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12781         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12782         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12783         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12784         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12785         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12786         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12787         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12788         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12789         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12790         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12791         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12792         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12793         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12794         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12795         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12796         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12797         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12798         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12799         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12800         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12801         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12802         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12803         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12804         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12805         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12806         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12807         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12808         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12809         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12810         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12811         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12812         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12813         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12814         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12815         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12816         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12817         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12818         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12819         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12820         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12821         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12822         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12823         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12824         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12825         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12826         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12827         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12828         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12829         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12830         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12831         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12832         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12833         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12834         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12835         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12836         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12837         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12838         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12839         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12840         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12841         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12842         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12843         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12844         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12845         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12846         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12847         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12848         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12849         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12850         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12851         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12852         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12853         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12854         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12855         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12856         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12857         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12858         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12859         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12860         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12861         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12862         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12863         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12864         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12865         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12866         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12867         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12868         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12869         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12870         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12871         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12872         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12873         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12874         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12875         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12876         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12877         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12878         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12879         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12880         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12881         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12882         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12883         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12884         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12885         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12886         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12887         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12888         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12889         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12890         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12891         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12892         * sysdeps/ieee754/s_lib_version.c: Likewise.
12893         * sysdeps/ieee754/s_matherr.c: Likewise.
12894         * sysdeps/ieee754/s_signgam.c: Likewise.
12895         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12896         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
12897         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
12898         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
12899         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
12900         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
12901         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
12902         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
12903         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
12904         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12905         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12906         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
12907         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
12908         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
12909         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
12910         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12911         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12912         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12913         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12914         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
12915         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
12916
12917 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12918
12919         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
12920         * sunrpc/rpc_main.c: Likewise.
12921         * sunrpc/rpc_svcout.c: Likewise.
12922
12923 2012-03-09  David S. Miller  <davem@davemloft.net>
12924
12925         * include/math_private.h: New file.
12926
12927 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
12928
12929         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
12930         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
12931         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
12932         from <bits/socket_type.h>.
12933         (enum __socket_type): Don't define here.
12934         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
12935         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12936         bits/socket_type.h.
12937
12938         [BZ #13566]
12939         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
12940         checking __USE_GNU.
12941
12942         * Makerules ($(inst_includedir)/%.h): New rule.
12943         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
12944         (install-others): Remove variable setting.
12945         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
12946
12947 2012-03-08  Richard Henderson  <rth@twiddle.net>
12948
12949         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
12950         from macro to inline function; merge with the
12951         !__LIBC_INTERNAL_MATH_INLINES version.
12952         (__ieee754_sqrtf): Likewise.
12953
12954         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
12955         to inline function.
12956         (__rintf, __floor, __floorf): Likewise.
12957
12958         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
12959         macro to inline function.
12960         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
12961
12962         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
12963         not <math/math_private.h>.
12964
12965 2012-03-08  David S. Miller  <davem@davemloft.net>
12966
12967         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
12968         copyright year.
12969         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
12970
12971 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
12972
12973         * resolv/gai_misc.c (handle_requests): Fix struct timespec
12974         normalization.
12975         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
12976         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
12977
12978 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
12979
12980         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
12981         be defined individually, they must be defined as a block.  Define
12982         S for printing a string instead of hidint the different by using a
12983         macro for adding the 'l'.
12984         * stdio-common/tst-fphex-wide.c: Adjust.
12985
12986 2012-03-07  Marek Polacek  <polacek@redhat.com>
12987
12988         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
12989
12990 2012-03-08  Marek Polacek  <polacek@redhat.com>
12991
12992         [BZ #13806]
12993         * stdio-common/Makefile (tests): Add tst-fphex-wide.
12994         * stdio-common/tst-fphex.c: Define a few macros to make the
12995         test reusable.  Use them.
12996         * stdio-common/tst-fphex-wide.c: New file.
12997
12998 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
12999
13000         [BZ #6911]
13001         * manual/macros.texi (gnusystems): New macro.
13002         (nongnusystems): Likewise.
13003         (gnulinuxhurdsystems): Likewise.
13004         (gnuhurdsystems): Likewise..
13005         (gnulinuxsystems): Likewise.
13006         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13007         variants of the GNU system, not "GNU system".
13008         * manual/conf.texi: Likewise.
13009         * manual/errno.texi: Likewise.  Update example of errno macro
13010         expansion.
13011         * manual/filesys.texi: Likewise.
13012         (getumask): Document as specific to GNU/Hurd.
13013         * manual/install.texi: Likewise.  Reword some references to
13014         GNU/Linux.
13015         * manual/intro.texi: Likewise.
13016         * manual/io.texi: Likewise.
13017         (File Name Portability): Detail which constraints are inapplicable
13018         to all GNU systems and which are only inapplicable to GNU/Hurd.
13019         * manual/job.texi: Likewise.
13020         * manual/llio.texi: Likewise.
13021         (O_NOCTTY): Document as present on GNU/Linux.
13022         * manual/maint.texi: Likewise.
13023         * manual/memory.texi: Likewise.
13024         * manual/pattern.texi: Likewise.
13025         * manual/pipe.texi: Likewise.
13026         * manual/process.texi: Likewise.
13027         * manual/resource.texi: Likewise.
13028         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13029         child on GNU/Hurd.
13030         * manual/setjmp.texi: Likewise.
13031         * manual/signal.texi: Likewise.
13032         * manual/startup.texi: Likewise.
13033         * manual/stdio.texi: Likewise.
13034         * manual/terminal.texi: Likewise.
13035         (ONLCR): Document as POSIX.
13036         (OXTABS): Document availability on GNU/Linux as XTABS.
13037         (ONOEOT): Document availability separately from other bits.
13038         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13039         * manual/time.texi: Likewise.
13040         * manual/users.texi: Likewise.
13041         * INSTALL: Regenerated.
13042         * sysdeps/gnu/errlist.c: Regenerated.
13043
13044         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13045         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13046         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13047         puts.
13048         * configure: Regenerated.
13049
13050 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13051
13052         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13053         default includes instead of AC_HEADER_CHECK.
13054         * sysdeps/i386/configure: Regenerated.
13055
13056         [BZ #10716]
13057         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13058         * math/s_cacoshf.c (__cacoshf): Likewise.
13059         * math/s_cacoshl.c (__cacoshl): Likewise.
13060         * math/s_casinh.c (__casinh): Set signs of result from argument.
13061         * math/s_casinhf.c (__casinhf): Likewise.
13062         * math/s_casinhl.c (__casinhl): Likewise.
13063         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13064         (casinh_test): Add more tests.
13065         * sysdeps/i386/fpu/libm-test-ulps: Update.
13066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13067
13068 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13069
13070         * po/zh_TW.po: Update from translation team.
13071
13072         * login/Makefile (distribute): Remove variable.
13073         * catgets/Makefile: Likewise.
13074         * mach/Makefile: Likewise.
13075         * malloc/Makefile: Likewise.
13076         * misc/Makefile: Likewise.
13077         * iconv/Makefile: Likewise.
13078         * nscd/Makefile: Likewise.
13079         * hurd/Makefile: Likewise.
13080         * manual/Makefile: Likewise.
13081         * locale/Makefile: Likewise.
13082         * intl/Makefile: Likewise.
13083         * conform/Makefile: Likewise.
13084         * nss/Makefile: Likewise.
13085         * time/Makefile: Likewise.
13086         * soft-fp/Makefile: Likewise.
13087         * dirent/Makefile: Likewise.
13088         * gmon/Makefile: Likewise.
13089         * po/Makefile: Likewise.
13090         * rt/Makefile: Likewise.
13091         * socket/Makefile: Likewise.
13092         * math/Makefile: Likewise.
13093         * signal/Makefile: Likewise.
13094         * debug/Makefile: Likewise.
13095         * elf/Makefile: Likewise.
13096         * timezone/Makefile: Likewise.
13097         * stdlib/Makefile: Likewise.
13098         * iconvdata/Makefile: Likewise.
13099         * sunrpc/Makefile: Likewise.
13100         * io/Makefile: Likewise.
13101         * argp/Makefile: Likewise.
13102         * inet/Makefile: Likewise.
13103         * hesiod/Makefile: Likewise.
13104         * grp/Makefile: Likewise.
13105         * csu/Makefile: Likewise.
13106         * wctype/Makefile: Likewise.
13107         * crypt/Makefile: Likewise.
13108         * libio/Makefile: Likewise.
13109         * string/Makefile: Likewise.
13110         * nis/Makefile: Likewise.
13111         * resolv/Makefile: Likewise.
13112         * stdio-common/Makefile: Likewise.
13113         * wcsmbs/Makefile: Likewise.
13114         * dlfcn/Makefile: Likewise.
13115         * posix/Makefile: Likewise.
13116
13117         [BZ #6959]
13118         * timezone/Makefile: Don't install timezone files, just the programs
13119         and scripts.
13120
13121 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13122
13123         * nss/databases.def: Add missing gshadow entry.
13124
13125         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13126
13127 2012-03-06  Marek Polacek  <polacek@redhat.com>
13128
13129         [BZ #13726]
13130         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13131         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13132         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13133         * stdio-common/tst-long-dbl-fphex.c: New file.
13134
13135 2012-03-06  David S. Miller  <davem@davemloft.net>
13136
13137         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13138         (set_obp_int): New function.
13139         (get_obp_int): New function.
13140         (__get_clockfreq_via_dev_openprom): Likewise.
13141         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13142         Avoid unused variable warnings on 'val' and use builtin_expect.
13143         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13144         __builtin_expect.
13145         (INLINE_CLONE_SYSCALL): Likewise.
13146
13147 2012-03-05  David S. Miller  <davem@davemloft.net>
13148
13149         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13150
13151 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13152
13153         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13154
13155         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13156         only for |x| >= 40.
13157         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13158
13159 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13160
13161         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13162         Replace gettimeofday with __vdso_gettimeofday.
13163
13164         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13165         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13166         __vdso_clock_gettime and __vdso_getcpu.
13167
13168         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13169         time with __vdso_time.
13170
13171 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13172
13173         * manual/lang.texi (size_t): Note types to which size_t may be
13174         equivalent with the GNU C Library, but do not describe when
13175         differences between them are significant.
13176
13177 2012-03-05  Andreas Jaeger  <aj@suse.de>
13178
13179         * sysdeps/i386/fpu/libm-test-ulps: Update.
13180
13181 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13182
13183         [BZ #3976]
13184         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13185         (__ieee754_pow): Save and restore rounding mode and use
13186         round-to-nearest for main computations.
13187         * math/libm-test.inc (pow_test_tonearest): New function.
13188         (pow_test_towardzero): Likewise.
13189         (pow_test_downward): Likewise.
13190         (pow_test_upward): Likewise.
13191         (main): Call the new functions.
13192         * sysdeps/i386/fpu/libm-test-ulps: Update.
13193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13194
13195         [BZ #3976]
13196         * math/libm-test.inc (cosh_test_tonearest): New function.
13197         (cosh_test_towardzero): Likewise.
13198         (cosh_test_downward): Likewise.
13199         (cosh_test_upward): Likewise.
13200         (sinh_test_tonearest): Likewise.
13201         (sinh_test_towardzero): Likewise.
13202         (sinh_test_downward): Likewise.
13203         (sinh_test_upward): Likewise.
13204         (main): Call the new functions.
13205         * sysdeps/i386/fpu/libm-test-ulps: Update.
13206         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13207
13208 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13209
13210         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13211         default stack guard is set in last bytes.
13212         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13213
13214 2012-03-05  Kees Cook  <keescook@chromium.org>
13215
13216         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13217
13218         [BZ #13656]
13219         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13220         possibly allocate from heap instead of stack.
13221         * stdio-common/bug-vfprintf-nargs.c: New file.
13222         * stdio-common/Makefile (tests): Add nargs overflow test.
13223
13224 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13225
13226         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13227
13228 2012-03-03  Marek Polacek  <polacek@redhat.com>
13229
13230         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13231         * math/math_private.h: Likewise.
13232         * stdlib/tst-strtod.c: Likewise.
13233         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13234         * sysdeps/x86_64/bits/atomic.h: Likewise.
13235
13236 2012-03-02  David S. Miller  <davem@davemloft.net>
13237
13238         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13242         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13243         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13244         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13245         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13246
13247 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13248
13249         [BZ #13792]
13250         * manual/examples/README: New file, says the example source files
13251         can be used under GPL>=2.
13252         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13253         line containing just "*/".
13254         * manual/examples/add.c: Add copyright header (GPL>=2).
13255         * manual/examples/argp-ex1.c: Likewise.
13256         * manual/examples/argp-ex2.c: Likewise.
13257         * manual/examples/argp-ex3.c: Likewise.
13258         * manual/examples/argp-ex4.c: Likewise.
13259         * manual/examples/atexit.c: Likewise.
13260         * manual/examples/db.c: Likewise.
13261         * manual/examples/dir.c: Likewise.
13262         * manual/examples/dir2.c: Likewise.
13263         * manual/examples/execinfo.c: Likewise.
13264         * manual/examples/filecli.c: Likewise.
13265         * manual/examples/filesrv.c: Likewise.
13266         * manual/examples/fmtmsgexpl.c: Likewise.
13267         * manual/examples/genpass.c: Likewise.
13268         * manual/examples/inetcli.c: Likewise.
13269         * manual/examples/inetsrv.c: Likewise.
13270         * manual/examples/isockad.c: Likewise.
13271         * manual/examples/longopt.c: Likewise.
13272         * manual/examples/memopen.c: Likewise.
13273         * manual/examples/memstrm.c: Likewise.
13274         * manual/examples/mkfsock.c: Likewise.
13275         * manual/examples/mkisock.c: Likewise.
13276         * manual/examples/mygetpass.c: Likewise.
13277         * manual/examples/pipe.c: Likewise.
13278         * manual/examples/popen.c: Likewise.
13279         * manual/examples/rprintf.c: Likewise.
13280         * manual/examples/search.c: Likewise.
13281         * manual/examples/select.c: Likewise.
13282         * manual/examples/setjmp.c: Likewise.
13283         * manual/examples/sigh1.c: Likewise.
13284         * manual/examples/sigusr.c: Likewise.
13285         * manual/examples/stpcpy.c: Likewise.
13286         * manual/examples/strdupa.c: Likewise.
13287         * manual/examples/strftim.c: Likewise.
13288         * manual/examples/strncat.c: Likewise.
13289         * manual/examples/subopt.c: Likewise.
13290         * manual/examples/swapcontext.c: Likewise.
13291         * manual/examples/termios.c: Likewise.
13292         * manual/examples/testopt.c: Likewise.
13293         * manual/examples/testpass.c: Likewise.
13294         * manual/examples/timeval_subtract.c: Likewise.
13295
13296         [BZ #13792]
13297         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13298         function to ...
13299         * manual/timeval_subtract.c.texi: ... here, new file.
13300
13301 2012-03-02  David S. Miller  <davem@davemloft.net>
13302
13303         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13304
13305 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13306
13307         [BZ #3976]
13308         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13309         (__sin): Save and restore rounding mode and use round-to-nearest
13310         for all computations.
13311         (__cos): Save and restore rounding mode and use round-to-nearest
13312         for all computations.
13313         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13314         <fenv.h>.
13315         (tan): Save and restore rounding mode and use round-to-nearest for
13316         all computations.
13317         * math/libm-test.inc (cos_test_tonearest): New function.
13318         (cos_test_towardzero): Likewise.
13319         (cos_test_downward): Likewise.
13320         (cos_test_upward): Likewise.
13321         (sin_test_tonearest): Likewise.
13322         (sin_test_towardzero): Likewise.
13323         (sin_test_downward): Likewise.
13324         (sin_test_upward): Likewise.
13325         (tan_test_tonearest): Likewise.
13326         (tan_test_towardzero): Likewise.
13327         (tan_test_downward): Likewise.
13328         (tan_test_upward): Likewise.
13329         (main): Call the new functions.
13330         * sysdeps/i386/fpu/libm-test-ulps: Update.
13331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13332
13333         [BZ #10135]
13334         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13335         small n, then large n, before computing and testing k+n.
13336         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13337         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13338         Likewise.
13339         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13340         Likewise.
13341         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13342         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13343         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13344         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13345         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13346         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13347         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13348         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13349         * math/libm-test.inc (scalbn_test): Add more tests.
13350         (scalbln_test): Likewise.
13351
13352         * manual/filesys.texi (mode_t): Describe constraints on size and
13353         signedness, not exact equivalence to a particular type.
13354         (ino_t): Likewise.
13355         (ino64_t): Likewise.
13356         (dev_t): Likewise.
13357         (nlink_t): Likewise.
13358         (blkcnt_t): Likewise.
13359         (blkcnt64_t): Likewise.
13360         * manual/llio.texi (off_t): Likewise.
13361
13362         [BZ #3976]
13363         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13364         (__ieee754_exp): Save and restore rounding mode and use
13365         round-to-nearest for all computations.
13366         * math/libm-test.inc (exp_test_tonearest): New function.
13367         (exp_test_towardzero): Likewise.
13368         (exp_test_downward): Likewise.
13369         (exp_test_upward): Likewise.
13370         (main): Call the new functions.
13371         * sysdeps/i386/fpu/libm-test-ulps: Update.
13372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13373
13374 2012-03-01  Chris Demetriou  <cgd@google.com>
13375
13376         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13377         have predictable order.
13378
13379 2012-03-01  David S. Miller  <davem@davemloft.net>
13380
13381         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13382
13383         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13384         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13385         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13386         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13387
13388         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13389         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13390         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13391         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13392         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13393         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13394         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13395         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13396         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13397
13398         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13399
13400         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13401         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13402         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13403
13404         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13405         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13406         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13407         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13408         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13409         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13410         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13411         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13412         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13413         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13414         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13415         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13416         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13417         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13418         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13419         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13420         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13421         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13422         * sysdeps/sparc/elf/configure: Regenerated.
13423
13424 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13425
13426         * configure.in (AS, LD): Require binutils 2.20 or later.
13427         * configure: Regenerated.
13428         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13429         as required minimum version.
13430         * INSTALL: Regenerated.
13431
13432         [BZ #2541]
13433         [BZ #4108]
13434         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13435         before squaring exponent.
13436         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13437         bottom long double and 27 bits of top long double before squaring
13438         exponent.
13439         * math/libm-test.inc (erfc_test): Add more tests.
13440         * sysdeps/i386/fpu/libm-test-ulps: Update.
13441         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13442         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13443
13444 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13445
13446         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13447         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13448         containing bit-fields.
13449         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13450         * soft-fp/single.h (_FP_UNION_S): Likewise.
13451         * soft-fp/double.h (_FP_UNION_D): Likewise.
13452
13453 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13454
13455         [BZ #13786]
13456         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13457         not include ../strcmp.S.
13458         [USE_AS_STRNCASECMP_L]: Likewise.
13459         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13460         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13461         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13462         (__strncasecmp_l_ia32): Define as alias to
13463         __strncasecmp_l_nonascii.
13464
13465         [BZ #5794]
13466         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13467         * sysdeps/i386/fpu/libm-test-ulps: Update.
13468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13469
13470         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13472
13473 2012-02-29  Jeff Law  <law@redhat.com>
13474
13475         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13476         out of bounds read.
13477
13478 2012-02-29  Marek Polacek  <polacek@redhat.com>
13479
13480         [BZ #13706]
13481         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13482         * elf/Makefile: Add rules to run tst-unused-dep.out.
13483
13484 2012-02-28  David S. Miller  <davem@davemloft.net>
13485
13486         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13487         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13488         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13489         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13490         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13491         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13492
13493 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13494
13495         * math/libm-test.inc (llround_test): Move one test from
13496         lround_test.  Use TEST_f_L in moved test.
13497         (lround_test): Move misplaced test to llround_test.  Add testcase
13498         from bug 2561.
13499
13500 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13501
13502         * sysdeps/x86_64/fpu/e_expf.S: New file.
13503         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13504
13505 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13506
13507         [BZ #13637]
13508         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13509         of remain_len that may cause incomplete multi-byte character and
13510         false match.
13511         * posix/bug-regex33.c: New file.
13512         * posix/Makefile (tests): Add bug-regex33.
13513
13514 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13515
13516         * manual/macros.texi: New file.
13517         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13518         * manual/libc.texinfo: Include macros.texi.
13519         * manual/creatute.texi: Likewise.
13520         * manual/install.texi: Likewise.
13521         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13522         @glibcadj{} in references to the GNU C Library.
13523         * manual/charset.texi: Likewise.
13524         * manual/conf.texi: Likewise.
13525         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13526         when not using those macros.
13527         * manual/creature.texi: Likewise.
13528         * manual/crypt.texi: Likewise.
13529         * manual/errno.texi: Likewise.
13530         * manual/filesys.texi: Likewise.
13531         * manual/header.texi: Likewise.
13532         * manual/install.texi: Likewise.
13533         * manual/intro.texi: Likewise.
13534         * manual/io.texi: Likewise.
13535         * manual/job.texi: Likewise.
13536         * manual/lang.texi: Likewise.
13537         * manual/libc.texiinfo: Likewise.
13538         * manual/llio.texi: Likewise.
13539         * manual/locale.texi: Likewise.
13540         * manual/maint.texi: Likewise.
13541         * manual/math.texi: Likewise.
13542         * manual/memory.texi: Likewise.
13543         * manual/message.texi: Likewise.
13544         * manual/nss.texi: Likewise.
13545         * manual/pattern.texi: Likewise.
13546         * manual/process.texi: Likewise.
13547         * manual/resource.texi: Likewise.
13548         * manual/search.texi: Likewise.
13549         * manual/setjmp.texi: Likewise.
13550         * manual/signal.texi: Likewise.
13551         * manual/socket.texi: Likewise.
13552         * manual/startup.texi: Likewise.
13553         * manual/stdio.texi: Likewise.
13554         * manual/string.texi: Likewise.
13555         * manual/sysinfo.texi: Likewise.
13556         * manual/syslog.texi: Likewise.
13557         * manual/terminal.texi: Likewise.
13558         * manual/time.texi: Likewise.
13559         * manual/users.texi: Likewise.
13560         * INSTALL: Regenerated.
13561         * NOTES: Regenerated.
13562         * sysdeps/gnu/errlist.c: Regenerated.
13563
13564 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13565
13566         * include/dirent.h: Include <dirstream.h> before
13567         <dirent/dirent.h>.
13568
13569 2012-02-28  David S. Miller  <davem@davemloft.net>
13570
13571         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13572         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13573         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13574         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13575
13576 2012-02-27  David S. Miller  <davem@davemloft.net>
13577
13578         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13579         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13580         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13581         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13582
13583         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13584         frame pointer instead of stack pointer relative arg slot.
13585         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13586         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13587         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13588
13589 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13590
13591         [BZ #3992]
13592         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13593
13594 2012-02-27  David S. Miller  <davem@davemloft.net>
13595
13596         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13597         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13598         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13599         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13600         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13601         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13602         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13603         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13604
13605 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13606
13607         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13608         later.  Allow versions 5-9.
13609         * configure: Regenerated.
13610         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13611         required minimum version and 4.6 as recommended version.  Do not
13612         mention bugs in GCC 2.7 and 2.8.
13613         * INSTALL: Regenerated.
13614
13615 2012-02-27  David S. Miller  <davem@davemloft.net>
13616
13617         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13618         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13619         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13620         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13621         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13622         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13623         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13624         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13625
13626         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13627         manipulate bits before adding and subtracting TWO112[sx].
13628         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13629
13630 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13631
13632         [BZ #13775]
13633         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13634         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13635         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13636         being in POSIX, because they are in 1003.1-2008.
13637
13638         * rt/tst-aio.c: Include <fcntl.h>.
13639         * rt/tst-aio7.c: Likewise.
13640         * rt/tst-aio64.c: Likewise.
13641
13642         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13643
13644 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13645
13646         * manual/install.texi (--with-headers): Describe headers as
13647         interface headers, not private headers.
13648         (Specific advice for GNU/Linux systems): Describe use of headers
13649         from "make headers_install", not private headers from older
13650         kernels.
13651         * INSTALL: Regenerated.
13652         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13653         Change to 2.6.19.
13654         * sysdeps/unix/sysv/linux/configure: Regenerated.
13655
13656         * manual/llio.texi (fclean): Remove documentation.
13657
13658         * manual/Makefile (libc-texi-generated): New variable.  Include
13659         version.texi.
13660         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13661         $(libc-texi-generated), not duplicated list of files.
13662         (version.texi, stamp-version): New rules.
13663         (realclean): Remove $(libc-texi-generated), not individual files
13664         from that list.  Do not remove dir-add.texinfo.
13665         * manual/libc.texinfo: Comment out uses of edition numbers and
13666         references to printed manual.  Remove last-updated dates.
13667         (EDITION): Comment out.
13668         (ISBN): Likewise.
13669         (VERSION, UPDATED): Remove.
13670         (version.texi): Include.
13671
13672 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13673
13674         * sysdeps/posix/spawni.c: Include <signal.h>.
13675         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13676         * sysdeps/pthread/aio_fsync.c: Likewise.
13677
13678 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13679
13680         * conform/Makefile (tests): Run only when not cross-compiling and
13681         when fast-check is not defined.
13682
13683         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13684         * conform/data/limits.h-data: Fixes for POSIX2008.
13685         * conform/run-conformtest.sh: Run all tests.
13686         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13687         headers.
13688         * include/bits/dlfcn.h: Likewise.
13689         * include/langinfo.h: Likewise.
13690         * include/monetary.h: Likewise.
13691         * include/sys/poll.h: Likewise.
13692
13693         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13694         for __USE_GNU.
13695         * posix/spawn.h: Define __need_sigset_t.
13696         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13697         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13698         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13699         to get sigevent_t only.
13700         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13701         only for __USE_GNU.
13702         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13703         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13704         process_vm_writev only for __USE_GNU.
13705         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13706
13707         * conform/Makefile: For now ignore errors from run-conformtest.
13708         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13709         POSIX to avoid namespace pollution.  Don't prepend headers.
13710         * conform/data/aio.h-data: Fixes for POSIX testing.
13711         * conform/data/fcntl.h-data: Likewise.
13712         * conform/data/glob.h-data: Likewise.
13713         * conform/data/grp.h-data: Likewise.
13714         * conform/data/pthread.h-data: Likewise.
13715         * conform/data/pwd.h-data: Likewise.
13716         * conform/data/signal.h-data: Likewise.
13717         * conform/data/spawn.h-data: Likewise.
13718         * conform/data/stdio.h-data: Likewise.
13719         * conform/data/stdlib.h-data: Likewise.
13720         * conform/data/stropts.h-data: Likewise.
13721         * conform/data/sys/mman.h-data: Likewise.
13722         * conform/data/sys/stat.h-data: Likewise.
13723         * conform/data/sys/types.h-data: Likewise.
13724         * conform/data/sys/wait.h-data: Likewise.
13725         * conform/data/time.h-data: Likewise.
13726         * conform/data/unistd.h-data: Likewise.
13727         * conform/data/utime.h-data: Likewise.
13728
13729         * io/sys/stat.h: fchmod was always in POSIX.
13730         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13731         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13732         * rt/aio.h: Define __need_timespec before including <time.h>.
13733         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13734         struct.  Add forward declaration of pthread_attr_t and use it in
13735         sigevent.
13736         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13737         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13738         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13739         always remove CLK_TCK definition.
13740
13741 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13742
13743         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13744
13745 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13746
13747         * conform/run-conformtest.sh: New file.
13748         * conform/Makefile: Run run-conformtest for tests.
13749         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13750         support.
13751
13752         * conform/data/uchar.h-data: New file.
13753         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13754         * conform/data/arpa/inet.h-data: Likewise.
13755         * conform/data/assert.h-data: Likewise.
13756         * conform/data/complex.h-data: Likewise.
13757         * conform/data/cpio.h-data: Likewise.
13758         * conform/data/ctype.h-data: Likewise.
13759         * conform/data/dirent.h-data: Likewise.
13760         * conform/data/dlfcn.h-data: Likewise.
13761         * conform/data/errno.h-data: Likewise.
13762         * conform/data/fcntl.h-data: Likewise.
13763         * conform/data/float.h-data: Likewise.
13764         * conform/data/fmtmsg.h-data: Likewise.
13765         * conform/data/fnmatch.h-data: Likewise.
13766         * conform/data/ftw.h-data: Likewise.
13767         * conform/data/glob.h-data: Likewise.
13768         * conform/data/grp.h-data: Likewise.
13769         * conform/data/iconv.h-data: Likewise.
13770         * conform/data/inttypes.h-data: Likewise.
13771         * conform/data/langinfo.h-data: Likewise.
13772         * conform/data/libgen.h-data: Likewise.
13773         * conform/data/limits.h-data: Likewise.
13774         * conform/data/locale.h-data: Likewise.
13775         * conform/data/math.h-data: Likewise.
13776         * conform/data/monetary.h-data: Likewise.
13777         * conform/data/mqueue.h-data: Likewise.
13778         * conform/data/ndbm.h-data: Likewise.
13779         * conform/data/net/if.h-data: Likewise.
13780         * conform/data/netdb.h-data: Likewise.
13781         * conform/data/netinet/in.h-data: Likewise.
13782         * conform/data/nl_types.h-data: Likewise.
13783         * conform/data/poll.h-data: Likewise.
13784         * conform/data/pthread.h-data: Likewise.
13785         * conform/data/pwd.h-data: Likewise.
13786         * conform/data/regex.h-data: Likewise.
13787         * conform/data/sched.h-data: Likewise.
13788         * conform/data/search.h-data: Likewise.
13789         * conform/data/semaphore.h-data: Likewise.
13790         * conform/data/setjmp.h-data: Likewise.
13791         * conform/data/signal.h-data: Likewise.
13792         * conform/data/spawn.h-data: Likewise.
13793         * conform/data/stdarg.h-data: Likewise.
13794         * conform/data/stdio.h-data: Likewise.
13795         * conform/data/stdlib.h-data: Likewise.
13796         * conform/data/string.h-data: Likewise.
13797         * conform/data/strings.h-data: Likewise.
13798         * conform/data/stropts.h-data: Likewise.
13799         * conform/data/sys/ipc.h-data: Likewise.
13800         * conform/data/sys/mman.h-data: Likewise.
13801         * conform/data/sys/msg.h-data: Likewise.
13802         * conform/data/sys/resource.h-data: Likewise.
13803         * conform/data/sys/select.h-data: Likewise.
13804         * conform/data/sys/sem.h-data: Likewise.
13805         * conform/data/sys/shm.h-data: Likewise.
13806         * conform/data/sys/socket.h-data: Likewise.
13807         * conform/data/sys/stat.h-data: Likewise.
13808         * conform/data/sys/statvfs.h-data: Likewise.
13809         * conform/data/sys/time.h-data: Likewise.
13810         * conform/data/sys/timeb.h-data: Likewise.
13811         * conform/data/sys/times.h-data: Likewise.
13812         * conform/data/sys/types.h-data: Likewise.
13813         * conform/data/sys/uio.h-data: Likewise.
13814         * conform/data/sys/un.h-data: Likewise.
13815         * conform/data/sys/utsname.h-data: Likewise.
13816         * conform/data/sys/wait.h-data: Likewise.
13817         * conform/data/syslog.h-data: Likewise.
13818         * conform/data/tar.h-data: Likewise.
13819         * conform/data/termios.h-data: Likewise.
13820         * conform/data/utime.h-data: Likewise.
13821         * conform/data/utmpx.h-data: Likewise.
13822         * conform/data/varargs.h-data: Likewise.
13823         * conform/data/wchar.h-data: Likewise.
13824         * conform/data/wctype.h-data: Likewise.
13825         * conform/data/wordexp.h-data: Likewise.
13826
13827         * include/stropts.h: New file.
13828         * include/uchar.h: New file.
13829         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13830         * include/assert.h: Likewise.
13831         * include/ctype.h: Likewise.
13832         * include/dirent.h: Likewise.
13833         * include/dlfcn.h: Likewise.
13834         * include/fcntl.h: Likewise.
13835         * include/fnmatch.h: Likewise.
13836         * include/glob.h: Likewise.
13837         * include/grp.h: Likewise.
13838         * include/libio.h: Likewise.
13839         * include/locale.h: Likewise.
13840         * include/math.h: Likewise.
13841         * include/net/if.h: Likewise.
13842         * include/netdb.h: Likewise.
13843         * include/netinet/in.h: Likewise.
13844         * include/pthread.h: Likewise.
13845         * include/pwd.h: Likewise.
13846         * include/regex.h: Likewise.
13847         * include/sched.h: Likewise.
13848         * include/search.h: Likewise.
13849         * include/setjmp.h: Likewise.
13850         * include/signal.h: Likewise.
13851         * include/stdio.h: Likewise.
13852         * include/stdlib.h: Likewise.
13853         * include/string.h: Likewise.
13854         * include/sys/cdefs.h: Likewise.
13855         * include/sys/mman.h: Likewise.
13856         * include/sys/msg.h: Likewise.
13857         * include/sys/resource.h: Likewise.
13858         * include/sys/select.h: Likewise.
13859         * include/sys/socket.h: Likewise.
13860         * include/sys/stat.h: Likewise.
13861         * include/sys/statvfs.h: Likewise.
13862         * include/sys/time.h: Likewise.
13863         * include/sys/times.h: Likewise.
13864         * include/sys/uio.h: Likewise.
13865         * include/sys/utsname.h: Likewise.
13866         * include/sys/wait.h: Likewise.
13867         * include/termios.h: Likewise.
13868         * include/time.h: Likewise.
13869         * include/ulimit.h: Likewise.
13870         * include/unistd.h: Likewise.
13871         * include/utime.h: Likewise.
13872         * include/wchar.h: Likewise.
13873         * include/wctype.h: Likewise.
13874         * include/wordexp.h: Likewise.
13875
13876         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13877
13878         * time/time.h: TIME_UTC must be a macro.
13879         Make timespec_get available for ISO C11 only as well.
13880
13881 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13882
13883         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13884         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13885
13886 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13887
13888         * configure.in: Use -o not -a in test for unsupported multi-arch.
13889
13890 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13891
13892         * manual/texinfo.tex: Update to version 2012-01-19.16.
13893
13894 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13895
13896         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
13897
13898 2012-02-24  Roland McGrath  <roland@hack.frob.com>
13899
13900         [BZ #13738]
13901         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
13902         * manual/fdl-1.3.texi: New file.
13903         * manual/fdl-1.1.texi: File removed.
13904
13905         [BZ #13738]
13906         * manual/libc.texinfo (FDL_VERSION): New @set.
13907         Use it for mention of FDL in cover text.
13908         (Documentation License): Use it in @include file name.
13909
13910 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13911             Roland McGrath  <roland@hack.frob.com>
13912
13913         [BZ #5461]
13914         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
13915         not LONG_LONG_MAX and LONG_LONG_MIN.
13916         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
13917         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
13918         name.
13919         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
13920
13921 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13922
13923         [BZ #2547]
13924         [BZ #11365]
13925         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
13926         manipulate bits before adding and subtracting TWO23[sx].
13927         * math/libm-test.inc (nearbyint_test): Add more tests.
13928
13929 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13930
13931         [BZ #2548]
13932         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
13933         bits before adding and subtracting TWO23[sx].
13934         * math/libm-test.inc (rint_test): Add more tests.
13935         (rint_test_tonearest): Likewise.
13936         (rint_test_towardzero): Likewise.
13937         (rint_test_downward): Likewise.
13938         (rint_test_upward: Likewise.
13939
13940 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13941
13942         [BZ #10110]
13943         * include/stdc-predef.h: New file.  Extracted from features.h.
13944         * include/features.h: Include stdc-predef.h.
13945         * Makefile (headers): Add stdc-predef.h.
13946         * CONFORMANCE (Compiler limitations): Update.
13947
13948 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
13949
13950         * manual/libc.texinfo (VERSION, UPDATED): Revert.
13951
13952 2012-02-21  David S. Miller  <davem@davemloft.net>
13953
13954         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
13955         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
13956
13957 2012-02-20  David S. Miller  <davem@davemloft.net>
13958
13959         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
13960         using a normal save/restore sequence, rather than allocating a
13961         dummy stack frame just to store a frame pointer and restore.
13962         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13963
13964 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
13965
13966         * manual/install.texi: Fix stray word in line-wrapped comment.
13967
13968 2012-02-20  David S. Miller  <davem@davemloft.net>
13969
13970         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
13971         both binutils and gcc support GOTDATA.
13972
13973         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
13974         "rd %pc" in the PIC register setup sequences.
13975
13976         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
13977         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
13978         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13979         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
13980         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13981         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
13982         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13983         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13984         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
13985         (SYSCALL_ERROR_HANDLER): Likewise.
13986         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13987         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13988         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
13989         (SYSCALL_ERROR_HANDLER): Likewise.
13990
13991         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
13992         (HAVE_GCC_GOTDATA): New.
13993         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
13994         relocation support in both binutils and gcc.
13995         * sysdeps/sparc/elf/configure: Regenerate.
13996
13997         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
13998         * sysdeps/sparc/sparc32/elf/configure: Delete.
13999         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14000         * sysdeps/sparc/sparc64/elf/configure: Delete.
14001         * sysdeps/sparc/elf/configure.in: New file.
14002         * sysdeps/sparc/elf/configure: Generate.
14003
14004         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14005         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14006         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14007         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14008         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14009
14010 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14011
14012         * manual/install.texi: Do not mention specific glibc version
14013         numbers.
14014         * manual/libc.texinfo (VERSION, UPDATED): Update.
14015         (@copying): Use @copyright{} and range of years.
14016
14017 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14018
14019         [BZ #13695]
14020         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14021         [crti.S not in sysdirs] (generated): Do not append.
14022         [crti.S not in sysdirs] (omit-deps): Likewise.
14023         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14024         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14025         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14026         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14027         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14028         Likewise.
14029         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14030         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14031         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14032         * csu/defs.awk: Remove file.
14033         * sysdeps/generic/initfini.c: Likewise.
14034         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14035         variable.
14036         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14037         Likewise.
14038
14039 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14040
14041         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14042         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14043         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14044         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14045         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14046         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14047         <bits/epoll.h>.
14048         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14049         (__EPOLL_PACKED): Define to empty if not defined by
14050         <bits/epoll.h>.
14051         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14052         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14053         bits/epoll.h.
14054
14055 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14056
14057         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14058         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14059         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14060         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14061         <bits/timerfd.h>.
14062         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14063         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14064         bits/timerfd.h.
14065
14066 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14067
14068         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14069         in C locale.
14070         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14071         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14072         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14073         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14074
14075 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14076
14077         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14078         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14079
14080 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14081
14082         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14083         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14084         defined.
14085         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14086         Likewise.
14087         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14088         entry for 2.16.
14089
14090 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
14091
14092         * math/w_acos.c: Use non-signaling floating-point comparisons.
14093         * math/w_acosf.c: Likewise.
14094         * math/w_acosh.c: Likewise.
14095         * math/w_acoshf.c: Likewise.
14096         * math/w_acoshl.c: Likewise.
14097         * math/w_acosl.c: Likewise.
14098         * math/w_asin.c: Likewise.
14099         * math/w_asinf.c: Likewise.
14100         * math/w_asinl.c: Likewise.
14101         * math/w_atanh.c: Likewise.
14102         * math/w_atanhf.c: Likewise.
14103         * math/w_atanhl.c: Likewise.
14104         * math/w_exp2.c: Likewise.
14105         * math/w_exp2f.c: Likewise.
14106         * math/w_exp2l.c: Likewise.
14107         * math/w_j0.c: Likewise.
14108         * math/w_j0f.c: Likewise.
14109         * math/w_j0l.c: Likewise.
14110         * math/w_j1.c: Likewise.
14111         * math/w_j1f.c: Likewise.
14112         * math/w_j1l.c: Likewise.
14113         * math/w_jn.c: Likewise.
14114         * math/w_jnf.c: Likewise.
14115         * math/w_log.c: Likewise.
14116         * math/w_log10.c: Likewise.
14117         * math/w_log10f.c: Likewise.
14118         * math/w_log10l.c: Likewise.
14119         * math/w_log2.c: Likewise.
14120         * math/w_log2f.c: Likewise.
14121         * math/w_log2l.c: Likewise.
14122         * math/w_logf.c: Likewise.
14123         * math/w_logl.c: Likewise.
14124         * math/w_sqrt.c: Likewise.
14125         * math/w_sqrtf.c: Likewise.
14126         * math/w_sqrtl.c: Likewise.
14127         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14128         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14129         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14130         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14131         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14132
14133 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14134
14135         [BZ #9739]
14136         * manual/string.texi (strnlen): Use correct parameter name in
14137         equivalent expression.
14138
14139 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14140
14141         [BZ #11174]
14142         * manual/users.texi (seteuid): Consistently use neweuid for
14143         argument name.
14144
14145 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14146
14147         [BZ #13704]
14148         * manual/nss.texi (Services in the NSS configuration): Correct
14149         list of services in example configuration file.
14150
14151 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14152
14153         [BZ #11322]
14154         * manual/arith.texi: Remove statements about negative zero
14155         behaving identically to zero.
14156
14157 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14158
14159         [BZ #5993]
14160         * manual/install.texi: Do not document upgrading from libc5.
14161
14162 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14163
14164         [BZ #4596]
14165         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14166
14167 2012-02-18  David S. Miller  <davem@davemloft.net>
14168
14169         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14170         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14171         %o7 across the call.
14172         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14173         instead.
14174         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14175         SETUP_PIC_REG_LEAF.
14176         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14177         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14178         * sysdeps/sparc/crtn.S: Likewise.
14179
14180 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14181
14182         * aout/Makefile: Remove.
14183
14184 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14185
14186         [BZ #13058]
14187         * manual/examples/argp-ex1.c (main): Format definition in GNU
14188         style.
14189         * manual/examples/argp-ex2.c (main): Likewise.
14190         * manual/examples/argp-ex3.c (main): Likewise.
14191         * manual/examples/argp-ex4.c (main): Likewise.
14192         * manual/examples/longopt.c (main): Use new-style prototype
14193         definition.
14194         * manual/examples/strncat.c (main): Specify return type and use
14195         (void) for arguments.
14196         * manual/examples/subopt.c (main): Use char **argv argument.
14197
14198 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14199
14200         [BZ #5077]
14201         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14202         rounding modes.
14203
14204 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14205
14206         [BZ #6907]
14207         * manual/string.texi (strchr): Change when strchrnul is
14208         recommended.
14209
14210 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14211
14212         [BZ #174]
14213         * manual/locale.texi (setlocale): Document LOCPATH.
14214
14215 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14216
14217         [BZ #10210]
14218         * manual/process.texi (execle): Move @dots{} before last argument.
14219
14220 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14221
14222         [BZ #12047]
14223         * manual/charset.texi (Generic Charset Conversion): Fix typo
14224         (LC_TYPE -> LC_CTYPE).
14225
14226 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14227
14228         [BZ #5805]
14229         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14230         (scalbnf): Likewise.
14231         (scalbnl): Likewise.
14232         (scalbln): Likewise.
14233         (scalblnf): Likewise.
14234         (scalblnl): Likewise.
14235         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14236         (vwarnx): Likewise.
14237         (verr): Likewise.
14238         (verrx): Likewise.
14239         * manual/filesys.texi (telldir): Use braces around return type.
14240         * manual/llio.texi (mmap): Add space after comma.
14241         (mmap64): Likewise.
14242         * manual/math.texi (jn): Use @var{} on parameter names.
14243         (jnf): Likewise.
14244         (jnl): Likewise.
14245         (yn): Likewise.
14246         (ynf): Likewise.
14247         (ynl): Likewise.
14248         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14249         line.
14250         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14251         "...".
14252         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14253         (sched_get_priority_max): Likewise.
14254         * manual/signal.texi (sigvec): Add space after comma.
14255         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14256         names.
14257         (if_indextoname): Likewise.
14258         (if_freenameindex): Likewise.
14259         (sendto): Use ',' instead of '.' in prototype.
14260         * manual/startup.texi (syscall): Use @dots{} instead of literal
14261         "...".
14262         * manual/stdio.texi (__fpending): Separate initial words of
14263         paragraph from @deftypefun line.
14264         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14265         "...".
14266         (vsyslog): Use @var{} on parameter names.
14267         * manual/terminal.texi (stty): Use @var{} on parameter names.
14268         * manual/users.texi (getutmp): Use @var{} on parameter names.
14269         (getutmpx): Likewise.
14270
14271 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14272
14273         [BZ #6884]
14274         * manual/stdio.texi (fopen): Fix typos in description of
14275         ",ccs=STRING".
14276
14277 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14278
14279         [BZ #4026]
14280         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14281         get clock_id definition.
14282
14283 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14284
14285         [BZ #4822]
14286         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14287         (madvise): Cast every argument to void on its own.
14288
14289 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14290
14291         [BZ #9902]
14292         * manual/startup.texi (Exit Status): Fix typo.
14293
14294 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14295
14296         [BZ #10140]
14297         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14298         * manual/examples/argp-ex2.c: Likewise.
14299         * manual/examples/argp-ex3.c: Likewise.
14300
14301 2012-02-16  Richard Henderson  <rth@redhat.com>
14302
14303         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14304         * sysdeps/s390/s390-32/initfini.c: Remove.
14305         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14306         * sysdeps/s390/s390-64/initfini.c: Remove.
14307
14308 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14309
14310         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14311         compiler output for sysdeps/generic/initfini.c.
14312         * sysdeps/sh/elf/initfini.c: Remove file.
14313
14314 2012-02-16  David S. Miller  <davem@davemloft.net>
14315
14316         [BZ #11494]
14317         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14318
14319         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14320         * sysdeps/sparc/crti.S: New file.
14321         * sysdeps/sparc/crtn.S: New file.
14322         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14323         * sysdeps/sparc/sparc64/Makefile: Likewise.
14324
14325 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14326
14327         [BZ #3335]
14328         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14329
14330 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14331
14332         [BZ #4822]
14333         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14334
14335         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14336         (write, read, close): Likewise.
14337         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14338
14339 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14340
14341         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14342         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14343         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14344         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14345         <bits/signalfd.h>.
14346         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14347         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14348         bits/signalfd.h.
14349
14350 2012-02-14  Marek Polacek  <polacek@redhat.com>
14351
14352         * sysdeps/x86_64/crti.S: New file.
14353         * sysdeps/x86_64/crtn.S: New file.
14354         * sysdeps/x86_64/elf/initfini.c: Remove file.
14355
14356 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14357
14358         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14359         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14360         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14361         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14362         <bits/inotify.h>.
14363         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14364         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14365         bits/inotify.h.
14366
14367 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14368
14369         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14370         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14371         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14372         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14373         <bits/eventfd.h>.
14374         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14375         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14376         bits/eventfd.h.
14377
14378 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14379
14380         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14381         __feraiseexcept instead of feraiseexcept.
14382
14383         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14384         nanosleep invocations.
14385         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14386         strings, and add error checking for a nanosleep invocations.
14387
14388 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14389
14390         Replace FSF snail mail address with URLs, as per GNU coding standards.
14391         Most of the snail mail addresses were wrong anyway, and omitting
14392         them makes the source code easier to maintain.  Almost all of the
14393         changes are to license notices and to locale LC_IDENTIFICATION
14394         addresses, except for this one:
14395         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14396         not its snail mail address.
14397
14398 2012-02-09  Richard Henderson  <rth@twiddle.net>
14399
14400         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14401         of kernel-features.h.
14402
14403         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14404
14405 2012-02-08  Marek Polacek  <polacek@redhat.com>
14406
14407         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14408         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14409         * sysdeps/gnu/_G_config.h: Likewise.
14410         * sysdeps/generic/_G_config.h: Likewise.
14411
14412 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14413
14414         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14415         tests.
14416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14417
14418         * sysdeps/powerpc/powerpc32/crti.S: New file.
14419         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14420         * sysdeps/powerpc/powerpc64/crti.S: New file.
14421         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14422
14423         * Makeconfig (have-initfini): Don't set.
14424         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14425         * configure.in (nopic_initfini): Don't substitute.
14426         * config.h.in (HAVE_INITFINI): Don't #undef.
14427         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14428         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14429
14430 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14431
14432         Support crti.S and crtn.S provided directly by architectures.
14433         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14434         [crti.S in sysdirs] (omit-deps): Likewise.
14435         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14436         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14437         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14438         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14439         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14440         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14441         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14442         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14443         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14444         compiler output for sysdeps/generic/initfini.c.
14445         * sysdeps/i386/elf/Makefile: Remove file.
14446         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14447
14448 2012-02-07  Marek Polacek  <polacek@redhat.com>
14449
14450         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14451         * sysdeps/gnu/_G_config.h: Likewise.
14452         * sysdeps/mach/hurd/_G_config.h: Likewise.
14453
14454 2012-02-07  Marek Polacek  <polacek@redhat.com>
14455
14456         * math/Makefile (tests): Add tst-CMPLX2.
14457         * math/tst-CMPLX2.c: New file.
14458
14459 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14460
14461         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14462
14463         * math/libm-test.inc (jn_test): Add missing L suffix.
14464
14465 2012-02-06  Marek Polacek  <polacek@redhat.com>
14466
14467         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14468         * sysdeps/i386/fpu/e_powf.S: Likewise.
14469         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14470         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14471         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14472         * sysdeps/i386/fpu/e_pow.S: Likewise.
14473         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14474         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14475         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14476         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14477         * sysdeps/i386/fpu/e_log2.S: Likewise.
14478         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14479         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14480         * sysdeps/i386/fpu/e_powl.S: Likewise.
14481         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14482         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14483         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14484         * sysdeps/i386/fpu/e_logl.S: Likewise.
14485         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14486         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14487         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14488         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14489         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14490         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14491         * sysdeps/i386/fpu/e_log.S: Likewise.
14492         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14493         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14494         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14495         * sysdeps/i386/fpu/e_logf.S: Likewise.
14496         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14497         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14498         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14499         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14500         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14501         * sysdeps/i386/fpu/e_log10.S: Likewise.
14502         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14503         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14504         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14505         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14506         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14507         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14508         * sysdeps/i386/asm-syntax.h: Likewise.
14509         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14510         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14511         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14512         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14513         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14514         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14515         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14516         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14517         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14518         * sysdeps/powerpc/sysdep.h: Likewise.
14519         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14520         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14521
14522 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14523
14524         [BZ #411]
14525         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14526
14527 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14528
14529         * sysdeps/i386/sysdep.h: Include <features.h>.
14530         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14531         version.
14532
14533 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14534
14535         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14536         Define.
14537         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14538         LOAD_PIC_REG_STR.
14539
14540 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14541
14542         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14543         (SETUP_PIC_REG): Use GET_PC_THUNK.
14544         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14545         macro.
14546
14547 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14548
14549         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14550         for non-PIC compilation.
14551         (SETUP_PIC_REG): Add .p2align directive.
14552         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14553         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14554         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14555         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14556         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14557         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14558         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14559         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14560         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14561         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14562         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14563         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14564         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14565         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14566         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14567         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14568         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14569         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14570         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14571         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14572         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14573         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14574         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14575         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14576         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14577         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14578         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14579         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14580         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14581         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14582         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14583         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14584         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14585         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14586         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14587         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14588         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14589         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14590         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14591         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14592         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14593
14594 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14595
14596         * math/tst-CMPLX.c: Include <stdio.h>.
14597
14598 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14599
14600         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14601         float.
14602         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14603         * sysdeps/sparc/bits/mathdef.h: Likewise.
14604
14605 2012-01-31  Marek Polacek  <polacek@redhat.com>
14606
14607         * libio/libio.h: Don't define _PARAMS.
14608         * locale/programs/config.h: Don't define PARAMS.
14609         * stdlib/strtol_l.c: Likewise.
14610         (__strtol_l): Remove PARAMS from the prototype.
14611
14612 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14613
14614         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14615         names.  Just use the correct names.  Remove unnecessary wrapper
14616         functions.
14617         * malloc/arena.c: Likewise.
14618         * malloc/hooks.c: Likewise.
14619
14620         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14621         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14622         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14623
14624 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14625
14626         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14627         into tail calls.
14628         (update_get_addr): New function.
14629         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14630         GET_ADDR_MODULE parameter.
14631
14632 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14633
14634         * crypt/cert.c: Remove __STDC__ conditionals.
14635         * crypt/crypt-entry.c: Likewise.
14636         * crypt/crypt_util.c: Likewise.
14637         * libio/filedoalloc.c: Likewise.
14638         * libio/fileops.c: Likewise.
14639         * libio/genops.c: Likewise.
14640         * libio/iofclose.c: Likewise.
14641         * libio/iofdopen.c: Likewise.
14642         * libio/iofopen.c: Likewise.
14643         * libio/iofopen64.c: Likewise.
14644         * libio/iogetdelim.c: Likewise.
14645         * libio/iopopen.c: Likewise.
14646         * libio/obprintf.c: Likewise.
14647         * libio/oldfileops.c: Likewise.
14648         * libio/oldiofclose.c: Likewise.
14649         * libio/oldiofdopen.c: Likewise.
14650         * libio/oldiofopen.c: Likewise.
14651         * libio/oldiopopen.c: Likewise.
14652         * libio/wfiledoalloc.c: Likewise.
14653         * libio/wgenops.c: Likewise.
14654         * locale/programs/xmalloc.c: Likewise.
14655         * misc/syslog.c: Likewise.
14656         * stdio-common/xbug.c: Likewise.
14657         * string/memchr.c: Likewise.
14658         * string/memcmp.c: Likewise.
14659         * string/memrchr.c: Likewise.
14660         * string/rawmemchr.c: Likewise.
14661         * sysdeps/posix/getcwd.c: Likewise.
14662         * time/strftime_l.c: Likewise.
14663
14664 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14665
14666         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14667         * config.make.in (config-cflags-sse2avx): Define.
14668         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14669         Fix typo.
14670
14671 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14672
14673         * scripts/config.guess: Update from upstream config git repository.
14674         * scripts/config.sub: Likewise.
14675
14676 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14677
14678         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14679         (EM_NUM): Update.
14680         (R_TILEPRO_*, R_TILEGX_*): New macros.
14681
14682         * scripts/firstversions.awk: Fix bug in version range handling.
14683
14684         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14685
14686         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14687
14688         * include/sys/epoll.h: New file.
14689         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14690         libc_hidden_def.
14691
14692 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14693
14694         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14695         Avoid unnecessary __WORDSIZE == 64 test.
14696         (fmaxf): Use VEX format if possible.
14697         (fmax): Likewise.
14698         (fminf): Likewise.
14699         (fmin): Likewise.
14700
14701         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14702         * math/math_private.h: Remove libc_fegetround* and
14703         libc_fesetround*.
14704         * sysdeps/i386/configure.in: Check for -msse2avx.
14705         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14706         also if SSE2AVX is defined.
14707         Remove libc_fegetround* and libc_fesetround*.
14708         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14709         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14710         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14711         of HAS_YMM_USABLE.
14712         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14713         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14714         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14715         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14716         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14717
14718         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14719
14720 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14721
14722         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14723         size is not set.
14724         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14725
14726 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14727
14728         [BZ #13618]
14729         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14730         relocation.
14731         * Makeconfig (libm): Define.
14732         * elf/Makefile: Add rules to build and run tst-relsort1.
14733         * elf/tst-relsort1.c: New file.
14734         * elf/tst-relsort1mod1.c: New file.
14735         * elf/tst-relsort1mod2.c: New file.
14736
14737 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14738
14739         * math/s_ldexp.c: Remove __STDC__ conditionals.
14740         * math/s_ldexpf.c: Likewise.
14741         * math/s_ldexpl.c: Likewise.
14742         * math/s_nextafter.c: Likewise.
14743         * math/s_nexttowardf.c: Likewise.
14744         * math/s_significand.c: Likewise.
14745         * math/s_significandf.c: Likewise.
14746         * math/s_significandl.c: Likewise.
14747         * math/w_jnl.c: Likewise.
14748         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14749         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14750         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14751         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14752         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14753         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14754         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14755         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14756         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14757         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14758         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14759         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14760         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14761         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14762         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14763         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14764         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14765         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14766         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14767         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14768         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14769         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14770         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14771         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14772         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14773         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14774         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14775         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14776         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14777         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14778         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14779         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14780         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14781         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14782         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14783         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14784         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14785         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14786         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14787         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14788         * sysdeps/ieee754/k_standard.c: Likewise.
14789         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14790         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14791         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14792         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14793         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14794         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14795         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14796         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14797         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14798         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14799         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14800         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14801         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14802         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14803         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14804         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14805         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14806         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14807         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14808         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14809         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14810         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14811         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14812         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14813         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14814         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14815         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14816         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14817         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14818         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14819         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14820         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14821         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14822         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14823         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14824         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14825         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14826         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14827         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14828         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14829         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14830         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14831         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14832         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14833         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14834         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14835         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14836         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14837         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14838         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14839         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14840         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14841         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14842         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14843         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14844         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14845         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14846         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14847         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14848         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14849         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14850         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14851         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14852         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14853         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14854         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14855         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14856         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14857         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14858         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14859         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14860         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14861         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14862         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14863         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14864         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14865         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14866         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14867         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14868         * sysdeps/ieee754/s_matherr.c: Likewise.
14869         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14870         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14871         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14872         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14873
14874 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14875
14876         * crypt/md5.h: Remove __STDC__ conditionals.
14877         * libio/libioP.h: Likewise.
14878         * locale/programs/config.h: Likewise.
14879         * sysdeps/generic/sysdep.h: Likewise.
14880         * sysdeps/i386/asm-syntax.h: Likewise.
14881         * sysdeps/s390/asm-syntax.h: Likewise.
14882         * sysdeps/unix/sysdep.h: Likewise.
14883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14885
14886 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14887
14888         * libio/libio.h: Remove __STDC__ conditionals.
14889         * malloc/obstack.h: Likewise.
14890         * math/complex.h: Likewise.
14891         * math/math.h: Likewise.
14892         * sysdeps/generic/_G_config.h: Likewise.
14893         * sysdeps/gnu/_G_config.h: Likewise.
14894         * sysdeps/mach/hurd/_G_config.h: Likewise.
14895         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14896         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14897         * sysdeps/sparc/bits/mathdef.h: Likewise.
14898
14899 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
14900
14901         [BZ #13583]
14902         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
14903         Clean up HAS_* macros.
14904         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
14905         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
14906         possible.
14907         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
14908         HAS_AVX.
14909         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14910         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14911         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14912         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14913         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14914
14915 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
14916
14917         * elf/tst-unique3.cc (gets): Remove declaration.
14918         * elf/tst-unique3lib.cc (gets): Likewise.
14919         * elf/tst-unique3lib2.cc (gets): Likewise.
14920         * elf/tst-unique4.cc (gets): Likewise.
14921
14922 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
14923
14924         * include/stdio.h: Add C++ protection.  Add gets declarations and
14925         definitions.
14926         * debug/tst-chk1.c: Don't declare gets here.
14927         * stdio-common/tst-gets.c: Likewise.
14928
14929 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14930
14931         * posix/glob: Remove directory.
14932
14933 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
14934
14935         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
14936
14937 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
14938
14939         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
14940         of the non-standard EPFNOSUPPORT.
14941
14942 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14943
14944         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
14945         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
14946         ANYWHERE set to 1 only on KERN_NO_SPACE error.
14947
14948 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
14949
14950         * wcsmbs/uchar.h: Test __STDC_VERSION__.
14951
14952 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
14953
14954         * nscd/aicache.c (addhstaiX): Do not cache negative results of
14955         transient errors.
14956         * nscd/grpcache.c (cache_addgr): Likewise.
14957         * nscd/hstcache.c (cache_addhst): Likewise.
14958         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14959         * nscd/pwdcache.c (cache_addpw): Likewise.
14960         * nscd/servicescache.c (cache_addserv): Likewise.
14961
14962 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
14963
14964         * malloc/malloc.c: Various cleanups.
14965         * malloc/hooks.c: Likewise.
14966
14967         * stdlib/Makefile (tests): Add bug-fmtmsg1.
14968         * stdlib/bug-fmtmsg1.c: New file.
14969
14970         * stdlib/fmtmsg.c (init): Add missing unlock.
14971         Patch by Peng Haitao <penght@cn.fujitsu.com>.
14972
14973 2012-01-12  Marek Polacek  <polacek@redhat.com>
14974
14975         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
14976         and _GNU_SOURCE.
14977
14978 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14979
14980         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
14981         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
14982         macro to ensure uniqueness of label name.
14983         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14984         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14985
14986 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
14987
14988         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
14989
14990         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
14991         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
14992         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
14993         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
14994
14995 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
14996
14997         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
14998
14999         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15000         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15001         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15002
15003         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15004
15005         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15006         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15007         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15008         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15009
15010         * math/bits/math-finite.h: Add ldexp support.
15011
15012 2012-01-10  Marek Polacek  <polacek@redhat.com>
15013
15014         * locale/programs/localedef.h (show_archive_content): Add noreturn
15015         attribute.
15016
15017 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15018
15019         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15020
15021 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15022
15023         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15024
15025         * io/Makefile (headers): Add bits/poll2.h.
15026
15027 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15028
15029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15030         typo #include statement.
15031
15032 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15033
15034         * include/sys/cdefs.h: Define __attribute_alloc_size.
15035         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15036         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15037         * elf/pldd.c: Likewise.
15038         * iconv/iconv_charmap.c: Likewise.
15039         * iconv/iconvconfig.c: Likewise.
15040         * iconv/strtab.c: Likewise.
15041         * locale/programs/locale.c: Likewise.
15042         * locale/programs/localedef.h: Likewise.
15043         * locale/programs/simple-hash.c: Likewise.
15044         * nscd/nscd.h: Likewise.
15045         * nss/makedb.c: Likewise.
15046         * sysdeps/generic/ldconfig.h: Likewise.
15047         * locale/programs/localedef.c: Remove xmalloc prototype.
15048         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15049
15050 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15051
15052         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15053         appropriate.
15054
15055 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15056
15057         * math/Makefile (tests): Add tst-CMPLX.
15058         * math/tst-CMPLX.c: New file.
15059
15060         * math/complex.h (CMPLXL): Fix typo.
15061
15062         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15063         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15064         GLIBC_2.16.
15065         * debug/tst-chk1.c: Add poll and ppoll tests.
15066         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15067         * include/sys/poll.h: Add hidden proto for ppoll.
15068         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15069         * sysdeps/mach/hurd/ppoll.c: Likewise.
15070         * io/ppoll.c: Likewise.
15071         * debug/poll_chk.c: New file.
15072         * debug/ppoll_chk.c: New file.
15073         * include/bits/poll2.h: New file.
15074         * io/bits/poll2.h: New file.
15075
15076         [BZ #1350]
15077         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15078
15079         * configure.in: static is always set to yes.  Remove.
15080         * config.make.in: Don't set build-static.
15081         * Makeconfig: Remove use of build-static.
15082         * dlfcn/Makefile: Likewise.
15083         * elf/Makefile: Likewise.
15084         * math/Makefile: Likewise.
15085         * misc/Makefile: Likewise.
15086         * nptl/Makefile: Likewise.
15087         * sysdeps/mach/hurd/Makefile: Likewise.
15088
15089         * configure.in: PWD_P is not used anymore.
15090         * config.make.in: Remove PWD_P entry.
15091
15092         * configure.in: Remove last remnants of RANLIB.
15093         No need to check for signed size_t anymore.
15094         Don't set libc_commonpagesize and libc_relro_required here for Alpha
15095         and IA-64.
15096         Remove __builtin_expect test because we require at least gcc 3.4.
15097         * aclocal.m4: Likewise.
15098
15099         * wcsmbs/mbrtoc16.c: Implement using towc function.
15100         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15101         * wcsmbs/wcsmbsload.c: Likewise.
15102         * iconv/gconv_simple.c: Likewise.
15103         * iconv/gconv_int.h: Likewise.
15104         * iconv/gconv_builtin.h: Likewise.
15105         * iconv/iconv_prog.c: Remove CHAR16 handling.
15106
15107         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15108
15109         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15110
15111         * configure.in: Remove --with-elf and --enable-bounded options.
15112         Dont set base_machine for ia64.  More non-ELF conditions removed.
15113         Remove testing and setting of leading underscore information.
15114         * config.make.in (build-bounded): Set to no.
15115         * config.h.in: Remove NO_UNDERSCORES entry.
15116         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15117         them.
15118         * csu/start.c: Remove !NO_UNDERSCORE code.
15119         * locale/localeinfo.h: Likewise.
15120         * sysdeps/generic/machine-gmon.h: Likewise.
15121         * sysdeps/generic/sysdep.h: Likewise.
15122         * sysdeps/i386/sysdep.h: Likewise.
15123         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15124         * sysdeps/mach/sysdep.h: Likewise.
15125         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15126         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15127         * sysdeps/sh/sysdep.h: Likewise.
15128         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15129         * sysdeps/unix/i386/sysdep.S: Likewise.
15130         * sysdeps/unix/sparc/start.c: Likewise.
15131         * sysdeps/unix/sparc/sysdep.S: Likewise.
15132         * sysdeps/unix/sparc/sysdep.h: Likewise.
15133         * sysdeps/unix/start.c: Likewise.
15134         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15135         * sysdeps/x86_64/sysdep.h: Likewise.
15136
15137 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15138
15139         [BZ #13553]
15140         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15141         for non-gcc.
15142         * argp/argp-fmtstream.h: Use const instead __const.
15143         * argp/argp.h: Likewise.
15144         * assert/assert.h: Likewise.
15145         * bits/fenv.h: Likewise.
15146         * bits/sched.h: Likewise.
15147         * bits/sigset.h: Likewise.
15148         * bits/sigthread.h: Likewise.
15149         * catgets/nl_types.h: Likewise.
15150         * conform/data/pthread.h-data: Likewise.
15151         * crypt/crypt-private.h: Likewise.
15152         * crypt/crypt.h: Likewise.
15153         * crypt/crypt_util.c: Likewise.
15154         * ctype/ctype.h: Likewise.
15155         * debug/execinfo.h: Likewise.
15156         * debug/mbsnrtowcs_chk.c: Likewise.
15157         * debug/mbsrtowcs_chk.c: Likewise.
15158         * debug/wcsnrtombs_chk.c: Likewise.
15159         * debug/wcsrtombs_chk.c: Likewise.
15160         * debug/wcstombs_chk.c: Likewise.
15161         * dirent/dirent.h: Likewise.
15162         * dlfcn/dlfcn.h: Likewise.
15163         * elf/neededtest4.c: Likewise.
15164         * grp/grp.h: Likewise.
15165         * gshadow/gshadow.h: Likewise.
15166         * iconv/gconv.h: Likewise.
15167         * iconv/gconv_int.h: Likewise.
15168         * iconv/gconv_simple.c: Likewise.
15169         * iconv/iconv.h: Likewise.
15170         * iconv/loop.c: Likewise.
15171         * iconv/skeleton.c: Likewise.
15172         * include/aio.h: Likewise.
15173         * include/aliases.h: Likewise.
15174         * include/argz.h: Likewise.
15175         * include/arpa/inet.h: Likewise.
15176         * include/assert.h: Likewise.
15177         * include/dirent.h: Likewise.
15178         * include/dlfcn.h: Likewise.
15179         * include/execinfo.h: Likewise.
15180         * include/fcntl.h: Likewise.
15181         * include/fenv.h: Likewise.
15182         * include/glob.h: Likewise.
15183         * include/grp.h: Likewise.
15184         * include/libintl.h: Likewise.
15185         * include/mntent.h: Likewise.
15186         * include/netdb.h: Likewise.
15187         * include/pwd.h: Likewise.
15188         * include/rpc/netdb.h: Likewise.
15189         * include/sched.h: Likewise.
15190         * include/search.h: Likewise.
15191         * include/shadow.h: Likewise.
15192         * include/signal.h: Likewise.
15193         * include/stdio.h: Likewise.
15194         * include/stdlib.h: Likewise.
15195         * include/string.h: Likewise.
15196         * include/sys/socket.h: Likewise.
15197         * include/sys/stat.h: Likewise.
15198         * include/sys/statfs.h: Likewise.
15199         * include/sys/statvfs.h: Likewise.
15200         * include/sys/syslog.h: Likewise.
15201         * include/sys/time.h: Likewise.
15202         * include/sys/uio.h: Likewise.
15203         * include/time.h: Likewise.
15204         * include/unistd.h: Likewise.
15205         * include/utmp.h: Likewise.
15206         * include/wchar.h: Likewise.
15207         * include/wctype.h: Likewise.
15208         * inet/aliases.h: Likewise.
15209         * inet/arpa/inet.h: Likewise.
15210         * inet/netinet/ether.h: Likewise.
15211         * inet/netinet/in.h: Likewise.
15212         * intl/libintl.h: Likewise.
15213         * io/bits/fcntl2.h: Likewise.
15214         * io/fcntl.h: Likewise.
15215         * io/ftw.h: Likewise.
15216         * io/sys/poll.h: Likewise.
15217         * io/sys/stat.h: Likewise.
15218         * io/sys/statfs.h: Likewise.
15219         * io/sys/statvfs.h: Likewise.
15220         * io/utime.h: Likewise.
15221         * libio/bits/stdio.h: Likewise.
15222         * libio/bits/stdio2.h: Likewise.
15223         * libio/libio.h: Likewise.
15224         * libio/libioP.h: Likewise.
15225         * libio/stdio.h: Likewise.
15226         * locale/lc-ctype.c: Likewise.
15227         * locale/locale.h: Likewise.
15228         * login/utmp.h: Likewise.
15229         * malloc/arena.c: Likewise.
15230         * malloc/malloc.c: Likewise.
15231         * malloc/malloc.h: Likewise.
15232         * malloc/mcheck.c: Likewise.
15233         * malloc/mtrace.c: Likewise.
15234         * math/bits/mathcalls.h: Likewise.
15235         * math/fenv.h: Likewise.
15236         * math/math_private.h: Likewise.
15237         * misc/bits/error.h: Likewise.
15238         * misc/bits/syslog.h: Likewise.
15239         * misc/err.h: Likewise.
15240         * misc/error.h: Likewise.
15241         * misc/fstab.h: Likewise.
15242         * misc/mntent.h: Likewise.
15243         * misc/regexp.h: Likewise.
15244         * misc/search.h: Likewise.
15245         * misc/sgtty.h: Likewise.
15246         * misc/sys/mman.h: Likewise.
15247         * misc/sys/syslog.h: Likewise.
15248         * misc/sys/uio.h: Likewise.
15249         * misc/sys/xattr.h: Likewise.
15250         * misc/ttyent.h: Likewise.
15251         * nis/rpcsvc/ypclnt.h: Likewise.
15252         * nss/nss.h: Likewise.
15253         * posix/bits/unistd.h: Likewise.
15254         * posix/fnmatch.h: Likewise.
15255         * posix/glob.h: Likewise.
15256         * posix/sched.h: Likewise.
15257         * posix/spawn.h: Likewise.
15258         * posix/sys/wait.h: Likewise.
15259         * posix/unistd.h: Likewise.
15260         * posix/wordexp.h: Likewise.
15261         * pwd/pwd.h: Likewise.
15262         * resolv/netdb.h: Likewise.
15263         * resource/sys/resource.h: Likewise.
15264         * rt/aio.h: Likewise.
15265         * rt/bits/mqueue2.h: Likewise.
15266         * rt/mqueue.h: Likewise.
15267         * shadow/shadow.h: Likewise.
15268         * signal/signal.h: Likewise.
15269         * socket/send.c: Likewise.
15270         * socket/sendto.c: Likewise.
15271         * socket/sys/socket.h: Likewise.
15272         * stdio-common/printf.h: Likewise.
15273         * stdlib/bits/stdlib.h: Likewise.
15274         * stdlib/fmtmsg.h: Likewise.
15275         * stdlib/monetary.h: Likewise.
15276         * stdlib/stdlib.h: Likewise.
15277         * stdlib/ucontext.h: Likewise.
15278         * streams/stropts.h: Likewise.
15279         * string/argz.h: Likewise.
15280         * string/bits/string2.h: Likewise.
15281         * string/string.h: Likewise.
15282         * string/strings.h: Likewise.
15283         * sunrpc/rpc/auth.h: Likewise.
15284         * sunrpc/rpc/auth_des.h: Likewise.
15285         * sunrpc/rpc/clnt.h: Likewise.
15286         * sunrpc/rpc/netdb.h: Likewise.
15287         * sunrpc/rpc/pmap_clnt.h: Likewise.
15288         * sunrpc/rpc/xdr.h: Likewise.
15289         * sysdeps/generic/inttypes.h: Likewise.
15290         * sysdeps/generic/net/if.h: Likewise.
15291         * sysdeps/generic/sys/swap.h: Likewise.
15292         * sysdeps/gnu/net/if.h: Likewise.
15293         * sysdeps/gnu/utmpx.h: Likewise.
15294         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15295         * sysdeps/i386/i486/bits/string.h: Likewise.
15296         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15297         * sysdeps/s390/bits/string.h: Likewise.
15298         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15299         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15300         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15301         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15302         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15303         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15304         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15305         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15306         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15307         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15308         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15309         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15310         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15311         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15312         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15313         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15314         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15315         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15316         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15317         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15318         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15319         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15320         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15321         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15322         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15323         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15324         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15325         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15326         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15327         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15328         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15329         * sysvipc/sys/ipc.h: Likewise.
15330         * sysvipc/sys/msg.h: Likewise.
15331         * sysvipc/sys/sem.h: Likewise.
15332         * sysvipc/sys/shm.h: Likewise.
15333         * termios/termios.h: Likewise.
15334         * time/sys/time.h: Likewise.
15335         * time/time.h: Likewise.
15336         * wcsmbs/bits/wchar2.h: Likewise.
15337         * wcsmbs/uchar.h: Likewise.
15338         * wcsmbs/wchar.h: Likewise.
15339         * wctype/wctype.h: Likewise.
15340
15341         [BZ #13551]
15342         * Makeconfig: Remove all but ELF support including AIX support.
15343         * Makerules: Likewise.
15344         * config.h.in: Likewise.
15345         * config.make.in: Likewise.
15346         * configure: Likewise.
15347         * configure.in: Likewise.
15348         * csu/Makefile: Likewise.
15349         * csu/version.c: Likewise.
15350         * debug/Makefile: Likewise.
15351         * dlfcn/Makefile: Likewise.
15352         * elf/Makefile: Likewise.
15353         * extra-lib.mk: Likewise.
15354         * iconv/Makefile: Likewise.
15355         * include/libc-symbols.h: Likewise.
15356         * include/shlib-compat.h: Likewise.
15357         * resolv/Makefile: Likewise.
15358         * resolv/res_libc.c: Likewise.
15359         * rt/Makefile: Likewise.
15360         * sysdeps/i386/asm-syntax.h: Likewise.
15361         * sysdeps/i386/sysdep.h: Likewise.
15362         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15363         * sysdeps/mach/sysdep.h: Likewise.
15364         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15365         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15366         * sysdeps/s390/asm-syntax.h: Likewise.
15367         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15368         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15369         * sysdeps/sh/sysdep.h: Likewise.
15370         * sysdeps/unix/sparc/sysdep.h: Likewise.
15371         * sysdeps/wordsize-32/divdi3.c: Likewise.
15372         * sysdeps/x86_64/sysdep.h: Likewise.
15373
15374         * argp/Versions: Remove _argp_unlock_xxx.
15375
15376         [BZ #13559]
15377         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15378         * abilist/libBrokenLocale.abilist: Likewise.
15379         * abilist/libanl.abilist: Likewise.
15380         * abilist/libc.abilist: Likewise.
15381         * abilist/libcrypt.abilist: Likewise.
15382         * abilist/libdl.abilist: Likewise.
15383         * abilist/libm.abilist: Likewise.
15384         * abilist/libnsl.abilist: Likewise.
15385         * abilist/libpthread.abilist: Likewise.
15386         * abilist/libresolv.abilist: Likewise.
15387         * abilist/librt.abilist: Likewise.
15388         * abilist/libthread_db.abilist: Likewise.
15389         * abilist/libutil.abilist: Likewise.
15390         * abilist/libnss_db.abilist: New file.
15391
15392         * scripts/abilist.awk: Add support for indirect functions.
15393
15394         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15395
15396         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15397
15398         * shlib-versions: Remove entries for ports architectures.
15399
15400         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15401         files in ports.
15402         * elf/stackguard-macros.h: Remove support for IA-64.
15403         * elf/tst-auditmod1.c: Likewise.
15404         * sysdeps/generic/ldsodefs.h: Likewise.
15405
15406         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15407         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15408         configure files.
15409
15410         [BZ #13552]
15411         * configure.in: Remove --enable-omitfp support.
15412         * FAQ.in: Adjust.
15413         * config.make.in: Likewise.
15414         * Makeconfig: Likewise.
15415         * manual/install.texi: Likewise.
15416
15417         In case anyone cares, the IA-64 architecture could move to ports.
15418         * sysdeps/ia64/*: Removed.
15419         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15420         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15421
15422         [BZ #13555]
15423         * configure.in: Remove entries for unsupported architectures.
15424
15425         [BZ #13533]
15426         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15427         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15428         routines.
15429         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15430         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15431         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15432         fall back to using wcrtomb.
15433         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15434         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15435         renaming.
15436         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15437         * wcsmbs/tst-c16c32-1.c: New file.
15438
15439         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15440         local variable.
15441
15442         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15443
15444         * elf/tst-unique3.cc: Add explicit declaration of gets.
15445         * elf/tst-unique3lib.cc: Likewise.
15446         * elf/tst-unique3lib2.cc: Likewise.
15447         * elf/tst-unique4.cc: Likewise.
15448
15449         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15450
15451 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15452
15453         [BZ #13566]
15454         * assert/assert.h (static_assert): Don't define for C++.
15455         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15456         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15457
15458 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15459
15460         * iconv/loop.c (single loop): Fix assertion in storing of
15461         remaining bytes.
15462
15463         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15464
15465 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15466
15467         * posix/getconf.c: Update copyright year.
15468         * nss/getent.c: Likewise.
15469         * nss/makedb.c: Likewise.
15470         * iconv/iconvconfig.c: Likewise.
15471         * iconv/iconv_prog.c: Likewise.
15472         * elf/ldconfig.c: Likewise.
15473         * elf/pldd.c: Likewise.
15474         * elf/sotruss.ksh: Likewise.
15475         * catgets/gencat.c: Likewise.
15476         * csu/version.c: Likewise.
15477         * elf/ldd.bash.in: Likewise.
15478         * elf/sprof.c (print_version): Likewise.
15479         * locale/programs/locale.c: Likewise.
15480         * locale/programs/localedef.c: Likewise.
15481         * login/programs/pt_chown.c: Likewise.
15482         * nscd/nscd.c (print_version): Likewise.
15483         * debug/xtrace.sh: Likewise.
15484         * malloc/memusage.sh: Likewise.
15485         * malloc/mtrace.pl: Likewise.
15486         * debug/catchsegv.sh: Likewise.
15487
15488 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15489
15490         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15491         pure attribute.
15492
15493 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15494
15495         [BZ #13533]
15496         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15497         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15498         transformations.
15499         * iconv/gconv_int.h: Likewise.
15500         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15501         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15502         from libc for GLIBC_2.16.
15503         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15504         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15505         * wcsmbs/uchar.h: Really define mbstate_t.
15506         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15507         * wcsmbs/c16rtomb.c: New file.
15508         * wcsmbs/mbrtoc16.c: New file.
15509         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15510         for C/POSIX locale.
15511         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15512         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15513
15514         * wcsmbs/wchar.h: Add missing __restrict.
15515
15516 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15517
15518         [BZ #13532]
15519         * time/Makefile (routines): Add timespec_get.
15520         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15521         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15522         timespec for ISO C11.
15523         * time/timespec_get.c: New file.
15524         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15525         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15526
15527         [BZ #13531]
15528         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15529         * stdlib/stdlib.h: Declare aligned_alloc.
15530         * Versions.def: Add GLIBC_2.16 for libc.
15531         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15532
15533         [BZ 13527]
15534         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15535         ISO C11.
15536
15537         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15538         code.
15539
15540         [BZ #13528]
15541         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15542
15543         [BZ #13529]
15544         * assert/assert.h (static_assert): Define.
15545
15546         * version.h: Update for 2.16 development version.
15547
15548         [BZ #13526]
15549         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15550         _ISOC11_SOURCE.
15551
15552         * version.h (RELEASE): Bump for 2.15 release.
15553         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15554
15555         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15556         Patch by Marek Polacek <mpolacek@redhat.com>.
15557
15558         * bits/byteswap.h: Protect long long constants with __extension__.
15559         * sysdeps/i386/bits/byteswap.h: Likewise.
15560         * sysdeps/ia64/bits/byteswap.h: Likewise.
15561         * sysdeps/s390/bits/byteswap.h: Likewise.
15562         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15563
15564 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15565
15566         [BZ #13540]
15567         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15568         destination buffer.
15569         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15570
15571 2011-12-23  Marek Polacek  <polacek@redhat.com>
15572
15573         * elf/dl-addr.c (determine_info): Add inline keyword.
15574         * elf/tst-auditmod4b.c (check_avx): Likewise.
15575         * elf/tst-auditmod6b.c (check_avx): Likewise.
15576         * elf/tst-auditmod6c.c (check_avx): Likewise.
15577         * elf/tst-auditmod7b.c (check_avx): Likewise.
15578
15579 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15580
15581         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15582         !__SSE_MATH__.
15583
15584 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15585
15586         [BZ #13540]
15587         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15588         processing for last bytes.
15589
15590 2011-08-06  Bruno Haible  <bruno@clisp.org>
15591
15592         [BZ #13061]
15593         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15594         U+0385, not to U+1FEE.
15595
15596         [BZ #13062]
15597         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15598         entry for U+00A5 U+0301.
15599
15600 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15601
15602         [BZ #13166]
15603         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15604         buffer for the output is too small.
15605
15606         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15607         optimization.
15608
15609         [BZ #13185]
15610         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15611         SSE flags if possible.
15612
15613 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15614
15615         [BZ #13540]
15616         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15617         processing for last bytes.
15618
15619 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15620
15621         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15622         (syscall-list-default-options, syscall-list-default-condition)
15623         (syscall-list-includes): Define.
15624         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15625         list of ABIs and options and #if conditions for each ABI.  Do not
15626         handle common syscalls between ABIs specially.
15627         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15628         Remove.
15629         (syscall-list-variants, syscall-list-32bit-options)
15630         (syscall-list-32bit-condition, syscall-list-64bit-options)
15631         (syscall-list-64bit-condition): Define.
15632         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15633         (syscall-list-variants, syscall-list-32bit-options)
15634         (syscall-list-32bit-condition, syscall-list-64bit-options)
15635         (syscall-list-64bit-condition): Define.
15636         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15637         Remove.
15638         (syscall-list-variants, syscall-list-32bit-options)
15639         (syscall-list-32bit-condition, syscall-list-64bit-options)
15640         (syscall-list-64bit-condition): Define.
15641         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15642         Remove.
15643         (syscall-list-variants, syscall-list-32bit-options)
15644         (syscall-list-32bit-condition, syscall-list-64bit-options)
15645         (syscall-list-64bit-condition): Define.
15646
15647 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15648
15649         * locale/iso-639.def: Add brx entry.
15650
15651         [BZ #13328]
15652         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15653         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15654
15655         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15656         __feraiseexcept_renamed.
15657
15658 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15659
15660         [BZ #13538]
15661         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15662         EPOLLET with unsigned values.
15663         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15664         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15665
15666         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15667         to large cancellation.
15668         * math/s_cacoshf.c: Likewise.
15669         * math/s_cacoshl.c: Likewise.
15670
15671 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15672
15673         [BZ #13305]
15674         [BZ #12786]
15675         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15676         * math/s_cacoshf.c: Likewise.
15677         * math/s_cacoshl.c: Likewise.
15678
15679 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15680
15681         [BZ #13439]
15682         * iconv/gconv.h: Define __GCONV_SWAP.
15683         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15684         * iconvdata/utf-16.c: Likewise.
15685         * iconvdata/utf-32.c: Likewise.
15686
15687 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15688
15689         [BZ #13524]
15690         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15691         numerator after shifting it by one limb.
15692
15693 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15694
15695         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15696         under [__USE_EXTERN_INLINES].
15697
15698 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15699
15700         [BZ #13446]
15701         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15702
15703 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15704
15705         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15706         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15707         optimized code.
15708         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15709         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15710         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15711         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15712         for strncasecmp/strncasecmp_l compilation.
15713         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15714         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15715
15716 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15717
15718         [BZ #13484]
15719         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15720         of __asm__.
15721
15722 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15723
15724         [BZ #13506]
15725         * time/tzfile.c (__tzfile_read): Check values from file header.
15726
15727 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15728
15729         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15730         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15731         * powerpc/powerpc32/dl-start.S: Likewise.
15732         * powerpc/powerpc32/elf/start.S: Likewise.
15733         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15734         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15735         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15736         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15737         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15738         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15739         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15740         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15741         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15742         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15743         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15744         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15745         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15746         * powerpc/powerpc32/memset.S: Likewise.
15747         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15748         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15749         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15750         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15751         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15752         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15753         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15754         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15755         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15756         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15757         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15758         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15759         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15760
15761 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15762
15763         * math/libm-test.inc: Added more nearbyint tests.
15764         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15765         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15766         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15767         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15768
15769 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15770
15771         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15772         FD_CLOEXEC.
15773
15774 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15775
15776         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15777         Add wcscpy-ssse3 wcscpy-c.
15778         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15779         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15780         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15781         * sysdeps/x86_64/wcschr.S: New file.
15782         * sysdeps/x86_64/wcsrchr.S: New file.
15783         * string/test-strcmp.c: Remove checking of wcscmp function for
15784         wrong alignments.
15785         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15786         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15787         wcsrchr-sse2 wcsrchr-c.
15788         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15789         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15790         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15791         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15792         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15793         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15794         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15795         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15796         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15797         * wcsmbc/wcschr.c (WCSCHR): New macro.
15798
15799 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15800
15801         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15802         * wcsmbs/test-wcsrchr.c: New file.
15803         * string/test-strrchr.c: Add wcsrchr support.
15804         (WIDE): New macro.
15805         * wcsmbs/test-wcscpy.c: New file.
15806         * string/test-strcpy.c: Add wcscpy support.
15807         (WIDE): New macro.
15808
15809 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15810
15811         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15812         the inner loop.
15813
15814 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15815
15816         [BZ #13472]
15817         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15818
15819 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15820
15821         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15822         Minor optimizations.
15823
15824         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15825         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15826         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15827
15828 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15829
15830         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15831         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15832         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15833         for gcc to avoid warnings.
15834         * inet/Makefile (tests): Add tst-checks.
15835         * inet/tst-checks.c: New file.
15836
15837         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15838         warning.
15839
15840         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15841         __wmemcmp_sse2.
15842
15843         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15844         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15845
15846         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15847
15848 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15849
15850         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15851         problem.
15852
15853         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15854
15855 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15856
15857         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15858         conditional on GCC version.
15859         (__arch_compare_and_exchange_val_8_acq)
15860         (__arch_compare_and_exchange_val_16_acq)
15861         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15862         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15863         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15864
15865 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15866
15867         * sysdeps/sh/backtrace.c: New file.
15868
15869 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15870
15871         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15872         parenthesis.
15873
15874 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15875
15876         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15877         falling back to utime.
15878
15879 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15880
15881         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15882         expectations for float.
15883
15884 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15885
15886         * locale/weight.h (findidx): Add parameter len.
15887         * locale/weightwc.h (findidx): Likewise.
15888         * posix/fnmatch_loop.c (FCT): Adjust caller.
15889         * posix/regcomp.c (build_equiv_class): Likewise.
15890         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15891         * posix/regexec.c (check_node_accept_bytes): Likewise.
15892         * string/strcoll_l.c (STRCOLL): Likewise.
15893         * string/strxfrm_l.c (STRXFRM): Likewise.
15894
15895 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
15896
15897         * Makefile.in: Remove CVSOPT handling.
15898         * configure.in: Remove use of AC_REVISION.
15899         * iconvdata/Makefile (distribute): No need to filter out CVS.
15900         * scripts/list-sources.sh: Remove CVS, subversion and monotone
15901         handling.
15902
15903 2011-11-16  Andreas Schwab  <schwab@redhat.com>
15904
15905         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
15906         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
15907         [USE_AS_STRNCASECMP_L]: Likewise.
15908         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
15909         NO_TLS_DIRECT_SEG_REFS.
15910         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
15911         Fix argument offsets for non-PIC.
15912         [USE_AS_STRNCASECMP_L]: Likewise.
15913         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
15914         NO_TLS_DIRECT_SEG_REFS.
15915
15916 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15917
15918         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
15919         O_CLOEXEC.
15920         * locale/loadlocale.c (_nl_load_locale): Likewise.
15921
15922 2011-11-15  Andreas Schwab  <schwab@redhat.com>
15923
15924         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
15925         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
15926         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
15927         (SYSCALL_GETTIME): Set errno on error.
15928
15929         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
15930         count references to noai6ai_cached.
15931
15932 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
15933
15934         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
15935
15936         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
15937         FD_CLOEXEC for /proc/self/maps.
15938
15939         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
15940         FD_CLOEXEC for /proc/meminfo.
15941
15942         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
15943         gai.conf.
15944
15945         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
15946         FD_CLOEXEC for given file.
15947
15948         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
15949
15950         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
15951         FD_CLOEXEC for /etc/hosts.
15952         (_gethtent): Likewise.
15953
15954         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
15955
15956         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
15957         cancellation and set FD_CLOEXEC for /etc/netgroup.
15958
15959         * nss/nss_files/files-key.c (search): Don't allow cancellation when
15960         reading /etc/publickey.
15961
15962         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
15963         allow cancellation when reading /etc/group.
15964
15965         * nss/nss_files/files-alias.c (internal_setent): Don't allow
15966         cancellation.
15967         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
15968
15969         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
15970         when using data file.
15971
15972         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
15973
15974         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
15975         (write_nis_obj): Use "c" and "e" in fopen.
15976
15977         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
15978
15979         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
15980
15981         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
15982
15983         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
15984
15985         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
15986         locale.alias.
15987
15988         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
15989
15990         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
15991
15992         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
15993
15994         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
15995         file parsing and set FD_CLOEXEC.
15996
15997 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
15998
15999         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16000
16001 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16002
16003         * malloc/arena.c (arena_get2): Don't call reused_arena when
16004         _int_new_arena failed.
16005
16006 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16007
16008         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16009         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16010         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16011         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16012         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16013         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16014         to compile strcasecmp and strncasecmp.
16015         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16016         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16017
16018         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16019
16020 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16021
16022         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16023         locale-defines.sym to gen-as-const-headers.
16024         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16025         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16026         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16027         to compile strcasecmp and strncasecmp.
16028         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16029         strcasecmp_l and strncasecmp_l.
16030         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16031         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16032         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16033         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16034         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16035         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16036         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16037         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16038         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16039         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16040         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16041
16042 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16043
16044         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16045         result of SYSDEP_GETTIME_CPU to retval.
16046         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16047         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16048
16049         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16050         variable.
16051
16052         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16053         mantissa words.
16054         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16055
16056         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16057         from unused variable.
16058
16059         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16060         DWARF definitions.
16061         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16062         for assembling.
16063
16064         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16065         over namespaces.
16066
16067         * sunrpc/rpc_prot.c (rejected): Fix case value.
16068
16069         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16070         unsigned long long int to avoid warnings in shift.
16071
16072         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16073         of use of trans.
16074         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16075         variable tmp.
16076
16077         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16078         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16079         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16080
16081         * nis/nis_table.c (nis_list): Use variable of correct type for
16082         result of __follow_path call.
16083
16084 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16085
16086         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16087         of math functions ceil, trunc, floor, round, and sqrt, when
16088         avaliable on the platform.
16089         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16090         name clash.
16091         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16092         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16093         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16094
16095 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
16096
16097         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16098         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16099
16100 2011-11-11  Roland McGrath  <roland@hack.frob.com>
16101
16102         * include/unistd.h: Fix __readlink return type.
16103         Reported by Chris Metcalf <cmetcalf@tilera.com>.
16104
16105 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
16106
16107         * stdlib/ucontext.h: Undo last change for makecontext.
16108
16109 2011-11-11  Andreas Schwab  <schwab@redhat.com>
16110
16111         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16112
16113         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16114         * setjmp/setjmp.h: Mark functions as non-leaf.
16115         * setjmp/bits/setjmp2.h: Likewise.
16116         * stdlib/ucontext.h: Likewise.
16117
16118 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16119
16120         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16121         (reused_arena): Don't check arena limit.
16122         (arena_get2): Atomically check arena limit.
16123
16124 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16125
16126         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16127         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16128
16129         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16130         instructions.
16131
16132 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16133
16134         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16135         handler when locking.
16136
16137         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16138         Fix size of allocated buffer.
16139
16140 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16141
16142         [BZ #10103]
16143         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16144         declarations for long double functions.
16145         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16146
16147         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16148
16149 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16150
16151         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16152         installed.
16153
16154         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16155         is disabled.
16156
16157 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16158
16159         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16160
16161 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16162
16163         * include/alloca.h (stackinfo_alloca_round): Define.
16164         (extend_alloca): Use it.
16165         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16166         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16167         here.
16168
16169         * scripts/check-local-headers.sh: Ignore libaudit.h.
16170
16171         * nscd/Makefile (extra-objs): Make recursively expanded.
16172
16173 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16174
16175         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16176         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16177
16178         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16179         * posix/tst-rfc3484-2.c: Likewise.
16180         * posix/tst-rfc3484-3.c: Likewise.
16181
16182         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16183         process_vm_writev.
16184         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16185         process_vm_writev.
16186         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16187         process_vm_writev from libc using GLIBC_2.15 version.
16188
16189         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16190
16191 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16192
16193         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16194         stack usage.
16195
16196 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16197
16198         [BZ #13367]
16199         * nss/getent.c (initgroups_keys): Show error message in case no group
16200         names are given.
16201
16202         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16203         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16204         __bump_nl_timestamp.
16205         * nscd/connections (nscd_init): When host database is served open
16206         netlink socket and request notification about configuration changes.
16207         (main_loop_poll): Track netlink file descriptor and bump timestamp
16208         in case data becomes available.
16209         (main_loop_epoll): Likewise.
16210         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16211         (database_pers_head): Add extra_data fileds.
16212         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16213         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16214         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16215         Adjust caller.
16216         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16217         in6ai data, call __free_in6ai.
16218         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16219         Add -DHAVE_NETLINK.
16220         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16221         interface information.  Reuse previous data if netlink timestamp
16222         is not changed.
16223         (__bump_nl_timestamp): New function.
16224         (__free_in6ai): New function.
16225
16226 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16227
16228         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16229         close_not_cancel_no_status here.
16230         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16231
16232 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16233
16234         [BZ #13276]
16235         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16236         return value.
16237
16238         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16239         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16240         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16241
16242 2011-07-03  Andreas Jaeger  <aj@suse.de>
16243
16244         [BZ #10709]
16245         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16246         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16247         * math/libm-test.inc (sin_test): Add test case.
16248
16249 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16250
16251         [BZ #13337]
16252         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16253         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16254
16255         * elf/chroot_canon.c (chroot_canon): Cleanups.
16256
16257         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16258
16259         [BZ #13335]
16260         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16261         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16262
16263         * string/test-strchr.c: Make usable for strchrnul testing.
16264         * string/test-strchrnul.c: New file.
16265         * string/Makefile (strop-tests): Add strchrnul.
16266
16267         * po/it.po: Update from translation team.
16268         * po/es.po: Likewise.
16269
16270 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16271
16272         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16273         the three constants needed as parameters.  Drop the others.
16274         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16275         __m128i_strloadu_tolower.
16276         Create and initialize variable zero and use it in all the places
16277         where _mm_setzero_si128 was used.
16278
16279         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16280         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16281         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16282         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16283         anymore.
16284         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16285         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16286         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16287         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16288         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16289         __mpranred, __mptan.
16290         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16291         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16292         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16293         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16294         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16295         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16296         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16297         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16298         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16299
16300 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16301
16302         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16303         redefine if SHARED.
16304         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16305
16306         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16307         wide char related routines to wcsmbs subdir.
16308
16309 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16310
16311         [BZ #13344]
16312         * misc/sys/cdefs.h (__THROWNL): Define.
16313         * posix/unistd.h: Use __THREADNL instead of __THREAD
16314         for memory synchronization functions.
16315
16316 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16317
16318         [BZ #13349]
16319         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16320         doesn't exist.
16321         * manual/stdio.texi (Obstack Streams): Node removed.
16322
16323 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16324
16325         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16326         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16327         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16328
16329         * math/math_private.h (math_force_eval): Allow non-addressable
16330         arguments.
16331         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16332
16333 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16334
16335         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16336         file is not needed.
16337
16338         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16339         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16340         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16341         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16342         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16343         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16344         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16345         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16346         Add AVX variants.
16347         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16348         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16349         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16350         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16351         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16352         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16353         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16354         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16355         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16356         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16357         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16358         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16359         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16360         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16361         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16362         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16363         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16364         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16365         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16366
16367         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16368         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16369
16370         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16371         place.  Use VEX encoding when compiling for AVX.
16372
16373 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16374
16375         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16376         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16377
16378         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16379
16380 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16381
16382         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16383         useless if() expression.
16384         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16385         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16386         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16387         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16388         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16389         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16390         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16391         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16392         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16393         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16394         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16395         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16396         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16397         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16398         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16399         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16400         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16401         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16402         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16403
16404         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16405
16406 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16407
16408         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16409         condition.
16410         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16411
16412 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16413
16414         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16415         .text section.  Avoid duplicate constants.
16416         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16417         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16418         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16419         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16420         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16421         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16422         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16423         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16424         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16425         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16426         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16427         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16428         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16429         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16430         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16431         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16432         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16433         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16434         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16435         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16436         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16437         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16438         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16439         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16440         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16441         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16442         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16443         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16444         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16445         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16446         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16447         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16448         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16449         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16450         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16451         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16452         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16453         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16454         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16455         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16456         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16457         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16458         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16459         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16460         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16461
16462 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16463
16464         * sysdeps/x86_64/dla.h: Move to ...
16465         * sysdeps/x86_64/fpu/dla.h: ...here.
16466         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16467         situations.  Use __builtin_fma only for gcc 4.6 and up.
16468
16469         * config.make.in: Add have-mfma4 entry.
16470         * configure.in: Substitute libc_cv_cc_fma4.
16471         * math/Makefile (dbl-only-routines): Add sincostab.
16472         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16473         Use __sincostab not sincos.
16474         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16475         name is a macro.
16476         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16477         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16478         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16479         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16480         using __copysign.
16481         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16482         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16483         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16484         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16485         and __inv.
16486         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16487         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16488         __copysign.
16489         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16490         define aliases when function name is a macro.
16491         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16492         sysdeps/ieee754/dbl-64/sincos.tbl.
16493         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16494         fma4-enabled routines.
16495         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16496         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16497         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16498         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16499         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16500         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16501         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16502         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16503         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16504         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16505         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16506         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16507         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16508         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16509         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16510         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16511         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16512         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16513         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16514         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16515         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16516         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16517         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16518         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16519         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16520         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16521         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16522         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16523         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16524         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16525
16526         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16527         rename.
16528         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16529         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16530         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16531         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16532         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16533         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16534         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16535         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16536
16537 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16538
16539         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16540
16541 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16542
16543         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16544
16545         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16546         prediction.
16547         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16548
16549         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16550         Remove unused variable magic_bits.
16551         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16552
16553         * string/strnlen.c: Define and use STRNLEN macro.
16554         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16555         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16556         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16557         * wcsmbs/wcslen.c: Define and use WCSLEN.
16558         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16559         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16560         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16561         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16562         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16563         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16564         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16565
16566 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16567
16568         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16569         strnlen-sse2-no-bsf.
16570         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16571         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16572         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16573         Add strnlen support.
16574         (USE_AS_STRNLEN): New macro.
16575         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16576         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16577         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16578         * sysdeps/x86_64/wcslen.S: New file.
16579
16580 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16581
16582         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16583         XMM-moves are used for copying on small sizes.
16584
16585 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16586
16587         * wcsmbs/Makefile (strop-tests): Add wcschr.
16588         * wcsmbs/test-wcschr.c: New file.
16589         * string/test-strchr.c: Update.
16590         Add wcschr support.
16591         (WIDE): New macro.
16592
16593 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16594
16595         * wcsmbs/Makefile (strop-tests): Add wcslen.
16596         * wcsmbs/test-wcslen.c: New file.
16597         * string/test-strlen.c: Update.
16598         Add wcslen support.
16599         (WIDE): New macro.
16600
16601 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16602
16603         * po/it.po: Update from translation team.
16604
16605 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16606
16607         * sysdeps/x86_64/wcscmp.S: Update.
16608         Fix wrong comparison semantics.
16609         wcscmp shall use signed comparison not unsigned.
16610         Don't use substraction to avoid overflow bug.
16611         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16612         * wcsmbc/wcscmp.c: Likewise.
16613         * string/test-strcmp.c: Likewise.
16614         Add new tests to check cases with negative values.
16615
16616 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16617
16618         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16619         * sysdeps/x86_64/dla.h: ...here.  New file.
16620         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16621         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16622         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16623         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16624         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16625         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16626         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16627         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16628         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16629
16630 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16631
16632         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16633         __ynl_finite aliases.
16634
16635 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16636
16637         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16638
16639         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16640         define DLA_FMA.
16641         [DLA_FMA] (EMULV): Use DLA_FMA.
16642         [DLA_FMA] (MUL12): Use EMULV.
16643         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16644         that are not needed.
16645         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16646         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16647         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16648         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16649         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16650         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16651         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16652
16653 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16654
16655         * math/s_nan.c: Undef __nan.
16656         * math/s_nanf.c: Undef __nanf.
16657         * math/s_nanl.c: Undef __nanl.
16658         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16659         "math_private.h".
16660
16661 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16662
16663         * math/s_catan.c: Add branch predictions.
16664         * math/s_catanf.c: Likewise.
16665         * math/s_catanh.c: Likewise.
16666         * math/s_catanhf.c: Likewise.
16667         * math/s_catanhl.c: Likewise.
16668         * math/s_catanl.c: Likewise.
16669         * math/s_cexp.c: Likewise.
16670         * math/s_cexpf.c: Likewise.
16671         * math/s_cexpl.c: Likewise.
16672         * math/s_clog.c: Likewise.
16673         * math/s_clog10.c: Likewise.
16674         * math/s_clog10f.c: Likewise.
16675         * math/s_clog10l.c: Likewise.
16676         * math/s_clogf.c: Likewise.
16677         * math/s_clogl.c: Likewise.
16678         * math/s_csqrt.c: Likewise.
16679         * math/s_csqrtf.c: Likewise.
16680         * math/s_csqrtl.c: Likewise.
16681         * math/s_ctanf.c: Likewise.
16682         * math/s_ctanh.c: Likewise.
16683         * math/s_ctanhf.c: Likewise.
16684         * math/s_ctanhl.c: Likewise.
16685         * math/s_ctanl.c: Likewise.
16686
16687         * math/math_private.h: Define __nan, __nanf, __nanl.
16688         * math/s_cacosh.c: Include <math_private.h>.
16689         * math/s_cacoshl.c: Likewise.
16690         * math/s_casinh.c: Likewise.
16691         * math/s_casinhf.c: Likewise.
16692         * math/s_casinhl.c: Likewise.
16693         * math/s_ccos.c: Rely entire on ccosh.
16694         * math/s_ccosf.c: Rely entire on ccoshf.
16695         * math/s_ccosl.c: Rely entirely on ccoshl.
16696         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16697         Remove tests for FE_INVALID.
16698         * math/s_ccoshf.c: Likewise.
16699         * math/s_ccoshl.c: Likewise.
16700         * math/s_csin.c: Likewise.
16701         * math/s_csinf.c: Likewise.
16702         * math/s_csinh.c Likewise.
16703         * math/s_csinhf.c: Likewise.
16704         * math/s_csinhl.c: Likewise.
16705         * math/s_csinl.c: Likewise.
16706         * math/s_ctan.c: Likewise.
16707         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16708         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16709         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16710
16711 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16712
16713         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16714         compilation problems.
16715
16716         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16717         __builtin_expect.
16718
16719 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16720
16721         * sysdeps/i386/configure.in: Test for -mfma4 option.
16722         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16723         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16724         COMMON_CPUID_INDEX_80000001.
16725         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16726         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16727         use it if FMA3 is not supported.
16728         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16729
16730         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16731         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16732
16733 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16734
16735         [BZ #12892]
16736         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16737         it would create a cycle with a link time dependency.
16738
16739 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16740
16741         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16742         instruction.
16743         * string/Makefile (strop-tests): Add rawmemchr.
16744         * string/test-rawmemchr.c: New file.
16745
16746         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16747         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16748         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16749         when compiling str{,n}casecmp and when AVX is available.  Hook up
16750         new optimized code in initializers.
16751
16752 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16753
16754         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16755         __feraiseexcept instead of feraiseexcept.
16756
16757 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16758
16759         * math/math_private.h: Define defaults for libc_fetestexcept and
16760         libc_feupdateenv.
16761         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16762         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16763         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16764         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16765         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16766         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16767         libc_fetestexcept and libc_feupdateenv.
16768
16769         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16770         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16771         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16772         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16773         libc_feholdexcept_setround.
16774
16775         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16776         Add s_nearbyint-c and s_nearbyintf-c.
16777         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16778         nearbyintf inlines.
16779         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16780         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16781         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16782         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16783
16784         * math/math_private.h: Define defaults for libc_fegetround,
16785         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16786         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16787         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16788         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16789         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16790         standard functions.
16791         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16792         Remove comments and hacks for old compiler versions.
16793         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16794         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16795         libc_feholdexceptl.
16796
16797 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16798
16799         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16800         (__feraiseexcept_renamed): Add __NTH.
16801         (feraiseexcept): Add __NTH.  Rename local variables to fix
16802         namespace violations.
16803
16804 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16805
16806         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16807
16808         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16809
16810         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16811         recently added interfaces.
16812         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16813
16814         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16815         about macro parameter expansion.
16816
16817         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16818         __NO_MATH_INLINES is defined.  Cleanups.
16819
16820         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16821         and __floorf is target has SSE4.1.
16822         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16823         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16824         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16825         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16826
16827         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16828         name.
16829         (floorf): Likewise.
16830
16831         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16832
16833 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16834
16835         * misc/sys/cdefs.h: Fix last change.
16836
16837         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16838         database lookup.
16839
16840 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16841
16842         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16843
16844         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16845         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16846         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16847         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16848         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16849         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16850         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16851         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16852         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16853         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16854         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16855         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16856         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16857         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16858         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16859         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16860         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16861         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16862         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16863         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16864         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16865         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16866
16867         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16868         ceil, ceilf, floor, floorf.
16869
16870         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16871         Perform IRELATIVE relocations last.
16872
16873         * elf/do-rel.h: Add another parameter nrelative, replacing the
16874         local variable with the same name.  Change name of the function
16875         to end in Rel or Rela (uppercase).
16876         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16877         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16878         elf_dynamic_do_##reloc function.
16879
16880 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16881
16882         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16883         is sufficient, at least on modern CPUs.
16884
16885         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16886
16887         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16888         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16889
16890         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16891         __expl_finite.
16892         * math/bits/math-finite.h: Add entries for exp.
16893         * math/e_expl.c: Add __*_finite alias.
16894         * sysdeps/i386/fpu/e_exp.S: Likewise.
16895         * sysdeps/i386/fpu/e_expf.S: Likewise.
16896         * sysdeps/i386/fpu/e_expl.c: Likewise.
16897         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16898         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16899         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16900         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16901         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
16902         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16903         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16904
16905         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
16906         is sufficient, at least on modern CPUs.
16907
16908         * ctype/ctype-info.c (__ctype_init): Define.
16909         * include/ctype.h (__ctype_init): Declare.
16910         (__ctype_b_loc): The variable is always initialized.
16911         (__ctype_toupper_loc): Likewise.
16912         (__ctype_tolower_loc): Likewise.
16913         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
16914         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
16915
16916 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
16917
16918         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
16919
16920         * configure.in: Also look in $cxxmachine/include for C++ system
16921         headers.
16922
16923 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16924
16925         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
16926         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
16927         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
16928         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
16929         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
16930         (USE_AS_WMEMCMP): New macro.
16931         Fixing indents.
16932         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
16933         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
16934         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
16935         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
16936         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16937         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
16938         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
16939         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
16940         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
16941         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
16942         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
16943         (USE_AS_WMEMCMP): New macro.
16944         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
16945         * sysdeps/string/test-memcmp.c: Update.
16946         Fix simple_wmemcmp.
16947         Add new tests.
16948         * wcsmbs/wmemcmp.c: Update.
16949         (WMEMCMP): New macro.
16950         Fix overflow bug.
16951
16952 2011-10-12  Andreas Jaeger  <aj@suse.de>
16953
16954         [BZ #13268]
16955         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
16956
16957 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16958
16959         * libio/iofwide.c (do_length): Avoid warning.
16960
16961         * ctype/ctype.h (__isctype_f): Add missing __THROW.
16962
16963 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
16964
16965         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
16966
16967         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
16968         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
16969         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
16970         * sysdeps/i386/i686/fpu/e_log.S: New file.
16971         * sysdeps/i386/i686/fpu/e_logf.S: New file.
16972         * sysdeps/i386/i686/fpu/e_logl.S: New file.
16973
16974         * ctype/ctype.h: Add support for inlined isXXX functions when
16975         compiling C++ code.
16976
16977 2011-10-14  Andreas Schwab  <schwab@redhat.com>
16978
16979         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16980
16981         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
16982
16983 2011-10-13  Roland McGrath  <roland@hack.frob.com>
16984
16985         [BZ #13291]
16986         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
16987
16988 2011-10-13  Andreas Schwab  <schwab@redhat.com>
16989
16990         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
16991         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
16992         feraiseexcept.
16993
16994         * sysdeps/x86_64/memrchr.S: Check for zero size.
16995
16996         * string/stratcliff.c: Add memrchr tests.
16997
16998 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16999
17000         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17001         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17002         rawmemchr-sse2 rawmemchr-sse2-bsf.
17003         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17004         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17005         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17006         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17007         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17008         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17009         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17010         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17011         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17012         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17013         * string/memrchr.c (MEMRCHR): New macro.
17014
17015 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17016
17017         Add integration with gcc's -ffinite-math-only and optimize wrapper
17018         functions in libm.
17019         * Versions.def: Define GLIBC_2.15 version for libm.
17020         * math/Makefile (headers): Add bits/math-finite.h.
17021         * math/bits/math-finite.h: New file.
17022         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17023         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17024         * math/e_acoshl.c: Add __*_finite alias.
17025         * math/e_acosl.c: Likewise.
17026         * math/e_asinl.c: Likewise.
17027         * math/e_atan2l.c: Likewise.
17028         * math/e_atanhl.c: Likewise.
17029         * math/e_coshl.c: Likewise.
17030         * math/e_exp10.c: Likewise.
17031         * math/e_exp10f.c: Likewise.
17032         * math/e_exp10l.c: Likewise.
17033         * math/e_exp2l.c: Likewise.
17034         * math/e_fmodl.c: Likewise.
17035         * math/e_gammal_r.c: Likewise.
17036         * math/e_hypotl.c: Likewise.
17037         * math/e_j0l.c: Likewise.
17038         * math/e_j1l.c: Likewise.
17039         * math/e_jnl.c: Likewise.
17040         * math/e_lgammal_r.c: Likewise.
17041         * math/e_log10l.c: Likewise.
17042         * math/e_log2l.c: Likewise.
17043         * math/e_logl.c: Likewise.
17044         * math/e_powl.c: Likewise.
17045         * math/e_sinhl.c: Likewise.
17046         * math/e_sqrtl.c: Likewise.
17047         * math/e_scalb.c: Completely rewritten and optimized.
17048         * math/e_scalbf.c: Likewise.
17049         * math/e_scalbl.c: Likewise.
17050         * math/w_acos.c: Likewise.
17051         * math/w_acosf.c: Likewise.
17052         * math/w_acosl.c: Likewise.
17053         * math/w_acosh.c: Likewise.
17054         * math/w_acoshf.c: Likewise.
17055         * math/w_acoshl.c: Likewise.
17056         * math/w_asin.c: Likewise.
17057         * math/w_asinf.c: Likewise.
17058         * math/w_asinl.c: Likewise.
17059         * math/w_atan2.c: Likewise.
17060         * math/w_atan2f.c: Likewise.
17061         * math/w_atan2l.c: Likewise.
17062         * math/w_atanh.c: Likewise.
17063         * math/w_atanhf.c: Likewise.
17064         * math/w_atanhl.c: Likewise.
17065         * math/w_exp10.c: Likewise.
17066         * math/w_exp10f.c: Likewise.
17067         * math/w_exp10l.c: Likewise.
17068         * math/w_fmod.c: Likewise.
17069         * math/w_fmodf.c: Likewise.
17070         * math/w_fmodl.c: Likewise.
17071         * math/w_j0.c: Likewise.
17072         * math/w_j0f.c: Likewise.
17073         * math/w_j0l.c: Likewise.
17074         * math/w_j1.c: Likewise.
17075         * math/w_j1f.c: Likewise.
17076         * math/w_j1l.c: Likewise.
17077         * math/w_jn.c: Likewise.
17078         * math/w_jnf.c: Likewise.
17079         * math/w_log.c: Likewise.
17080         * math/w_logf.c: Likewise.
17081         * math/w_logl.c: Likewise.
17082         * math/w_log10.c: Likewise.
17083         * math/w_log10f.c: Likewise.
17084         * math/w_log10l.c: Likewise.
17085         * math/w_log2.c: Likewise.
17086         * math/w_log2f.c: Likewise.
17087         * math/w_log2l.c: Likewise.
17088         * math/w_pow.c: Likewise.
17089         * math/w_powf.c: Likewise.
17090         * math/w_powl.c: Likewise.
17091         * math/w_remainder.c: Likewise.
17092         * math/w_remainderf.c: Likewise.
17093         * math/w_remainderl.c: Likewise.
17094         * math/w_scalb.c: Likewise.
17095         * math/w_scalbf.c: Likewise.
17096         * math/w_scalbl.c: Likewise.
17097         * math/w_sqrt.c: Likewise.
17098         * math/w_sqrtf.c: Likewise.
17099         * math/w_sqrtl.c: Likewise.
17100         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17101         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
17102         used.
17103         * math/math_private.h: Declare __kernel_standard_f.
17104         * math/w_cosh.c: Remove cruft and optimize a bit.
17105         * math/w_coshf.c: Likewise.
17106         * math/w_coshl.c: Likewise.
17107         * math/w_exp2.c: Likewise.
17108         * math/w_exp2f.c: Likewise.
17109         * math/w_exp2l.c: Likewise.
17110         * math/w_hypot.c: Likewise.
17111         * math/w_hypotf.c: Likewise.
17112         * math/w_hypotl.c: Likewise.
17113         * math/w_lgamma.c: Likewise.
17114         * math/w_lgamma_r.c: Likewise.
17115         * math/w_lgammaf.c: Likewise.
17116         * math/w_lgammaf_r.c: Likewise.
17117         * math/w_lgammal.c: Likewise.
17118         * math/w_lgammal_r.c: Likewise.
17119         * math/w_sinh.c: Likewise.
17120         * math/w_sinhf.c: Likewise.
17121         * math/w_sinhl.c: Likewise.
17122         * math/w_tgamma.c: Likewise.
17123         * math/w_tgammaf.c: Likewise.
17124         * math/w_tgammal.c: Likewise.
17125         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17126         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17127         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17128         Minor optimizations.  Pretty printing.  Remove cruft.
17129         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17130         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17131         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17132         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17133         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17134         * sysdeps/i386/fpu/e_asin.S: Likewise.
17135         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17136         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17137         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17138         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17139         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17140         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17141         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17142         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17143         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17144         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17145         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17146         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17147         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17148         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17149         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17150         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17151         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17152         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17153         * sysdeps/i386/fpu/e_log.S: Likewise.
17154         * sysdeps/i386/fpu/e_log10.S: Likewise.
17155         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17156         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17157         * sysdeps/i386/fpu/e_log2.S: Likewise.
17158         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17159         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17160         * sysdeps/i386/fpu/e_logf.S: Likewise.
17161         * sysdeps/i386/fpu/e_logl.S: Likewise.
17162         * sysdeps/i386/fpu/e_pow.S: Likewise.
17163         * sysdeps/i386/fpu/e_powf.S: Likewise.
17164         * sysdeps/i386/fpu/e_powl.S: Likewise.
17165         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17166         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17167         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17168         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17169         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17170         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17171         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17172         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17173         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17174         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17175         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17176         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17177         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17178         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17179         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17180         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17181         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17182         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17183         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17184         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17185         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17186         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17187         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17188         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17189         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17190         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17191         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17192         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17193         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17194         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17195         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17196         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17197         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17198         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17199         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17200         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17201         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17202         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17203         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17204         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17205         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17206         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17207         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17208         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17209         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17210         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17211         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17212         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17213         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17214         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17215         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17216         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17217         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17218         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17219         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17220         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17221         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17222         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17223         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17224         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17225         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17226         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17227         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17228         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17229         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17230         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17231         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17232         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17233         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17234         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17235         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17236         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17237         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17238         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17239         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17240         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17241         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17242         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17243         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17244         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17245         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17246         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17247         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17248         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17249         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17250         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17251         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17252         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17253         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17254         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17255         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17256         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17257         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17258         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17259         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17260         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17261         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17262         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17263         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17264         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17265         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17266         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17267         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17268         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17269         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17270         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17271         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17272         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17273         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17274         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17275         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17276         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17277         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17278         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17279         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17280         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17281         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17282         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17283         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17284         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17285         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17286         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17287         (__isnanf): Likewise.
17288         (__isinf_ns): Likewise.
17289         (__isinf_nsf): Likewise.
17290         (__finite): Likewise.
17291         (__finitef): Likewise.
17292         (__ieee754_sqrt): Define as macro.
17293         (__ieee754_sqrtf): Define as macro.
17294         (__ieee754_sqrtl): Define as macro.
17295         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17296         inlined copy.
17297         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17298         __FINITE_MATH_ONLY__ consistent.
17299         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17300
17301 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17302
17303         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17304         of rawmemchr.
17305
17306         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17307
17308 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17309
17310         * po/ja.po: Update from translation team.
17311
17312 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17313
17314         * locale/programs/locarchive.c (prepare_address_space): New function.
17315         (create_archive, enlarge_archive, open_archive): Use it.
17316
17317         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17318         inside [SHARED], where it is used.
17319
17320         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17321
17322         * nss/getent.c (netgroup_keys): Remove unused variable.
17323         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17324
17325 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17326
17327         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17328         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17329         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17330         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17331         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17332         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17333         * math/Makefile (libm-calls): Add s_isinf_ns.
17334         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17335         * math/multc3.c: Likewise.
17336         * math/s_casin.c: Likewise.
17337         * math/s_casinf.c: Likewise.
17338         * math/s_casinl.c: Likewise.
17339         * math/s_ccos.c: Likewise.
17340         * math/s_ccosf.c: Likewise.
17341         * math/s_ccosl.c: Likewise.
17342         * math/s_ctan.c: Likewise.
17343         * math/s_ctanf.c: Likewise.
17344         * math/s_ctanh.c: Likewise.
17345         * math/s_ctanhf.c: Likewise.
17346         * math/s_ctanhl.c: Likewise.
17347         * math/s_ctanl.c: Likewise.
17348         * math/w_fmod.c: Likewise.
17349         * math/w_fmodf.c: Likewise.
17350         * math/w_fmodl.c: Likewise.
17351         * math/w_remainder.c: Likewise.
17352         * math/w_remainderf.c: Likewise.
17353         * math/w_remainderl.c: Likewise.
17354         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17355         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17356         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17357         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17358         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17359         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17360         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17361         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17362
17363         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17364         of the number.
17365         * stdio-common/printf_fphex.c: Likewise.
17366         * stdio-common/printf_size.c: Likewise.
17367
17368         * math/e_exp10.c: Include math_private.h using <...> not "...".
17369         * math/e_exp10f.c: Likewise.
17370         * math/e_exp10l.c: Likewise.
17371         * math/e_exp2l.c: Likewise.
17372         * math/e_j0l.c: Likewise.
17373         * math/e_j1l.c: Likewise.
17374         * math/e_jnl.c: Likewise.
17375         * math/e_lgammal_r.c: Likewise.
17376         * math/e_rem_pio2l.c: Likewise.
17377         * math/e_scalb.c: Likewise.
17378         * math/e_scalbf.c: Likewise.
17379         * math/e_scalbl.c: Likewise.
17380         * math/k_cosl.c: Likewise.
17381         * math/k_sinl.c: Likewise.
17382         * math/k_tanl.c: Likewise.
17383         * math/s_cacoshf.c: Likewise.
17384         * math/s_catan.c: Likewise.
17385         * math/s_catanf.c: Likewise.
17386         * math/s_catanh.c: Likewise.
17387         * math/s_catanhf.c: Likewise.
17388         * math/s_catanhl.c: Likewise.
17389         * math/s_catanl.c: Likewise.
17390         * math/s_ccosh.c: Likewise.
17391         * math/s_ccoshf.c: Likewise.
17392         * math/s_ccoshl.c: Likewise.
17393         * math/s_cexp.c: Likewise.
17394         * math/s_cexpf.c: Likewise.
17395         * math/s_cexpl.c: Likewise.
17396         * math/s_clog.c: Likewise.
17397         * math/s_clog10.c: Likewise.
17398         * math/s_clog10f.c: Likewise.
17399         * math/s_clog10l.c: Likewise.
17400         * math/s_clogf.c: Likewise.
17401         * math/s_clogl.c: Likewise.
17402         * math/s_csin.c: Likewise.
17403         * math/s_csinf.c: Likewise.
17404         * math/s_csinh.c: Likewise.
17405         * math/s_csinhf.c: Likewise.
17406         * math/s_csinhl.c: Likewise.
17407         * math/s_csinl.c: Likewise.
17408         * math/s_csqrt.c: Likewise.
17409         * math/s_csqrtf.c: Likewise.
17410         * math/s_csqrtl.c: Likewise.
17411         * math/s_ctan.c: Likewise.
17412         * math/s_ctanf.c: Likewise.
17413         * math/s_ctanh.c: Likewise.
17414         * math/s_ctanhf.c: Likewise.
17415         * math/s_ctanhl.c: Likewise.
17416         * math/s_ctanl.c: Likewise.
17417         * math/s_ldexp.c: Likewise.
17418         * math/s_ldexpf.c: Likewise.
17419         * math/s_ldexpl.c: Likewise.
17420         * math/s_significand.c: Likewise.
17421         * math/s_significandf.c: Likewise.
17422         * math/s_significandl.c: Likewise.
17423         * math/w_acos.c: Likewise.
17424         * math/w_acosf.c: Likewise.
17425         * math/w_acosh.c: Likewise.
17426         * math/w_acoshf.c: Likewise.
17427         * math/w_acoshl.c: Likewise.
17428         * math/w_acosl.c: Likewise.
17429         * math/w_asin.c: Likewise.
17430         * math/w_asinf.c: Likewise.
17431         * math/w_asinl.c: Likewise.
17432         * math/w_atan2.c: Likewise.
17433         * math/w_atan2f.c: Likewise.
17434         * math/w_atan2l.c: Likewise.
17435         * math/w_atanh.c: Likewise.
17436         * math/w_atanhf.c: Likewise.
17437         * math/w_atanhl.c: Likewise.
17438         * math/w_cosh.c: Likewise.
17439         * math/w_coshf.c: Likewise.
17440         * math/w_coshl.c: Likewise.
17441         * math/w_dremf.c: Likewise.
17442         * math/w_exp10.c: Likewise.
17443         * math/w_exp10f.c: Likewise.
17444         * math/w_exp10l.c: Likewise.
17445         * math/w_exp2.c: Likewise.
17446         * math/w_exp2f.c: Likewise.
17447         * math/w_fmod.c: Likewise.
17448         * math/w_fmodf.c: Likewise.
17449         * math/w_fmodl.c: Likewise.
17450         * math/w_hypot.c: Likewise.
17451         * math/w_hypotf.c: Likewise.
17452         * math/w_hypotl.c: Likewise.
17453         * math/w_j0.c: Likewise.
17454         * math/w_j0f.c: Likewise.
17455         * math/w_j0l.c: Likewise.
17456         * math/w_j1.c: Likewise.
17457         * math/w_j1f.c: Likewise.
17458         * math/w_j1l.c: Likewise.
17459         * math/w_jn.c: Likewise.
17460         * math/w_jnf.c: Likewise.
17461         * math/w_jnl.c: Likewise.
17462         * math/w_lgamma.c: Likewise.
17463         * math/w_lgamma_r.c: Likewise.
17464         * math/w_lgammaf.c: Likewise.
17465         * math/w_lgammaf_r.c: Likewise.
17466         * math/w_lgammal.c: Likewise.
17467         * math/w_lgammal_r.c: Likewise.
17468         * math/w_log.c: Likewise.
17469         * math/w_log10.c: Likewise.
17470         * math/w_log10f.c: Likewise.
17471         * math/w_log10l.c: Likewise.
17472         * math/w_log2.c: Likewise.
17473         * math/w_log2f.c: Likewise.
17474         * math/w_log2l.c: Likewise.
17475         * math/w_logf.c: Likewise.
17476         * math/w_logl.c: Likewise.
17477         * math/w_pow.c: Likewise.
17478         * math/w_powf.c: Likewise.
17479         * math/w_powl.c: Likewise.
17480         * math/w_remainder.c: Likewise.
17481         * math/w_remainderf.c: Likewise.
17482         * math/w_remainderl.c: Likewise.
17483         * math/w_scalb.c: Likewise.
17484         * math/w_scalbf.c: Likewise.
17485         * math/w_scalbl.c: Likewise.
17486         * math/w_sinh.c: Likewise.
17487         * math/w_sinhf.c: Likewise.
17488         * math/w_sinhl.c: Likewise.
17489         * math/w_sqrt.c: Likewise.
17490         * math/w_sqrtf.c: Likewise.
17491         * math/w_sqrtl.c: Likewise.
17492         * math/w_tgamma.c: Likewise.
17493         * math/w_tgammaf.c: Likewise.
17494         * math/w_tgammal.c: Likewise.
17495
17496         * po/ja.po: Update from translation team.
17497
17498 2011-09-29  Andreas Jaeger  <aj@suse.de>
17499
17500         [BZ #13179]
17501         * sunrpc/netname.c (netname2host): Fix logic.
17502
17503         [BZ #6779]
17504         [BZ #6783]
17505         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17506         correctly.
17507         * math/w_remainder.c (__remainder): Likewise.
17508         * math/w_remainderf.c (__remainderf): Likewise.
17509         * math/libm-test.inc (remainder_test): Add test cases.
17510
17511 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17512
17513         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17514         sdiv_qrnnd.
17515
17516 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17517
17518         * string/test-memcmp.c: Avoid unncessary #defines.
17519         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17520
17521 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17522
17523         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17524         Use new sse2 version for core i3 - i7 as it's faster
17525         than sse42 version.
17526         (bit_Prefer_PMINUB_for_stringop): New.
17527         * sysdeps/x86_64/rawmemchr.S: Update.
17528         Replace with faster SSE2 version.
17529         * sysdeps/x86_64/memrchr.S: New file.
17530         * sysdeps/x86_64/memchr.S: Update.
17531         Replace with faster SSE2 version.
17532
17533 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17534
17535         * elf/dl-load.c (lose): Add cast to avoid warning.
17536
17537 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17538
17539         * po/ca.po: Update from translation team.
17540
17541         * inet/getnetgrent_r.c: Hook up nscd.
17542         * nscd/Makefile (routines): Add nscd_netgroup.
17543         (nscd-modules): Add netgroupcache.
17544         (CFLAGS-netgroupcache.c): Define.
17545         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17546         (cache_search): Add const to second parameter.
17547         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17548         INNETGR.
17549         (dbs): Add netgrdb entry.
17550         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17551         (verify_persistent_db): Handle netgrdb.
17552         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17553         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17554         GETFDNETGR.
17555         (netgroup_response_header): Define.
17556         (innetgroup_response_header): Define.
17557         (datahead): Add netgroup_response_header and innetgroup_response_header
17558         elements.
17559         * nscd/nscd.conf: Add entries for netgroup cache.
17560         * nscd/nscd.h (dbtype): Add netgrdb.
17561         (_PATH_NSCD_NETGROUP_DB): Define.
17562         (netgroup_iov_disabled): Declare.
17563         (xmalloc, xcalloc, xrealloc): Move declarations here.
17564         (cache_search): Adjust prototype.
17565         Add netgroup-related prototypes.
17566         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17567         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17568         (__nscd_innetgr): Declare.
17569         * nscd/selinux.c (perms): Use access_vector_t as element type and
17570         add netgroup-related initializers.
17571         * nscd/netgroupcache.c: New file.
17572         * nscd/nscd_netgroup.c: New file.
17573         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17574         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17575         For four parameters use innetgr.
17576         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17577         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17578         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17579         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17580
17581         * nscd/connections.c (register_traced_file): Don't register file
17582         for disabled databases.
17583
17584 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17585
17586         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17587
17588         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17589         from tree and freeing node.
17590
17591 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17592
17593         * nss/nsswitch.c (__nss_database_lookup): Handle
17594         nss_parse_service_list out of memory case.
17595
17596 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17597
17598         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17599         out of memory case.
17600
17601 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17602
17603         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17604         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17605         pass it down.
17606         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17607         elf_machine_rela, elf_machine_lazy_rel.
17608         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17609         (ELF_DYNAMIC_DO_REL): Likewise.
17610         (ELF_DYNAMIC_DO_RELA): Likewise.
17611         (ELF_DYNAMIC_RELOCATE): Likewise.
17612         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17613         to ELF_DYNAMIC_DO_REL.
17614         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17615         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17616         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17617         elf_machine_rela.
17618         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17619         skip_ifunc, don't call ifunc function if non-zero.
17620         (elf_machine_rela): Likewise.
17621         (elf_machine_lazy_rel): Likewise.
17622         (elf_machine_lazy_rela): Likewise.
17623         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17624         (elf_machine_lazy_rel): Likewise.
17625         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17626         Likewise.
17627         (elf_machine_lazy_rel): Likewise.
17628         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17629         Likewise.
17630         (elf_machine_lazy_rel): Likewise.
17631         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17632         (elf_machine_lazy_rel): Likewise.
17633         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17634         (elf_machine_lazy_rel): Likewise.
17635         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17636         (elf_machine_lazy_rel): Likewise.
17637         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17638         (elf_machine_lazy_rel): Likewise.
17639         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17640         (elf_machine_lazy_rel): Likewise.
17641         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17642         (elf_machine_lazy_rel): Likewise.
17643
17644 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17645
17646         * nss/nss_files/files-init.c (_nss_files_init): Use static
17647         initialization for all the *_traced_file variables.
17648
17649 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17650
17651         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17652
17653 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17654
17655         [BZ #13226]
17656         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17657
17658 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17659
17660         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17661         Reread the line before reparsing it.
17662
17663 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17664
17665         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17666
17667 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17668             Maxim Kuvyrkov  <maxim@codesourcery.com>
17669             Joseph Myers  <joseph@codesourcery.com>
17670
17671         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17672         if needed for __stack_chk_guard.
17673
17674 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17675
17676         * sysdeps/posix/spawni.c (script_execute): Always define it.
17677         It will be optimized away if unused.
17678         (maybe_script_execute): New function.
17679         (__spawni): Call it.
17680
17681         * Makerules: Don't include tls.make.
17682         (config-tls): Always set to thread.
17683         * tls.make.c: File removed.
17684
17685 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17686
17687         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17688         * config.make.in (CPPFLAGS-config): New substituted variable.
17689
17690 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17691
17692         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17693
17694         [BZ #13192]
17695         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17696         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17697
17698 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17699
17700         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17701         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17702         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17703         (CALL_FAIL): Likewise.
17704         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17705         (CALL_FAIL): Macro removed.
17706         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17707
17708 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17709
17710         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17711         for __FINITE_MATH_ONLY__ == 1.
17712
17713 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17714
17715         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17716         __ieee754_sqrt instead of sqrt.
17717         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17718         __ieee754_sqrtf instead of sqrtf.
17719         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17720         __floorf instead of floorf.
17721         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17722         __floorf, __truncf instead of floorf, truncf.
17723
17724 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17725
17726         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17727
17728         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17729         __extern_always_inline.
17730         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17731         32-bit.
17732
17733 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17734
17735         * elf/rtld.c (dl_main): Also relocate in dependency order when
17736         doing symbol dependency testing.
17737
17738 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17739
17740         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17741         Always define `refsym'.
17742
17743 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17744
17745         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17746         (__FD_ELT): Renamed from __FDELT.
17747         * misc/bits/select2.h (__FD_ELT): Likewise.
17748         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17749         __FD_MASK instead of __FDELT, __FDMASK.
17750         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17751         Likewise.
17752         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17753         Likewise.
17754
17755         * elf/Makefile (gen-ldd): Fix pattern.
17756
17757         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17758         (init_tls): Likewise.
17759
17760 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17761
17762         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17763
17764 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17765
17766         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17767         `struct cmsghdr *' instead of `void *'.
17768         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17769         Likewise.
17770
17771 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17772
17773         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17774         if non-absolute.
17775         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17776         ldd_rewrite_script.
17777
17778 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17779
17780         * configure.in: Remove --with-tls option.
17781         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17782         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17783         out in case it is missing.
17784         * sysdeps/ia64/elf/configure.in: Likewise.
17785         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17786         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17787         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17788         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17789         * sysdeps/sh/elf/configure.in: Likewise.
17790         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17791         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17792         * sysdeps/x86_64/elf/configure.in: Likewise.
17793         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17794         * sysdeps/mach/hurd/tls.h: Likewise.
17795
17796         [BZ #13067]
17797         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17798
17799         [BZ #13090]
17800         * configure.in: Fix use of AC_INIT.
17801
17802         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17803
17804 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17805
17806         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17807         __set_errno.
17808         * malloc/hooks.c: Likewise.
17809
17810         [BZ #11929]
17811         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17812         variables statically.
17813         (narenas): Initialize.
17814         (list_lock): Initialize.
17815         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17816         initializtion of main_arena and list_lock.  Small cleanups.
17817         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17818         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17819         Add initializers to main_arena and mp_.
17820         (malloc_state): Remove pagesize member.  Change all users to use
17821         GLRO(dl_pagesize).
17822
17823         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17824         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17825         is always initialized.
17826
17827         * malloc/malloc.c: Removed unused configurations and dead code.
17828         * malloc/arena.c: Likewise.
17829         * malloc/hooks.c: Likewise.
17830         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17831
17832         * include/tls.h: Removed.  USE___THREAD must always be defined.
17833         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17834         * elf/dl-libc.c: Likewise.
17835         * elf/dl-tsd.c: Likewise.
17836         * include/errno.h: Likewise.
17837         * include/netdb.h: Likewise.
17838         * include/resolv.h: Likewise.
17839         * inet/herrno-loc.c: Likewise.
17840         * inet/herrno.c: Likewise.
17841         * malloc/arena.c: Likewise.
17842         * malloc/hooks.c: Likewise.
17843         * malloc/malloc.c: Likewise.
17844         * resolv/res-state.c: Likewise.
17845         * resolv/res_libc.c: Likewise.
17846         * sysdeps/i386/dl-machine.h: Likewise.
17847         * sysdeps/ia64/dl-machine.h: Likewise.
17848         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17849         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17850         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17851         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17852         * sysdeps/sh/dl-machine.h: Likewise.
17853         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17854         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17855         * sysdeps/unix/i386/sysdep.S: Likewise.
17856         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17857         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17858         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17859         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17860         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17861         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17862         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17863         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17864         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17865         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17866         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17867         * sysdeps/x86_64/dl-machine.h: Likewise.
17868         * tls.make.c: Likewise.
17869
17870         * configure.in: Remove --with-__thread option.  Make tests for
17871         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17872         tls_model attribute fail if no support is available.  Remove
17873         USE_IN_LIBIO.
17874         * Makeconfig: Adjust for dropped configure option.  All features are
17875         now mandatory.
17876         * Makerules: Likewise.
17877         * Versions.def: Likewise.
17878         * argp/argp-fmtstream.c: Likewise.
17879         * argp/argp-fmtstream.h: Likewise.
17880         * argp/argp-help.c: Likewise.
17881         * assert/assert.c: Likewise.
17882         * config.h.in: Likewise.
17883         * config.make.in: Likewise.
17884         * configure: Likewise.
17885         * configure.in: Likewise.
17886         * csu/Versions: Likewise.
17887         * csu/init.c: Likewise.
17888         * elf/tst-audit2.c: Likewise.
17889         * elf/tst-tls10.c: Likewise.
17890         * elf/tst-tls10.h: Likewise.
17891         * elf/tst-tls11.c: Likewise.
17892         * elf/tst-tls12.c: Likewise.
17893         * elf/tst-tls14.c: Likewise.
17894         * elf/tst-tlsmod11.c: Likewise.
17895         * elf/tst-tlsmod12.c: Likewise.
17896         * elf/tst-tlsmod13.c: Likewise.
17897         * elf/tst-tlsmod13a.c: Likewise.
17898         * elf/tst-tlsmod14a.c: Likewise.
17899         * elf/tst-tlsmod15b.c: Likewise.
17900         * elf/tst-tlsmod16a.c: Likewise.
17901         * elf/tst-tlsmod16b.c: Likewise.
17902         * elf/tst-tlsmod7.c: Likewise.
17903         * elf/tst-tlsmod8.c: Likewise.
17904         * elf/tst-tlsmod9.c: Likewise.
17905         * gmon/gmon.c: Likewise.
17906         * grp/fgetgrent_r.c: Likewise.
17907         * grp/putgrent.c: Likewise.
17908         * hurd/fopenport.c: Likewise.
17909         * include/libc-symbols.h: Likewise.
17910         * include/tls.h: Likewise.
17911         * intl/gettextP.h: Likewise.
17912         * intl/loadinfo.h: Likewise.
17913         * locale/global-locale.c: Likewise.
17914         * locale/localeinfo.h: Likewise.
17915         * mach/devstream.c: Likewise.
17916         * malloc/arena.c: Likewise.
17917         * malloc/set-freeres.c: Likewise.
17918         * misc/err.c: Likewise.
17919         * misc/getttyent.c: Likewise.
17920         * misc/mntent_r.c: Likewise.
17921         * posix/getopt.c: Likewise.
17922         * posix/wordexp.c: Likewise.
17923         * pwd/fgetpwent_r.c: Likewise.
17924         * resolv/Versions: Likewise.
17925         * resolv/res_hconf.c: Likewise.
17926         * shadow/fgetspent_r.c: Likewise.
17927         * shadow/putspent.c: Likewise.
17928         * stdio-common/printf_fphex.c: Likewise.
17929         * stdio-common/tmpfile.c: Likewise.
17930         * stdlib/abort.c: Likewise.
17931         * stdlib/fmtmsg.c: Likewise.
17932         * sunrpc/auth_unix.c: Likewise.
17933         * sunrpc/clnt_perr.c: Likewise.
17934         * sunrpc/clnt_tcp.c: Likewise.
17935         * sunrpc/clnt_udp.c: Likewise.
17936         * sunrpc/clnt_unix.c: Likewise.
17937         * sunrpc/openchild.c: Likewise.
17938         * sunrpc/svc_simple.c: Likewise.
17939         * sunrpc/svc_tcp.c: Likewise.
17940         * sunrpc/svc_udp.c: Likewise.
17941         * sunrpc/svc_unix.c: Likewise.
17942         * sunrpc/xdr.c: Likewise.
17943         * sunrpc/xdr_array.c: Likewise.
17944         * sunrpc/xdr_rec.c: Likewise.
17945         * sunrpc/xdr_ref.c: Likewise.
17946         * sunrpc/xdr_stdio.c: Likewise.
17947
17948 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17949
17950         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17951
17952 2011-07-03  Andreas Jaeger  <aj@suse.de>
17953
17954         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
17955         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
17956         regenerate with gen-libm-tests.pl.
17957
17958 2010-05-12  Petr Baudis  <pasky@suse.cz>
17959
17960         [BZ #11589]
17961         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
17962         around j0() zero points by switching to j1().
17963         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17964         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17965         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17966         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17967
17968 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17969
17970         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
17971         instead of 0.
17972         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
17973         instead of 0.                              .
17974         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17975         Patch in part by Pavel Roskin <proski@gnu.org>.
17976
17977         [BZ #13138]
17978         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
17979         realloc.
17980         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
17981         Free memory block if necessary.
17982
17983         [BZ #12847]
17984         * libio/genops.c (INTDEF): For string streams the _lock pointer can
17985         be NULL.  Don't lock in this case.
17986
17987 2011-09-09  Roland McGrath  <roland@hack.frob.com>
17988
17989         * elf/elf.h (ELFOSABI_GNU): New macro.
17990         (ELFOSABI_LINUX): Define to that.
17991
17992 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
17993
17994         * string/strncat.c (strncat): Undef the symbol in case it has been
17995         defined in bits/string.h.
17996
17997 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
17998
17999         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18000
18001         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18002         link map.
18003
18004 2011-08-17  Andreas Jaeger  <aj@suse.de>
18005
18006         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18007
18008 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18009             Ian Lance Taylor  <iant@google.com>
18010
18011         * math/libm-test.inc (lround_test): New testcase.
18012         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18013
18014 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18015
18016         * Makefile: Remove support for automatic cvs check-ins.
18017         * Makerules: Likewise.
18018         * config.make.in: Likewise.
18019         * configure.in: Likewise.
18020         * intl/Makefile: Likewise.
18021         * locale/Makefile: Likewise.
18022         * po/Makefile: Likewise.
18023         * posix/Makefile: Likewise.
18024         * sysdeps/gnu/Makefile: Likewise.
18025         * sysdeps/mach/hurd/Makefile: Likewise.
18026         * sysdeps/sparc/sparc32/Makefile: Likewise.
18027
18028         [BZ #13118]
18029         * posix/Makefile (bug-regex32-ENV): Define.
18030         Patch by John Stanley <jpsinthemix@verizon.net>.
18031
18032         * misc/Makefile (headers): Add bits/select2.h.
18033         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18034         * misc/bits/select2.h: New file.
18035         * include/bits/select2.h: New file.
18036         * debug/Makefile (routines): Add fdelt_chk.
18037         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18038         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18039         FD_ISSET.
18040         * debug/fdelt_chk.c: New file.
18041
18042         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18043         * wcsmbs/test-wmemcmp.c: Likewise.
18044         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18045         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18046
18047 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18048
18049         * string/Makefile (strop-tests): Add memcmp.
18050         * string/test-wmemcmp.c: New file.
18051         * string/test-memcmp.c: Add wmemcmp support.
18052
18053 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18054
18055         [BZ #13153]
18056         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18057         2011-07-19 change.
18058
18059         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18060         garbage value in a __mach_port_mod_refs call in the cases of the
18061         task-self and thread-self ports.
18062
18063 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18064
18065         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18066
18067 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18068
18069         * elf/dl-load.c (lose): Check for non-null L.
18070
18071 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18072
18073         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18074
18075         * elf/dl-libc.c (dlerror_run): Pass back error code from
18076         dl_catch_error.
18077
18078         [BZ #13123]
18079         * elf/dl-load.c (lose): Free l_origin if it is valid.
18080
18081         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18082         names.
18083         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18084         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18085         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18086         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18087         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18088         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18089
18090 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18091
18092         * sysdeps/powerpc/fpu/e_hypot.c: New file.
18093         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18094         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18095         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18096         * sysdeps/powerpc/fpu/k_cosf.c: New file.
18097         * sysdeps/powerpc/fpu/k_sinf.c: New file.
18098         * sysdeps/powerpc/fpu/s_cosf.c: New file.
18099         * sysdeps/powerpc/fpu/s_sinf.c: New file.
18100         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18101         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18102
18103 2011-08-15  Alan Modra  <amodra@gmail.com>
18104
18105         [BZ #13092]
18106         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18107         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18108         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
18109         ppc_mcount to static-only-routines.
18110         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18111         __mcount_internal.
18112         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18113         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18114
18115 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18116
18117         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18118         for finite and infinity parameters.
18119
18120 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18121
18122         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18123         and add nop instructions for throughput optimization.
18124         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18125
18126 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18127
18128         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18129         aligned copy for power7 with vector-scalar instructions.
18130         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18131
18132 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18133
18134         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18135         AVX check.
18136
18137 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18138
18139         [BZ #13144]
18140         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18141         last change.
18142
18143 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18144
18145         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18146         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18147         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18148         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18149         clock_gettime.
18150
18151 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18152
18153         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18154         Forgot to demangle the pointer.
18155
18156         * sysdeps/i386/sysdep.h: Define atom_text_section.
18157         * sysdeps/x86_64/sysdep.h: Likewise.
18158         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18159         section with atom_text_section.
18160         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18161         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18162         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18163         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18164         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18165
18166         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18167         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18168         already be defined.  Change to take two parameters and don't assign
18169         result to variable.  Adjust all users.
18170         Define INTERNAL_GETTIME if not already defined.
18171         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18172         call.
18173         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18174         HAVE_CLOCK_GETTIME_VSYSCALL.
18175         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18176
18177         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18178         gettimeofday vsyscall, just use time.
18179
18180 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18181
18182         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18183         <errno.h>.
18184
18185 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18186
18187         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18188         syscall on x86-64.
18189         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18190         syscall.
18191         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18192         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18193         syscall if possible.
18194
18195 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18196
18197         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18198         e_ident.  Don't pass to find_mapsXX.
18199         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18200
18201 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18202
18203         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18204         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18205         * sysdeps/x86_64/multiarch/strchr.S: Update.
18206         Check bit_slow_BSF bit.
18207         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18208         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18209         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18210
18211 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18212
18213         [BZ #13134]
18214         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18215         before glibc 2.15.
18216         (tryshell): Define.
18217         (__spawni): Change last parameter to be flag.  Test
18218         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18219         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18220         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18221         * posix/spawni.c: Likewise.
18222         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18223         * posix/spawnp.c: Likewise.  Change normal version to use
18224         SPAWN_XFLAGS_USE_PATH.
18225         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18226         SPAWN_XFLAGS_TRY_SHELL.
18227
18228         [BZ #13150]
18229         * posix/glob.h: Remove gcc 1.x support.
18230
18231         [BZ #13068]
18232         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18233
18234 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18235
18236         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18237         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18238         strrchr-sse2-bsf
18239         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18240         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18241         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18242         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18243         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18244         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18245
18246 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18247
18248         * sysdeps/x86_64/wcscmp.S: New file.
18249
18250         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18251         wcscmp-c wcscmp-sse2
18252         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18253         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18254         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18255         * wcsmbs/wcscmp.c: Allow renaming.
18256
18257 2011-09-05  David S. Miller  <davem@davemloft.net>
18258
18259         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18260         stack slot, rather than the struct return pointer slot.
18261         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18262         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18264         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18265
18266 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18267
18268         * po/ja.po: Update from translation team.
18269
18270         [BZ #13144]
18271         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18272         kernel in 64-bit binaries.
18273
18274 2011-09-01  David S. Miller  <davem@davemloft.net>
18275
18276         * elf/elf.h (HWCAP_SPARC_*): Move to..
18277         * sysdeps/sparc/sysdep.h: this new file and add new values.
18278         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18279         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18280         _DL_HWCAP_COUNT to 24.
18281         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18282         entries.
18283         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18284         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18285         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18286         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18287         instead of magic constants.
18288         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18289
18290 2011-08-31  David S. Miller  <davem@davemloft.net>
18291
18292         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18293         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18294         Reimplement to do errno handling inline.
18295         (SYSCALL_ERROR_HANDLER): New macro.
18296         (__SYSCALL_STRING): Do not do errno handling in asm.
18297         (__CLONE_SYSCALL_STRING): Delete.
18298         (__INTERNAL_SYSCALL_STRING): Delete.
18299         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18300         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18301         (PSEUDO): Reimplement to do errno handling inline.
18302         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18303         (SYSCALL_ERROR_HANDLER): New macro.
18304         (__SYSCALL_STRING): Do not do errno handling in asm.
18305         (__CLONE_SYSCALL_STRING): Delete.
18306         (__INTERNAL_SYSCALL_STRING): Delete.
18307         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18308         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18309         i386.
18310         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18311         (inline_syscall*): Add 'err' argument.
18312         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18313         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18314         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18315         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18316
18317         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18318         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18319
18320 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18321
18322         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18323
18324 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18325
18326         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18327         directive.
18328
18329 2011-08-24  David S. Miller  <davem@davemloft.net>
18330
18331         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18332
18333 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18334
18335         * elf/Makefile: Add rules to build and run unload8 test.
18336         * elf/unload8.c: New file.
18337         * elf/unload8mod1.c: New file.
18338         * elf/unload8mod1x.c: New file.
18339         * elf/unload8mod2.c: New file.
18340         * elf/unload8mod3.c: New file.
18341
18342         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18343         it wasn't used.
18344
18345 2011-08-23  David S. Miller  <davem@davemloft.net>
18346
18347         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18348         subtract stack bias.
18349         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18350         %sp not %fp in calculations.
18351         (_JMPBUF_UNWINDS_ADJ): Likewise.
18352
18353         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18354         (aio_suspend): Call it to force an exception region around the
18355         AIO_MISC_WAIT() invocation.
18356
18357 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18358
18359         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18360         backslash.
18361
18362 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18363
18364         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18365         protection macro.
18366         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18367         and <dl-machine.h>.
18368         (Elf64_FuncDesc): Remove.
18369
18370 2011-08-22  David S. Miller  <davem@davemloft.net>
18371
18372         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18373         sigaltstack check, add missing cfi directives.
18374         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18375         missing cfi directives, and sigaltstack handling.
18376
18377 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18378
18379         [BZ #11724]
18380         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18381         object is seen twice.
18382         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18383
18384         * elf/Makefile (distribute): Add tst-initorder2.c.
18385         (tests): Add tst-initorder2.
18386         (modules-names): Add tst-initorder2a tst-initorder2b
18387         tst-initorder2c tst-initorder2d.  Add rules to build them.
18388         ($(objpfx)tst-initorder2.out): New rule.
18389         * elf/tst-initorder2.c: New file.
18390         * elf/tst-initorder2.exp: New file.
18391
18392 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18393
18394         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18395
18396         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18397         dependencies back to end of function.
18398
18399         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18400         $(elfobjdir)/ld.so.
18401
18402 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18403
18404         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18405         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18406         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18407         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18408         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18409         of __vdso_gettimeofday.
18410         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18411         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18412         attribute_hidden.
18413         (_libc_vdso_platform_setup): Remove initialization of
18414         __vdso_gettimeofday and __vdso_time.
18415
18416 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18417
18418         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18419         and fgetc_unlocked.
18420         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18421         getc_unlocked.
18422
18423         * elf/dl-open.c (add_to_global): Report additions to the global scope
18424         for LD_DEBUG=scopes.
18425         (dl_open_worker): Also print scope of newly loaded dependencies.
18426         (_dl_show_scope): Indicate if there is no scope.
18427
18428         [BZ #13114]
18429         * stdio-common/Makefile (tests): Add bug24.
18430         * stdio-common/bug24.c: New file.
18431
18432 2011-08-19  Andreas Jaeger  <aj@suse.de>
18433
18434         [BZ #13114]
18435         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18436         non-existant file when using close-on-exec mode.
18437
18438 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18439
18440         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18441         the very first instruction.
18442
18443         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18444         the CFI state in the end.
18445         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18446         inclusion of dl-trampoline.h.
18447         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18448
18449 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18450
18451         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18452         expectations for long double.
18453
18454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18455         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18456
18457 2011-08-14  David S. Miller  <davem@davemloft.net>
18458
18459         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18460         artificual limit depends upon the system page size.
18461
18462 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18463
18464         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18465         * resolv/Makefile: Define CFLAGS-libresolv.
18466
18467 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18468
18469         * nss/makedb.c (compute_tables): Make variables used in nested
18470         function static.
18471
18472 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18473
18474         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18475         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18476         if buffer was too small.
18477
18478         * elf/pldd.c (main): Attach to all threads in the process.
18479         Rewrite /proc handling to use *at functions.
18480
18481 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18482
18483         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18484         specifies first scope to show.
18485         (dl_open_worker): Update callers.  Move printing scope of new
18486         object to before the relocation.
18487         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18488         * sysdeps/generic/ldsodefs.h: Update declaration.
18489
18490         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18491         string for the scope number.
18492
18493 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18494
18495         * nscd/servicescache.c (cache_addserv): Make sure written is always
18496         initialized.
18497
18498 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18499
18500         * sysdeps/i386/i486/bits/atomic.h
18501         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18502         statement expression, so as to suppress "set but not used" warning.
18503         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18504
18505         * string/strncat.c (STRNCAT): Use prototype definition.
18506
18507         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18508         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18509         -Iprograms here.
18510         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18511         (localedef-modules): Add localedef.
18512         (locale-modules): Add locale.
18513
18514         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18515         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18516         to avoid a warning.
18517
18518 2011-08-14  David S. Miller  <davem@davemloft.net>
18519
18520         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18521         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18522
18523 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18524
18525         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18526         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18527         * elf/rtld.c (dl_main): Set l_name of vDSO.
18528         Call _dl_show_scope when DL_DEBUG_SCOPES.
18529         (process_dl_debug): Recognize scopes flag and also set it for all.
18530         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18531         Declare _dl_show_scope.
18532
18533         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18534         (do_dlopen): Pass caller_dlopen to dl_open.
18535         (__libc_dlopen_mode): Initialize caller_dlopen.
18536
18537         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18538         of libc.  Make tolower call locale-independent.  Optimize a bit by
18539         using isdigit instead of isalnum.
18540         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18541
18542 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18543
18544         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18545         was a dependency or dynamically loaded.
18546
18547 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18548
18549         * intl/l10nflist.c: Allow architecture-specific pop function.
18550         * sysdeps/x86_64/l10nflist.c: New file.
18551
18552         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18553         classification.
18554
18555 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18556
18557         * include/dirent.h: Add libc_hidden_proto for scandirat and
18558         scandirat64.  Don't declare __scandirat64.
18559         * dirent/scandirat.c: Add libc_hidden_def.
18560         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18561         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18562
18563 2011-08-10  David S. Miller  <davem@davemloft.net>
18564
18565         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18566         enum.
18567         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18568         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18569         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18570
18571 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18572
18573         * Versions.def [libc]: Add GLIBC_2.15.
18574         * dirent/Makefile (routines): Add scandirat and scandirat64.
18575         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18576         GLIBC_2.15.
18577         * dirent/dirent.h: Declare scandirat and scandirat64.
18578         * dirent/scandirat.c: New file.
18579         * dirent/scandirat64.c: New file.
18580         * sysdeps/wordsize-64/scandirat.c: New file.
18581         * sysdeps/wordsize-64/scandirat64.c: New file.
18582         * dirent/opendir.c: Define opendirat.
18583         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18584         using scandirat.
18585         * dirent/scandir64.c: Adjust for scandir.c change.
18586         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18587         __scandirat64, and __scandir_cancel_handler.
18588         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18589         additional parameter and use openat instead of open (outside of ld.so).
18590         Add new __opendir as wrapper around __opendirat.
18591         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18592         here without requiring old scandirat implementation.
18593
18594 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18595
18596         * dirent/scandir.c (cancel_handler): Renamed to
18597         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18598         defined.  Adjust users.
18599         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18600         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18601
18602 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18603
18604         * string/test-string.h (IMPL): Use __STRING to expand name and then
18605         stringify it.
18606
18607         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18608         of cleanups.
18609
18610 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18611
18612         * string/Makefile: Update.
18613         (strop-tests): Append strncat.
18614         * string/test-wcscmp.c: New file.
18615         New comprehensive test for wcscmp.
18616         * string/test-strcmp.c: Update.
18617         (WIDE): New define.
18618
18619 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18620
18621         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18622         line.
18623
18624 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18625
18626         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18627         encoding to ACE if AI_IDN.
18628
18629 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18630
18631         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18632         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18633
18634 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18635
18636         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18637         Fix overflow bug in strncat.
18638         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18639
18640         * string/test-strncat.c: Update.
18641         Add new tests for checking overflow bugs.
18642
18643 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18644
18645         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18646         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18647         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18648         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18649         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18650         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18651         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18652         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18653         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18654
18655         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18656         (USE_AS_STRCAT): Define.
18657         Add strcat and strncat support.
18658         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18659
18660 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18661
18662         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18663         __n bigger than INT_MAX+1.
18664         (__strncmp_g): Likewise.
18665
18666 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18667
18668         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18669         * libio/stido.h: Likewise.
18670
18671         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18672         (AF_NFC): Define.
18673         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18674         (AF_NFC): Define.
18675
18676         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18677         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18678         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18679         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18680         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18681
18682         [BZ #13021]
18683         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18684         installed.
18685
18686         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18687         typo.
18688         (_dl_x86_64_save_sse): Likewise.
18689
18690 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18691
18692         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18693         OSXSAVE.
18694         (_dl_x86_64_save_sse): Likewise.
18695
18696         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18697
18698         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18699
18700 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18701
18702         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18703         change.
18704         (_dl_x86_64_save_sse): Use correct AVX check.
18705
18706 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18707
18708         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18709         bug in strncpy/strncat.
18710         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18711
18712 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18713
18714         * string/tester.c (test_strcat): Add tests for different alignments
18715         of source and destination.
18716         (test_strncat): Likewise.
18717
18718 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18719
18720         [BZ #12852]
18721         * posix/glob.c (glob): Check passed in values before using them in
18722         expressions to avoid some overflows.
18723         (glob_in_dir): Likewise.
18724
18725         [BZ #13007]
18726         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18727         check for AVX enablement so that we don't crash with old kernels and
18728         new hardware.
18729         * elf/tst-audit4.c: Add same checks here.
18730         * elf/tst-audit6.c: Likewise.
18731
18732         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18733
18734 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18735
18736         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18737
18738 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18739
18740         * po/cs.po: Update from translation team.
18741         * po/bg.po: Likewise.
18742
18743 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18744
18745         * misc/sys/cdefs.h: Add support for const attribute.
18746         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18747         to gnu_dev_{major,minor,makedev} functions.
18748
18749 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18750
18751         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18752
18753 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18754
18755         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18756         strlen results.
18757
18758 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18759
18760         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18761         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18762         register in order to avoid conflicts with the soft frame pointer
18763         being held in r11 when necessary.
18764         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18765         (INTERNAL_VSYSCALL_NCS): Likewise.
18766
18767 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18768
18769         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18770         * elf/dl-fini.c (_dl_fini): Adjust caller.
18771         * elf/dl-close.c (_dl_close_worker): Likewise.
18772         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18773
18774 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18775
18776         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18777         "aux_cache->nlibs < 0".
18778
18779         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18780         in the reload-count case.
18781
18782 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18783
18784         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18785         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18786         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18787         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18788         * sysdeps/x86_64/multiarch/strcat.S: New file.
18789         * sysdeps/x86_64/multiarch/strncat.S: New file.
18790         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18791         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18792         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18793         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18794         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18795         (USE_AS_STRCAT): Define.
18796         Add strcat and strncat support.
18797         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18798         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18799         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18800         * string/strncat.c: Update.
18801         (USE_AS_STRNCAT): Define.
18802         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18803         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18804         and i7.
18805         * sysdeps/x86_64/multiarch/init-arch.h
18806         (bit_Prefer_PMINUB_for_stringop): New.
18807         (index_Prefer_PMINUB_for_stringop): Likewise.
18808         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18809         bit_Prefer_PMINUB_for_stringop.
18810
18811 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18812
18813         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18814         buffer64.
18815         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18816         of casting of buffer.
18817         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18818         buffer32 and buffer64.
18819         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18820         writes instead of casting of buffer.
18821         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18822         buffer32.
18823         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18824         casting of buffer.
18825
18826 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18827
18828         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18829
18830 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18831
18832         * nscd/nscd.c (termination_handler): Don't do anything for a database
18833         if it has not yet been initialized.
18834
18835 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18836
18837         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18838
18839 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18840
18841         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18842
18843 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18844
18845         * po/nl.po: Update from translation team.
18846         * po/sv.po: Likewise.
18847
18848 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18849
18850         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18851         now disallowed by GCC.
18852
18853         * configure.in (use-default-link): Default to yes if a test -shared
18854         link meets our qualifications.
18855         * configure: Regenerated.
18856
18857         * config.make.in (output-format): New variable.
18858         * configure.in: Check for ld --print-output-format support.
18859         * configure: Regenerated.
18860         * Makerules ($(common-objpfx)format.lds)
18861         [$(output-format) != unknown]: Just use $(output-format),
18862         instead of the linker-script munging.
18863
18864 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18865
18866         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18867         of $(common-objpfx)shlib.lds.
18868         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18869
18870         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18871         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18872
18873         * configure.in (-z relro check): Adjust test code to add a large
18874         writable data section after it.
18875         * configure: Regenerated.
18876
18877 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18878
18879         * configure.in (-z relro check): Fix test code to make the variable
18880         truly const.
18881         * configure: Regenerated.
18882
18883 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18884
18885         * nscd/nscd.h (struct traced_file): Define.
18886         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18887         elements.  Add traced_files.
18888         (inotify_fd): Declare.
18889         (register_traced_file): Declare.
18890         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18891         (inotify_fd): Export.
18892         (resolv_conf_descr): Remove.
18893         (nscd_init): Move inotify descriptor creation to main.
18894         Don't register files for notification here.
18895         (register_traced_file): New function.
18896         (invalidate_cache): Don't use reset_res to determine whether to call
18897         res_init, go through the list of registered files.
18898         (main_loop_poll): The inotify descriptors are now stored in the
18899         structures for the traced files.
18900         (main_loop_epoll): Likewise
18901         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
18902         to __nss_disable_nscd.
18903         * nscd/cache.c (prune_cache): There is no single inotify descriptor
18904         for a database anymore.  Check the records for all the registered
18905         files instead.
18906         * nss/Makefile (libnss_files-routines): Add files-init.
18907         (libnss_db-routines): Add db-init.
18908         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
18909         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
18910         * nss/nss_db/db-init.c: New file.
18911         * nss/nss_files/files-init.c: New file.
18912         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
18913         __nss_lookup_function.
18914         (__nss_lookup_function): Call nss_load_library.
18915         (nss_load_all_libraries): New function.
18916         (__nss_disable_nscd): Take parameter with callback function for files
18917         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
18918         used for the cached services.
18919         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
18920         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
18921         options for features to all the files in nscd.
18922
18923         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
18924
18925 2011-07-10  Roland McGrath  <roland@hack.frob.com>
18926
18927         * csu/elf-init.c (__libc_csu_init): Comment typo.
18928
18929 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
18930
18931         * po/pl.po: Update from translation team.
18932         * po/ja.po: Likewise.
18933         * po/ru.po: Likewise.
18934         * po/ko.po: Likewise.
18935         * po/fr.po: Likewise.
18936
18937 2011-07-09  Roland McGrath  <roland@hack.frob.com>
18938
18939         * configure.in (.ctors/.dtors header and trailer check):
18940         Use an empirical test on a built program.
18941         * configure: Regenerated.
18942
18943         * configure.in (-z relro check): Use an empirical test on a built DSO.
18944         Detect, but do not require, on ia64.
18945         * configure: Regenerated.
18946
18947         * configure.in (READELF): Find it with AC_CHECK_TOOL.
18948         Update tests that use readelf to use $READELF instead.
18949         * configure: Regenerated.
18950
18951 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
18952
18953         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
18954         if the result is not used.
18955
18956 2011-07-05  Andreas Jaeger  <aj@suse.de>
18957
18958         [BZ#9696]
18959         * stdlib/tst-strtod.c: Add testcase.
18960
18961 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
18962
18963         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
18964         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
18965         The latter has a higher limit.  Take additional parameter to pass to
18966         the new function.
18967         (__pathconf): Pass file to __statfs_link_max.
18968         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
18969         __statfs_link_max.
18970         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
18971         __statfs_link_max.
18972
18973         [BZ #12868]
18974         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
18975         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18976         Handle Lustre.
18977         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
18978         (__statfs_filesize_max): Likewise.
18979         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
18980
18981 2011-07-05  Andreas Jaeger  <aj@suse.de>
18982
18983         * resolv/res_comp.c (dn_skipname): Remove unused variable.
18984
18985 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
18986
18987         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
18988         `status' variable.
18989         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
18990         Likewise.
18991
18992 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
18993
18994         * Makefile (strop-tests): Add strncat.
18995         * string/test-strncat.c: New file.
18996
18997 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
18998
18999         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19000
19001 2011-06-21  Andreas Jaeger  <aj@suse.de>
19002
19003         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19004         Copy rule from iconvdata/Makefile.
19005
19006 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19007
19008         [BZ #12922]
19009         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19010         but no long options are defined, just return 'W'.
19011
19012 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19013
19014         [BZ #9696]
19015         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19016
19017 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19018
19019         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19020         netgroups to read.
19021         (innetgr): Likewise.
19022
19023 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19024
19025         * config.make.in (install_root): Default to $(DESTDIR).
19026
19027 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19028
19029         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19030
19031 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19032
19033         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19034
19035         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19036         containing directory rather than embedding absolute directory names.
19037
19038         * scripts/check-local-headers.sh: Rewritten using awk.
19039         Match by word, not by line.  Print error messages for matches.
19040         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19041
19042         * Makerules [shlib-lds-flags empty]:
19043         ($(common-objpfx)libc_pic.opts): New target.
19044         ($(common-objpfx)libc_pic.os.clean): New target.
19045         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19046
19047         * config.make.in (OBJCOPY): New variable.
19048         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19049         * configure: Regenerated.
19050
19051         * config.make.in (use-default-link): New variable.
19052         * configure.in (use_default_link): Grok --with-default-link to set it.
19053         * configure: Regenerated.
19054         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19055         (shlib-lds, shlib-lds-flags): Define to empty.
19056
19057         * Makerules (shlib-lds): New variable.
19058         (shlib-lds-flags): New variable.
19059         (build-shlib, build-moduile, build-module-asneeded): Use it.
19060         ($(common-objpfx)libc.so): Use $(shlib-lds).
19061         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19062         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19063
19064         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19065         DT_FLAGS/DT_FLAGS_1 with zero flags.
19066
19067         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19068         linker script munging.
19069
19070 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19071
19072         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19073         as 128-bit value.
19074         * crypt/sha512.c (sha512_process_block): Perform total addition using
19075         128-bit if possible.
19076         (__sha512_finish_ctx): Likewise.
19077         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19078         as 64-bit value.
19079         * crypt/sha256.c (SWAP64): Define.
19080         (sha256_process_block): Perform total addition using 64-bit if
19081         possible.
19082         (__sha256_finish_ctx): Likewise.
19083
19084 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
19085
19086         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
19087         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19088         * nscd/hstcache.c (cache_addhst): Likewise.
19089         * nscd/grpcache.c (cache_addgr): Likewise.
19090         * nscd/aicache.c (addhstaiX): Likewise
19091         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19092
19093 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
19094
19095         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19096         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19097         * nscd/hstcache.c (cache_addhst): Likewise.
19098         * nscd/grpcache.c (cache_addgr): Likewise.
19099         * nscd/aicache.c (addhstaiX): Likewise
19100
19101 2011-07-01  Andreas Schwab  <schwab@redhat.com>
19102
19103         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19104         domain only when needed.
19105
19106 2011-06-30  Andreas Schwab  <schwab@redhat.com>
19107
19108         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19109         is always restored.
19110
19111 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19112
19113         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19114         are re-adding the entry.
19115         * nscd/servicescache.c (cache_addserv): Likewise.
19116
19117 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19118
19119         * sysdeps/generic/dl-irel.h: fix protection against multiple
19120         inclusions.
19121         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19122
19123 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19124
19125         [BZ #12935]
19126         * malloc/memusage.sh: Fix quoting in message.
19127         * debug/xtrace.sh: Likewise.
19128
19129         * configure.in: Remove support for --experimental-malloc option, make
19130         it the default.
19131         * config.make.in: Likewise.
19132         * malloc/Makefile: Likewise.
19133
19134 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19135
19136         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19137         two-byte characters.
19138
19139 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19140
19141         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19142         AC_CACHE_CHECK invocation.
19143         * configure: Regenerated.
19144
19145         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19146
19147 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19148
19149         [BZ #12350]
19150         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19151         bit from old_res_options.
19152
19153         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19154
19155         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19156         value type for setfct.
19157
19158 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19159
19160         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19161         __gettimeofday instead of gettimeofday.
19162
19163 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19164
19165         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19166
19167 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19168
19169         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19170
19171         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19172         info.
19173
19174 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19175
19176         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19177         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19178         strcpy-sse2-unaligned strncpy-sse2-unaligned
19179         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19180         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19181         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19182         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19183         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19184         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19185         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19186         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19187         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19188         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19189         (STRCPY): Support SSE2 and SSSE3 versions.
19190
19191 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19192
19193         [BZ #12874]
19194         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19195         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19196         kernels which artificially limit size of requests.
19197
19198 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19199
19200         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19201         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19202         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19203         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19204         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19205         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19206         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19207         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19208         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19209         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19210         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19211         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19212         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19213         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19214         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19215         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19216         Enable unaligned load optimization for Intel Core i3, i5 and i7
19217         processors.
19218         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19219         Define.
19220         (index_Fast_Unaligned_Load): Define.
19221         (HAS_FAST_UNALIGNED_LOAD): Define.
19222
19223 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19224
19225         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19226
19227 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19228
19229         [BZ #12907]
19230         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19231         until it is clear that the information is realy needed.
19232         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19233
19234 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19235
19236         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19237
19238 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19239
19240         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19241         /sys/devices/system/cpu/online if it is usable.
19242
19243         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19244         reading the information from the /proc filesystem to once a second.
19245
19246 2011-06-21  Andreas Jaeger  <aj@suse.de>
19247
19248         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19249         NULL after inclusion of kernel headers.
19250
19251 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19252
19253         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19254         calls to internal_setent.
19255
19256         [BZ #12885]
19257         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19258         addresses using gethostbyname4_r ignore IPv4 addresses.
19259
19260         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19261         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19262
19263         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19264
19265 2011-06-20  David S. Miller  <davem@davemloft.net>
19266
19267         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19268         inclusions.
19269         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19270
19271         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19272         (elf_irel): Use it.
19273         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19274         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19275         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19276         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19277         * sysdeps/x86_64/dl-irel.h: Likewise.
19278
19279         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19280         * elf/dl-sym.c: Likewise.
19281
19282 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19283
19284         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19285         need to dereference resplen2.
19286
19287 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19288
19289         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19290
19291 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19292
19293         * Makeconfig: Define vardbdir and inst_vardbdir.
19294         * nss/Makefile: Add rules to install db-Makefile.
19295
19296         * nss/nss_db/db-XXX.c: Cleanup.
19297
19298         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19299         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19300         GLIBC_PRIVATE.
19301         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19302         * nss/makedb.c: Implement -g option to specify that value strings
19303         are generated and should not be added to table iterated over for
19304         get*ent calls.
19305         * nss/nss_db/db-initgroups.c: New file.
19306
19307         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19308         interface.
19309
19310         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19311         (internal_getgrouplist): Adjust to name change.
19312         Update use_initgroups_entry if this is not the first call.
19313         * nss/databases.def: Add initgroups entry.
19314
19315         * nss/makedb.c (compute_tables): Check result of multiple hash table
19316         sizes to minimize maximum chain length.
19317
19318 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19319
19320         * Versions.def: Add entry for libnss_db.
19321         * shlib-versions: Likewise.
19322         * nss/Makefile: Add rules to build libnss_db.
19323         * nss/Versions: Add libnss_db information.  Organize libnss_files
19324         entries better.
19325         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19326         makedb progra.  Some minor improvements to generate smaller files.
19327         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19328         here from...
19329         * nss/makedb.c: ...here.
19330         Improve database format to be smaller and require less memory at
19331         runtime.
19332         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19333         db anymore.
19334         * nss/nss_db/db-netgrp.c: Likewise.
19335         * nss/nss_db/db-open.c: Likewise.
19336         * nss/nss_files/flies-XXX.x: Adjust comments.
19337         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19338         * nss/nss_files/files-grp.c: Likewise.
19339         * nss/nss_files/files-hosts.c: Likewise.
19340         * nss/nss_files/files-network.c: Likewise.
19341         * nss/nss_files/files-proto.c: Likewise.
19342         * nss/nss_files/files-pwd.c: Likewise.
19343         * nss/nss_files/files-rpc.c: Likewise.
19344         * nss/nss_files/files-service.c: Likewise.
19345         * nss/nss_files/files-sgrp.c: Likewise.
19346         * nss/nss_files/files-spwd.c: Likewise.
19347         * nss/nss_db/db-alias.c: Removed.
19348         * nss/nss_db/dummy-db.h: Removed.
19349
19350 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19351
19352         * nss/makedb.c: Rewritten to not use database library.
19353         * nss/Makefile: Update to build new makedb program.
19354
19355 2011-06-14  Andreas Jaeger  <aj@suse.de>
19356
19357         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19358         memset declaration.
19359
19360 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19361
19362         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19363         tmpbuf.
19364
19365 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19366
19367         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19368         * elf/Makefile ($(objpfx)ld.so): Likewise.
19369
19370         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19371         Don't list ld.so twice in dependencies.
19372
19373         * posix/bug-regex31.c: Include <stdlib.h>.
19374
19375         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19376
19377         * nis/nss_compat/compat-spwd.c
19378         (getspent_next_nss_netgr): Remove unused variable.
19379         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19380
19381         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19382         nonmembers" output to use the right array.
19383
19384         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19385
19386         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19387
19388         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19389         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19390         * catgets/gencat.c (read_input_file): Likewise.
19391         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19392
19393         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19394         variable definition inside #if's controlling its use.
19395
19396         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19397
19398         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19399
19400         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19401
19402         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19403         unreachable code.
19404
19405         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19406
19407         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19408         * configure: Regenerated.
19409
19410         * Makerules: Revert last change.
19411         * elf/Makefile: Likewise.
19412
19413 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19414
19415         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19416         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19417         (reloc-link): Likewise.
19418
19419 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19420
19421         * elf/Makefile: Add rules to build pldd.
19422         * elf/pldd.c: New file.
19423         * elf/pldd-xx.c: New file.
19424
19425 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19426
19427         * version.h: Update for 2.15 development version.
19428
19429 2011-06-07  David S. Miller  <davem@davemloft.net>
19430
19431         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19432         ifuncs.
19433         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19434         elf_machine_lazy_rel): Likewise.
19435         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19436         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19437         elf_machine_lazy_rel): Likewise.
19438         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19439         dl_hwcap via passed in argument.
19440         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19441         Likewise.
19442
19443 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19444
19445         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19446
19447 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19448
19449         [BZ #12849]
19450         * manual/fdl-1.1.texi: New file, verbatim from:
19451         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19452         * manual/lgpl-2.1.texi: New file, verbatim from:
19453         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19454         * manual/Makefile (licenses): New variable, list those new file names.
19455         (texis): Use it.
19456         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19457
19458         * manual/fdl.texi: File removed.
19459         * manual/lesser.texi: File removed.
19460         * manual/libc.texinfo (Copying, Documentation License):
19461         Use new @include file names, put @appendix directive before @include.
19462
19463 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19464
19465         [BZ #12841]
19466         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19467         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19468         (mq_open): Add __NTH.
19469
19470 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19471
19472         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19473         Assume Intel Core i3/i5/i7 processor if AVX is available.
19474
19475 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19476
19477         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19478         typo.
19479
19480 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19481
19482         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19483         memory.  Use alloca_account.  Fix memory leak when retrying.
19484
19485 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19486
19487         * version.h (RELEASE): Bump for 2.14 release.
19488         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19489
19490         * config.make.in (RANLIB): Remove entry.
19491
19492 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19493
19494         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19495         (libc.pot): Work around missing support for .ksh extension in xgettext.
19496
19497         [BZ #12684]
19498         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19499         if both request failed.
19500         (send_dg): In case of server errors clear resplen or *resplen2.
19501
19502         [BZ #12454]
19503         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19504         when there are multiple maps.
19505         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19506         (_dl_fini): Remove test here.
19507
19508         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19509
19510 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19511
19512         [BZ #12350]
19513         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19514         bit from old_res_options.
19515         (gaih_inet): Likewise.
19516
19517         [BZ #11099]
19518         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19519         as signed.
19520
19521         * resolv/res_init.c (res_setoptions): Make the code more compact.
19522
19523         [BZ #11558]
19524         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19525         set RES_USEVC.
19526
19527         [BZ #11634]
19528         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19529
19530         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19531
19532         [BZ #11781]
19533         * malloc/malloc.h: Declare malloc hook variables as volatile.
19534
19535         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19536         in last patch.
19537
19538         [BZ #11799]
19539         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19540         raise in the comment.
19541         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19542         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19543         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19544
19545 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19546
19547         [BZ #12811]
19548         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19549         grow the buffers more if it already has to be sufficient.
19550         (build_wcs_upper_buffer): Likewise.
19551         * posix/regexec.c (check_matching): Likewise.
19552         (clean_state_log_if_needed): Likewise.
19553         (extend_buffers): Don't enlarge buffers beyond size of the input
19554         buffer.
19555         Patches mostly by Emil Wojak <emil@wojak.eu>.
19556         * posix/bug-regex32.c: New file.
19557         * posix/Makefile (tests): Add bug-regex32.
19558
19559         * locale/findlocale.c (_nl_find_locale): Return right away if
19560         _nl_explode_name failed.
19561         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19562
19563         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19564
19565         * debug/xtrace.sh: Unify messages.
19566         * malloc/memusage.sh: Likewise.
19567
19568         [BZ #12813]
19569         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19570         time symbol from vDSO.  Substitute with vsyscall if not available.
19571         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19572         __vdso_time.
19573
19574         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19575         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19576         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19577         Add sendmmsg and internal_sendmmsg.
19578         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19579         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19580         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19581
19582         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19583         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19584         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19585
19586 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19587
19588         [BZ #12813]
19589         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19590         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19591         available.
19592         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19593         __vdso_getcpu.
19594
19595         [BZ #12814]
19596         * iconvdata/Makefile (tests): Add bug-iconv9.
19597         * iconvdata/bug-iconv9.c: New file.
19598
19599 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19600
19601         [BZ #12814]
19602         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19603
19604 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19605
19606         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19607         (struct user_regs_struct): Change intcs field back to cs.
19608
19609 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19610
19611         * po/ja.po: Update from translation team.
19612
19613 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19614
19615         [BZ #12795]
19616         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19617         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19618
19619 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19620
19621         * stdlib/longlong.h: Update from GCC.
19622
19623 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19624
19625         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19626         parameter name.
19627         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19628         Add parameter name.
19629         (__sysconf): Pass it down.
19630
19631 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19632
19633         [BZ #12671]
19634         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19635         some situations.
19636         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19637         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19638         add in in __libc_use_alloca calls.  Adjust callers.
19639         (glob): Use malloc in some situations.
19640
19641         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19642         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19643         pltexit.
19644
19645 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19646
19647         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19648         and CLOCK_BOOTTIME_ALARM.
19649
19650         [BZ #12782]
19651         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19652         is returned.
19653
19654         * string/_strerror.c (__strerror_r): Print negative errors as signed
19655         numbers.
19656
19657         [BZ #12777]
19658         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19659         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19660         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19661
19662         * configure.in: Fix typo in redirection and correct removal of test
19663         files in two cases.
19664
19665         [BZ #12788]
19666         * locale/setlocale.c (new_composite_name): Fix test to check for
19667         identical name of all categories.
19668
19669         [BZ #12792]
19670         * libio/filedoalloc.c (local_isatty): New function.
19671         (_IO_file_doallocate): Use local_isatty.
19672         * stdio-common/perror.c (perror): In case a new stream is used
19673         forward the stream error.
19674         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19675         error flag.
19676
19677 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19678
19679         [BZ #11869]
19680         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19681         alloca.
19682         * include/alloca.h (extend_alloca_account): Define.
19683
19684         [BZ #11857]
19685         * posix/regex.h: Fix comments with documentation of user-accessible
19686         fields after compilation and describe correct free'ing of pattern
19687         after re_compile_pattern.
19688         Patch by Reuben Thomas <rrt@sc3d.org>.
19689
19690 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19691
19692         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19693         and -mno-altivec to prevent the compiler from using Altivec and/or
19694         VSX instructions when the corresponding registers are not available.
19695
19696 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19697
19698         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19699
19700 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19701
19702         * libio/freopen.c (freopen): Use __dup2, not dup2.
19703         * libio/freopen64.c (freopen64): Likewise.
19704
19705 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19706
19707         [BZ #12775]
19708         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19709         * math/Makefile (tests): Add test-powl.
19710         (CFLAGS-test-powl.c): Define.
19711         * math/test-powl.c: New file.
19712
19713 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19714
19715         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19716
19717 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19718
19719         [BZ #11837]
19720         * iconvdata/gb18030.c: Update to GB18020-2005.
19721
19722 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19723
19724         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19725         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19726         Patch by Aharon Robbins <arnold@skeeve.com>.
19727
19728         [BZ #11892]
19729         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19730         on the stack.
19731
19732         [BZ #11895]
19733         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19734         through underflows.
19735
19736         [BZ #12766]
19737         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19738         point to strings before performing equality test for error_one_per_line
19739         mode.
19740
19741         [BZ #11697]
19742         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19743
19744         [BZ #11820]
19745         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19746         (struct user_fpregs_struct): Avoid __uint*_t types.
19747
19748         [BZ #6420]
19749         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19750         symbol info.  Use it instead of calling _dl_addr locally.
19751         (lock_and_info): New function.
19752         (tr_freehook): Call lock_and_info and pass symbol info as additional
19753         parameter to tr_where.
19754         (tr_mallochook): Likewise.
19755         (tr_reallochook): Likewise.
19756         (tr_memalignhook): Likewise.
19757
19758         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19759         used and couldn't be at all thread-safe.
19760
19761 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19762
19763         * libio/freopen.c (freopen): Don't close old file descriptor
19764         before the new one is opened.  Instead dup the new file descriptor
19765         to the old one after the new stream is created.
19766         * libio/freopen64.c (freopen64): Likewise.
19767         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19768         * libio/fileops.c (_IO_new_file_close_it): Handle new
19769         _IO_FLAGS2_NOCLOSE flag.
19770         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19771         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19772         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19773         _IO_FLAGS2_NOCLOSE flag.
19774         * include/unistd.h: Add hidden_proto for dup3.
19775         Define __have_dup3.
19776         * io/dup3.c: Define hidden symbol.
19777         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19778
19779         [BZ #7101]
19780         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19781         when an incomplete long option is used.
19782         * posix/tst-getopt_long1.c: New file.
19783         * posix/Makefile (tests): Add tst-getopt_long1.
19784
19785         [BZ #10138]
19786         * scripts/config.guess: Update from autoconf-2.68.
19787         * scripts/config.sub: Likewise.
19788
19789         [BZ #10157]
19790         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19791         tests into ...
19792         (has_cpuclock): ...this.  New function.
19793         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19794         macro here based on has_cpuclock code.
19795
19796         [BZ #10149]
19797         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19798         First byte (not low byte) is now always NUL.
19799         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19800
19801         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19802         Use non-cancelable interfaces.
19803
19804         [BZ #9809]
19805         * locale/iso-639.def: Add entry for Sorani.
19806
19807         [BZ #11901]
19808         * include/stdlib.h: Move include protection to the right place.
19809         Define abort_msg_s.  Declare __abort_msg with it.
19810         * stdlib/abort.c (__abort_msg): Adjust type.
19811         * assert/assert.c (__assert_fail_base): New function.  Majority
19812         of code from __assert_fail.  Allocate memory for __abort_msg with
19813         mmap.
19814         (__assert_fail): Now call __assert_fail_base.
19815         * assert/assert-perr.c: Remove bulk of implementation.  Use
19816         __assert_fail_base.
19817         * include/assert.hL Declare __assert_fail_base.
19818         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19819         mmap.
19820         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19821
19822 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19823
19824         [BZ #11952]
19825         [BZ #12453]
19826         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19827         until all modules are registered in the DTV.
19828         * elf/Makefile: Add rules to build and run tst-tls19.
19829         * elf/tst-tls19.c: New file.
19830         * elf/tst-tls19mod1.c: New file.
19831         * elf/tst-tls19mod2.c: New file.
19832         * elf/tst-tls19mod3.c: New file.
19833         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19834
19835         [BZ #12083]
19836         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19837         correctly.
19838
19839         [BZ #12601]
19840         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19841         two-byte sequence errors.
19842         * iconvdata/Makefile (tests): Add bug-iconv8.
19843         * iconvdata/bug-iconv8.c: New file.
19844
19845         [BZ #12626]
19846         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19847         buf2 definition.
19848
19849         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19850
19851         [BZ #12432]
19852         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19853         (dummy_getcfa): New function.
19854         (init): Get _Unwind_GetCFA address, use dummy if not found.
19855         (backtrace_helper): In recursion check, also check whether CFA changes.
19856         (__backtrace): Completely initialize arg.
19857
19858         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19859         storing incomplete byte sequence in state object.  Avoid testing for
19860         guaranteed too small input if we know there is enough data available.
19861
19862 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19863
19864         * Makeconfig (+link-pie): Indent.
19865         * Rules (binaries-pie): Define if $(have-fpie) and
19866         $(build-shared).
19867         (binaries-shared): Also filter out $(binaries-pie).
19868         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19869         * nscd/Makefile (others-pie): Add nscd.
19870         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19871         ($(objpfx)nscd): Remove command override.
19872         * login/Makefile (others-pie): Add pt_chown.
19873         ($(objpfx)pt_chown): Remove command override.
19874         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19875         remove command overrides.
19876
19877 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19878
19879         * libio/tst_putwc.c: Fix error messages.
19880
19881         [BZ #12724]
19882         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19883         currently writing and seek to current position when not.
19884         * libio/Makefile (tests): Add bug-fclose1.
19885         * libio/bug-fclose1.c: New file.
19886
19887 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19888
19889         [BZ #12511]
19890         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19891         don't set DF_1_NODELETE here.
19892         (do_lookup_x): When entering new entry test for copy relocation
19893         and if necessary set DF_1_NODELETE flag.
19894         * elf/tst-unique4.cc: New file.
19895         * elf/tst-unique4.h: New file.
19896         * elf/tst-unique4lib.cc: New file.
19897         * elf/Makefile: Add rules to build and run tst-unique4.
19898         Patch by Piotr Bury <pbury@goahead.com>.
19899
19900 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19901
19902         [BZ #12052]
19903         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
19904
19905         [BZ #12625]
19906         * misc/mntent_r.c (addmntent): Flush the stream after the output
19907
19908         [BZ #12393]
19909         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
19910         (is_trusted_path_normalize): Skip initial colon.  Append slash
19911         to empty buffer.  Duplicate is_trusted_path code but allow
19912         constructed patch to be prefix.
19913         (is_dst): Allow $ORIGIN followed by /.
19914         (_dl_dst_substitute): Correct clearing of check_for_trusted.
19915         Correct testing of result of is_trusted_path_normalize
19916         (decompose_rpath): Fix warning.
19917
19918 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
19919
19920         [BZ #11257]
19921         * grp/initgroups.c (internal_getgrouplist): When we found the service
19922         list through the initgroups entry in nsswitch.conf do not always
19923         continue on a successful lookup.  Don't always use the
19924         __nss_group_database value if it is set.
19925         * nss/nsswitch.conf (initgroups): Change action for successful db
19926         lookup to continue for compatibility.
19927
19928 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
19929
19930         [BZ #11532]
19931         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
19932         and CP774 modules.
19933         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
19934         and CP774 modules.
19935         * iconvdata/tst-tables.sh: Likewise.
19936         * iconvdata/cp770.c: New file.
19937         * iconvdata/cp771.c: New file.
19938         * iconvdata/cp772.c: New file.
19939         * iconvdata/cp773.c: New file.
19940         * iconvdata/cp774.c: New file.
19941         * iconvdata/testdata/CP770: New file.
19942         * iconvdata/testdata/CP770..UTF8: New file.
19943         * iconvdata/testdata/CP771: New file.
19944         * iconvdata/testdata/CP771..UTF8: New file.
19945         * iconvdata/testdata/CP772: New file.
19946         * iconvdata/testdata/CP772..UTF8: New file.
19947         * iconvdata/testdata/CP773: New file.
19948         * iconvdata/testdata/CP773..UTF8: New file.
19949         * iconvdata/testdata/CP774: New file.
19950         * iconvdata/testdata/CP774..UTF8: New file.
19951
19952         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
19953         END CHARMAP line.
19954         * iconvdata/gen-8bit-gap.sh: Likewise.
19955         * iconvdata/gen-8bit.sh: Likewise.
19956
19957         * locale/iso-639.def: Add ary entry.
19958
19959         [BZ #11258]
19960         * locale/C-translit.h.in: Add U20A1 transliteration.
19961
19962         [BZ #12178]
19963         * locale/iso-639.def: Add wae entry.
19964         Patch by Kevin Bortis <bortis@translate-wae.ch>.
19965
19966         [BZ #12545]
19967         * locale/programs/localedef.c (construct_output_path): Use ssize_t
19968         for n.
19969
19970         [BZ #12711]
19971         * locale/C-translit.h.in: Add entry for U20B9.
19972         Patch by pravin.d.s@gmail.com.
19973
19974 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
19975
19976         [BZ #12713]
19977         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
19978         ENAMETOOLONG use generic getcwd.
19979         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
19980         in rtld.  Use *stat64.
19981         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
19982         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
19983         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
19984         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
19985         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
19986         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
19987         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
19988         __fstatat64 macros.
19989         * include/dirent.h: Add libc_hidden_proto for rewinddir.
19990         * dirent/rewinddir.c: Add libc_hidden_def.
19991         * sysdeps/mach/hurd/rewinddir.c: Likewise.
19992         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
19993
19994         * include/dirent.h (__alloc_dir): Add flags parameter.
19995         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
19996         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
19997         __alloc_dir.
19998         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
19999         from fdopendir if O_CLOEXEC is already set.
20000
20001 2011-03-15  Alan Modra  <amodra@gmail.com>
20002
20003         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20004         l_tls_firstbyte_offset non-zero.  Save padding offset in
20005         l_tls_firstbyte_offset for later use.
20006         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20007         freeing static tls block.
20008
20009 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20010
20011         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20012         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20013         being defined by the kernel headers.
20014
20015 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20016
20017         [BZ #12734]
20018         * resolv/resolv.h: Define RES_NOTLDQUERY.
20019         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20020         no-tld-query and set RES_NOTLDQUERY.
20021         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20022         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20023         modern BIND to search name as TLD unless forbidden.
20024
20025 2011-05-07  Petr Baudis  <pasky@suse.cz>
20026             Ulrich Drepper  <drepper@gmail.com>
20027
20028         [BZ #12393]
20029         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20030         (is_trusted_path): ...to here.
20031         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20032         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20033         using is_trusted_path_normalize() in setuid scripts.
20034
20035 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20036
20037         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20038         __BEGIN/__END_DECLS.
20039
20040 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20041
20042         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20043         NSS_STATUS_NOTFOUND if no record was found.
20044
20045 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20046
20047         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20048         (headers-not-in-tirpc): Remove rpc/netdb.h
20049         * resolv/netdb.h: Revert last change.
20050
20051 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20052
20053         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20054         circular dependency between libgcc.a and libc.a.
20055
20056 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20057
20058         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20059         * nis/Makefile: Don't install rpcsvc/*.
20060         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20061         instead of <rpc/types.h>.
20062         (MAXHOSTNAMELEN): Define.
20063
20064 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20065
20066         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20067
20068 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20069
20070         [BZ #12714]
20071         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20072         gethostbyname4_r when IPv6 results are possible.
20073
20074 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20075
20076         [BZ #12723]
20077         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20078         _PC_PIPE_BUF handling.
20079
20080 2011-04-30  Bruno Haible  <bruno@clisp.org>
20081
20082         [BZ #12717]
20083         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20084         * resolv/netdb.h (getnameinfo): Change type of flags parameter
20085         to 'int'.
20086         * inet/getnameinfo.c (getnameinfo): Likewise.
20087
20088 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
20089
20090         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20091         to groups setting in database lookup.
20092         * nss/nsswitch.conf: Add initgroups entry.
20093
20094 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
20095
20096         [BZ #12685]
20097         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20098         mode string.
20099         Patch by Eric Blake <eblake@redhat.com>.
20100
20101 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20102
20103         * sunrpc/Makefile (need-export-routines): Add svc_run.
20104         (routines): Remove svc_run.
20105         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20106         * sunrpc/clnt_perr.c (clnt_perrno): Export.
20107         * sunrpc/svc_run.c (svc_run): Likewise.
20108         * sunrpc/svc_udp.c (svcudp_create): Likewise.
20109
20110 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
20111
20112         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20113         problem in reallocation in last patch.
20114
20115 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20116
20117         * sunrpc/Makefile: Move inclusion of Rules.
20118
20119 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20120
20121         * nss/nss_files/files-initgroups.c: New file.
20122         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20123         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20124         _nss_files_initgroups_dyn.
20125
20126 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20127
20128         * elf/elf.h (R_ARM_IRELATIVE): Define.
20129
20130 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20131
20132         * po/ru.po: Update from translation team.
20133
20134 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20135
20136         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20137         dependencies.
20138
20139 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20140
20141         [BZ #12653]
20142         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20143         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20144         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20145         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20146         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20147
20148 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20149
20150         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20151         differing bytes.
20152         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20153         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20154         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20155
20156 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20157
20158         [BZ #12420]
20159         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20160         storing it.
20161         * stdlib/bug-getcontext.c: New file.
20162         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20163
20164 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20165
20166         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20167         instructions into .machine "z9-109".
20168         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20169         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20170
20171 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20172
20173         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20174         between environment variables and auxiliary vector.
20175
20176 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20177
20178         * Makefile: Add rules to build linkobj/libc.so.
20179         * include/libc-symbols.h: Define libc_hidden_nolink.
20180         * include/rpc/auth.h: Mark functions which are to be hidden.
20181         * include/rpc/auth_des.h: Likewise.
20182         * include/rpc/auth_unix.h: Likewise.
20183         * include/rpc/clnt.h: Likewise.
20184         * include/rpc/des_crypt.h: Likewise.
20185         * include/rpc/key_prot.h: Likewise.
20186         * include/rpc/pmap_clnt.h: Likewise.
20187         * include/rpc/pmap_prot.h: Likewise.
20188         * include/rpc/pmap_rmt.h: Likewise.
20189         * include/rpc/rpc_msg.h: Likewise.
20190         * include/rpc/svc.h: Likewise.
20191         * include/rpc/svc_auth.h: Likewise.
20192         * include/rpc/xdr.h: Likewise.
20193         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20194         * nss/Makefile: Likewise.
20195         * sunrpc/Makefile: Don't install headers.  Build library with normal
20196         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20197         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20198         for the compat linking library.  Remove use of INTDEF/INTUSE.
20199         * sunrpc/auth_none.c: Likewise.
20200         * sunrpc/auth_unix.c: Likewise.
20201         * sunrpc/authdes_prot.c: Likewise.
20202         * sunrpc/authuxprot.c: Likewise.
20203         * sunrpc/clnt_gen.c: Likewise.
20204         * sunrpc/clnt_perr.c: Likewise.
20205         * sunrpc/clnt_raw.c: Likewise.
20206         * sunrpc/clnt_simp.c: Likewise.
20207         * sunrpc/clnt_tcp.c: Likewise.
20208         * sunrpc/clnt_udp.c: Likewise.
20209         * sunrpc/clnt_unix.c: Likewise.
20210         * sunrpc/des_crypt.c: Likewise.
20211         * sunrpc/des_soft.c: Likewise.
20212         * sunrpc/get_myaddr.c: Likewise.
20213         * sunrpc/key_call.c: Likewise.
20214         * sunrpc/key_prot.c: Likewise.
20215         * sunrpc/netname.c: Likewise.
20216         * sunrpc/pm_getmaps.c: Likewise.
20217         * sunrpc/pm_getport.c: Likewise.
20218         * sunrpc/pmap_clnt.c: Likewise.
20219         * sunrpc/pmap_prot.c: Likewise.
20220         * sunrpc/pmap_prot2.c: Likewise.
20221         * sunrpc/pmap_rmt.c: Likewise.
20222         * sunrpc/publickey.c: Likewise.
20223         * sunrpc/rpc_cmsg.c: Likewise.
20224         * sunrpc/rpc_common.c: Likewise.
20225         * sunrpc/rpc_dtable.c: Likewise.
20226         * sunrpc/rpc_prot.c: Likewise.
20227         * sunrpc/rpc_thread.c: Likewise.
20228         * sunrpc/rtime.c: Likewise.
20229         * sunrpc/svc.c: Likewise.
20230         * sunrpc/svc_auth.c: Likewise.
20231         * sunrpc/svc_authux.c: Likewise.
20232         * sunrpc/svc_raw.c: Likewise.
20233         * sunrpc/svc_run.c: Likewise.
20234         * sunrpc/svc_simple.c: Likewise.
20235         * sunrpc/svc_tcp.c: Likewise.
20236         * sunrpc/svc_udp.c: Likewise.
20237         * sunrpc/svc_unix.c: Likewise.
20238         * sunrpc/svcauth_des.c: Likewise.
20239         * sunrpc/xcrypt.c: Likewise.
20240         * sunrpc/xdr.c: Likewise.
20241         * sunrpc/xdr_array.c: Likewise.
20242         * sunrpc/xdr_float.c: Likewise.
20243         * sunrpc/xdr_intXX_t.c: Likewise.
20244         * sunrpc/xdr_mem.c: Likewise.
20245         * sunrpc/xdr_rec.c: Likewise.
20246         * sunrpc/xdr_ref.c: Likewise.
20247         * sunrpc/xdr_sizeof.c: Likewise.
20248         * sunrpc/xdr_stdio.c: Likewise.
20249
20250 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20251
20252         [BZ #12650]
20253         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20254         * sysdeps/ia64/dl-tls.h: Likewise.
20255         * sysdeps/powerpc/dl-tls.h: Likewise.
20256         * sysdeps/s390/dl-tls.h: Likewise.
20257         * sysdeps/sh/dl-tls.h: Likewise.
20258         * sysdeps/sparc/dl-tls.h: Likewise.
20259         * sysdeps/x86_64/dl-tls.h: Likewise.
20260         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20261
20262 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20263
20264         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20265         rpath element also skip the following colon.
20266         (expand_dynamic_string_token): Add is_path parameter and pass
20267         down to DL_DST_REQUIRED and _dl_dst_substitute.
20268         (decompose_rpath): Call expand_dynamic_string_token with
20269         non-zero is_path.  Ignore empty rpaths.
20270         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20271         with zero is_path.
20272
20273 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20274
20275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20276         Make cancelable.
20277
20278 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20279
20280         [BZ #12655]
20281         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20282         Patch by Filipe David Manana <fdmanana@apache.org>.
20283
20284 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20285
20286         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20287         Maintain aligned stack.
20288         (CHECK_RSP): Remove unused macro.
20289
20290 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20291
20292         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20293         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20294
20295 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20296
20297         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20298
20299         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20300
20301 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20302
20303         [BZ #12518]
20304         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20305         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20306         * sysdeps/x86_64/memmove.c: New file.
20307         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20308         (memcpy): Renamed to ...
20309         (__new_memcpy): This.
20310         (memcpy): Provide GLIBC_2_14 memcpy.
20311         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20312         (memcpy): Provide GLIBC_2_2_5 memcpy.
20313
20314 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20315
20316         [BZ #12631]
20317         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20318
20319 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20320
20321         * misc/syncfs.c: New file.
20322         * misc/Makefile (routines): Add syncfs.
20323         * posix/unistd.h: Declare syncfs.
20324         * sysdeps/unix/syscalls.list: Add syncfs.
20325
20326 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20327
20328         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20329         open_by_handle_at.
20330         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20331         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20332         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20333         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20334         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20335         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20336         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20337
20338 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20339
20340         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20341         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20342         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20343         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20344         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20345         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20346         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20347
20348         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20349         sync_file_range.c with -fexceptions.
20350         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20351         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20352         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20353         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20354         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20355         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20356         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20357         sync_file_range as cancellation point
20358         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20359         now a wrapper around __call_sync_file_range with cancellation handling.
20360         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20361         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20362         function name to __call_sync_file_range.
20363         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20364         Add call_sync_file_range.
20365
20366 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20367
20368         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20369         bits/timex.h.
20370
20371 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20372
20373         * iconv/iconv.h: Fix typo in comment.
20374         * io/fcntl.h: Likewise.
20375         * libio/stdio.h: Likewise.
20376         * posix/spawn.h: Likewise.
20377         * posix/unistd.h: Likewise.
20378         * stdlib/stdlib.h: Likewise.
20379         * time/time.h: Likewise.
20380         * wcsmbs/wchar.h: Likewise.
20381
20382         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20383         open_by_handle): Add.
20384         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20385         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20386         Augment a few comments.
20387         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20388         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20389         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20390         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20391         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20392         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20393         open_by_handle.
20394
20395         * io/fcntl.h (AT_EMPTY_PATH): Define.
20396
20397 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20398
20399         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20400         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20401         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20402         to...
20403         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20404         * Versions.def: Add GLIBC_2.14.
20405         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20406         Export.
20407
20408 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20409
20410         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20411         round counter.
20412         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20413
20414 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20415
20416         [BZ #12597]
20417         * string/test-strncmp.c (do_page_test): New function.
20418         (check2): Likewise.
20419         (test_main): Call check2.
20420         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20421
20422 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20423
20424         [BZ #12587]
20425         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20426         Handle cache information in CPU leaf 4.
20427         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20428
20429 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20430
20431         [BZ #12583]
20432         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20433         character representation.
20434         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20435
20436 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20437
20438         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20439         END(__isnan) to END(__isnanf) to match function entry point/label
20440         EALIGN(__isnanf,...).
20441
20442 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20443
20444         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20445
20446 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20447
20448         [BZ #12510]
20449         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20450         copy from the symbol referenced in the relocation to initialize the
20451         used variable.
20452         Patch by Piotr Bury <pbury@goahead.com>.
20453         * elf/Makefile: Add rules to build and tst-unique3.
20454         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20455         * elf/tst-unique3.cc: New file.
20456         * elf/tst-unique3.h: New file.
20457         * elf/tst-unique3lib.cc: New file.
20458         * elf/tst-unique3lib2.cc: New file.
20459
20460         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20461
20462 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20463
20464         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20465         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20466         to _start.
20467
20468 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20469
20470         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20471         to-be-loaded object along a path to loader is ld.so.
20472
20473 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20474             Ulrich Drepper  <drepper@gmail.com>
20475
20476         * sysdeps/x86_64/memset.S: After aligning destination, code
20477         branches to different locations depending on the value of
20478         misalignment, when multiarch is enabled. Fix this.
20479
20480 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20481
20482         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20483         Set _x86_64_preferred_memory_instruction for AMD processsors.
20484         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20485         Set bit_Prefer_SSE_for_memop for AMD processors.
20486
20487 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20488
20489         * libio/fmemopen.c (fmemopen): Optimize a bit.
20490
20491 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20492
20493         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20494
20495 2011-03-03  Roland McGrath  <roland@redhat.com>
20496
20497         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20498
20499 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20500
20501         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20502         __bzero_ultra1 instead of __memset_ultra1.
20503
20504 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20505             Ulrich Drepper  <drepper@gmail.com>
20506
20507         [BZ #12509]
20508         * include/link.h (struct link_map): Add l_orig_initfini.
20509         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20510         returning unsuccessfully.
20511         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20512         close of a file loaded at startup, restore the original l_initfini
20513         list.
20514         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20515         list, store the pointer.
20516         * elf/Makefile ($(objpfx)noload-mem): New rule.
20517         (noload-ENV): Define.
20518         (tests): Add $(objpfx)noload-mem.
20519         * elf/noload.c: Include <memcheck.h>.
20520         (main): Call mtrace.  Close all opened handles.
20521
20522 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20523
20524         [BZ #12454]
20525         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20526         dependencies are missing.
20527
20528 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20529
20530         Fix __if_freereq crash: Unlike the generic version which uses free,
20531         Hurd needs munmap.
20532         * sysdeps/mach/hurd/ifreq.h: New file.
20533
20534 2011-01-27  Petr Baudis  <pasky@suse.cz>
20535             Ulrich Drepper  <drepper@gmail.com>
20536
20537         [BZ 12445]#
20538         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20539         to extend_alloca().
20540         * stdio-common/bug23.c: New file.
20541         * stdio-common/Makefile (tests): Add bug23.
20542
20543 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20544             Ulrich Drepper  <drepper@gmail.com>
20545
20546         [BZ #12489]
20547         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20548         before performing relro protection.  At old place add assertion
20549         to make sure nothing changed.
20550
20551 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20552             Glauber de Oliveira Costa  <glommer@gmail.com>
20553
20554         * elf/elf.h: Add new ARM TLS relocs.
20555
20556 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20557
20558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20559         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20560         cast from r3.
20561         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20562         'tests' variable.
20563         * sysdeps/wordsize-64/tst-writev.c: New file.
20564
20565 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20566
20567         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20568         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20569         insns in _dl_start to prevent a TOC reference before relocs are
20570         resolved.
20571
20572 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20573
20574         [BZ #12469]
20575         * Makeconfig: Remove RANLIB definition.
20576         * Makerules: Don't use RANLIB.
20577         * aclocal.m4: Remove ranlib test.
20578         * configure.in: No need to check for ranlib.
20579         * elf/rtld-Rules: Don't use RANLIB.
20580
20581 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20582
20583         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20584         protection macro.
20585         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20586         inclusion protection macro.
20587
20588         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20589         SIGRTMIN and SIGRTMAX and print information in that case only when
20590         SIGRTMIN is defined.
20591
20592 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20593
20594         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20595         arginfo fn returning -1.
20596
20597         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20598         and thousands string is zero terminated.
20599
20600 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20601
20602         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20603         sysdeps/unix/sysv/linux/bits/socket.h.
20604
20605 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20606
20607         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20608         (__CPU_COUNT): Remove old macros.
20609         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20610         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20611         (__CPU_ALLOC, __CPU_FREE): Add macros.
20612         (__sched_cpualloc, __sched_cpufree): Add declarations.
20613
20614 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20615
20616         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20617         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20618         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20619         (readdhstai): Return value of addhstaiX call.
20620         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20621         (addgrbyX): Return value returned by cache_addgr.
20622         (readdgrbyname): Return value returned by addgrbyX.
20623         (readdgrbygid): Likewise.
20624         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20625         (addpwbyX): Return value returned by cache_addpw.
20626         (readdpwbyname): Return value returned by addhstbyX.
20627         (readdpwbyuid): Likewise.
20628         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20629         (addservbyX): Return value returned by cache_addserv.
20630         (readdservbyname): Return value returned by addservbyX:
20631         (readdservbyport): Likewise.
20632         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20633         (addhstbyX): Return value returned by cache_addhst.
20634         (readdhstbyname): Return value returned by addhstbyX.
20635         (readdhstbyaddr): Likewise.
20636         (readdhstbynamev6): Likewise.
20637         (readdhstbyaddrv6): Likewise.
20638         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20639         (readdinitgroups): Return value returned by addinitgroupsX.
20640         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20641         (prune_cache): Keep track of timeout value of re-added entries.
20642         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20643         * nscd/nscd.h: Adjust prototypes of readd* functions.
20644
20645 2011-02-04  Roland McGrath  <roland@redhat.com>
20646
20647         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20648         (nis_stats): Likewise.
20649         * nis/nis_modify.c (nis_modify): Likewise.
20650         * nis/nis_remove.c (nis_remove): Likewise.
20651         * nis/nis_add.c (nis_add): Likewise.
20652
20653         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20654
20655         * posix/fnmatch_loop.c: Add some consts.
20656
20657         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20658
20659 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20660
20661         [BZ #12460]
20662         * config.make.in (config-cflags-novzeroupper): Define.
20663         * configure.in: Substitute libc_cv_cc_novzeroupper.
20664         * elf/Makefile (AVX-CFLAGS): Define.
20665         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20666         (CFLAGS-tst-auditmod4a.c): Likewise.
20667         (CFLAGS-tst-auditmod4b.c): Likewise.
20668         (CFLAGS-tst-auditmod6b.c): Likewise.
20669         (CFLAGS-tst-auditmod6c.c): Likewise.
20670         (CFLAGS-tst-auditmod7b.c): Likewise.
20671         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20672
20673 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20674
20675         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20676         function to the callback.
20677         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20678
20679 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20680
20681         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20682         of errno.
20683
20684 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20685
20686         [BZ #11724]
20687         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20688         of constructors.
20689         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20690         of destructors.
20691         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20692
20693         [BZ #11724]
20694         * elf/Makefile: Add rules to build and run new test.
20695         * elf/tst-initorder.c: New file.
20696         * elf/tst-initorder.exp: New file.
20697         * elf/tst-initordera1.c: New file.
20698         * elf/tst-initordera2.c: New file.
20699         * elf/tst-initordera3.c: New file.
20700         * elf/tst-initordera4.c: New file.
20701         * elf/tst-initorderb1.c: New file.
20702         * elf/tst-initorderb2.c: New file.
20703         * elf/tst-order-a1.c: New file.
20704         * elf/tst-order-a2.c: New file.
20705         * elf/tst-order-a3.c: New file.
20706         * elf/tst-order-a4.c: New file.
20707         * elf/tst-order-b1.c: New file.
20708         * elf/tst-order-b2.c: New file.
20709         * elf/tst-order-main.c: New file.
20710         New test case by George Gensure <werkt0@gmail.com>.
20711
20712 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20713
20714         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20715         decoding ACE if AI_CANONIDN.
20716
20717 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20718
20719         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20720
20721 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20722
20723         * version.h (RELEASE): Bump for 2.13 release.
20724         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20725
20726         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20727
20728         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20729         MADV_NOHUGEPAGE.
20730         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20731         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20732         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20733         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20734         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20735         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20736
20737         * posix/getconf.c: Update copyright year.
20738         * catgets/gencat.c: Likewise.
20739         * csu/version.c: Likewise.
20740         * debug/catchsegv.sh: Likewise.
20741         * debug/xtrace.sh: Likewise.
20742         * elf/ldconfig.c: Likewise.
20743         * elf/ldd.bash.in: Likewise.
20744         * elf/sprof.c (print_version): Likewise.
20745         * iconv/iconv_prog.c: Likewise.
20746         * iconv/iconvconfig.c: Likewise.
20747         * locale/programs/locale.c: Likewise.
20748         * locale/programs/localedef.c: Likewise.
20749         * malloc/memusage.sh: Likewise.
20750         * malloc/mtrace.pl: Likewise.
20751         * nscd/nscd.c (print_version): Likewise.
20752         * nss/getent.c: Likewise.
20753
20754         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20755         PF_CAIF, and PF_ALG.
20756         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20757
20758 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20759
20760         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20761         (modules-names): Use them.
20762         (ifunc-test-modules, ifunc-pie-tests): Define.
20763         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20764         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20765         (test-extras): Likewise.
20766         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20767         $(compile-command.c).
20768         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20769         (all-built-dso): Define.
20770         (check-textrel.out, check-execstack.out): Depend on it.
20771
20772         * configure.in: Don't override --enable-multi-arch.
20773
20774 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20775
20776         [BZ #6812]
20777         * nscd/hstcache.c (tryagain): Define.
20778         (cache_addhst): Return tryagain not notfound for temporary errors.
20779         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20780         failed.
20781
20782 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20783
20784         [BZ #10563]
20785         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20786         to make the syscall.
20787         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20788
20789         [BZ #12378]
20790         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20791         and fall back to matching as normal character if the string ends before
20792         the matching ']' is found.  This is what POSIX requires.
20793         * posix/testfnm.c: Adjust test result.
20794         * posix/globtest.sh: Adjust test result.  Add new test.
20795         * posix/tst-fnmatch.input: Likewise.
20796         * posix/tst-fnmatch2.c: Add new test.
20797
20798 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20799
20800         * elf/Makefile (check-execstack): Revert last change.  Depend on
20801         check-execstack.h.
20802         (check-execstack.h): New target.
20803         (generated): Add check-execstack.h.
20804         * elf/check-execstack.c: Include "check-execstack.h".
20805         (main): Revert last change.
20806         (handle_file): Return zero if GNU_STACK is absent and
20807         DEFAULT_STACK_PERMS doesn't include PF_X.
20808
20809 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20810
20811         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20812         in child fails because the descriptor is already closed.
20813         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20814         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20815         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20816
20817         [BZ #12397]
20818         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20819         syscall.
20820
20821         [BZ #10484]
20822         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20823         temporary buffer used to handle multi lookups locally.
20824         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20825
20826 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20827
20828         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20829         loader is ld.so.
20830
20831 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20832
20833         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20834         alignment for SSE2.
20835
20836 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20837
20838         [BZ #12394]
20839         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20840         characters.  When rounding increased number of integer digits recompute
20841         number of groups.
20842         * stdio-common/tst-grouping.c: New file.
20843         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20844
20845 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20846
20847         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20848         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20849
20850         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20851         void.
20852         * bits/select.h: Likewise.
20853
20854 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20855
20856         * po/ja.po: Update from translation team.
20857
20858 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20859
20860         [BZ #11155]
20861         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20862         implementation just like for lxstat, fxstatat, et al.
20863
20864 2010-12-27  Jim Meyering  <meyering@redhat.com>
20865
20866         [BZ #12348]
20867         * posix/regexec.c (build_trtable): Return failure indication upon
20868         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20869
20870 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20871
20872         [BZ #12201]
20873         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20874         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20875         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20876         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20877
20878         [BZ #12207]
20879         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20880
20881         [BZ #12204]
20882         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20883         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20884
20885 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20886
20887         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20888         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20889         script has SORT_BY_INIT_PRIORITY.
20890         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20891         NO_CTORS_DTORS_SECTIONS is defined.
20892         * elf/soinit.c: Likewise.
20893         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20894         NO_CTORS_DTORS_SECTIONS is defined.
20895         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
20896         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
20897         * sysdeps/sh/init-first.c: Likewise.
20898         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
20899
20900 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
20901
20902         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
20903         always use the slow path.
20904
20905 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
20906
20907         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
20908         similar rule which adds the sysdep directories to the header search in
20909         order to pick up the correct platform stackinfo.h.
20910         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
20911         perform test if it is, otherwise return successfully without testing.
20912         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
20913         DEFAULT_STACK_PERMS define in stackinfo.h.
20914         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
20915         defined in stackinfo.h.
20916         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
20917         DEFAULT_STACK_PERMS defined in stackinfo.h.
20918         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
20919         * sysdeps/ia64/stackinfo.h: Likewise.
20920         * sysdeps/s390/stackinfo.h: Likewise.
20921         * sysdeps/sh/stackinfo.h: Likewise.
20922         * sysdeps/sparc/stackinfo.h: Likewise.
20923         * sysdeps/x86_64/stackinfo.h: Likewise.
20924         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
20925         PF_X for powerpc64.  Retain PF_X for powerpc32.
20926
20927 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
20928
20929         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
20930         accurately.
20931         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
20932         GETDENTS_64BIT_ALIGNED.
20933
20934 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
20935
20936         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
20937
20938 2010-12-10  Andreas Schwab  <schwab@redhat.com>
20939
20940         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
20941         _GNU_SOURCE.
20942
20943         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
20944         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
20945         Remove __restrict.
20946         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
20947         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
20948
20949 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
20950
20951         [BZ #11655]
20952         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
20953         are initialized.
20954
20955 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
20956
20957         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
20958
20959 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
20960
20961         * po/it.po: Update from translation team.
20962
20963 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20964
20965         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
20966         unused codes.
20967
20968 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
20969
20970         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
20971
20972 2010-11-24  Andreas Schwab  <schwab@redhat.com>
20973
20974         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
20975         specially.
20976         (gaih_getanswer_slice): Likewise.
20977
20978 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
20979
20980         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
20981
20982 2010-05-31  Petr Baudis  <pasky@suse.cz>
20983
20984         [BZ #11149]
20985         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
20986         silently even in the chroot mode.
20987
20988 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
20989
20990         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
20991         last patch a bit.  Pretty printing
20992
20993 2010-05-31  Petr Baudis <pasky@suse.cz>
20994
20995         [BZ #10085]
20996         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
20997         initialization of skip_initgroups_dyn.
20998
20999 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21000
21001         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21002         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21003
21004 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21005
21006         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21007
21008 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21009
21010         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21011         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21012         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21013         ($(objpfx)tst-fnmatch-mem): New rule.
21014         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21015         * posix/tst-fnmatch.c (main): Call mtrace.
21016
21017 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21018
21019         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21020         Support Intel processor model 6 and model 0x2c.
21021
21022 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21023
21024         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21025           signed comparison.
21026
21027 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21028
21029         [BZ #12205]
21030         * string/test-strncasecmp.c (check_result): New function.
21031         (do_one_test): Use it.
21032         (check1): New function.
21033         (test_main): Use it.
21034         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21035         Support strcasecmp and strncasecmp.
21036
21037 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21038
21039         [BZ #12194]
21040         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21041         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21042
21043 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21044
21045         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21046         IFUNC support.
21047         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21048         memset-x86-64.
21049         * sysdeps/x86_64/multiarch/bzero.S: New file.
21050         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21051         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21052         * sysdeps/x86_64/multiarch/memset.S: New file.
21053         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21054         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21055         Set bit_Prefer_SSE_for_memop for Intel processors.
21056         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21057         Define.
21058         (index_Prefer_SSE_for_memop): Define.
21059         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21060
21061 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21062
21063         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21064         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21065
21066 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21067
21068         [BZ #12191]
21069         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21070         (__x86_64_raw_data_cache_size_half): Likewise.
21071         (__x86_64_raw_shared_cache_size): Likewise.
21072         (__x86_64_raw_shared_cache_size_half): Likewise.
21073
21074         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21075         (__x86_64_raw_data_cache_size_half): Likewise.
21076         (__x86_64_raw_shared_cache_size): Likewise.
21077         (__x86_64_raw_shared_cache_size_half): Likewise.
21078         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21079         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21080         and __x86_64_raw_shared_cache_size_half.  Round
21081         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21082         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21083         to multiple of 256 bytes.
21084
21085 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
21086
21087         [BZ #12167]
21088         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21089         of inacessible symlinks.  Verify result of symlink before returning it.
21090         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21091         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21092
21093 2010-10-28  Erich Ritz  <erichritz@gmail.com>
21094
21095         * math/math.h (isinf): Fix typo in comment.
21096
21097 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
21098
21099         * po/da.po: Update from translation team.
21100
21101 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
21102
21103         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21104         is added to the list.
21105
21106 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21107             Ulrich Drepper  <drepper@gmail.com>
21108
21109         * elf/dl-object.c (_dl_new_object): Don't append the new object to
21110         the global list here.  Move code to...
21111         (_dl_add_to_namespace_list): ...here.  New function.
21112         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21113         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21114         * elf/dl-load.c (lose): Don't remove the element from the list.
21115         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21116         (_dl_map_object): Likewise.
21117
21118 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21119
21120         [BZ #12159]
21121         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21122         into all bytes of SSE register.
21123         Patch by Richard Li <richardpku@gmail.com>.
21124
21125 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21126
21127         [BZ #12140]
21128         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21129         perturbing.
21130
21131 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21132
21133         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21134         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21135         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21136         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21138         submachine.
21139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21140
21141 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21142
21143         * include/dlfcn.h (__RTLD_SECURE): Define.
21144         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21145         mode & __RTLD_SECURE instead.
21146         (open_path): Rename preloaded parameter to secure.
21147         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21148         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21149         * elf/dl-deps.c (openaux): Likewise.
21150         * elf/rtld.c (struct map_args): Remove is_preloaded.
21151         (map_doit): Don't use it.
21152         (dl_main): Likewise.
21153         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21154         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21155
21156 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21157
21158         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21159         (sysd-rules-targets): Remove duplicates.
21160         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21161         rtld-%.$o dependency.
21162
21163 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21164
21165         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21166         _dl_map_object do it.
21167
21168 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21169
21170         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21171         fast fma builtins, define the macros in the C99 standard.
21172         (FP_FAST_FMAF): Likewise.
21173         (FP_FAST_FMAL): Likewise.
21174         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21175
21176         * bits/mathdef.h: Update copyright year.
21177         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21178
21179 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21180
21181         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21182         builtins, define the macros in the C99 standard.
21183         (FP_FAST_FMAF): Likewise.
21184         (FP_FAST_FMAL): Likewise.
21185         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21186         multiply/add.
21187         (FP_FAST_FMAF): Likewise.
21188
21189 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21190
21191         [BZ #3268]
21192         * math/libm-test.inc (fma_test): Some new testcases.
21193         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21194         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21195         y and infinite z.  Do multiplication by C already in long double.
21196         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21197         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21198         y and infinite z.  Do bitwise or of inexact bit into u.d.
21199         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21200         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21201         * sysdeps/i386/fpu/s_fma.S: Removed.
21202         * sysdeps/i386/fpu/s_fmal.S: Removed.
21203
21204 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21205
21206         [BZ #3268]
21207         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21208         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21209         computation is not scheduled after fetestexcept.  Fix value
21210         of minimum denormal long double.
21211
21212 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21213
21214         [BZ #3268]
21215         * math/libm-test.inc (fma_test): Add some more tests.
21216         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21217         correctly.
21218
21219 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21220
21221         * scripts/data/localplt-s390-linux-gnu.data: New file.
21222         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21223
21224 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21225
21226         [BZ #3268]
21227         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21228         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21229         instead of dbl-64.
21230         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21231         inlines.
21232         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21233         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21234         if one of x and y is very large and the other is subnormal.
21235         * sysdeps/s390/fpu/s_fmaf.c: New file.
21236         * sysdeps/s390/fpu/s_fma.c: New file.
21237         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21238         * sysdeps/powerpc/fpu/s_fma.S: New file.
21239         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21240         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21241         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21242
21243 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21244
21245         [BZ #3268]
21246         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21247         fma tests.
21248         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21249         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21250         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21251         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21252         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21253         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21254         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21255
21256 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21257
21258         [BZ #12078]
21259         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21260         * posix/bug-regex31.input: Add test case.
21261
21262 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21263
21264         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21265         * posix/bug-regex31.input: New file.
21266
21267         [BZ #12078]
21268         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21269         (parse_sub_exp): Fix last change, use postorder.
21270
21271         * posix/bug-regex31.c: New file.
21272         * posix/Makefile: Add rules to build and run bug-regex31.
21273
21274         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21275
21276         [BZ #12078]
21277         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21278
21279         [BZ #12108]
21280         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21281         to have entries in sys_siglist.
21282
21283         [BZ #12093]
21284         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21285         be NULL.
21286
21287 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21288
21289         [BZ #3268]
21290         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21291         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21292         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21293         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21294         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21295         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21296         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21297         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21298         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21299         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21300         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21301         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21302         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21303         * math/ftestexcept.c (fetestexcept): Likewise.
21304         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21305         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21306         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21307         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21308         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21309         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21310         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21311
21312 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21313
21314         [BZ #12107]
21315         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21316         newline.
21317
21318 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21319
21320         * string/bug-strstr1.c: New file.
21321         * string/Makefile: Add rules to build and run bug-strstr1.
21322
21323 2010-10-05  Eric Blake  <eblake@redhat.com>
21324
21325         [BZ #12092]
21326         * string/str-two-way.h (two_way_long_needle): Always clear memory
21327         when skipping input due to the shift table.
21328
21329 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21330
21331         [BZ #12005]
21332         * malloc/mcheck.c: Handle large requests.
21333
21334         [BZ #12077]
21335         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21336         for strncmp and strncasecmp.
21337         * string/stratcliff.c: Add tests for strcmp and strncmp.
21338         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21339
21340 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21341
21342         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21343         __set_fpscr.
21344
21345 2010-09-30  Andreas Jaeger  <aj@suse.de>
21346
21347         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21348         (CGROUP_SUPER_MAGIC): Define.
21349         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21350         Handle btrfs and cgroup file systems.
21351         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21352         Likewise.
21353
21354 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21355
21356         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21357         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21358
21359 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21360
21361         [BZ #12067]
21362         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21363         trying to locate the ELF header.
21364
21365 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21366
21367         [BZ #11611]
21368         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21369         Mask out sign-bit copies when constructing f_fsid.
21370
21371 2010-09-24  Petr Baudis <pasky@suse.cz>
21372
21373         * debug/stack_chk_fail_local.c: Add missing licence exception.
21374         * debug/warning-nop.c: Likewise.
21375
21376 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21377
21378         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21379         implementing getdents64 using getdents syscall, set d_type if
21380         __ASSUME_GETDENTS32_D_TYPE.
21381
21382 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21383
21384         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21385         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21386
21387 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21388
21389         [BZ #12037]
21390         * posix/unistd.h: Undo change of feature selection for ftruncate from
21391         2010-01-11.
21392
21393 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21394
21395         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21396         detection.
21397
21398 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21399
21400         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21401         fanotify_mark.
21402         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21403
21404 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21405
21406         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21407         variables after CHECK_SP call.
21408         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21409
21410 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21411             Ulrich Drepper  <drepper@redhat.com>
21412
21413         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21414         re-relocationg ld.so.
21415         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21416         _dl_init_paths call.
21417         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21418         here anymore.
21419
21420 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21421
21422         * resolv/res_init.c (__res_vinit): Count the default server we added.
21423
21424 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21425             Ulrich Drepper  <drepper@redhat.com>
21426
21427         [BZ #11968]
21428         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21429         (____longjmp_chk): Use %ebx for saving value across system call.
21430         Add unwind info.
21431
21432 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21433
21434         * manual/Makefile: Don't mix pattern rules with normal rules.
21435
21436 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21437
21438         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21439         operation.
21440         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21441         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21442         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21443         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21444         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21445         Likewise.
21446
21447 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21448
21449         [BZ #11979]
21450         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21451         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21452
21453 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21454
21455         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21456         * sysdeps/x86_64/addmul_1.S: Likewise.
21457         * sysdeps/x86_64/lshift.S: Likewise.
21458         * sysdeps/x86_64/mul_1.S: Likewise.
21459         * sysdeps/x86_64/rshift.S: Likewise.
21460         * sysdeps/x86_64/sub_n.S: Likewise.
21461         * sysdeps/x86_64/submul_1.S: Likewise.
21462
21463 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21464
21465         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21466         Define __sched_param instead of SCHED_* and sched_param when
21467         <bits/sched.h> is included with __need_schedparam defined.
21468         * bits/sched.h [__need_schedparam]
21469         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21470         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21471         (__defined_schedparam): Define to 1.
21472         (__sched_param): New structure, identical to sched_param.
21473         (__need_schedparam): Undefine.
21474
21475 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21476
21477         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21478         (epoll_create1): Declare.
21479
21480         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21481
21482 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21483
21484         [BZ #7066]
21485         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21486         shifting retval into place.
21487
21488 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21489
21490         * nis/rpcsvc/nis.h: Update copyright notice.
21491         * nis/rpcsvc/nis.x: Likewise.
21492         * nis/rpcsvc/nis_callback.h: Likewise.
21493         * nis/rpcsvc/nis_callback.x: Likewise.
21494         * nis/rpcsvc/nis_object.x: Likewise.
21495         * nis/rpcsvc/nis_tags.h: Likewise.
21496         * nis/rpcsvc/yp.h: Likewise.
21497         * nis/rpcsvc/yp.x: Likewise.
21498         * nis/rpcsvc/ypupd.h: Likewise.
21499         * nis/yp_xdr.c: Likewise.
21500         * nis/ypupdate_xdr.c: Likewise.
21501
21502         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21503         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21504         (pmap_getport): Use __libc_rpc_getport.
21505         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21506         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21507         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21508
21509 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21510
21511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21512         fanotify_mark.
21513
21514 2010-08-27  Roland McGrath  <roland@redhat.com>
21515
21516         * sysdeps/i386/i686/multiarch/Makefile
21517         (CFLAGS-varshift.c): New variable.
21518
21519 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21520
21521         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21522         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21523
21524         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21525
21526         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21527
21528 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21529
21530         * sysdeps/x86_64/strlen.S: Unroll the loop.
21531         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21532         strlen-sse2 strlen-sse2-bsf.
21533         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21534         __strlen_no_bsf if bit_Slow_BSF is set.
21535         (__strlen_sse42): Removed.
21536         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21537         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21538
21539 2010-08-25  Roland McGrath  <roland@redhat.com>
21540
21541         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21542         * sysdeps/x86_64/multiarch/varshift.c: New file.
21543         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21544         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21545         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21546         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21547
21548 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21549
21550         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21551         strlen-sse2 strlen-sse2-bsf.
21552         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21553         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21554         (__strlen_sse2): Removed.
21555         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21556         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21557         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21558         bit_Slow_BSF for Atom.
21559         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21560         (index_Slow_BSF): Define.
21561         (HAS_SLOW_BSF): Define.
21562
21563 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21564
21565         [BZ #10851]
21566         * resolv/res_init.c (__res_vinit): When no server address at all
21567         is given default to loopback.
21568
21569 2010-08-24  Roland McGrath  <roland@redhat.com>
21570
21571         * configure.in: Remove config-name.h generation.
21572         * configure: Regenerated.
21573         * config-name.in: File removed.
21574         * scripts/config-uname.sh: New file.
21575         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21576         ($(objdir)config-name.h): New target.
21577
21578         * sunrpc/rpc_parse.h: Avoid nested comment.
21579
21580 2010-08-24  Richard Henderson  <rth@redhat.com>
21581             Ulrich Drepper  <drepper@redhat.com>
21582             H.J. Lu  <hongjiu.lu@intel.com>
21583
21584         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21585         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21586         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21587         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21588         _mm_alignr_epi8 with _mm_loadu_si128.
21589         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21590         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21591         (__m128i_shift_right): Removed.
21592         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21593         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21594         * sysdeps/x86_64/multiarch/varshift.h: New file.
21595         * sysdeps/x86_64/multiarch/varshift.S: New file.
21596
21597 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21598
21599         * configure.in: Move assembler checks to before sysdep dir checking.
21600
21601 2010-08-20  Petr Baudis  <pasky@suse.cz>
21602
21603         * LICENSES: Sync the sunrpc license.
21604
21605 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21606
21607         * sunrpc/auth_des.c: Update copyright notice once again.
21608         * sunrpc/auth_none.c: Likewise.
21609         * sunrpc/auth_unix.c: Likewise.
21610         * sunrpc/authdes_prot.c: Likewise.
21611         * sunrpc/authuxprot.c: Likewise.
21612         * sunrpc/bindrsvprt.c: Likewise.
21613         * sunrpc/clnt_gen.c: Likewise.
21614         * sunrpc/clnt_perr.c: Likewise.
21615         * sunrpc/clnt_raw.c: Likewise.
21616         * sunrpc/clnt_simp.c: Likewise.
21617         * sunrpc/clnt_tcp.c: Likewise.
21618         * sunrpc/clnt_udp.c: Likewise.
21619         * sunrpc/clnt_unix.c: Likewise.
21620         * sunrpc/des_crypt.c: Likewise.
21621         * sunrpc/des_soft.c: Likewise.
21622         * sunrpc/get_myaddr.c: Likewise.
21623         * sunrpc/getrpcport.c: Likewise.
21624         * sunrpc/key_call.c: Likewise.
21625         * sunrpc/key_prot.c: Likewise.
21626         * sunrpc/openchild.c: Likewise.
21627         * sunrpc/pm_getmaps.c: Likewise.
21628         * sunrpc/pm_getport.c: Likewise.
21629         * sunrpc/pmap_clnt.c: Likewise.
21630         * sunrpc/pmap_prot.c: Likewise.
21631         * sunrpc/pmap_prot2.c: Likewise.
21632         * sunrpc/pmap_rmt.c: Likewise.
21633         * sunrpc/rpc/auth.h: Likewise.
21634         * sunrpc/rpc/auth_unix.h: Likewise.
21635         * sunrpc/rpc/clnt.h: Likewise.
21636         * sunrpc/rpc/des_crypt.h: Likewise.
21637         * sunrpc/rpc/key_prot.h: Likewise.
21638         * sunrpc/rpc/netdb.h: Likewise.
21639         * sunrpc/rpc/pmap_clnt.h: Likewise.
21640         * sunrpc/rpc/pmap_prot.h: Likewise.
21641         * sunrpc/rpc/pmap_rmt.h: Likewise.
21642         * sunrpc/rpc/rpc.h: Likewise.
21643         * sunrpc/rpc/rpc_des.h: Likewise.
21644         * sunrpc/rpc/rpc_msg.h: Likewise.
21645         * sunrpc/rpc/svc.h: Likewise.
21646         * sunrpc/rpc/svc_auth.h: Likewise.
21647         * sunrpc/rpc/types.h: Likewise.
21648         * sunrpc/rpc/xdr.h: Likewise.
21649         * sunrpc/rpc_clntout.c: Likewise.
21650         * sunrpc/rpc_cmsg.c: Likewise.
21651         * sunrpc/rpc_common.c: Likewise.
21652         * sunrpc/rpc_cout.c: Likewise.
21653         * sunrpc/rpc_dtable.c: Likewise.
21654         * sunrpc/rpc_hout.c: Likewise.
21655         * sunrpc/rpc_main.c: Likewise.
21656         * sunrpc/rpc_parse.c: Likewise.
21657         * sunrpc/rpc_parse.h: Likewise.
21658         * sunrpc/rpc_prot.c: Likewise.
21659         * sunrpc/rpc_sample.c: Likewise.
21660         * sunrpc/rpc_scan.c: Likewise.
21661         * sunrpc/rpc_scan.h: Likewise.
21662         * sunrpc/rpc_svcout.c: Likewise.
21663         * sunrpc/rpc_tblout.c: Likewise.
21664         * sunrpc/rpc_util.c: Likewise.
21665         * sunrpc/rpc_util.h: Likewise.
21666         * sunrpc/rpcinfo.c: Likewise.
21667         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21668         * sunrpc/rpcsvc/key_prot.x: Likewise.
21669         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21670         * sunrpc/rpcsvc/mount.x: Likewise.
21671         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21672         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21673         * sunrpc/rpcsvc/rex.x: Likewise.
21674         * sunrpc/rpcsvc/rstat.x: Likewise.
21675         * sunrpc/rpcsvc/rusers.x: Likewise.
21676         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21677         * sunrpc/rpcsvc/spray.x: Likewise.
21678         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21679         * sunrpc/rtime.c: Likewise.
21680         * sunrpc/svc.c: Likewise.
21681         * sunrpc/svc_auth.c: Likewise.
21682         * sunrpc/svc_authux.c: Likewise.
21683         * sunrpc/svc_raw.c: Likewise.
21684         * sunrpc/svc_run.c: Likewise.
21685         * sunrpc/svc_simple.c: Likewise.
21686         * sunrpc/svc_tcp.c: Likewise.
21687         * sunrpc/svc_udp.c: Likewise.
21688         * sunrpc/svc_unix.c: Likewise.
21689         * sunrpc/svcauth_des.c: Likewise.
21690         * sunrpc/xcrypt.c: Likewise.
21691         * sunrpc/xdr.c: Likewise.
21692         * sunrpc/xdr_array.c: Likewise.
21693         * sunrpc/xdr_float.c: Likewise.
21694         * sunrpc/xdr_mem.c: Likewise.
21695         * sunrpc/xdr_rec.c: Likewise.
21696         * sunrpc/xdr_ref.c: Likewise.
21697         * sunrpc/xdr_sizeof.c: Likewise.
21698         * sunrpc/xdr_stdio.c: Likewise.
21699
21700         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21701         handling.
21702
21703 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21704
21705         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21706
21707 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21708
21709         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21710         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21711         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21712         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21713         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21714         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21715         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21716         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21717         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21718         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21719         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21720         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21721         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21722         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21723
21724 2010-07-26  Anton Blanchard  <anton@samba.org>
21725
21726         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21727         * malloc/arena.c (heap_trim): Likewise.
21728
21729 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21730
21731         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21732         here.  Not...
21733         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21734         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21735
21736 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21737
21738         * sysdeps/i386/elf/Makefile: New file.
21739
21740 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21741
21742         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21743         from fanotify_init.
21744         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21745         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21746
21747 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21748
21749         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21750         of strncasecmp_l.
21751         * sysdeps/multiarch/strcmp.S: Likewise.
21752
21753 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21754
21755         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21756         strncase_l-nonascii.
21757         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21758         Add strncase_l-ssse3.
21759         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21760         * sysdeps/x86_64/strcmp.S: Likewise.
21761         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21762         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21763         * sysdeps/x86_64/strncase.S: New file.
21764         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21765         * sysdeps/x86_64/strncase_l.S: New file.
21766         * string/Makefile (strop-tests): Add strncasecmp.
21767         * string/test-strncasecmp.c: New file.
21768
21769         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21770         warning.
21771
21772         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21773         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21774
21775 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21776
21777         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21778
21779 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21780
21781         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21782         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21783         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21784
21785 2010-05-01  Alan Modra  <amodra@gmail.com>
21786
21787         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21788         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21789         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21790         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21791         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21792         tidying.  Don't tail-call __sigjmp_save for static lib.
21793         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21794         save location.
21795         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21796         (CALL_MCOUNT): Add eh info, and nop after bl.
21797         (TAIL_CALL_SYSCALL_ERROR): New macro.
21798         (PSEUDO_RET): Use it.
21799         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21800         Correct save location of integer regs and cr.
21801         (_dl_profile_resolve): Correct cr save location.  Delete nops
21802         after bl when SHARED.  Reduce cfi size a little by better
21803         placement of cfi directives.
21804         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21805         make a stack frame.  Instead use parm save area as a temp.
21806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21807         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21809         Don't make a stack frame for parent, use parm save area.
21810         Increase child stack frame to 112 bytes.  Don't save unused reg,
21811         and adjust reg usage.  Set up cfi on error recovery and
21812         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21814         (__makecontext): Add dummy nop after jump to exit.
21815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21816         Use correct parm save area and cr save, reduce stack frame.
21817         Correct cfi for possible PSEUDO_RET frame setup.
21818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21819         Branch to local label emitted by PSEUDO_RET rather than
21820         __syscall_error.
21821
21822 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21823
21824         [BZ #11904]
21825         * locale/programs/locale.c (print_assignment): New function.
21826         (show_locale_vars): Use it.
21827
21828 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21829
21830         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21831         field.
21832         (struct statfs64): Likewise.
21833         (_STATFS_F_FLAGS): Define.
21834         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21835         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21836         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21837         (ST_VALID): Define locally.
21838         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21839         __statvfs_getflags, use the provided value.
21840         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21841         __ASSUME_STATFS_F_FLAGS.
21842
21843         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21844
21845         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21846         Add sys/fanotify.h.
21847         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21848         fanotify_mask for GLIBC_2.13.
21849         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21850         fanotify_init and fanotify_mark.
21851         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21852         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21853
21854         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21855         Add prlimit.
21856         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21857         prlimit64 for GLIBC_2.13.
21858         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21859         prlimit64.
21860         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21861         syscall.
21862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21863         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21864         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21865         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21866         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21867         add prlimit alias.
21868         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21869
21870         [BZ #11903]
21871         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21872         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21873
21874         * nss/Makefile: Add rules to build and run tst-nss-test1.
21875         * shlib-versions: Add entry for libnss_test1.
21876         * nss/nss_test1.c: New file.
21877         * nss/tst-nss-test1.c: New file.
21878
21879         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21880         (__nss_configure_lookup): Set appropriate entry in
21881         __nss_configure_lookup to true.
21882         * nss/nsswitch.h: Define enum with indeces of databases in
21883         databases and __nss_database_custom arrays.  Declare
21884         __nss_database_custom.
21885         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21886         to avoid using nscd when custom rules are installed.
21887         * nss/getXXbyYY_r.c: Likewise.
21888         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21889
21890         * nss/nss_files/files-parse.c: Whitespace fixes.
21891
21892 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21893
21894         [BZ #11883]
21895         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
21896         * posix/fnmatch_loop.c: Likewise.
21897
21898 2010-07-17  Andi Kleen  <ak@linux.intel.com>
21899
21900         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
21901         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
21902         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
21903         * Versions.def [GLIBC_2.13]: Add.
21904
21905 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
21906
21907         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21908         Also fail if tpwd after pwuid call is NULL.
21909
21910 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21911
21912         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
21913         when converting to ms.
21914
21915 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21916
21917         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
21918         EOPNOTSUPP errors with ENOTTY.
21919         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
21920         EOPNOTSUPP errors with ENOTTY.
21921
21922 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
21923
21924         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21925         Add strcasecmp_l-ssse3.
21926         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
21927         strcasecmp.
21928         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
21929         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
21930         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
21931
21932 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
21933
21934         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
21935
21936         * string/Makefile (strop-tests): Add strcasecmp.
21937         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21938         strcasecmp_l-nonascii.
21939         (gen-as-const-headers): Add locale-defines.sym.
21940         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
21941         * sysdeps/x86_64/strcasecmp.S: New file.
21942         * sysdeps/x86_64/strcasecmp_l.S: New file.
21943         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
21944         * sysdeps/x86_64/locale-defines.sym: New file.
21945         * string/test-strcasecmp.c: New file.
21946
21947         * string/test-strcasestr.c: Test both ends of the range of characters.
21948         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
21949
21950 2010-07-29  Roland McGrath  <roland@redhat.com>
21951
21952         [BZ #11856]
21953         * manual/locale.texi (Yes-or-No Questions): Fix example code.
21954
21955 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
21956
21957         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
21958         for ld.so.
21959
21960 2010-07-27  Andreas Schwab  <schwab@redhat.com>
21961
21962         * manual/memory.texi (Malloc Tunable Parameters): Document
21963         M_PERTURB.
21964
21965 2010-07-26  Roland McGrath  <roland@redhat.com>
21966
21967         [BZ #11840]
21968         * configure.in (-fgnu89-inline check): Set and substitute
21969         gnu89_inline, not libc_cv_gnu89_inline.
21970         * configure: Regenerated.
21971         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
21972
21973 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
21974
21975         * string/test-strnlen.c: New file.
21976         * string/Makefile (strop-tests): Add strnlen.
21977         * string/tester.c (test_strnlen): Add a few more test cases.
21978         * string/tst-strlen.c: Better error reporting.
21979
21980         * sysdeps/x86_64/strnlen.S: New file.
21981
21982 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
21983
21984         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
21985         lower-latency instructions.
21986
21987 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
21988
21989         * string/test-strcasestr.c: New file.
21990         * string/test-strstr.c: New file.
21991         * string/Makefile (strop-tests): Add strstr and strcasestr.
21992         * string/str-two-way.h: Don't undefine MAX.
21993         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
21994
21995 2010-07-21  Andreas Schwab  <schwab@redhat.com>
21996
21997         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21998         strcasestr-nonascii.
21999         (CFLAGS-strcasestr-nonascii.c): Define.
22000         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22001         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22002         Remove unused attribute.
22003
22004 2010-07-20  Roland McGrath  <roland@redhat.com>
22005
22006         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22007         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22008         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22009         like LD_HWCAP_MASK can disable hwcaps.
22010
22011 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22012
22013         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22014
22015 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22016
22017         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22018         call in strcasestr.
22019         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22020         __strcasestr_sse42_nonascii.
22021         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22022         strcasestr-nonascii.c.
22023         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22024
22025 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22026
22027         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22028         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22029         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22030         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22031
22032 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22033
22034         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22035         fcntl.
22036
22037 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22038
22039         [BZ #11577]
22040         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22041         dl_signal_cerror.
22042
22043 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22044
22045         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22046         _PC_PIPE_BUF using F_GETPIPE_SZ.
22047
22048 2010-07-05  Roland McGrath  <roland@redhat.com>
22049
22050         * manual/arith.texi (Rounding Functions): Fix rint description
22051         implicit in round description.
22052
22053 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22054
22055         * elf/Makefile: Fix linking for a few tests to make recent linker
22056         happy.
22057
22058 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22059
22060         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22061         $(common-objpfx)libc_nonshared.a.
22062
22063 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22064
22065         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22066         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22067         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22068         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22069         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22070         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22071         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22072         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22087         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22088         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22089         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22090         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22091         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22092         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22093         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22094         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22095         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22096         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22097         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22098         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22113
22114 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22115
22116         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22117         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22118         * string/memmove.c (memmove): Renamed to ...
22119         (MEMMOVE): ...this.  Default to memmove.
22120         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22121         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22122         (END_CHK): Define.
22123         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22124         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22125         mempcpy-ssse3-back memmove-ssse3-back.
22126         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22127         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22128         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22129         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22130         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22131         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22132         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22133         * sysdeps/x86_64/multiarch/memmove.c: New file.
22134         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22135         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22136         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22137         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22138         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22139         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22140         Define.
22141         (index_Fast_Copy_Backward): Define.
22142         (HAS_ARCH_FEATURE): Define.
22143         (HAS_FAST_REP_STRING): Define.
22144         (HAS_FAST_COPY_BACKWARD): Define.
22145
22146 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22147
22148         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22149         Restore proper fallback handling.
22150
22151 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22152
22153         [BZ #11701]
22154         * posix/group_member.c (__group_member): Correct checking loop.
22155
22156         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22157         OOM in getpwuid_r correctly.  Return error number when the caller
22158         should return, otherwise -1.
22159         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22160         call returning > 0 value.
22161         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22162
22163 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22164
22165         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22166         libc_nonshared.a from targets in modules-names.
22167
22168 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22169
22170         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22171         requires it.
22172
22173 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22174
22175         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22176         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22177         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22178         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22179
22180 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22181
22182         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22183
22184 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22185
22186         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22187         and F_GETPIPE_SZ.
22188         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22189         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22190         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22191         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22192         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22193         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22194
22195 2010-06-14  Roland McGrath  <roland@redhat.com>
22196
22197         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22198
22199 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22200
22201         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22202         __REDIRECT followed by __THROW.
22203         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22204         * posix/getopt.h (getopt): Likewise.
22205
22206 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22207
22208         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22209         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22210         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22211         in AT_FLAGS.
22212         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22213         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22214
22215 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22216
22217         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22218
22219 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22220
22221         [BZ #11640]
22222         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22223         Properly check family and model.
22224
22225 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22226
22227         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22228
22229 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22230
22231         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22232
22233 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22234
22235         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22236         symbol reference.
22237
22238 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22239
22240         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22241         symbol reference.
22242
22243 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22244
22245         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22246         and internal_recvmmsg.
22247         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22248         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22249         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22250         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22251
22252         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22253         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22254         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22255
22256 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22257
22258         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22259
22260 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22261
22262         POWER7 optimizations.
22263         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22264         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22265
22266 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22267
22268         * version.h: Update for 2.13 development version.
22269
22270 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22271
22272         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22273         exceptions.  Return 0.
22274
22275 2010-05-07  Roland McGrath  <roland@redhat.com>
22276
22277         * elf/ldconfig.c (main): Add a const.
22278
22279 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22280
22281         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22282         (args_options): Add no-idn option.
22283         (ahosts_keys_int): Add idn_flags to ai_flags.
22284         (parse_option): Handle 'i' option to clear idn_flags.
22285
22286         * malloc/malloc.c (_int_free): Possible race in the most recently
22287         added check.  Only act on the data if no current modification
22288         happened.
22289
22290 See ChangeLog.17 for earlier changes.