Skip audit if l_reloc_result is NULL
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
2
3         [BZ #14831]
4         * elf/Makefile (tests): Add tst-audit8.
5         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
6         ($(objpfx)tst-audit8.out): New target.
7         (tst-audit8-ENV): New variable.
8         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
9         audit if l_reloc_result is NULL.
10         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
11         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
12         * elf/tst-audit8.c: New file.
13
14 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
15
16         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
17         * misc/Makefile (CFLAGS-select.c): Define.
18         * posix/Makefile (CFLAGS-pause.c): Define.
19
20 2012-11-13  David S. Miller  <davem@davemloft.net>
21
22         * crypt/Makefile: Move test targets after toplevel Rules
23         inclusion.  Grab any necessary sysdep routines when linking.
24         * crypt/md5.c (md5_process_block): Remove define, we will always
25         name it __md5_process_block.
26         (md5_finish_ctx): Update md5_process_block call.
27         (md5_stream): Likewise.
28         (md5_process_bytes): Likewise.
29         (md5_process_block): Rename to __md5_process_block and move to ...
30         * crypt/md5-block.c: ... here.
31         * crypt/sha256.c (sha256_process_block): Move to ...
32         * crypt/sha256-block.c: ... here.
33         * crypt/sha512.c (sha512_process_block): Move to ...
34         * crypt/sha512-block.c: ... here.
35         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
36         path.
37         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
38         * sysdeps/sparc/sparc64/multiarch/Makefile
39         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
40         crypt subdir.
41         (localedef-aux): Add md5 crypto assembler when in locale subdir.
42         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
43         multiarch changes.
44         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
45         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
46         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
47         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
48         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
49         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
50         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
51         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
52         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
53         file.
54         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
55         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
56         file.
57         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
58
59 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
60
61         * timezone/tzselect.ksh: Update from tzcode git revision
62         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
63         * timezone/zdump.c: Likewise.
64         * timezone/zic.c: Likewise.
65         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
66         in TZVERSION setting, not $(PKGVERSION).
67         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
68         REPORT_BUGS_TO settings.
69
70         [BZ #14838]
71         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
72         macro.
73
74 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
75
76         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
77         detection to immediately after _FP_ROUND().
78         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
79         bits are 0.
80
81 2012-11-11  David S. Miller  <davem@davemloft.net>
82
83         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
84         inttypes.h
85         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
86         __close rather than their public counterparts.
87
88 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
89
90         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
91         file.
92         [UNIX98] (sem_timedwait): Do not expect.
93         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
94         [XPG4 || UNIX98] (sockatmark): Do not expect.
95         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
96         (clock_getcpuclockid): Do not expect.
97         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
98         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
99         Do not expect.
100         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
101         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
102         [UNIX98] (vwscanf): Likewise.
103         [UNIX98] (vswscanf): Likewise.
104
105 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
106
107         * timezone/version.h: Remove file.
108         * timezone/README: Do not refer to version.h.
109         * timezone/Makefile ($(objpfx)zic.o): New dependency on
110         $(objpfx)version.h.
111         ($(objpfx)zdump.o): Likewise.
112         ($(objpfx)version.h): New target.
113
114         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
115         2012i.
116         * timezone/README: Don't mention modification to tzselect.ksh.
117         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
118         work on unmodified tzselect.ksh.  Substitute version numbers in
119         tzselect.ksh.
120
121         * Makefile (format-me): Remove.
122         (INSTALL): Adjust indentation.  Use commands directly instead of
123         using $(format-me).
124
125         * aclocal.m4 (ACX_PKGVERSION): New macro.
126         (ACX_BUGURL): Likewise.
127         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
128         (PKGVERSION): New AC_DEFINE_UNQUOTED.
129         (REPORT_BUGS_TO): Likewise.
130         * configure: Regenerated.
131         * config.h.in (PKGVERSION): New macro.
132         (REPORT_BUGS_TO): Likewise.
133         * config.make.in (PKGVERSION): New variable.
134         (PKGVERSION_TEXI): Likewise.
135         (REPORT_BUGS_TO): Likewise.
136         (REPORT_BUGS_TEXI): Likewise.
137         * Makefile (format-me): Use -I$(common-objpfx)manual.
138         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
139         ($(common-objpfx)manual/%): New target.
140         (manual/%): Remove target.
141         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
142         (print_version): Use PKGVERSION.
143         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
144         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
145         and REPORT_BUGS_TO.
146         ($(objpfx)xtrace): Likewise.
147         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
148         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
149         (print_version): Use PKGVERSION.
150         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
151         (do_version): Use PKGVERSION.
152         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
153         REPORT_BUGS_TO.
154         (common-ldd-rewrite): Likewise.
155         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
156         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
157         (print_version): Use PKGVERSION.
158         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
159         * elf/pldd.c (argp_program_bug_address): Remove variable.
160         (more_help): New function.
161         (argp): Use more_help.
162         (print_version): Use PKGVERSION.
163         * elf/sln.c (main): Use PKGVERSION.
164         (usage): Use REPORT_BUGS_TO.
165         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
166         (top level): Use PKGVERSION.
167         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
168         (print_version): Use PKGVERSION.
169         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
170         (print_version): Use PKGVERSION.
171         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
172         (print_version): Use PKGVERSION.
173         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
174         (print_version): Use PKGVERSION.
175         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
176         (print_version): Use PKGVERSION.
177         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
178         (print_version): Use PKGVERSION.
179         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
180         and BUGURL.
181         ($(objpfx)memusage): Likewise.
182         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
183         (do_version): Use PKGVERSION.
184         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
185         (print_version): Use PKGVERSION.
186         * malloc/mtrace.pl ($PACKAGE): Remove variable.
187         ($PKGVERSION): New variable.
188         ($REPORT_BUGS_TO): Likewise.
189         (usage): Use $REPORT_BUGS_TO.
190         (top level): Use $PKGVERSION.
191         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
192         ($(objpfx)pkgvers.texi): New rule.
193         ($(objpfx)stamp-pkgvers): Likewise.
194         * manual/install.texi: Include pkgvers.texi.
195         (--with-pkgversion): Document new configure option.
196         (--with-bugurl): Likewise.
197         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
198         than necessarily for this particular distribution.  Use
199         REPORT_BUGS_TO for where to report bugs.
200         * INSTALL: Regenerated.
201         * manual/libc.texinfo: Include pkgvers.texi.
202         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
203         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
204         (print_version): Use PKGVERSION.
205         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
206         (print_version): Use PKGVERSION.
207         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
208         (print_version): Use PKGVERSION.
209         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
210         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
211         macro.
212         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
213         (print_version): Use PKGVERSION.
214         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
215         (print_version): Use PKGVERSION.
216         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
217         and PKGVERSION.
218
219         * timezone/checktab.awk: Update from tzcode 2012i.
220         * timezone/ialloc.c: Likewise.
221         * timezone/private.h: Likewise.
222         * timezone/scheck.c: Likewise.
223         * timezone/tzfile.h: Likewise.
224         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
225         (TZVERSION): Hardcode tzcode version number.
226         * timezone/zdump.c: Update from tzcode 2012i.
227         * timezone/zic.c: Likewise.
228         * timezone/version.h: New file.
229         * timezone/README: Describe version.h.  Update upstream location.
230
231         [BZ #14824]
232         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
233         (mktemp): Enable declaration.
234         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
235         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
236         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
237         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
238         Likewise.
239         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
240         Likewise.
241         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
242         Likewise.
243         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
244         Likewise.
245         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
246         Likewise.
247         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
248         Likewise.
249
250         [BZ #14821]
251         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
252         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
253         for copies of such integer values.
254         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
255         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
256
257 2012-11-09  Andreas Jaeger  <aj@suse.de>
258
259         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
260         definitions and declarations that are provided by
261         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
262
263 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
264
265         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
266         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
267         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
268         definition.
269
270 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
271
272         * elf/elf.h: Update comment before AArch64 relocations.
273
274 2012-11-07  David S. Miller  <davem@davemloft.net>
275
276         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
277         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
278         (__start_context): Declare.
279         (__makecontext_ret): Delete.
280         (__makecontext): Hook up __start_context instead of
281         __makecontext_ret.
282         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
283         (sysdep_routines): Add __start_context when in stdlib.
284
285 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
286
287         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
288         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
289         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
290         hardcoded "nm".
291         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
292         (READELF): New variable.  Use it instead of hardcoded "readelf".
293
294 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
295
296         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
297         * sysdeps/x86/Makefile: Here.
298         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
299         * sysdeps/x86/tst-xmmymm.sh: This.
300
301 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
302
303         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
304         expectations.
305         [UNIX98] (pthread_barrier_t): Do not expect.
306         [UNIX98] (pthread_barrierattr_t): Likewise.
307         [UNIX98] (pthread_spinlock_t): Likewise.
308         [UNIX98] (pthread_barrier_destroy): Likewise.
309         [UNIX98] (pthread_barrier_init): Likewise.
310         [UNIX98] (pthread_barrier_wait): Likewise.
311         [UNIX98] (pthread_barrierattr_destroy): Likewise.
312         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
313         [UNIX98] (pthread_barrierattr_init): Likewise.
314         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
315         [UNIX98] (pthread_getcpuclockid): Likewise.
316         [UNIX98] (pthread_mutex_timedlock): Likewise.
317         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
318         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
319         [UNIX98] (pthread_sigmask): Likewise.
320         [UNIX98] (pthread_spin_destroy): Likewise.
321         [UNIX98] (pthread_spin_init): Likewise.
322         [UNIX98] (pthread_spin_lock): Likewise.
323         [UNIX98] (pthread_spin_trylock): Likewise.
324         [UNIX98] (pthread_spin_unlock): Likewise.
325         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
326         Do not expect.
327         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
328         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
329         [XPG3 || XPG4] (pthread_cond_t): Likewise.
330         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
331         [XPG3 || XPG4] (pthread_key_t): Likewise.
332         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
333         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
334         [XPG3 || XPG4] (pthread_once_t): Likewise.
335         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
336         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
337         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
338         [XPG3 || XPG4] (pthread_t): Likewise.
339
340         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
341         not expect.
342         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
343
344         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
345         Change function return type to int.
346
347         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
348         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
349         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
350         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
351         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
352         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
353         [!POSIX] (posix_madvise): Likewise.
354         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
355         && !UNIX98].
356         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
357         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
358         (mode_t): Likewise.
359         (posix_mem_offset): Likewise.
360         (posix_typed_mem_get_info): Likewise.
361         (posix_typed_mem_open): Likewise.
362
363         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
364         Change condition to [XOPEN2K8].
365
366         * conform/conformtest.pl: Preprocess allow-header data with -x c
367         instead of from stdin.
368         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
369         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
370         [C99-based standards] (cerfc): Likewise.
371         [C99-based standards] (cexp2): Likewise.
372         [C99-based standards] (cexpm1): Likewise.
373         [C99-based standards] (clog10): Likewise.
374         [C99-based standards] (clog1p): Likewise.
375         [C99-based standards] (clog2): Likewise.
376         [C99-based standards] (clgamma): Likewise.
377         [C99-based standards] (ctgamma): Likewise.
378         [C99-based standards] (cerff): Likewise.
379         [C99-based standards] (cerfcf): Likewise.
380         [C99-based standards] (cexp2f): Likewise.
381         [C99-based standards] (cexpm1f): Likewise.
382         [C99-based standards] (clog10f): Likewise.
383         [C99-based standards] (clog1pf): Likewise.
384         [C99-based standards] (clog2f): Likewise.
385         [C99-based standards] (clgammaf): Likewise.
386         [C99-based standards] (ctgammaf): Likewise.
387         [C99-based standards] (cerfl): Likewise.
388         [C99-based standards] (cerfcl): Likewise.
389         [C99-based standards] (cexp2l): Likewise.
390         [C99-based standards] (cexpm1l): Likewise.
391         [C99-based standards] (clog10l): Likewise.
392         [C99-based standards] (clog1pl): Likewise.
393         [C99-based standards] (clog2l): Likewise.
394         [C99-based standards] (clgammal): Likewise.
395         [C99-based standards] (ctgammal): Likewise.
396         * conform/data/inttypes.h-data [C99-based standards]: Include
397         stdint.h-data.  Remove all expectations for stdint.h contents.
398         [C99-based standards] (PRI*): Do not allow.
399         [C99-based standards] (SCN*): Likewise.
400         [C99-based standards] (*_t): Likewise.
401         [C99-based-standards] (PRId8): Expect macro.
402         [C99-based-standards] (PRIi8): Likewise.
403         [C99-based-standards] (PRIo8): Likewise.
404         [C99-based-standards] (PRIu8): Likewise.
405         [C99-based-standards] (PRIx8): Likewise.
406         [C99-based-standards] (PRIX8): Likewise.
407         [C99-based-standards] (SCNd8): Likewise.
408         [C99-based-standards] (SCNi8): Likewise.
409         [C99-based-standards] (SCNo8): Likewise.
410         [C99-based-standards] (SCNu8): Likewise.
411         [C99-based-standards] (SCNx8): Likewise.
412         [C99-based-standards] (PRIdLEAST8): Likewise.
413         [C99-based-standards] (PRIiLEAST8): Likewise.
414         [C99-based-standards] (PRIoLEAST8): Likewise.
415         [C99-based-standards] (PRIuLEAST8): Likewise.
416         [C99-based-standards] (PRIxLEAST8): Likewise.
417         [C99-based-standards] (PRIXLEAST8): Likewise.
418         [C99-based-standards] (SCNdLEAST8): Likewise.
419         [C99-based-standards] (SCNiLEAST8): Likewise.
420         [C99-based-standards] (SCNoLEAST8): Likewise.
421         [C99-based-standards] (SCNuLEAST8): Likewise.
422         [C99-based-standards] (SCNxLEAST8): Likewise.
423         [C99-based-standards] (PRIdFAST8): Likewise.
424         [C99-based-standards] (PRIiFAST8): Likewise.
425         [C99-based-standards] (PRIoFAST8): Likewise.
426         [C99-based-standards] (PRIuFAST8): Likewise.
427         [C99-based-standards] (PRIxFAST8): Likewise.
428         [C99-based-standards] (PRIXFAST8): Likewise.
429         [C99-based-standards] (SCNdFAST8): Likewise.
430         [C99-based-standards] (SCNiFAST8): Likewise.
431         [C99-based-standards] (SCNoFAST8): Likewise.
432         [C99-based-standards] (SCNuFAST8): Likewise.
433         [C99-based-standards] (SCNxFAST8): Likewise.
434         [C99-based-standards] (PRId16): Likewise.
435         [C99-based-standards] (PRIi16): Likewise.
436         [C99-based-standards] (PRIo16): Likewise.
437         [C99-based-standards] (PRIu16): Likewise.
438         [C99-based-standards] (PRIx16): Likewise.
439         [C99-based-standards] (PRIX16): Likewise.
440         [C99-based-standards] (SCNd16): Likewise.
441         [C99-based-standards] (SCNi16): Likewise.
442         [C99-based-standards] (SCNo16): Likewise.
443         [C99-based-standards] (SCNu16): Likewise.
444         [C99-based-standards] (SCNx16): Likewise.
445         [C99-based-standards] (PRIdLEAST16): Likewise.
446         [C99-based-standards] (PRIiLEAST16): Likewise.
447         [C99-based-standards] (PRIoLEAST16): Likewise.
448         [C99-based-standards] (PRIuLEAST16): Likewise.
449         [C99-based-standards] (PRIxLEAST16): Likewise.
450         [C99-based-standards] (PRIXLEAST16): Likewise.
451         [C99-based-standards] (SCNdLEAST16): Likewise.
452         [C99-based-standards] (SCNiLEAST16): Likewise.
453         [C99-based-standards] (SCNoLEAST16): Likewise.
454         [C99-based-standards] (SCNuLEAST16): Likewise.
455         [C99-based-standards] (SCNxLEAST16): Likewise.
456         [C99-based-standards] (PRIdFAST16): Likewise.
457         [C99-based-standards] (PRIiFAST16): Likewise.
458         [C99-based-standards] (PRIoFAST16): Likewise.
459         [C99-based-standards] (PRIuFAST16): Likewise.
460         [C99-based-standards] (PRIxFAST16): Likewise.
461         [C99-based-standards] (PRIXFAST16): Likewise.
462         [C99-based-standards] (SCNdFAST16): Likewise.
463         [C99-based-standards] (SCNiFAST16): Likewise.
464         [C99-based-standards] (SCNoFAST16): Likewise.
465         [C99-based-standards] (SCNuFAST16): Likewise.
466         [C99-based-standards] (SCNxFAST16): Likewise.
467         [C99-based-standards] (PRId32): Likewise.
468         [C99-based-standards] (PRIi32): Likewise.
469         [C99-based-standards] (PRIo32): Likewise.
470         [C99-based-standards] (PRIu32): Likewise.
471         [C99-based-standards] (PRIx32): Likewise.
472         [C99-based-standards] (PRIX32): Likewise.
473         [C99-based-standards] (SCNd32): Likewise.
474         [C99-based-standards] (SCNi32): Likewise.
475         [C99-based-standards] (SCNo32): Likewise.
476         [C99-based-standards] (SCNu32): Likewise.
477         [C99-based-standards] (SCNx32): Likewise.
478         [C99-based-standards] (PRIdLEAST32): Likewise.
479         [C99-based-standards] (PRIiLEAST32): Likewise.
480         [C99-based-standards] (PRIoLEAST32): Likewise.
481         [C99-based-standards] (PRIuLEAST32): Likewise.
482         [C99-based-standards] (PRIxLEAST32): Likewise.
483         [C99-based-standards] (PRIXLEAST32): Likewise.
484         [C99-based-standards] (SCNdLEAST32): Likewise.
485         [C99-based-standards] (SCNiLEAST32): Likewise.
486         [C99-based-standards] (SCNoLEAST32): Likewise.
487         [C99-based-standards] (SCNuLEAST32): Likewise.
488         [C99-based-standards] (SCNxLEAST32): Likewise.
489         [C99-based-standards] (PRIdFAST32): Likewise.
490         [C99-based-standards] (PRIiFAST32): Likewise.
491         [C99-based-standards] (PRIoFAST32): Likewise.
492         [C99-based-standards] (PRIuFAST32): Likewise.
493         [C99-based-standards] (PRIxFAST32): Likewise.
494         [C99-based-standards] (PRIXFAST32): Likewise.
495         [C99-based-standards] (SCNdFAST32): Likewise.
496         [C99-based-standards] (SCNiFAST32): Likewise.
497         [C99-based-standards] (SCNoFAST32): Likewise.
498         [C99-based-standards] (SCNuFAST32): Likewise.
499         [C99-based-standards] (SCNxFAST32): Likewise.
500         [C99-based-standards] (PRId64): Likewise.
501         [C99-based-standards] (PRIi64): Likewise.
502         [C99-based-standards] (PRIo64): Likewise.
503         [C99-based-standards] (PRIu64): Likewise.
504         [C99-based-standards] (PRIx64): Likewise.
505         [C99-based-standards] (PRIX64): Likewise.
506         [C99-based-standards] (SCNd64): Likewise.
507         [C99-based-standards] (SCNi64): Likewise.
508         [C99-based-standards] (SCNo64): Likewise.
509         [C99-based-standards] (SCNu64): Likewise.
510         [C99-based-standards] (SCNx64): Likewise.
511         [C99-based-standards] (PRIdLEAST64): Likewise.
512         [C99-based-standards] (PRIiLEAST64): Likewise.
513         [C99-based-standards] (PRIoLEAST64): Likewise.
514         [C99-based-standards] (PRIuLEAST64): Likewise.
515         [C99-based-standards] (PRIxLEAST64): Likewise.
516         [C99-based-standards] (PRIXLEAST64): Likewise.
517         [C99-based-standards] (SCNdLEAST64): Likewise.
518         [C99-based-standards] (SCNiLEAST64): Likewise.
519         [C99-based-standards] (SCNoLEAST64): Likewise.
520         [C99-based-standards] (SCNuLEAST64): Likewise.
521         [C99-based-standards] (SCNxLEAST64): Likewise.
522         [C99-based-standards] (PRIdFAST64): Likewise.
523         [C99-based-standards] (PRIiFAST64): Likewise.
524         [C99-based-standards] (PRIoFAST64): Likewise.
525         [C99-based-standards] (PRIuFAST64): Likewise.
526         [C99-based-standards] (PRIxFAST64): Likewise.
527         [C99-based-standards] (PRIXFAST64): Likewise.
528         [C99-based-standards] (SCNdFAST64): Likewise.
529         [C99-based-standards] (SCNiFAST64): Likewise.
530         [C99-based-standards] (SCNoFAST64): Likewise.
531         [C99-based-standards] (SCNuFAST64): Likewise.
532         [C99-based-standards] (SCNxFAST64): Likewise.
533         [C99-based-standards] (PRIdMAX): Likewise.
534         [C99-based-standards] (PRIiMAX): Likewise.
535         [C99-based-standards] (PRIoMAX): Likewise.
536         [C99-based-standards] (PRIuMAX): Likewise.
537         [C99-based-standards] (PRIxMAX): Likewise.
538         [C99-based-standards] (PRIXMAX): Likewise.
539         [C99-based-standards] (SCNdMAX): Likewise.
540         [C99-based-standards] (SCNiMAX): Likewise.
541         [C99-based-standards] (SCNoMAX): Likewise.
542         [C99-based-standards] (SCNuMAX): Likewise.
543         [C99-based-standards] (SCNxMAX): Likewise.
544         [C99-based-standards] (PRIdPTR): Likewise.
545         [C99-based-standards] (PRIiPTR): Likewise.
546         [C99-based-standards] (PRIoPTR): Likewise.
547         [C99-based-standards] (PRIuPTR): Likewise.
548         [C99-based-standards] (PRIxPTR): Likewise.
549         [C99-based-standards] (PRIXPTR): Likewise.
550         [C99-based-standards] (SCNdPTR): Likewise.
551         [C99-based-standards] (SCNiPTR): Likewise.
552         [C99-based-standards] (SCNoPTR): Likewise.
553         [C99-based-standards] (SCNuPTR): Likewise.
554         [C99-based-standards] (SCNxPTR): Likewise.
555         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
556         allow.
557         * conform/data/stdint.h-data: Update comments to clarify
558         requirements.
559         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
560         type.
561         [C99-based standards] (INT8_MAX): Likewise.
562         [C99-based standards] (INT16_MIN): Likewise.
563         [C99-based standards] (INT16_MAX): Likewise.
564         [C99-based standards] (INT32_MIN): Likewise.
565         [C99-based standards] (INT32_MAX): Likewise.
566         [C99-based standards] (INT64_MIN): Likewise.
567         [C99-based standards] (INT64_MAX): Likewise.
568         [C99-based standards] (UINT8_MAX): Likewise.
569         [C99-based standards] (UINT16_MAX): Likewise.
570         [C99-based standards] (UINT32_MAX): Likewise.
571         [C99-based standards] (UINT64_MAX): Likewise.
572         [C99-based standards] (INT_LEAST8_MIN): Likewise.
573         [C99-based standards] (INT_LEAST8_MAX): Likewise.
574         [C99-based standards] (INT_LEAST16_MIN): Likewise.
575         [C99-based standards] (INT_LEAST16_MAX): Likewise.
576         [C99-based standards] (INT_LEAST32_MIN): Likewise.
577         [C99-based standards] (INT_LEAST32_MAX): Likewise.
578         [C99-based standards] (INT_LEAST64_MIN): Likewise.
579         [C99-based standards] (INT_LEAST64_MAX): Likewise.
580         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
581         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
582         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
583         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
584         [C99-based standards] (INT_FAST8_MIN): Likewise.
585         [C99-based standards] (INT_FAST8_MAX): Likewise.
586         [C99-based standards] (INT_FAST16_MIN): Likewise.
587         [C99-based standards] (INT_FAST16_MAX): Likewise.
588         [C99-based standards] (INT_FAST32_MIN): Likewise.
589         [C99-based standards] (INT_FAST32_MAX): Likewise.
590         [C99-based standards] (INT_FAST64_MIN): Likewise.
591         [C99-based standards] (INT_FAST64_MAX): Likewise.
592         [C99-based standards] (UINT_FAST8_MAX): Likewise.
593         [C99-based standards] (UINT_FAST16_MAX): Likewise.
594         [C99-based standards] (UINT_FAST32_MAX): Likewise.
595         [C99-based standards] (UINT_FAST64_MAX): Likewise.
596         [C99-based standards] (INTPTR_MIN): Likewise.
597         [C99-based standards] (INTPTR_MAX): Likewise.
598         [C99-based standards] (UINTPTR_MAX): Likewise.
599         [C99-based standards] (INTMAX_MIN): Likewise.
600         [C99-based standards] (INTMAX_MAX): Likewise.
601         [C99-based standards] (UINTMAX_MAX): Likewise.
602         [C99-based standards] (PTRDIFF_MIN): Likewise.
603         [C99-based standards] (PTRDIFF_MAX): Likewise.
604         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
605         [C99-based standards] (SIZE_MAX): Likewise.
606         [C99-based standards] (WCHAR_MAX): Likewise.
607         [C99-based standards] (WINT_MAX): Likewise.
608         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
609         constraint on value.
610         [C99-based standards] (WCHAR_MIN): Likewise.
611         [C99-based standards] (WINT_MIN): Likewise.
612         [C99-based standards] (*_t): Allow.
613         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
614         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
615         Include math.h-data and complex.h-data.  Remove all expectations
616         of math.h and complex.h contents.
617         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
618         at end of line.
619         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
620         (struct tm): Expect tag.
621         [C99-based-standards] (wcstof): Expect function.
622         [C99-based-standards] (wcstold): Likewise.
623         [C99-based-standards] (wcstoll): Likewise.
624         [C99-based-standards] (wcstoull): Likewise.
625         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
626         macro-int-constant.  Specify type.
627         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
628         constraint on value.
629         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
630         Specify type.
631         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
632         Specify value.
633         [ISO C standards]: Do not allow headers.
634         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
635         wcs[abcdefghijklmnopqrstuvwxyz]*.
636         [ISO C standards] (*_t): Do not allow.
637         * conform/data/wctype.h-data [C99-based standards] (iswblank):
638         Expect function.
639         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
640         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
641         Specify type.
642         [ISO C standards]: Do not allow headers.
643         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
644         is[abcdefghijklmnopqrstuvwxyz]*.
645         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
646         to[abcdefghijklmnopqrstuvwxyz]*.
647         [ISO C standards] (*_t): Do not allow.
648         * conform/data/stdalign.h-data: New file.
649         * conform/data/stdbool.h-data: Likewise.
650         * conform/data/stdnoreturn.h-data: Likewise.
651
652 2012-11-07  Andreas Jaeger  <aj@suse.de>
653
654         [BZ #14809]
655         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
656         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
657         guards are changed.  Only define if not yet defined, #undef back
658         after including linux/sysctl.h if defined here.
659
660 2012-11-07  Roland McGrath  <roland@hack.frob.com>
661
662         [BZ #14815]
663         * manual/filesys.texi (Directory Entries): Typo fix.
664         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
665
666 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
667
668         * elf/elf.h (EM_AARCH64): New macro.
669         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
670         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
671         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
672         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
673         (R_AARCH64_TLSDESC): Likewise.
674         (NT_ARM_TLS): Likewise.
675         (NT_ARM_HW_BREAK): Likewise.
676         (NT_ARM_HW_WATCH): Likewise.
677
678 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
679
680         [BZ #14811]
681         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
682         (__ieee754_powl): Saturate nonzero exponents with absolute value
683         below 0x1p-79 to +/- 0x1p-79.
684         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
685         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
686         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
687         nonzero exponents with absolute value below 0x1p-32 to +/-
688         0x1p-32.
689         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
690         (__ieee754_powl): Saturate nonzero exponents with absolute value
691         below 0x1p-79 to +/- 0x1p-79.
692         * math/libm-test.inc (pow_test): Add more tests.
693
694 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
695
696         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
697         _dl_s390_cap_flags with kernel. Increase string length.
698         (_dl_s390_platforms): Add z196 and zEC12.
699
700 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
701
702         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
703         Change XOPEN21K to XOPEN2K.
704
705 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
706
707         * string/memmove.c: Use memcpy when possible.
708
709 2012-11-06  Andreas Jaeger  <aj@suse.de>
710
711         * po/eo.po: Update from translation team.
712
713 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
714
715         [BZ #14793]
716         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
717         exponent and small x and y exponents, scale x or y up.  Increase
718         by 2 the exponent used in scaling up.
719         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
720         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
721         * math/libm-test.inc (fma_test): Add more tests.
722         (fma_test_towardzero): Likewise.
723         (fma_test_downward): Likewise.
724         (fma_test_upward): Likewise.
725
726 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
727
728         [BZ #14805]
729         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
730         fenv_t *.
731
732         [BZ #14801]
733         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
734         namespace for names of struct fields.
735         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
736         fenv_t fields.
737         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
738         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
739
740 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
741
742         [BZ #3665]
743         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
744
745 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
746
747         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
748         PTR_DEMANGLE.
749
750         [BZ #5246]
751         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
752         PTR_DEMANGLE.
753
754 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
755
756         [BZ #14797]
757         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
758         definitely overflow as x * y not x * y + z.
759         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
760         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
761         * math/libm-test.inc (fma_test): Add more tests.
762         (fma_test_towardzero): Likewise.
763         (fma_test_downward): Likewise.
764         (fma_test_upward): Likewise.
765
766 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
767
768         [BZ #157]
769
770         * include/stub-tag.h: Remove file.
771         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
772         '#include' of it.
773         * manual/maint.texi (Porting): Don't reference it.
774         * Makerules ($(objpfx)stubs): Likewise.
775         * dirent/closedir.c: Don't include <stub-tag.h>.
776         * dirent/dirfd.c: Likewise.
777         * dirent/fdopendir.c: Likewise.
778         * dirent/getdents.c: Likewise.
779         * dirent/getdents64.c: Likewise.
780         * dirent/opendir.c: Likewise.
781         * dirent/readdir.c: Likewise.
782         * dirent/readdir64.c: Likewise.
783         * dirent/readdir64_r.c: Likewise.
784         * dirent/readdir_r.c: Likewise.
785         * dirent/rewinddir.c: Likewise.
786         * dirent/seekdir.c: Likewise.
787         * dirent/telldir.c: Likewise.
788         * gmon/profil.c: Likewise.
789         * grp/setgroups.c: Likewise.
790         * inet/if_index.c: Likewise.
791         * io/access.c: Likewise.
792         * io/chdir.c: Likewise.
793         * io/chmod.c: Likewise.
794         * io/chown.c: Likewise.
795         * io/close.c: Likewise.
796         * io/dup.c: Likewise.
797         * io/dup2.c: Likewise.
798         * io/dup3.c: Likewise.
799         * io/euidaccess.c: Likewise.
800         * io/faccessat.c: Likewise.
801         * io/fchdir.c: Likewise.
802         * io/fchmod.c: Likewise.
803         * io/fchmodat.c: Likewise.
804         * io/fchown.c: Likewise.
805         * io/fchownat.c: Likewise.
806         * io/fcntl.c: Likewise.
807         * io/flock.c: Likewise.
808         * io/fstatfs.c: Likewise.
809         * io/fstatfs64.c: Likewise.
810         * io/fstatvfs.c: Likewise.
811         * io/fstatvfs64.c: Likewise.
812         * io/futimens.c: Likewise.
813         * io/fxstat.c: Likewise.
814         * io/fxstat64.c: Likewise.
815         * io/fxstatat.c: Likewise.
816         * io/fxstatat64.c: Likewise.
817         * io/getcwd.c: Likewise.
818         * io/isatty.c: Likewise.
819         * io/lchmod.c: Likewise.
820         * io/lchown.c: Likewise.
821         * io/link.c: Likewise.
822         * io/linkat.c: Likewise.
823         * io/lseek.c: Likewise.
824         * io/lseek64.c: Likewise.
825         * io/lxstat64.c: Likewise.
826         * io/mkdir.c: Likewise.
827         * io/mkdirat.c: Likewise.
828         * io/mkfifo.c: Likewise.
829         * io/mkfifoat.c: Likewise.
830         * io/open.c: Likewise.
831         * io/open64.c: Likewise.
832         * io/openat.c: Likewise.
833         * io/openat64.c: Likewise.
834         * io/pipe.c: Likewise.
835         * io/pipe2.c: Likewise.
836         * io/poll.c: Likewise.
837         * io/posix_fadvise.c: Likewise.
838         * io/posix_fadvise64.c: Likewise.
839         * io/posix_fallocate.c: Likewise.
840         * io/posix_fallocate64.c: Likewise.
841         * io/read.c: Likewise.
842         * io/readlink.c: Likewise.
843         * io/readlinkat.c: Likewise.
844         * io/rmdir.c: Likewise.
845         * io/sendfile.c: Likewise.
846         * io/sendfile64.c: Likewise.
847         * io/statfs.c: Likewise.
848         * io/statfs64.c: Likewise.
849         * io/statvfs.c: Likewise.
850         * io/statvfs64.c: Likewise.
851         * io/symlink.c: Likewise.
852         * io/symlinkat.c: Likewise.
853         * io/ttyname.c: Likewise.
854         * io/ttyname_r.c: Likewise.
855         * io/umask.c: Likewise.
856         * io/unlink.c: Likewise.
857         * io/unlinkat.c: Likewise.
858         * io/utime.c: Likewise.
859         * io/utimensat.c: Likewise.
860         * io/write.c: Likewise.
861         * io/xmknod.c: Likewise.
862         * io/xmknodat.c: Likewise.
863         * io/xstat.c: Likewise.
864         * io/xstat64.c: Likewise.
865         * login/getpt.c: Likewise.
866         * login/grantpt.c: Likewise.
867         * login/unlockpt.c: Likewise.
868         * math/e_acoshl.c: Likewise.
869         * math/e_acosl.c: Likewise.
870         * math/e_asinl.c: Likewise.
871         * math/e_atan2l.c: Likewise.
872         * math/e_atanhl.c: Likewise.
873         * math/e_coshl.c: Likewise.
874         * math/e_expl.c: Likewise.
875         * math/e_fmodl.c: Likewise.
876         * math/e_gammal_r.c: Likewise.
877         * math/e_hypotl.c: Likewise.
878         * math/e_j0l.c: Likewise.
879         * math/e_j1l.c: Likewise.
880         * math/e_jnl.c: Likewise.
881         * math/e_lgammal_r.c: Likewise.
882         * math/e_log10l.c: Likewise.
883         * math/e_log2l.c: Likewise.
884         * math/e_logl.c: Likewise.
885         * math/e_powl.c: Likewise.
886         * math/e_rem_pio2l.c: Likewise.
887         * math/e_sinhl.c: Likewise.
888         * math/e_sqrtl.c: Likewise.
889         * math/fclrexcpt.c: Likewise.
890         * math/fedisblxcpt.c: Likewise.
891         * math/feenablxcpt.c: Likewise.
892         * math/fegetenv.c: Likewise.
893         * math/fegetexcept.c: Likewise.
894         * math/fegetround.c: Likewise.
895         * math/feholdexcpt.c: Likewise.
896         * math/fesetenv.c: Likewise.
897         * math/fesetround.c: Likewise.
898         * math/feupdateenv.c: Likewise.
899         * math/fgetexcptflg.c: Likewise.
900         * math/fraiseexcpt.c: Likewise.
901         * math/fsetexcptflg.c: Likewise.
902         * math/ftestexcept.c: Likewise.
903         * math/k_cosl.c: Likewise.
904         * math/k_rem_pio2l.c: Likewise.
905         * math/k_sinl.c: Likewise.
906         * math/k_tanl.c: Likewise.
907         * math/s_asinhl.c: Likewise.
908         * math/s_atanl.c: Likewise.
909         * math/s_cbrtl.c: Likewise.
910         * math/s_erfl.c: Likewise.
911         * math/s_expm1l.c: Likewise.
912         * math/s_log1pl.c: Likewise.
913         * math/s_tanhl.c: Likewise.
914         * misc/acct.c: Likewise.
915         * misc/brk.c: Likewise.
916         * misc/chflags.c: Likewise.
917         * misc/chroot.c: Likewise.
918         * misc/fchflags.c: Likewise.
919         * misc/fgetxattr.c: Likewise.
920         * misc/flistxattr.c: Likewise.
921         * misc/fremovexattr.c: Likewise.
922         * misc/fsetxattr.c: Likewise.
923         * misc/fsync.c: Likewise.
924         * misc/ftruncate.c: Likewise.
925         * misc/futimes.c: Likewise.
926         * misc/futimesat.c: Likewise.
927         * misc/getdomain.c: Likewise.
928         * misc/getdtsz.c: Likewise.
929         * misc/gethostid.c: Likewise.
930         * misc/gethostname.c: Likewise.
931         * misc/getloadavg.c: Likewise.
932         * misc/getpagesize.c: Likewise.
933         * misc/getsysstats.c: Likewise.
934         * misc/getxattr.c: Likewise.
935         * misc/gtty.c: Likewise.
936         * misc/ioctl.c: Likewise.
937         * misc/lgetxattr.c: Likewise.
938         * misc/listxattr.c: Likewise.
939         * misc/llistxattr.c: Likewise.
940         * misc/lremovexattr.c: Likewise.
941         * misc/lsetxattr.c: Likewise.
942         * misc/lutimes.c: Likewise.
943         * misc/madvise.c: Likewise.
944         * misc/mincore.c: Likewise.
945         * misc/mlock.c: Likewise.
946         * misc/mlockall.c: Likewise.
947         * misc/mmap.c: Likewise.
948         * misc/mprotect.c: Likewise.
949         * misc/msync.c: Likewise.
950         * misc/munlock.c: Likewise.
951         * misc/munlockall.c: Likewise.
952         * misc/munmap.c: Likewise.
953         * misc/preadv.c: Likewise.
954         * misc/preadv64.c: Likewise.
955         * misc/ptrace.c: Likewise.
956         * misc/pwritev.c: Likewise.
957         * misc/pwritev64.c: Likewise.
958         * misc/readv.c: Likewise.
959         * misc/reboot.c: Likewise.
960         * misc/remap_file_pages.c: Likewise.
961         * misc/removexattr.c: Likewise.
962         * misc/revoke.c: Likewise.
963         * misc/select.c: Likewise.
964         * misc/setdomain.c: Likewise.
965         * misc/setegid.c: Likewise.
966         * misc/seteuid.c: Likewise.
967         * misc/sethostid.c: Likewise.
968         * misc/sethostname.c: Likewise.
969         * misc/setregid.c: Likewise.
970         * misc/setreuid.c: Likewise.
971         * misc/setxattr.c: Likewise.
972         * misc/sstk.c: Likewise.
973         * misc/stty.c: Likewise.
974         * misc/swapoff.c: Likewise.
975         * misc/swapon.c: Likewise.
976         * misc/sync.c: Likewise.
977         * misc/syncfs.c: Likewise.
978         * misc/syscall.c: Likewise.
979         * misc/truncate.c: Likewise.
980         * misc/ualarm.c: Likewise.
981         * misc/usleep.c: Likewise.
982         * misc/ustat.c: Likewise.
983         * misc/utimes.c: Likewise.
984         * misc/vhangup.c: Likewise.
985         * misc/writev.c: Likewise.
986         * posix/_exit.c: Likewise.
987         * posix/alarm.c: Likewise.
988         * posix/execve.c: Likewise.
989         * posix/fexecve.c: Likewise.
990         * posix/fork.c: Likewise.
991         * posix/fpathconf.c: Likewise.
992         * posix/getaddrinfo.c: Likewise.
993         * posix/getegid.c: Likewise.
994         * posix/geteuid.c: Likewise.
995         * posix/getgid.c: Likewise.
996         * posix/getgroups.c: Likewise.
997         * posix/getlogin.c: Likewise.
998         * posix/getlogin_r.c: Likewise.
999         * posix/getpgid.c: Likewise.
1000         * posix/getpid.c: Likewise.
1001         * posix/getppid.c: Likewise.
1002         * posix/getresgid.c: Likewise.
1003         * posix/getresuid.c: Likewise.
1004         * posix/getsid.c: Likewise.
1005         * posix/getuid.c: Likewise.
1006         * posix/glob64.c: Likewise.
1007         * posix/nanosleep.c: Likewise.
1008         * posix/pathconf.c: Likewise.
1009         * posix/pause.c: Likewise.
1010         * posix/posix_madvise.c: Likewise.
1011         * posix/pread.c: Likewise.
1012         * posix/pread64.c: Likewise.
1013         * posix/pwrite.c: Likewise.
1014         * posix/pwrite64.c: Likewise.
1015         * posix/sched_getaffinity.c: Likewise.
1016         * posix/sched_getp.c: Likewise.
1017         * posix/sched_gets.c: Likewise.
1018         * posix/sched_primax.c: Likewise.
1019         * posix/sched_primin.c: Likewise.
1020         * posix/sched_rr_gi.c: Likewise.
1021         * posix/sched_setaffinity.c: Likewise.
1022         * posix/sched_setp.c: Likewise.
1023         * posix/sched_sets.c: Likewise.
1024         * posix/sched_yield.c: Likewise.
1025         * posix/setgid.c: Likewise.
1026         * posix/setlogin.c: Likewise.
1027         * posix/setpgid.c: Likewise.
1028         * posix/setresgid.c: Likewise.
1029         * posix/setresuid.c: Likewise.
1030         * posix/setsid.c: Likewise.
1031         * posix/setuid.c: Likewise.
1032         * posix/sleep.c: Likewise.
1033         * posix/spawni.c: Likewise.
1034         * posix/sysconf.c: Likewise.
1035         * posix/times.c: Likewise.
1036         * posix/wait.c: Likewise.
1037         * posix/wait3.c: Likewise.
1038         * posix/wait4.c: Likewise.
1039         * posix/waitpid.c: Likewise.
1040         * resolv/gai_sigqueue.c: Likewise.
1041         * resource/getpriority.c: Likewise.
1042         * resource/getrlimit.c: Likewise.
1043         * resource/getrusage.c: Likewise.
1044         * resource/nice.c: Likewise.
1045         * resource/setpriority.c: Likewise.
1046         * resource/setrlimit.c: Likewise.
1047         * resource/ulimit.c: Likewise.
1048         * rt/aio_cancel.c: Likewise.
1049         * rt/aio_fsync.c: Likewise.
1050         * rt/aio_read.c: Likewise.
1051         * rt/aio_sigqueue.c: Likewise.
1052         * rt/aio_suspend.c: Likewise.
1053         * rt/aio_write.c: Likewise.
1054         * rt/clock_getres.c: Likewise.
1055         * rt/clock_gettime.c: Likewise.
1056         * rt/clock_nanosleep.c: Likewise.
1057         * rt/clock_settime.c: Likewise.
1058         * rt/lio_listio.c: Likewise.
1059         * rt/mq_close.c: Likewise.
1060         * rt/mq_getattr.c: Likewise.
1061         * rt/mq_notify.c: Likewise.
1062         * rt/mq_open.c: Likewise.
1063         * rt/mq_receive.c: Likewise.
1064         * rt/mq_send.c: Likewise.
1065         * rt/mq_setattr.c: Likewise.
1066         * rt/mq_timedreceive.c: Likewise.
1067         * rt/mq_timedsend.c: Likewise.
1068         * rt/mq_unlink.c: Likewise.
1069         * rt/shm_open.c: Likewise.
1070         * rt/shm_unlink.c: Likewise.
1071         * rt/timer_create.c: Likewise.
1072         * rt/timer_delete.c: Likewise.
1073         * rt/timer_getoverr.c: Likewise.
1074         * rt/timer_gettime.c: Likewise.
1075         * rt/timer_settime.c: Likewise.
1076         * setjmp/__longjmp.c: Likewise.
1077         * setjmp/setjmp.c: Likewise.
1078         * signal/kill.c: Likewise.
1079         * signal/killpg.c: Likewise.
1080         * signal/raise.c: Likewise.
1081         * signal/sigaction.c: Likewise.
1082         * signal/sigaltstack.c: Likewise.
1083         * signal/sigblock.c: Likewise.
1084         * signal/sigignore.c: Likewise.
1085         * signal/sigintr.c: Likewise.
1086         * signal/signal.c: Likewise.
1087         * signal/sigpause.c: Likewise.
1088         * signal/sigpending.c: Likewise.
1089         * signal/sigqueue.c: Likewise.
1090         * signal/sigreturn.c: Likewise.
1091         * signal/sigset.c: Likewise.
1092         * signal/sigsetmask.c: Likewise.
1093         * signal/sigstack.c: Likewise.
1094         * signal/sigsuspend.c: Likewise.
1095         * signal/sigtimedwait.c: Likewise.
1096         * signal/sigvec.c: Likewise.
1097         * signal/sigwait.c: Likewise.
1098         * signal/sigwaitinfo.c: Likewise.
1099         * signal/sysv_signal.c: Likewise.
1100         * socket/accept.c: Likewise.
1101         * socket/accept4.c: Likewise.
1102         * socket/bind.c: Likewise.
1103         * socket/connect.c: Likewise.
1104         * socket/getpeername.c: Likewise.
1105         * socket/getsockname.c: Likewise.
1106         * socket/getsockopt.c: Likewise.
1107         * socket/isfdtype.c: Likewise.
1108         * socket/listen.c: Likewise.
1109         * socket/recv.c: Likewise.
1110         * socket/recvfrom.c: Likewise.
1111         * socket/recvmsg.c: Likewise.
1112         * socket/send.c: Likewise.
1113         * socket/sendmsg.c: Likewise.
1114         * socket/sendto.c: Likewise.
1115         * socket/setsockopt.c: Likewise.
1116         * socket/shutdown.c: Likewise.
1117         * socket/sockatmark.c: Likewise.
1118         * socket/socket.c: Likewise.
1119         * socket/socketpair.c: Likewise.
1120         * stdio-common/ctermid.c: Likewise.
1121         * stdio-common/cuserid.c: Likewise.
1122         * stdio-common/remove.c: Likewise.
1123         * stdio-common/rename.c: Likewise.
1124         * stdio-common/renameat.c: Likewise.
1125         * stdio-common/tempname.c: Likewise.
1126         * stdlib/getcontext.c: Likewise.
1127         * stdlib/makecontext.c: Likewise.
1128         * stdlib/setcontext.c: Likewise.
1129         * stdlib/swapcontext.c: Likewise.
1130         * stdlib/system.c: Likewise.
1131         * streams/fattach.c: Likewise.
1132         * streams/fdetach.c: Likewise.
1133         * streams/getmsg.c: Likewise.
1134         * streams/getpmsg.c: Likewise.
1135         * streams/putmsg.c: Likewise.
1136         * streams/putpmsg.c: Likewise.
1137         * sysdeps/unix/bsd/getpt.c: Likewise.
1138         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1139         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1140         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1142         Likewise.
1143         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1144         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1145         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1146         * sysvipc/msgctl.c: Likewise.
1147         * sysvipc/msgget.c: Likewise.
1148         * sysvipc/msgrcv.c: Likewise.
1149         * sysvipc/msgsnd.c: Likewise.
1150         * sysvipc/semctl.c: Likewise.
1151         * sysvipc/semget.c: Likewise.
1152         * sysvipc/semop.c: Likewise.
1153         * sysvipc/semtimedop.c: Likewise.
1154         * sysvipc/shmat.c: Likewise.
1155         * sysvipc/shmctl.c: Likewise.
1156         * sysvipc/shmdt.c: Likewise.
1157         * sysvipc/shmget.c: Likewise.
1158         * termios/tcdrain.c: Likewise.
1159         * termios/tcflow.c: Likewise.
1160         * termios/tcflush.c: Likewise.
1161         * termios/tcgetattr.c: Likewise.
1162         * termios/tcgetpgrp.c: Likewise.
1163         * termios/tcsendbrk.c: Likewise.
1164         * termios/tcsetattr.c: Likewise.
1165         * termios/tcsetpgrp.c: Likewise.
1166         * time/adjtime.c: Likewise.
1167         * time/clock.c: Likewise.
1168         * time/getitimer.c: Likewise.
1169         * time/gettimeofday.c: Likewise.
1170         * time/setitimer.c: Likewise.
1171         * time/settimeofday.c: Likewise.
1172         * time/stime.c: Likewise.
1173         * time/time.c: Likewise.
1174
1175 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1176
1177         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1178         /usr/old/bin.
1179
1180         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1181         instead of spaces.
1182         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1183
1184 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1185
1186         [BZ #14796]
1187         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1188         FE_TONEAREST before applying Dekker multiplication and Knuth
1189         addition.  Clear inexact exceptions and check for exact zero
1190         results afterwards.
1191         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1192         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1193         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1194         * math/libm-test.inc (fma_test): Add more tests.
1195         (fma_test_towardzero): Likewise.
1196         (fma_test_downward): Likewise.
1197         (fma_test_upward): Likewise.
1198         * sysdeps/generic/math_private.h (default_libc_fesetround): New
1199         function.
1200         (libc_fesetround): New macro.
1201         (libc_fesetroundf): Likewise.
1202         (libc_fesetroundl): Likewise.
1203         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1204         function.
1205         (libc_fesetround_387): Likewise.
1206         (libc_fesetroundf): New macro.
1207         (libc_fesetround): Likewise.
1208         (libc_fesetroundl): Likewise.
1209         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1210         function.
1211         (libc_fesetroundf): New macro.
1212         (libc_fesetround): Likewise.
1213         (libc_fesetroundl): Likewise.
1214         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1215         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1216         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1217         libm_hidden_ver.
1218         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1219         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1220         libm_hidden_def.
1221         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1222         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1223         libm_hidden_ver.
1224         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1225         libm_hidden_def.
1226
1227         [BZ #3439]
1228         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1229         integer constant usable in #if and use that to give value to enum
1230         constant.
1231         (FE_DIVBYZERO): Likewise.
1232         (FE_UNDERFLOW): Likewise.
1233         (FE_OVERFLOW): Likewise.
1234         (FE_INVALID): Likewise.
1235         (FE_INVALID_SNAN): Likewise.
1236         (FE_INVALID_ISI): Likewise.
1237         (FE_INVALID_IDI): Likewise.
1238         (FE_INVALID_ZDZ): Likewise.
1239         (FE_INVALID_IMZ): Likewise.
1240         (FE_INVALID_COMPARE): Likewise.
1241         (FE_INVALID_SOFTWARE): Likewise.
1242         (FE_INVALID_SQRT): Likewise.
1243         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1244         (FE_TONEAREST): Likewise.
1245         (FE_TOWARDZERO): Likewise.
1246         (FE_UPWARD): Likewise.
1247         (FE_DOWNWARD): Likewise.
1248         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1249         (FE_DIVBYZERO): Likewise.
1250         (FE_OVERFLOW): Likewise.
1251         (FE_UNDERFLOW): Likewise.
1252         (FE_INEXACT): Likewise.
1253         (FE_TONEAREST): Likewise.
1254         (FE_DOWNWARD): Likewise.
1255         (FE_UPWARD): Likewise.
1256         (FE_TOWARDZERO): Likewise.
1257         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1258         (FE_UNDERFLOW): Likewise.
1259         (FE_OVERFLOW): Likewise.
1260         (FE_DIVBYZERO): Likewise.
1261         (FE_INVALID): Likewise.
1262         (FE_TONEAREST): Likewise.
1263         (FE_TOWARDZERO): Likewise.
1264         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1265         (FE_OVERFLOW): Likewise.
1266         (FE_UNDERFLOW): Likewise.
1267         (FE_DIVBYZERO): Likewise.
1268         (FE_INEXACT): Likewise.
1269         (FE_TONEAREST): Likewise.
1270         (FE_TOWARDZERO): Likewise.
1271         (FE_UPWARD): Likewise.
1272         (FE_DOWNWARD): Likewise.
1273         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1274         (FE_DIVBYZERO): Likewise.
1275         (FE_OVERFLOW): Likewise.
1276         (FE_UNDERFLOW): Likewise.
1277         (FE_INEXACT): Likewise.
1278         (FE_TONEAREST): Likewise.
1279         (FE_DOWNWARD): Likewise.
1280         (FE_UPWARD): Likewise.
1281         (FE_TOWARDZERO): Likewise.
1282
1283 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1284
1285         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1286
1287 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1288
1289         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1290         commands.  Quote $PWD.
1291         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1292         -x" by "export".
1293         (remove_newlines): Remove.
1294
1295 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1296
1297         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1298         * stdlib/stdlib.h (atof): Moved to ...
1299         * include/bits/stdlib-float.h: Here.  New file.
1300         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1301         * stdlib/bits/stdlib-float.h: New file.
1302         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1303         -mno-sse -mno-mmx.
1304         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1305         <xmmintrin.h>.
1306
1307 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1308
1309         * conform/conformtest.pl (@headers): Add fenv.h.
1310         * conform/data/fenv.h-data: New file.
1311         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1312         include of <math/fenv.h>.
1313
1314         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1315         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1316         && !UNIX98].  Enables tests for XOPEN2K8.
1317         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1318         POSIX2008]: Likewise.
1319
1320         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1321         (struct rusage): Do not expect type or its members.
1322
1323         [BZ #3439]
1324         * math/math.h (FP_NAN): Define macro to integer constant usable in
1325         #if and use that to give value to enum constant.
1326         (FP_INFINITE): Likewise.
1327         (FP_ZERO): Likewise.
1328         (FP_SUBNORMAL): Likewise.
1329         (FP_NORMAL): Likewise.
1330
1331 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1332
1333         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1334         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1335         arguments.
1336
1337 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1338
1339         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1340         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1341         autoconf-time if not.
1342         * configure.in: Remove AC_PREREQ.
1343
1344 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1345
1346         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1347         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1348         of the internal implementation.
1349
1350 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1351
1352         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1353         except include of <misc/sys/syslog.h>.
1354
1355 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1356
1357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1358         function returns with a NULL context exit with zero.
1359
1360 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1361
1362         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1363
1364 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1365
1366         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1367         (run_program_cmd): This.
1368         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1369         (tst_langinfo): New variable.  Use it.
1370
1371 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1372
1373         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1374         floating point opcodes.
1375
1376 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1377
1378         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1379         variable.
1380
1381         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1382
1383         * sysdeps/mach/hurd/powerpc: Remove directory.
1384         * sysdeps/mach/powerpc: Likewise.
1385
1386 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1387
1388         * scripts/check-local-headers.sh: Ignore c++ headers.
1389
1390 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1391
1392         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1393         __libc_cleanup_region_start argument.
1394
1395 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1396
1397         [BZ #14784]
1398         [BZ #14785]
1399         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1400         x * y using scaling, not as x * y + z.
1401         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1402         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1403         * math/libm-test.inc (fma_test): Add more tests.
1404         (fma_test_towardzero): Likewise.
1405         (fma_test_downward): Likewise.
1406         (fma_test_upward): Likewise.
1407
1408 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1409
1410         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1411
1412 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1413
1414         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1415         New variable.
1416
1417 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1418
1419         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1420
1421 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1422
1423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1424         Fix sort order.
1425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1426         Likewise.
1427
1428 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1429
1430         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1431         Fix the order of the list for glibc 2.17.
1432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1433         Likewise.
1434
1435 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1436
1437         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1438
1439 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1440
1441         [BZ #14610]
1442         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1443         for low part of x being zero before using __atanl (y).
1444         * math/libm-test.inc (atan2_test): Add another test.
1445
1446         * manual/install.texi (Configuring and compiling): Document
1447         general use of test-wrapper and test-wrapper-env.
1448         * INSTALL: Regenerated.
1449
1450         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1451         (__fma): Do not extract and scale down low bits on after-rounding
1452         systems when result rounded to normal precision would have normal
1453         exponent.
1454         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1455         (__fmal): Do not extract and scale down low bits on after-rounding
1456         systems when result rounded to normal precision would have normal
1457         exponent.
1458         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1459         (__fmal): Do not extract and scale down low bits on after-rounding
1460         systems when result rounded to normal precision would have normal
1461         exponent.
1462         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1463         macro.
1464         (fma_test): Add more tests.
1465         (fma_test_towardzero): Likewise.
1466         (fma_test_downward): Likewise.
1467         (fma_test_upward): Likewise.
1468
1469 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1470
1471         * sysdeps/i386/tininess.h: Renamed to ...
1472         * sysdeps/x86/tininess.h: This.
1473         * sysdeps/x86_64/tininess.h: Removed.
1474
1475 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1476
1477         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1478         input.  Use $(build-program-cmd).
1479         ($(objpfx)tst-array1-static.out): Likewise.
1480         ($(objpfx)tst-array2.out): Likewise.
1481         ($(objpfx)tst-array3.out): Likewise.
1482         ($(objpfx)tst-array4.out): Likewise.
1483         ($(objpfx)tst-array5.out): Likewise.
1484         ($(objpfx)tst-array5-static.out): Likewise.
1485
1486 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1487
1488         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1489         if defined.
1490
1491         * nss/nsswitch.h (nss_interface_function): Provide new
1492         macro for use with NSS functions.
1493         * grp/initgroups.c: Use new macro.
1494         * nss/getXXbyYY.c: Likewise.
1495         * nss/getXXbyYY_r.c: Likewise.
1496         * nss/getXXent.c: Likewise.
1497         * nss/getXXent_r.c: Likewise.
1498         * sysdeps/posix/getaddrinfo.c: Likewise.
1499
1500 2012-10-30  Andreas Jaeger  <aj@suse.de>
1501
1502         * po/ru.po: Update Russion translation from translation project.
1503
1504 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1505
1506         [BZ #14152]
1507         [BZ #14783]
1508         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1509         result and shift together with sticky bit instead of replicating
1510         round-to-nearest rounding.
1511         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1512         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1513         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1514         missing underflow exceptions.
1515         (fma_test_towardzero): Add more tests.
1516         (fma_test_downward): Likewise.
1517         (fma_test_upward): Likewise.
1518
1519         [BZ #14047]
1520         * sysdeps/generic/tininess.h: New file.
1521         * sysdeps/i386/tininess.h: Likewise.
1522         * sysdeps/sh/tininess.h: Likewise.
1523         * sysdeps/x86_64/tininess.h: Likewise.
1524         * stdlib/tst-strtod-underflow.c: Likewise.
1525         * stdlib/tst-tininess.c: Likewise.
1526         * stdlib/strtod_l.c: Include <tininess.h>.
1527         (round_and_return): Do not set errno for exact underflow cases.
1528         Force an underflow exception when setting errno for underflow.
1529         Determine underflow based on rounding to normal precision if
1530         TININESS_AFTER_ROUNDING.
1531         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1532         ERANGE for exact underflow cases.
1533         * stdlib/Makefile (tests): Add tst-tininess and
1534         tst-strtod-underflow.
1535         ($(objpfx)tst-tininess): Use $(link-libm).
1536         ($(objpfx)tst-strtod-underflow): Likewise.
1537
1538 2012-10-30  Andreas Jaeger  <aj@suse.de>
1539
1540         [BZ#14767]
1541         * elf/Makefile (tests): Remove conditional for have-initfini-array
1542         since this is now always required and the variable does not exist
1543         anymore.
1544         (tests-static): Likewise.
1545         (modules-names): Likewise.
1546
1547         * po/eo.po: Add Esperanto translation from translation project.
1548
1549         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1550         merged with constructor/destructor.
1551         (init_array): Likewise.
1552         * elf/tst-array2dep.c (fini_array): Likewise.
1553         (init_array): Likewise.
1554
1555 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1556
1557         * manual/message.texi: Delete @cartouche tags.
1558
1559 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1560
1561         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1562         EOPNOTSUPP.
1563         * sysdeps/mach/hurd/fsync.c: Likewise.
1564
1565         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1566         [_POSIX_REALTIME_SIGNALS]: Change condition to
1567         [_POSIX_REALTIME_SIGNALS > 0].
1568
1569 2012-10-27  Andreas Jaeger  <aj@suse.de>
1570
1571         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1572         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1573         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1574         [__WORDSIZE != 64]: Likewise.
1575
1576 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1577
1578         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1579         *  iconvdata/tst-tables.sh: Likewise.
1580
1581 2012-10-25  David S. Miller  <davem@davemloft.net>
1582
1583         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1584         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1585         of strtoull.
1586
1587         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1588         ifunc-impl-list.c
1589         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1590         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1591         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1592         file.
1593
1594 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1595
1596         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1597         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1598         __getdirentries.
1599
1600 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1601             Jim Blandy  <jimb@codesourcery.com>
1602
1603         * scripts/cross-test-ssh.sh: New file.
1604         * manual/install.texi (Configuring and compiling): Document use of
1605         cross-test-ssh.sh.
1606         * INSTALL: Regenerated.
1607
1608 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1609
1610         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1611         EOPNOTSUPP.
1612
1613 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1614
1615         * Makeconfig (run-program-prefix): Fix comment.
1616
1617 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1618             Jim Blandy  <jimb@codesourcery.com>
1619
1620         * Makeconfig (test-wrapper): New variable,
1621         (test-wrapper-env): Likewise.
1622         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1623         (run-built-tests): Define to yes.
1624         (run-program-prefix): Use $(test-wrapper).
1625         (built-program-cmd): Likewise.
1626         * Rules (make-test-out): Use $(test-wrapper-env) and
1627         $(host-built-program-cmd).
1628         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1629         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1630         tst-pathopt.sh.
1631         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1632         $(test-wrapper-env) to tst-rtld-load-self.sh.
1633         ($(objpfx)order2.out): Use $(test-wrapper).
1634         ($(objpfx)tst-initorder.out): Likewise.
1635         ($(objpfx)tst-initorder2.out): Likewise.
1636         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1637         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1638         (test_wrapper_env): New variable.  Use it to run ld.so.
1639         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1640         Use it to run ld.so.
1641         (test_wrapper_env): Likewise.
1642         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1643         $(test-wrapper) to run-iconv-test.sh.
1644         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1645         (ICONV): Use $test_wrapper.
1646         * posix/Makefile ($(objpfx)globtest.out): Pass
1647         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1648         globtest.sh, not $(run-program-prefix).
1649         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1650         (test_wrapper): Likewise.
1651         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1652         set together with run_via_rtld_prefix.
1653         (run_program_prefix): Define in terms of test_wrapper and
1654         run_via_rtld_prefix.
1655
1656 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1657
1658         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1659         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1660         Targets removed.
1661
1662         [BZ #14743]
1663         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1664         Declare __clock_getres, __clock_gettime, __clock_settime,
1665         __clock_nanosleep, and __clock_getcpuclockid.
1666         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1667         Remove librt_hidden_def (clock_gettime).
1668         * sysdeps/unix/clock_gettime.c: Likewise.
1669         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1670         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1671         * rt/clock_getres.c: Define __clock_getres as an alias.
1672         * sysdeps/posix/clock_getres.c: Likewise.
1673         * rt/clock_settime.c: Define __clock_settime as an alias.
1674         * sysdeps/unix/clock_settime.c: Likewise.
1675         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1676         * sysdeps/unix/clock_nanosleep.c: Likewise.
1677         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1678         * rt/clock-compat.c: New file.
1679         * rt/Makefile (librt-routines): Add clock-compat and move
1680         $(clock-routines) to ...
1681         (routines): ... here, new variable.
1682         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1683         Don't add get_clockfreq here.
1684         * rt/Versions (libc: GLIBC_2.17): New version set.
1685         Add clock_* symbols here.
1686         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1687         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1688         (GLIBC_2.17): Add clock_* symbols.
1689         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1690         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1691         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1693         Likewise.
1694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1695         Likewise.
1696         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1697         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1698         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1699         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1700         * NEWS: Mention the move.
1701
1702         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1703         Use __open, __read, __close rather than their public counterparts.
1704         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1705         (__get_clockfreq_via_cpuinfo): Likewise.
1706         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1707         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1708
1709         * config.h.in (HAVE_IFUNC): New #undef.
1710         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1711         was successful.
1712         * configure: Regenerated.
1713
1714 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1715
1716         * configure.in: Move READELF check to start of file.
1717         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1718         libc_cv_asm_gnu_indirect_function in the process.
1719         * configure: Regenerated.
1720
1721 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1722
1723         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1724         send the output to /dev/null.
1725         (libc_cv_cc_with_libunwind): Likewise.
1726         (libc_cv_as_noexecstack): Likewise.
1727         * configure: Regenerate.
1728
1729 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1730
1731         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1732
1733         * posix/globtest.sh (TMPDIR): Do not set.
1734         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1735         (testout): Likewise.
1736
1737 2012-10-24  Andreas Jaeger  <aj@suse.de>
1738
1739         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1740         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1741         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1742         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1743         posix_fadvise64, posix_fallocate64.
1744
1745         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1746         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1747         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1748         Likewise.
1749         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1750         Likewise.
1751         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1752
1753         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1754         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1755         <bits/fcntl-linux.h>.
1756         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1757
1758         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1759         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1760         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1761         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1762         [__WORDSIZE != 64]: Likewise.
1763
1764 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1765
1766         * Makeconfig (run-built-tests): New variable.
1767         * Rules [$(cross-compiling) = yes]: Change condition to
1768         [$(run-built-tests) = no].
1769         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1770         to [$(run-built-tests) = yes].
1771         * elf/Makefile [$(cross-compiling) = no]: Likewise
1772         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1773         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1774         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1775         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1776         * io/Makefile [$(cross-compiling) = no]: Likewise.
1777         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1778         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1779         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1780         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1781         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1782         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1783         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1784         * string/Makefile [$(cross-compiling) = no]: Likewise.
1785
1786         * posix/Makefile ($(objpfx)globtest.out): Pass
1787         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1788         $(rtld-installed-name).
1789         * posix/globtest.sh (elf_objpfx): Remove variable.
1790         (rtld_installed_name): Likewise.
1791         (library_path): Likewise.
1792         (run_program_prefix): New variable.  Use for running globtest
1793         binary.
1794
1795 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1796             Joseph Myers  <joseph@codesourcery.com>
1797
1798         * Makeconfig (host-built-program-cmd): New variable.
1799         * elf/Makefile (tst-stackguard1-ARGS): Use
1800         $(host-built-program-cmd).
1801         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1802         (tst-spawn-ARGS): Likewise.
1803         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1804
1805 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1806             Jim Blandy  <jimb@codesourcery.com>
1807
1808         * Makeconfig (run-via-rtld-prefix): New variable.
1809         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1810         (built-program-cmd): Likewise.
1811
1812 2012-10-22  Andreas Jaeger  <aj@suse.de>
1813
1814         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1815         __O_RSYNC if it exists, otherwise to O_SYNC.
1816
1817 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1818             Joseph Myers  <joseph@codesourcery.com>
1819
1820         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1821         /dev/null.
1822         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1823         from /dev/null
1824         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1825         /dev/null.
1826
1827 2012-10-22  Andreas Jaeger  <aj@suse.de>
1828
1829         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1830         Define always.
1831         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1832
1833         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1834         bits/fcntl-linux.h.
1835
1836         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1837         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1838
1839         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1840         to __O_LARGEFILE.
1841         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1842         to __O_LARGEFILE.
1843
1844 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1845             Joseph Myers  <joseph@codesourcery.com>
1846
1847         * config.make.in (NM): New variable.
1848
1849 2012-10-21  Andreas Jaeger  <aj@suse.de>
1850
1851         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1852         definitions and declarations that are provided by
1853         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1854
1855 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1856
1857         [BZ #14683]
1858         * elf/Makefile (tests-static): Add tst-leaks1-static.
1859         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1860         ($(objpfx)tst-leaks1-static): New rule.
1861         ($(objpfx)tst-leaks1-static-mem): Likewise.
1862         (tst-leaks1-static-ENV): New macro.
1863         * elf/dl-open.c (dl_open_worker): Check the main application
1864         only if SHARED is defined.
1865         * elf/tst-leaks1-static.c: New file.
1866
1867 2012-10-20  Andreas Jaeger  <aj@suse.de>
1868
1869         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1870         generic values for Linux.
1871         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1872         and declarations that are provided by <bits/fcntl-linux.h> and
1873         include <bits/fcntl-linux.h>.
1874         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1875         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1876
1877 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1878
1879         * io/fcntl.h: Move include of <bits/types.h> to the top and
1880         include it unconditionally.
1881
1882 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1883
1884         * wcsmbs/Makefile (tests-ifunc): New variable.
1885         (tests): Add $(tests-ifunc).
1886         * wcsmbs/test-wcschr-ifunc.c: New file.
1887         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1888         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1889         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1890         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1891         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1892
1893         * string/Makefile (tests-ifunc): New variable.
1894         (tests): Add $(tests-ifunc).
1895         * string/test-memccpy.c (TEST_NAME): New macro.
1896         * string/test-memchr.c (TEST_NAME): Likewise.
1897         * string/test-memcmp.c (TEST_NAME): Likewise.
1898         * string/test-memcpy.c (TEST_NAME): Likewise.
1899         * string/test-memmem.c (TEST_NAME): Likewise.
1900         * string/test-memmove.c (TEST_NAME): Likewise.
1901         * string/test-memset.c (TEST_NAME): Likewise.
1902         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1903         * string/test-stpcpy.c (TEST_NAME): Likewise.
1904         * string/test-stpncpy.c (TEST_NAME): Likewise.
1905         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1906         * string/test-strcasestr.c (TEST_NAME): Likewise.
1907         * string/test-strcat.c (TEST_NAME): Likewise.
1908         * string/test-strchr.c (TEST_NAME): Likewise.
1909         * string/test-strcmp.c(TEST_NAME): Likewise.
1910         * string/test-strcpy.c (TEST_NAME): Likewise.
1911         * string/test-strcspn.c (TEST_NAME): Likewise.
1912         * string/test-strlen.c (TEST_NAME): Likewise.
1913         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1914         * string/test-strncmp.c (TEST_NAME): Likewise.
1915         * string/test-strncpy.c (TEST_NAME): Likewise.
1916         * string/test-strnlen.c (TEST_NAME): Likewise.
1917         * string/test-strpbrk.c (TEST_NAME): Likewise.
1918         * string/test-strrchr.c (TEST_NAME): Likewise.
1919         * string/test-strspn.c (TEST_NAME): Likewise.
1920         * string/test-strstr.c (TEST_NAME): Likewise.
1921         * string/test-bcopy-ifunc.c: New file.
1922         * string/test-bzero-ifunc.c: Likewise.
1923         * string/test-memccpy-ifunc.c: Likewise.
1924         * string/test-memchr-ifunc.c: Likewise.
1925         * string/test-memcmp-ifunc.c: Likewise.
1926         * string/test-memcpy-ifunc.c: Likewise.
1927         * string/test-memmem-ifunc.c: Likewise.
1928         * string/test-memmove-ifunc.c: Likewise.
1929         * string/test-mempcpy-ifunc.c: Likewise.
1930         * string/test-memset-ifunc.c: Likewise.
1931         * string/test-rawmemchr-ifunc.c: Likewise.
1932         * string/test-stpcpy-ifunc.c: Likewise.
1933         * string/test-stpncpy-ifunc.c: Likewise.
1934         * string/test-strcasecmp-ifunc.c: Likewise.
1935         * string/test-strcasestr-ifunc.c: Likewise.
1936         * string/test-strcat-ifunc.c: Likewise.
1937         * string/test-strchr-ifunc.c: Likewise.
1938         * string/test-strchrnul-ifunc.c: Likewise.
1939         * string/test-strcmp-ifunc.c: Likewise.
1940         * string/test-strcpy-ifunc.c: Likewise.
1941         * string/test-strcspn-ifunc.c: Likewise.
1942         * string/test-strlen-ifunc.c: Likewise.
1943         * string/test-strncasecmp-ifunc.c: Likewise.
1944         * string/test-strncat-ifunc.c: Likewise.
1945         * string/test-strncmp-ifunc.c: Likewise.
1946         * string/test-strncpy-ifunc.c: Likewise.
1947         * string/test-strnlen-ifunc.c: Likewise.
1948         * string/test-strpbrk-ifunc.c: Likewise.
1949         * string/test-strrchr-ifunc.c: Likewise.
1950         * string/test-strspn-ifunc.c: Likewise.
1951         * string/test-strstr-ifunc.c: Likewise.
1952
1953         * debug/Makefile (tests-ifunc): New variable.
1954         (tests): Add $(tests-ifunc).
1955         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1956         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1957         * debug/test-stpcpy_chk-ifunc.c: New file.
1958         * debug/test-strcpy_chk-ifunc.c: Likewise.
1959
1960 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1961
1962         [BZ #13601]
1963         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1964         header is not read in.
1965
1966 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1967
1968         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1969         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
1970         directly.  Pass built executable to script as
1971         $(built-program-cmd).
1972         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
1973         $testprogram without using LD_LIBRARY_PATH and $ldso.
1974
1975         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
1976         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
1977         $(rtld-installed-name).
1978         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
1979         (rtld_installed_name): Likewise.
1980         (library_path): Likewise.
1981         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
1982         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
1983         $(run-program-prefix) to tst-tables.sh.
1984         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
1985         it to run tst-table-from and tst-table-to.
1986         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
1987         Pass it to tst-table.sh.
1988         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
1989         $(run-program-prefix) to tst-gettext.sh.
1990         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
1991         tst-translit.sh.
1992         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
1993         tst-gettext2.sh.
1994         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
1995         to run tst-gettext.
1996         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
1997         to run tst-gettext2.
1998         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
1999         to run tst-translit.
2000         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2001         $(run-program-prefix) to tst-mtrace.sh.
2002         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
2003         to run tst-mtrace.
2004         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2005         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2006         $(rtld-installed-name).
2007         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2008         (rtld_installed_name): Likewise.
2009         (run_program_prefix): New variable.  Use it to run wordexp-test.
2010
2011         * Makeconfig (ARCH): Remove all definitions.
2012         (machine): Likewise.
2013         [ARCH]: Remove conditional code.
2014         [!objdir]: Give error.
2015         [!objdir] (objpfx): Remove.
2016         [!objdir] (common-objpfx): Likewise.
2017         [!objdir] (common-objdir): Likewise.
2018         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2019         AC_CONFIG_FILES call.
2020         * configure: Regenerated.
2021
2022         [BZ #13888]
2023         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2024         or TMPDIR.
2025         (testout): Likewise.
2026
2027         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2028         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2029         $(rtld-installed-name).
2030         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2031         (rtld_installed_name): Likwise.
2032         (runit): Remove function.
2033         (run_getconf): New variable,  Use it for running getconf binary.
2034
2035 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2036
2037         [BZ #14716]
2038         * string/test-memmem.c (check_result): New function.
2039         (do_one_test): Use it.
2040         (check1): New function.
2041         (test_main): Use it.
2042
2043 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2044
2045         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2046
2047 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2048
2049         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2050         (_G_LSEEK64): Likewise.
2051         (_G_MMAP64): Likewise.
2052         (_G_FSTAT64): Likewise.
2053         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2054         (_G_LSEEK64): Likewise.
2055         (_G_MMAP64): Likewise.
2056         (_G_FSTAT64): Likewise.
2057         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2058         unconditional.  Call __mmap64 directly.
2059         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2060         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2061         __lseek64 directly.
2062         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2063         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2064         __mmap64 directly.
2065         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2066         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2067         __lseek64 directly.
2068         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2069         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2070         __lseek64 directly.
2071         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2072         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2073         __lseek64 directly.
2074         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2075         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2076         __fxstat64 directly.
2077         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2078         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2079         unconditional.
2080         (freopen64) [!_G_OPEN64]: Remove conditional code.
2081         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2082         unconditional.
2083         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2084         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2085         unconditional.
2086         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2087         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2088         unconditional.
2089         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2090         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2091         unconditional.
2092         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2093         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2094         unconditional.
2095         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2096         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2097         unconditional.
2098         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2099         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2100         unconditional.
2101         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2102
2103 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2104
2105         [BZ #12140]
2106         * manual/memory.texi (Malloc Tunable Parameters): Add note
2107         about free list pointers overwriting some perturb bytes.
2108         Wording suggested by Roland McGrath.
2109
2110 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2111
2112         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2113         (lgamma_test): Likewise.
2114         (tgamma_test): Likewise.
2115
2116 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2117
2118         [BZ #14700]
2119         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2120         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2121
2122 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2123
2124         * NEWS: Mention BZ #14716.
2125         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2126         when removing AVAILABLE1_USES_J macro.
2127
2128 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2129
2130         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2131         (__bswap_64): __uint64_t for unsigned 64-bit int.
2132
2133 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2134
2135         * include/string.h (memmem): Declare libc hidden alias.
2136         * string/memmem.c (memmem): Define libc hidden alias.
2137         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2138         __read, __close instead of open, read, close.
2139
2140 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2141
2142         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2143         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2144         global and hidden.
2145         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2146         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2147         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2148         Likewise.
2149         (__rawmemchr_sse2): Likewise.
2150         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2151         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2152         (__strchr_sse2): Likewise.
2153         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2154         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2155         (__strcasecmp_sse2): Likewise.
2156         (__strncasecmp_sse2): Likewise.
2157         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2158         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2159         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2160         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2161         (__strrchr_sse2): Likewise.
2162         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2163         ifunc-impl-list.c.
2164         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2165         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2166         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2167         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2168         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2169         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2170         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2171         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2172         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2173         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2174         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2175         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2176         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2177         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2178         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2179         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2180         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2181         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2182         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2183         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2184         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2185         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2186         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2187         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2188         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2189         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2190         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2191         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2192         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2193         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2194
2195         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2196         global and hidden.
2197         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2198         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2199         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2200         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2201         Likewise.
2202         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2203         Likewise.
2204         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2205         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2206         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2207         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2208         ifunc-impl-list.c.
2209         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2210         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2211         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2212         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2213         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2214         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2215         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2216         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2217         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2218         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2219         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2220         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2221         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2222         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2223         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2224         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2225         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2226         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2227         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2228         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2229         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2230         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2231         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2232         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2233         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2234         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2235         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2236         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2237         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2238         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2239         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2240         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2241         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2242         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2243         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2244         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2245         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2246         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2247         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2248         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2249         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2250
2251         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2252         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2253         * include/ifunc-impl-list.h: New file.
2254         * misc/ifunc-impl-list.c: Likewise.
2255         * misc/Makefile (routines): Add ifunc-impl-list.
2256         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2257         * string/test-string.h: Include <ifunc-impl-list.h>.
2258         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2259         impl_array): New variables.
2260         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2261         are defined.
2262         (test_init): Call __libc_ifunc_impl_list to initialize
2263         func_list if TEST_IFUNC and TEST_NAME are defined.
2264
2265         * string/Makefile (strop-tests): Add bcopy and bzero.
2266         * string/test-bcopy.c: New file.
2267         * string/test-bzero.c: Likewise.
2268         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2269         defined.
2270         * string/test-memset.c: Support bzero test if TEST_BZERO is
2271         defined.
2272         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2273         __libc_memmove.
2274         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2275         __libc_memset.
2276         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2277         of memset.
2278
2279 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2280
2281         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2282         * configure: Regenerated.
2283
2284         * Makeconfig (+link-static-before-libc): Don't include
2285         $(link-static-libc).
2286
2287         * libio/libio.h (_IO_pos_t): Remove.
2288
2289 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2290
2291         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2292         McGrath.
2293
2294 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2295
2296         * crypt/crypt-entry.c: Include fips-private.h.
2297         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2298         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2299         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2300         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2301
2302 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2303
2304         * crypt/crypt-private.h: Include stdbool.h.
2305         (_ufc_setup_salt_r): Return bool.
2306         * crypt/crypt-entry.c: Include errno.h.
2307         (__crypt_r): Return NULL with EINVAL for bad salt.
2308         * crypt/crypt_util.c (bad_for_salt): New.
2309         (_ufc_setup_salt_r): Check that salt is long enough and within
2310         the specified alphabet.
2311         * crypt/badsalttest.c: New file.
2312         * crypt/Makefile (tests): Add it.
2313         ($(objpfx)badsalttest): New.
2314
2315 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2316
2317         * NEWS: Add entry for BZ #14602.
2318
2319 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2320
2321         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2322         type-generic.
2323         * math/libm-test.inc: Update comment listing what functions and
2324         macros are tested.
2325         (isgreater_test): New function.
2326         (isgreaterequal_test): Likewise.
2327         (isless_test): Likewise.
2328         (islessequal_test): Likewise.
2329         (islessgreater_test): Likewise.
2330         (isunordered_test): Likewise.
2331         (main): Call the new functions.
2332
2333 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2334
2335         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2336         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2337         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2338         * sysdeps/i386/configure: Regenerated.
2339         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2340         * sysdeps/mach/configure: Regenerated.
2341         * sysdeps/mach/hurd/configure: Regenerated.
2342         * sysdeps/powerpc/configure: Regenerated.
2343         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2344         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2345         * sysdeps/s390/s390-32/configure: Regenerated.
2346         * sysdeps/s390/s390-64/configure: Regenerated.
2347         * sysdeps/sh/configure: Regenerated.
2348         * sysdeps/sparc/configure: Regenerated.
2349         * sysdeps/unix/sysv/linux/configure: Regenerated.
2350         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2351         * sysdeps/x86_64/configure: Regenerated.
2352
2353         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2354         defined.  Don't check if MAP is NULL.
2355
2356 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2357
2358         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2359         (_G_stat64): Likewise.
2360         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2361         (_G_stat64): Likewise.
2362         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2363         instead of struct _G_stat64.
2364         * libio/fileops.c (mmap_remap_check): Likewise.
2365         (decide_maybe_mmap): Likewise.
2366         (_IO_new_file_seekoff): Likewise.
2367         (_IO_file_stat): Likewise.
2368         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2369         _G_off64_t.
2370         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2371         instead of struct _G_stat64.
2372         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2373
2374 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2375
2376         [BZ #14602]
2377         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2378         Replace with ...
2379         (CHECK_EOL): New macro.
2380         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2381         CHECK_EOL.
2382         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2383         Replace with CHECK_EOL.
2384         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2385         Replace with CHECK_EOL.
2386
2387 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2388
2389         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2390         type-generic.
2391         * math/libm-test.inc: Update comment listing what functions and
2392         macros are tested.
2393         (finite_test): New function.
2394         (isinf_test): Likewise.
2395         (isnan_test): Likewise.
2396         (fpclassify_test): Test subnormal input.
2397         (isfinite_test): Likewise.
2398         (isnormal_test): Likewise.
2399         (main): Call the new functions.
2400
2401 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2402
2403         [BZ #14660]
2404         * Makerules (%.dynsym): Force C locale when running
2405         $(OBJDUMP) --dynamic-syms.
2406
2407 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2408
2409         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2410         <stdint.h>.
2411
2412 2012-10-06  David S. Miller  <davem@davemloft.net>
2413
2414         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2415         upper 32-bits of the length value in %o2 since we use branch-on-register
2416         tests which consider the entire 64-bit register.
2417
2418 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2419
2420         * string/test-strstr.c (check2): Add a test for page boundary.
2421
2422 2012-10-05  David S. Miller  <davem@davemloft.net>
2423
2424         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2425         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2426         file.
2427         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2428         sysdep_routines.
2429         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2430         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2431         and bzero when HWCAP_SPARC_CRYPTO is present.
2432
2433 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2434
2435         [BZ #14602]
2436         * string/test-strstr.c (check2): New function.
2437         (test_main): Call check2.
2438
2439         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2440         and bug-strchr1.
2441         * string/bug-strcasestr1.c (do_test): Moved to ...
2442         * string/test-strcasestr.c (check1): Here.  New function.
2443         (do_one_test): Break out result checking code into ...
2444         (check_result): This.  New function.
2445         (do_one_test): Call check_result.
2446         (test_main): Call check1.
2447         * string/bug-strchr1.c (do_test): Moved to ...
2448         * string/test-strchr.c (check1): Here.  New function.
2449         (do_one_test): Break out result checking code into ...
2450         (check_result): This.  New function.
2451         (do_one_test): Call check_result.
2452         (test_main): Call check1.
2453         * string/bug-strstr1.c (main): Moved to ...
2454         * string/test-strchr.c (check1): Here.  New function.
2455         (do_one_test): Break out result checking code into ...
2456         (check_result): This.  New function.
2457         (do_one_test): Call check_result.
2458         (test_main): Call check1.
2459         * string/bug-strcasestr1.c: Removed.
2460         * string/bug-strchr1.c: Likewise.
2461         * string/bug-strstr1.c: Likewise.
2462
2463         * elf/Makefile (dl-routines): Add hwcaps.
2464         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2465         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2466         (_dl_important_hwcaps): Moved to ...
2467         * elf/dl-hwcaps.c: Here.  New file.
2468         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2469
2470         [BZ #14557]
2471         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2472         if IS_IN_rtld isn't defined.
2473
2474         * elf/dl-support.c (_dl_sysinfo_map): New.
2475         Include "get-dynamic-info.h" and "setup-vdso.h".
2476         (_dl_non_dynamic_init): Call setup_vdso.
2477         * elf/dynamic-link.h: Don't include <assert.h>.
2478         (elf_get_dynamic_info): Moved to ...
2479         * elf/get-dynamic-info.h: Here.  New file.
2480         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2481         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2482         * elf/setup-vdso.h: Here.  New file.
2483         * elf/rtld.c: Include "setup-vdso.h".
2484         (dl_main): Call setup_vdso.
2485
2486 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2487
2488         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2489         creal in comment listing functions tested.  List finite, isinf,
2490         isnan, isless, islessequal, isgreater, isgreaterequal,
2491         islessgreater, isunordered, lgamma_r and pow10 as functions and
2492         macros not tested.  Mention which functions not tested are aliases
2493         for other functions.  Fix typo.  Note that signs of NaNs are not
2494         tested.
2495
2496         * scripts/config.guess: Update from config.git.
2497         * scripts/config.sub: Likewise.
2498
2499 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2500
2501         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2502         * misc/madvise.c (madvise): Renamed to __madvise.
2503         Make madvise a weak alias.
2504         * include/sys/mman.h: Declare __madvise.
2505         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2506         * sysdeps/unix/syscalls.list
2507         (madvise): Make __madvise the strong name, and madvise a weak alias.
2508         * sysdeps/unix/sysv/linux/syscalls.list
2509         (madvise, mmap): Remove redundant entries.
2510         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2511         * malloc/malloc.c (mtrim): Likewise.
2512         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2513
2514 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2515
2516         * sysdeps/mach/hurd/dl-cache.c: File removed.
2517         * config.h.in (USE_LDCONFIG): New #undef.
2518         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2519         * configure: Regenerated.
2520         * elf/Makefile (dl-routines): Add dl-cache only under
2521         [$(use-ldconfig) = yes].
2522         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2523         cache on [USE_LDCONFIG].
2524         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2525         [USE_LDCONFIG].
2526         * elf/rtld.c (dl_main): Likewise.
2527
2528 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2529
2530         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2531         _SC_LEVEL4_CACHE_LINESIZE.
2532
2533 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2534
2535         * sysdeps/unix/bsd/confstr.h: File removed.
2536
2537 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2538
2539         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2540         sys/sdt-config.h.
2541
2542 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2543
2544         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2545         Make 'mapoff' field ElfW(Off) rather than off_t.
2546
2547 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2548
2549         * nscd/Makefile: Remove nscd-cflags and all its users.
2550         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2551         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2552
2553         [BZ #10631]
2554         * malloc.c (malloc_printerr): Clarify error message.
2555
2556 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2557
2558         [BZ #14648]
2559         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2560         Set bit_FMA_Usable if FMA is supported.
2561         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2562         macro.
2563         (bit_FMA4_Usable): Updated.
2564         (index_FMA_Usable): New macro.
2565         (CPUID_FMA): Likewise
2566         (HAS_FMA): Defined with bit_FMA_Usable.
2567
2568 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2569
2570         * bits/types.h (__swblk_t): Type removed.
2571         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2572         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2573         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2574         (__SWBLK_T_TYPE): Likewise.
2575         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2576         (__SWBLK_T_TYPE): Likewise.
2577         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2578         (__SWBLK_T_TYPE): Likewise.
2579         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2580         (__SWBLK_T_TYPE): Likewise.
2581
2582 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2583             Honza Horak <hhorak@redhat.com>
2584
2585         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2586         (xdr_mapname): Use YPMAXMAP as maxsize.
2587         (xdr_peername): Use YPMAXPEER as maxsize.
2588         (xdr_keydat): Use YPAXRECORD as maxsize.
2589         (xdr_valdat): Use YPMAXRECORD as maxsize.
2590
2591 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2592
2593         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2594
2595         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2596         * csu/init-first.c: ... here.
2597         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2598         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2599         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2600         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2601         * sysdeps/i386/init-first.c: File removed.
2602         * sysdeps/sh/init-first.c: File removed.
2603
2604 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2605
2606         [BZ #14645]
2607         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2608         if x * y might underflow to zero and z is zero.
2609         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2610         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2611         * math/libm-test.inc (min_subnorm_value): New variable.
2612         (fma_test): Add more tests.
2613         (fma_test_towardzero): Likewise.
2614         (fma_test_downward): Likewise
2615         (fma_test_upward): Likewise.
2616         (initialize): Set min_subnorm_value.
2617
2618 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2619
2620         [BZ #14638]
2621         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2622         0 + 0.
2623         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2624         mode for addition resulting in exact zero.
2625         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2626         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2627         exact 0 + 0.
2628         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2629         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2630         * math/libm-test.inc (fma_test): Add more tests.
2631         (fma_test_towardzero): New function.
2632         (fma_test_downward): Likewise.
2633         (fma_test_upward): Likewise.
2634         (main): Call the new functions.
2635
2636 2012-09-28  David S. Miller  <davem@davemloft.net>
2637
2638         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2639
2640 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2641
2642         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2643         instead of SIGALRM.
2644
2645         * sysdeps/gnu/_G_config.h: Moved to ...
2646         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2647         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2648         * sysdeps/generic/_G_config.h: ... here.
2649
2650         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2651
2652         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2653
2654         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2655         Conditionalize target on [libnss_test1.so-version].
2656
2657         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2658
2659         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2660         (elfobjdir): Move out of conditionals.
2661
2662         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2663         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2664         (__nss_lookup_function): Conditionalize label remove_from_tree on
2665         [!DO_STATIC_NSS || SHARED], matching its only use.
2666
2667 2012-09-28  David S. Miller  <davem@davemloft.net>
2668
2669         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2670         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2671         file.
2672         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2673         sysdep_routines.
2674         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2675         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2676         when HWCAP_SPARC_CRYPTO is present.
2677
2678 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2679
2680         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2681
2682 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2683
2684         [BZ #6530]
2685         * stdio-common/vfprintf.c (process_string_arg): Revert
2686         2000-07-22 change.
2687
2688 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2689
2690         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2691         for testcase.
2692         * stdio-common/tst-sprintf.c: Include <locale.h>
2693         (main): Test sprintf's handling of incomplete multibyte
2694         characters.
2695
2696 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2697
2698         * elf/dl-runtime.c (VERSYMIDX): Removed.
2699         * elf/dl-version.c (VERSYMIDX): Likewise.
2700         * elf/do-rel.h (VERSYMIDX): Likewise.
2701         (VALIDX): Likewise.
2702         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2703         * elf/rtld.c (VALIDX): Likewise.
2704         (ADDRIDX): Likewise.
2705         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2706         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2707         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2708         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2709         (VALIDX): Likewise.
2710         (ADDRIDX): Likewise.
2711
2712 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2713
2714         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2715
2716 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2717
2718         [BZ #11438]
2719         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2720         to global scope.
2721         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2722         addresses are in the same scope as 192.0.2/24.
2723         * posix/gai.conf: Document new scope table defaults.
2724
2725 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2726
2727         [BZ #5298]
2728         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2729         for ftell.  Compute offsets from write pointers instead.
2730         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2731
2732 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2733
2734         [BZ #14543]
2735         * libio/Makefile (tests): New test case tst-fseek.
2736         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2737         combination works in wide mode.
2738         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2739         state when the external buffer state changes.
2740
2741 2012-09-27  David S. Miller  <davem@davemloft.net>
2742
2743         [BZ #14376]
2744         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2745         pass reloc->r_addend in as the 'high' argument to
2746         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2747
2748         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2749
2750 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2751
2752         * rt/tst-aio2.c: Include <pthread.h>.
2753         * rt/tst-aio3.c: Likewise.
2754
2755 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2756
2757         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2758
2759 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2760
2761         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2762         contents on [SHARED].
2763
2764 2012-09-26  Marek Polacek  <polacek@redhat.com>
2765
2766         [BZ #14530]
2767         [BZ #13741]
2768         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2769         for C++ and GCC <4.3 as well as for non GCC compilers.
2770
2771 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2772
2773         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2774
2775 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2776
2777         * Makefile.in (all, install): Declare with .PHONY.
2778         Reported by Michael Hope <michael.hope@linaro.org>.
2779
2780 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2781
2782         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2783         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2784         system header.
2785         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2786         Likewise.
2787         (sydep_routines): Add the new and the internal functions.
2788         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2789         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2791         (GLIBC_2.17): Add the new function.
2792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2793         (GLIBC_2.17): Likewise.
2794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2795         (GLIBC_2.17): Likewise.
2796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2797         (GLIBC_2.17): Likewise.
2798         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2799
2800 2012-09-25  Alan Modra  <amodra@gmail.com>
2801
2802         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2803         Add release barrier before setting once_control to say
2804         initialisation is done.  Add hints on lwarx.  Use macro in
2805         place of isync.
2806         (clear_once_control): Add release barrier.
2807
2808 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2809
2810         [BZ #13629]
2811         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2812         specially.
2813         * math/s_clog10.c (__clog10): Likewise.
2814         * math/s_clog10f.c (__clog10f): Likewise.
2815         * math/s_clog10l.c (__clog10l): Likewise.
2816         * math/s_clogf.c (__clogf): Likewise.
2817         * math/s_clogl.c (__clogl): Likewise.
2818         * math/Makefile (libm-calls): Add x2y2m1.
2819         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2820         (__x2y2m1): Likewise.
2821         (__x2y2m1l): Likewise.
2822         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2823         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2824         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2825         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2826         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2827         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2828         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2829         * sysdeps/i386/fpu/libm-test-ulps: Update.
2830         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2831
2832         [BZ #14621]
2833         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2834         int as type of variable DEPTH.
2835         (glob): Use size_t instead of int as type of variables NEWCOUNT
2836         and OLD_PATHC.
2837
2838 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2839
2840         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2841         Add s_sincosf-sse2.
2842         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2843         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2844         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2845         macros for using routine as __sincosf_ia32.
2846         Use macro for function declaration and weak_alias.
2847         * sysdeps/i386/fpu/libm-test-ulps: Update.
2848
2849         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2850         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2851
2852         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2853         subnormal argument.
2854         * math/s_cexpf.c (__cexpf): Likewise.
2855         * math/s_csinf.c (__csinf): Likewise.
2856         * math/s_csinhf.c (__csinhf): Likewise.
2857         * math/s_ctanf.c (__ctanf): Likewise.
2858         * math/s_ctanhf.c (__ctanhf): Likewise.
2859         * math/s_ccosh.c (__ccoshf): Likewise.
2860         * math/s_cexp.c (__cexpl): Likewise.
2861         * math/s_csin.c (__csin): Likewise.
2862         * math/s_csinh.c (__csinh): Likewise.
2863         * math/s_ctan.c (__ctan): Likewise.
2864         * math/s_ctanh.c (ctanh): Likewise.
2865         * math/s_ccoshl.c (__ccoshl): Likewise.
2866         * math/s_cexpl.c (__cexpl): Likewise.
2867         * math/s_csinl.c (__csinl): Likewise.
2868         * math/s_csinhl.c (__csinhl): Likewise.
2869         * math/s_ctanl.c (__ctanl): Likewise.
2870         * math/s_ctanhl.c (__ctanhl): Likewise.
2871
2872 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2873
2874         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2875         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2876         (_IO_off_t): Define to __off_t, not _G_off_t.
2877         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2878         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2879         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2880         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2881         type of __dummy and __dummy2 fields.
2882         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2883         (_G_ssize_t): Likewise.
2884         (_G_off_t): Likewise.
2885         (_G_pid_t): Likewise.
2886         (_G_uid_t): Likewise.
2887         (_G_wchar_t): Likewise.
2888         (_G_wint_t): Likewise.
2889         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2890         (_G_ssize_t): Likewise.
2891         (_G_off_t): Likewise.
2892         (_G_pid_t): Likewise.
2893         (_G_uid_t): Likewise.
2894         (_G_wchar_t): Likewise.
2895         (_G_wint_t): Likewise.
2896         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2897         (_G_ssize_t): Likewise.
2898         (_G_off_t): Likewise.
2899         (_G_pid_t): Likewise.
2900         (_G_uid_t): Likewise.
2901         (_G_wchar_t): Likewise.
2902         (_G_wint_t): Likewise.
2903
2904 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2905
2906         * malloc/arena.c: Include malloc-sysdep.h.
2907         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2908         is sufficient to shrink the heap or an unmap is needed.
2909         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2910         new function check_may_shrink_heap.
2911         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2912         new function check_may_shrink_heap.
2913
2914 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2915
2916         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2917         comments.
2918
2919 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2920
2921         * catgets/test-gencat.sh: Add "set -e".
2922         * elf/tst-pathopt.sh: Likewise.
2923         * grp/tst_fgetgrent.sh: Likewise.
2924         * iconvdata/run-iconv-test.sh: Likewise.
2925         * intl/tst-gettext.sh: Likewise.
2926         * intl/tst-gettext2.sh: Likewise.
2927         * intl/tst-gettext4.sh: Likewise.
2928         * intl/tst-gettext6.sh: Likewise.
2929         * intl/tst-translit.sh: Likewise.
2930         * io/ftwtest-sh: Likewise.
2931         * libio/test-freopen.sh: Likewise.
2932         * malloc/tst-mtrace.sh: Likewise.
2933         * posix/globtest.sh: Likewise.
2934         * posix/tst-getconf.sh: Likewise.
2935         * posix/wordexp-tst.sh: Likewise.
2936         * stdio-common/tst-printf.sh: Likewise.
2937         * stdio-common/tst-unbputc.sh: Likewise.
2938         * stdlib/tst-fmtmsg.sh: Likewise.
2939         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2940         * catgets/Makefile: Do not specify -e option when running
2941         testsuite shell scripts.
2942         * elf/Makefile: Likewise.
2943         * grp/Makefile: Likewise.
2944         * iconvdata/Makefile: Likewise.
2945         * intl/Makefile: Likewise.
2946         * io/Makefile: Likewise.
2947         * libio/Makefile: Likewise.
2948         * malloc/Makefile: Likewise.
2949         * posix/Makefile: Likewise.
2950         * stdio-common/Makefile: Likewise.
2951         * stdlib/Makefile: Likewise.
2952         * sysdeps/x86_64/Makefile: Likewise.
2953
2954         * io/ftwtest-sh: Add copyright header.
2955         * posix/globtest.sh: Likewise.
2956         * posix/tst-getconf.sh: Likewise.
2957         * posix/wordexp-tst.sh: Likewise.
2958         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2959
2960 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2961
2962         [BZ #13679]
2963         * Makeconfig (+link): Defined as $(+link-static) if
2964         $(build-shared) isn't yes.
2965         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2966         isn't yes.
2967         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2968
2969         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
2970
2971         [BZ #14562]
2972         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
2973         new chunk size with MALLOC_ALIGN_MASK.
2974
2975 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
2976
2977         [BZ #5044]
2978         * stdio-common/printf_fphex.c: Include <stdbool.h> and
2979         <rounding-mode.h>.
2980         (__printf_fphex): Determine rounding using get_rounding_mode and
2981         round_away.
2982         * stdio-common/tst-printf-round.c (struct hex_test): New
2983         structure.
2984         (hex_tests): New variable.
2985         (test_hex_in_one_mode): New function.
2986         (do_test): Also run tests for hex float output.
2987
2988 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
2989
2990         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2991         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2992         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
2993         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
2994         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
2995         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
2996         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2997         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
2998
2999 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
3000
3001         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3002         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3003         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3004         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3005
3006 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
3007
3008         [BZ #14579]
3009         * elf/rtld.c (dl_main): Limit the check for self loading to normal
3010         mode only.
3011         * elf/tst-rtld-load-self.sh: New test.
3012         * elf/Makefile: Run it.
3013
3014 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3015
3016         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3017         (tst-writev-ENV): Remove.
3018         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3019
3020 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3021
3022         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3023
3024 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3025
3026         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3027         unconditional.
3028         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3029         Likewise.
3030         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3031         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3032         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3033         Likewise.
3034
3035 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3036
3037         [BZ #14587]
3038         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3039         * config.make.in (have-cpp-asm-debuginfo): Removed.
3040         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3041         * configure: Regenerated.
3042
3043 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3044
3045         [BZ #5044]
3046         * stdio-common/printf_fp.c: Include <stdbool.h> and
3047         <rounding-mode.h>.
3048         (___printf_fp): Determine rounding using get_rounding_mode and
3049         round_away.
3050         * stdio-common/tst-printf-round.c: New file.
3051         * stdio-common/Makefile (tests): Add tst-printf-round.
3052         (link-libm): New variable.
3053         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3054
3055 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3056
3057         [BZ #14576]
3058         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3059         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3060         Likewise.
3061         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3062         Likewise.
3063
3064 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3065
3066         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3067         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3068         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3069         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3070
3071 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3072
3073         [BZ #14518]
3074         * include/rounding-mode.h: New file.
3075         * sysdeps/generic/get-rounding-mode.h: Likewise.
3076         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3077         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3078         (MAX_VALUE): New macro.
3079         (MIN_VALUE): Likewise.
3080         (overflow_value): New function.
3081         (underflow_value): Likewise.
3082         (round_and_return): Use overflow_value and underflow_value to
3083         determine return values in overflow and underflow cases.  Use
3084         round_away to determine rounding depending on rounding mode.
3085         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3086         determine return values in overflow and underflow cases.
3087         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3088         (struct test_results): New structure.
3089         (struct test): Use struct test_results to store expected results
3090         for all rounding modes.
3091         (TEST): Include expected results for all rounding modes.
3092         (test_in_one_mode): New function.
3093         (do_test): Use test_in_one_mode to compute and check results.
3094         Check results for all rounding modes.
3095         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3096         $(link-libm).
3097
3098 2012-12-09  Allan McRae  <allan@archlinux.org>
3099
3100         * sysdeps/i386/fpu/libm-test-ulps: Update
3101
3102 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3103
3104         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3105         (_G_int32_t): Likewise.
3106         (_G_uint16_t): Likewise.
3107         (_G_uint32_t): Likewise.
3108         (_G_HAVE_BOOL): Likewise.
3109         (_G_HAVE_ATEXIT): Likewise.
3110         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3111         (_G_HAVE_IO_FILE_OPEN): Likewise.
3112         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3113         (_G_int32_t): Likewise.
3114         (_G_uint16_t): Likewise.
3115         (_G_uint32_t): Likewise.
3116         (_G_HAVE_BOOL): Likewise.
3117         (_G_HAVE_ATEXIT): Likewise.
3118         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3119         (_G_HAVE_IO_FILE_OPEN): Likewise.
3120         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3121         (_G_int32_t): Likewise.
3122         (_G_uint16_t): Likewise.
3123         (_G_uint32_t): Likewise.
3124         (_G_HAVE_BOOL): Likewise.
3125         (_G_HAVE_ATEXIT): Likewise.
3126         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3127         (_G_HAVE_IO_FILE_OPEN): Likewise.
3128
3129 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3130
3131         * csu/libc-tls.c: Update copyright years.
3132
3133 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3134
3135         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3136         [!_G_USING_THUNKS]: Remove conditional code.
3137         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3138         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3139
3140         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3141         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3142         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3143         (_G_VTABLE_LABEL_PREFIX): Likewise.
3144         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3145         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3146         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3147         (_G_VTABLE_LABEL_PREFIX): Likewise.
3148         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3149         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3150         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3151         (_G_VTABLE_LABEL_PREFIX): Likewise.
3152         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3153
3154 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3155
3156         * libio/Makefile: Include ../Makeconfig before tests.
3157         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3158         only if $(build-shared) is yes.
3159
3160         * iconv/gconv_db.c: Update copyright years.
3161
3162 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3163
3164         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3165         unwind info if defined PIC. Fix special cases description.
3166         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3167
3168         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3169         DP_HI_MASK entry.
3170         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3171
3172 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3173
3174         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3175
3176         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3177         is NULL.
3178
3179         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3180         (LDLIBS-tst-chk4): This.
3181         (LDFLAGS-tst-chk5): Renamed to ...
3182         (LDLIBS-tst-chk5): This.
3183         (LDFLAGS-tst-chk6): Renamed to ...
3184         (LDLIBS-tst-chk6): This.
3185         (LDFLAGS-tst-lfschk4): Renamed to ...
3186         (LDLIBS-tst-lfschk4): This.
3187         (LDFLAGS-tst-lfschk5): Renamed to ...
3188         (LDLIBS-tst-lfschk5): This.
3189         (LDFLAGS-tst-lfschk6): Renamed to ...
3190         (LDLIBS-tst-lfschk6): This.
3191
3192         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3193         on $(common-objpfx)soversions.mk.
3194
3195 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
3196
3197         [BZ #10014]
3198         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3199         example host name.
3200
3201 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3202
3203         * malloc/arena.c (arena_get_retry): New function that gets
3204         another arena for the caller to try its request on.
3205         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3206         current arena cannot fulfill the request.
3207         (__libc_memalign): Likewise.
3208         (__libc_memalign): Likewise.
3209         (__libc_pvalloc): Likewise.
3210         (__libc_calloc): Likewise.
3211
3212 2012-09-05  John Tobey  <john.tobey@gmail.com>
3213
3214         [BZ #13542]
3215         * manual/arith.texi (Operations on Complex): Fix description
3216         of carg branch cut.
3217
3218 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3219
3220         [BZ #10014]
3221         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3222         host name.
3223
3224         [BZ #10038]
3225         * manual/memory.texi (Memory): Make order of menu items match
3226         order of sections.
3227
3228 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3229
3230         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3231         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3232         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3233
3234 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3235
3236         * csu/libc-tls.c (static_dtv): Renamed to ...
3237         (_dl_static_dtv): This.  Make it global.
3238         (_dl_initial_dtv): Removed.
3239         (__libc_setup_tls): Updated.
3240         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3241         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3242         DL_INITIAL_DTV.
3243
3244 2012-09-06  Petr Machata  <pmachata@redhat.com>
3245
3246         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3247         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3248         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3249         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3250
3251 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3252
3253         [BZ #14545]
3254         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3255         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3256         freeing dtv[-1].
3257
3258 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3259
3260         [BZ #14544]
3261         * Makeconfig (link-static-before-libc): Replace $(+prector)
3262         with $(+prectorT).
3263         (link-static-after-libc): Replace $(+postctor) with
3264         $(+postctorT).
3265         (link-bounded): Replace $(+prector)/$(+postctor) with
3266         $(+prectorT)/$(+postctorT).
3267         (+prectorT): New macro.
3268         (+postctorT): Likewise.
3269
3270 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3271
3272         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3273         (round_str): Handle values above the maximum for IBM long double
3274         as inexact.
3275         * stdlib/tst-strtod-round.c (tests): Regenerated.
3276
3277 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3278
3279         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3280         assembler flag.
3281         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3282         zarch_nohighgprs around the zarch optimized routines.
3283         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3284         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3285         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3286         for zarch.
3287
3288 2012-09-05  David S. Miller  <davem@davemloft.net>
3289
3290         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3291
3292         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3293         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3294         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3295         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3296         entries.
3297
3298 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3299
3300         * malloc/arena.c: Fold copyright years.
3301         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3302
3303 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3304
3305         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3306
3307 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3308
3309         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3310
3311 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3312
3313         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3314         change internal state upon failure.
3315
3316 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3317
3318         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3319         * malloc/memusage.c (mmap): Likewise.
3320         (mmap64, mremap): Likewise.  Adjust name in comment.
3321
3322 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3323
3324         * libio/fileops.c: Fix typos in comments.
3325         * libio/oldfileops.c: Likewise.
3326         * libio/wfileops.c: Likewise.
3327
3328 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3329
3330         [BZ #1349]
3331         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3332         (tst-malloc-usable-ENV): Set environment for test case.
3333         * malloc/hooks.c (malloc_check_get_size): New function to get
3334         requested size.
3335         * malloc/malloc.c (musable): Use malloc_check_get_size.
3336         * malloc/tst-malloc-usable.c: New test case.
3337
3338 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3339
3340         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3341
3342 2012-09-05  Allan McRae  <allan@archlinux.org>
3343
3344         [BZ #13966]
3345         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3346         determine header location.
3347         * configure: Regenerated.
3348
3349 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3350
3351         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3352         float format.
3353         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3354         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3355         format.
3356         (test): Regenerate.
3357
3358 2012-09-04  David S. Miller  <davem@davemloft.net>
3359
3360         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3361         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3362         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3363
3364 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3365
3366         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3367         failures.
3368
3369         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3370
3371 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3372
3373         [BZ #9914]
3374         * libio/iogetdelim.c: Include <limits.h>.
3375         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3376         + len + 1 would overflow.
3377
3378 2012-09-03  Andreas Jaeger  <aj@suse.de>
3379
3380         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3381         * sysdeps/i386/fpu/libm-test-ulps: Update.
3382
3383 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3384
3385         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3386         Add s_sinf-sse2, s_conf-sse2.
3387
3388         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3389         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3390         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3391         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3392
3393         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3394         for using routine as __sinf_ia32.
3395         Use macro for function declaration and weak_alias.
3396         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3397         for using routine as __cosf_ia32.
3398         Use macro for function declaration and weak_alias.
3399
3400         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3401         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3402
3403         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3404         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3405         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3406
3407         * math/libm-test.inc (cos_test): Add more test cases.
3408         (sin_test): Likewise.
3409         (sincos_test): Likewise.
3410
3411 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3412
3413         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3414         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3415         hidden.
3416         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3417
3418 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3419
3420         [BZ #14538]
3421         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3422         first element of the GOT.
3423         (elf_machine_load_address): Return the difference between
3424         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3425
3426 2012-09-01  Allan McRae  <allan@archlinux.org>
3427
3428         [BZ #13412]
3429         * configure.in (AWK): Require gawk version 3.0 or later.
3430         * configure: Regenerated.
3431
3432 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3433
3434         * sysdeps/unix/sysv/linux/kernel-features.h
3435         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3436         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3437         [__NR_clock_getres]: Make code unconditional.
3438         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3439         (clock_getcpuclockid): Remove code left unreachable by removal of
3440         conditionals.
3441         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3442         code unconditional.
3443         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3444         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3445         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3446         Make code unconditional.
3447         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3448         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3449         * sysdeps/unix/sysv/linux/clock_settime.c
3450         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3451         conditional code.
3452         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3453         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3454
3455 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3456
3457         [BZ #14476]
3458         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3459         scripts/test-installation.pl.
3460
3461         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3462         and $ld_so_version if it is set.
3463
3464 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3465
3466         [BZ #14516]
3467         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3468         failure if reading from procfs failed.
3469         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3470
3471 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3472
3473         * sysdeps/unix/sysv/linux/kernel-features.h
3474         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3475         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3476         Remove conditional code.
3477         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3478         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3479         Remove conditional code.
3480         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3481         * sysdeps/unix/sysv/linux/i386/fxstat.c
3482         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3483         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3484         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3485         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3486         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3487         * sysdeps/unix/sysv/linux/i386/lxstat.c
3488         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3489         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3490         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3491         Remove conditional code.
3492         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3493         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3494         Remove conditional code.
3495         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3496         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3497         <kernel-features.h>.
3498         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3499         Remove.
3500         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3501         Remove conditional code.
3502         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3503         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3504         Remove conditional.
3505
3506 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3507
3508         [BZ #5400]
3509         * NEWS: Add fixed bug number.
3510
3511 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3512
3513         [BZ #14519]
3514         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3515         underflowing exponent in case of negative sign.
3516         * stdlib/tst-strtod-round-data: Add more tests.
3517         * stdlib/tst-strtod-round.c (tests): Regenerated.
3518
3519         [BZ #3479]
3520         * stdlib/strtod_l.c (NDIG): Remove.
3521         (HEXNDIG): Likewise.
3522         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3523         smallest representable value.
3524         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3525         lie within an exact representation of 1/2 ulp of the result.
3526         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3527         unconditionally.
3528         (TENS_P9_IDX): Define unconditionally.
3529         (TENS_P9_SIZE): Likewise.
3530         (TENS_P10_IDX): Likewise.
3531         (TENS_P10_SIZE): Likewise.
3532         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3533         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3534         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3535         entries for 10^2^13 and 10^2^14.
3536         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3537         (TENS_P13_IDX): Define.
3538         (TENS_P13_SIZE): Likewise.
3539         (TENS_P14_IDX): Likewise.
3540         (TENS_P14_SIZE): Likewise.
3541         (_fpioconst_pow10): Change array size to
3542         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3543         unconditional.
3544         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3545         1024]: Add entries for 10^2^13 and 10^2^14.
3546         [LAST_POW10 > _LAST_POW10]: Remove #error.
3547         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3548         (_fpioconst_pow10): Change array size to
3549         FPIOCONST_POW10_ARRAY_SIZE.
3550         * stdlib/gen-fpioconst.c: New file.
3551         * stdlib/gen-tst-strtod-round.c: Likewise.
3552         * stdlib/tst-strtod-round-data: Likewise.
3553         * stdlib/tst-strtod-round.c: Likewise.
3554         * stdlib/Makefile (tests): Add tst-strtod-round.
3555
3556         [BZ #14459]
3557         * stdlib/strtod_l.c: Include <stdint.h>.
3558         (NDEBUG): Do not define.
3559         (round_and_return): Change EXPONENT parameter to type intmax_t.
3560         Rearrange calculations to avoid internal overflow possibilities.
3561         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3562         Rearrange calculations to avoid internal overflow possibilities.
3563         Assert that number fits inside MPNSIZE limbs.
3564         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3565         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3566         calculations and add assertions to avoid internal overflow
3567         possibilities.  Add casts to avoid signed/unsigned operations.
3568         * stdlib/tst-strtod-overflow.c: New file.
3569         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3570
3571 2012-08-25  Marek Polacek  <polacek@redhat.com>
3572
3573         * time/time.h: Fix some typos in comments.
3574
3575 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3576
3577         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3578         * posix/tst-rfc3484-2.c: Likewise.
3579         * posix/tst-rfc3484-3.c: Likewise.
3580
3581 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3582
3583         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3584         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3585
3586 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3587
3588         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3589         #include of fxstatat64.c.
3590
3591 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3592
3593         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3594         * shadow/getspent_r.c: Likewise.
3595         * shadow/getspnam.c: Likewise.
3596         * shadow/getspnam_r.c: Likewise.
3597         * gshadow/getsgent.c: Likewise.
3598         * gshadow/getsgent_r.c: Likewise.
3599         * gshadow/getsgnam.c: Likewise.
3600         * gshadow/getsgnam_r.c: Likewise.
3601         * inet/getnetbyad.c: Likewise.
3602         * inet/getnetbyad_r.c: Likewise.
3603         * inet/getnetbynm.c: Likewise.
3604         * inet/getnetbynm_r.c: Likewise.
3605         * inet/getnetent.c: Likewise.
3606         * inet/getnetent_r.c: Likewise.
3607         * inet/getproto.c: Likewise.
3608         * inet/getproto_r.c: Likewise.
3609         * inet/getprtent.c: Likewise.
3610         * inet/getprtent_r.c: Likewise.
3611         * inet/getprtname.c: Likewise.
3612         * inet/getprtname_r.c: Likewise.
3613         * inet/getrpcbyname.c: Likewise.
3614         * inet/getrpcbyname_r.c: Likewise.
3615         * inet/getrpcbynumber.c: Likewise.
3616         * inet/getrpcbynumber_r.c: Likewise.
3617         * inet/getrpcent.c: Likewise.
3618         * inet/getrpcent_r.c: Likewise.
3619         * inet/getaliasent.c: Likewise.
3620         * inet/getaliasent_r.c: Likewise.
3621         * inet/getaliasname.c: Likewise.
3622         * inet/getaliasname_r.c: Likewise.
3623         * nscd/getgrgid_r.c: Likewise.
3624         * nscd/getgrnam_r.c: Likewise.
3625         * nscd/gethstbyad_r.c: Likewise.
3626         * nscd/gethstbynm3_r.c: Likewise.
3627         * nscd/getpwnam_r.c: Likewise.
3628         * nscd/getpwuid_r.c: Likewise.
3629         * nscd/getsrvbynm_r.c: Likewise.
3630         * nscd/getsrvbypt_r.c: Likewise.
3631         * nscd/gai.c: Likewise.
3632
3633         * configure.in (build_nscd): New substituted variable, set
3634         by --disable-build-nscd and defaults to $use_nscd.
3635         * configure: Regenerated.
3636         * config.make.in (build-nscd): New substituted variable.
3637         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3638         Change conditional to require [$(build-nscd) = yes] as well.
3639         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3640
3641         [BZ# 13696]
3642         * configure.in (use_nscd): New substituted variable, set by
3643         --disable-nscd.  If enabled, define USE_NSCD.
3644         * configure: Regenerated.
3645         * config.h.in: Add USE_NSCD.
3646         * config.make.in (use-nscd): New substituted variable.
3647         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3648         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3649         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3650         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3651         (CFLAGS-getgrnam_r.c): Likewise.
3652         (CFLAGS-initgroups.c): Likewise.
3653         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3654         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3655         Variables removed.
3656         * inet/getnetgrent_r.c
3657         (nscd_setnetgrent): New function, broken out of ...
3658         (setnetgrent): ... here.  Call it.
3659         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3660         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3661         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3662         * nscd/Makefile (routines, aux): Move definitions after include of
3663         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3664         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3665         Conditionalize on [USE_NSCD].
3666         (is_nscd, nscd_init_cb): Likewise.
3667         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3668         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3669         * nss/nss_db/db-init.c: Likewise.
3670         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3671         [USE_NSCD].
3672         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3673         (make_request): Use it.
3674         (cache_valid_p): New function.
3675         (__check_pf): Use it.
3676         * NEWS: Add item for --disable-nscd.
3677
3678 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3679
3680         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3681         to support sed >= 4.2.1-20-ga9bf076.
3682         * configure: Regenerated.
3683
3684 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3685
3686         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3687         Conditionalize whole body on [IREL].
3688
3689 2012-08-22  Jeff Law <law@redhat.com>
3690
3691         [BZ #14505]
3692         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3693         if the family is PF_UNSPEC.
3694
3695 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3696
3697         * Makerules (lib-version): Rename from V.
3698         (install-lib-nosubdir): Change V to lib-version.
3699
3700 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3701
3702         [BZ #14252]
3703         * powerpc32/power6/wcschr.c: New file.
3704         * powerpc32/power6/wcscpy.c: New file.
3705         * powerpc32/power6/wcsrchr.c: New file.
3706         * powerpc64/power6/wcschr.c: New file.
3707         * powerpc64/power6/wcscpy.c: New file.
3708         * powerpc64/power6/wcsrchr.c: New file.
3709
3710 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3711
3712         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3713         (two_way_short_needle): Use it.
3714         * string/strstr.c (AVAILABLE1_USES_J): Define.
3715         * string/strcasestr.c: Likewise.
3716
3717         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3718         array references.
3719         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3720
3721         [BZ #11607]
3722         * NEWS: Add an entry.
3723         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3724         define their defaults.
3725         (two_way_short_needle): Detect end-of-string on-the-fly.
3726         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3727         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3728         * string/bug-strcasestr1.c: New test.
3729         * string/Makefile: Run it.
3730
3731 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3732
3733         [BZ #11607]
3734         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3735         the first character.
3736
3737 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3738
3739         * csu/elf-init.c (__libc_csu_irel): Function removed.
3740         * csu/libc-start.c (apply_irel): New function.
3741         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3742
3743 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3744
3745         * sysdeps/unix/sysv/linux/kernel-features.h
3746         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3747         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3748         <kernel-features.h>.
3749         [__NR_fadvise64_64]: Make code unconditional.
3750         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3751         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3752         !__NR_fadvise64_64)]: Likewise.
3753         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3754         !__NR_fadvise64_64))]: Likewise.
3755         [__NR_fadvise64]: Make code unconditional.
3756         [!__NR_fadvise64]: Remove conditional code.
3757         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3758         <kernel-features.h>.
3759         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3760         unconditional.
3761         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3762         conditional code.
3763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3764         not include <kernel-features.h>.
3765         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3766         unconditional.
3767         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3768         conditional code.
3769         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3770         include <kernel-features.h>.
3771         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3772         unconditional.
3773         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3774         conditional code.
3775
3776 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3777
3778         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3779         slight instruction rearrangements per scrollpipe analysis.
3780         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3781
3782 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3783
3784         * manual/syslog.texi (syslog; vsyslog, closelog):
3785         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3786         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3787
3788         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3789         DSOCAPS to match condition on defining it.
3790
3791 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3792
3793         * sysdeps/unix/sysv/linux/kernel-features.h
3794         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3796         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3797         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3799         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3800         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3802         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3803         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3804
3805         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3806         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3807
3808         * sysdeps/unix/sysv/linux/kernel-features.h
3809         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3810         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3811         unconditional.
3812         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3813         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3814         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3815         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3816         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3817         Make code unconditional.
3818         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3819         (__mmap64) [!__NR_mmap2]: Likewise.
3820         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3821         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3822         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3823         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3824         [__NR_mmap2]: Make code unconditional.
3825         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3826         (__mmap64) [!__NR_mmap2]: Likewise.
3827
3828 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3829
3830         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3831
3832 2012-08-18  Andreas Jaeger  <aj@suse.de>
3833
3834         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3835
3836 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3837
3838         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3839         * include/unistd.h (__have_sock_cloexec): Likewise.
3840         (__have_pipe2): Likewise.
3841         (__have_dup3): Likewise.
3842
3843 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3844
3845         [BZ #9685]
3846         * include/unistd.h (__have_pipe2): Change define into an extern int.
3847         (__have_dup3): Likewise.
3848         * socket/have_sock_cloexec.c: Include fcntl.h.
3849         (__have_pipe2): New variable.
3850         (__have_dup3): Likewise.
3851
3852 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3853
3854         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3855
3856 2012-08-17  Marek Polacek  <polacek@redhat.com>
3857
3858         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3859         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3860
3861 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3862
3863         * configure.in: Add AC_SUBST for sysheaders.
3864         * configure: Regenerated.
3865         * config.make.in (sysheaders): New substituted variable.
3866
3867         * sysdeps/unix/mkfifo.c: Moved ...
3868         * sysdeps/posix/mkfifo.c: ... here.
3869         * sysdeps/unix/mkfifoat.c: Moved ...
3870         * sysdeps/posix/mkfifoat.c: ... here.
3871
3872         * sysdeps/unix/utime.c: Moved ...
3873         * sysdeps/posix/utime.c: ... here.
3874
3875         * sysdeps/unix/time.c: Moved ...
3876         * sysdeps/posix/time.c: ... here.
3877         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3878         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3879
3880         * sysdeps/unix/nice.c: Moved ...
3881         * sysdeps/posix/nice.c: ... here.
3882
3883         * sysdeps/unix/alarm.c: Moved ...
3884         * sysdeps/posix/alarm.c: ... here.
3885
3886         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3887
3888 2012-08-17  Jeff Law <law@redhat.com>
3889
3890         * intl/Makefile (codeset_mo): New variable.
3891         ($(codeset_mo)): New target.
3892         (tst-codeset.out): Depend on that.  Remove explicit rule.
3893         (tst-gettext3.out, tst-gettext5.out): Likewise.
3894         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3895         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3896         * intl/tst-codeset.sh: Remove.
3897         * intl/tst-gettext3.sh: Likewise.
3898         * intl/tst-gettext5.sh: Likewise.
3899
3900 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3901
3902         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3903         * sysdeps/unix/syscalls.list: ... here.
3904
3905         * sysdeps/posix/getaddrinfo.c
3906         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3907         (gaiconf_init, gaiconf_reload): Use them.
3908         [!_STATBUF_ST_NSEC]
3909         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3910         Define using time_t rather than struct timespec.
3911
3912         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3913         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3914         Macros removed.
3915         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3916         [!NO_THREADS].
3917         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3918         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3919         Likewise.
3920
3921         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3922         __libc_cleanup_push argument.
3923
3924         * bits/param.h: New file.
3925         * misc/sys/param.h: New file.
3926         * include/sys/param.h: New file.
3927         * misc/Makefile (headers): Add bits/param.h.
3928         * sysdeps/generic/sys/param.h: File removed.
3929         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3930         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3931         * sysdeps/mach/hurd/bits/param.h: New file.
3932         * sysdeps/mach/hurd/sys/param.h: File removed.
3933
3934         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3935         last change.
3936
3937         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3938         [_IO_MTSAFE_IO].
3939         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3940         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3941         New macros.
3942
3943         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3944         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3945         rather than -D_IO_MTSAFE_IO conditionally.
3946         * stdio-common/Makefile (CPPFLAGS): Likewise.
3947         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3948         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3949         Use $(libio-mtsafe).
3950         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3951         of -D_IO_MTSAFE_IO.
3952         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3953         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3954         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3955         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3956         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3957         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3958         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3959         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3960         (CFLAGS-fread_u_chk.c): Likewise.
3961         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3962         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3963         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3964         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3965         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3966         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3967         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3968         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3969         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
3970
3971         * libio/Makefile: Test [$(libc-reentrant) = yes]
3972         instead of [$(filter %REENTRANT, $(defines)) nonempty].
3973
3974         * Makeconfig
3975         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
3976         * sysdeps/pthread/configure: File removed.
3977         * sysdeps/pthread/Makeconfig: New file.
3978         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
3979         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
3980
3981 2012-08-16  Gary Benson  <gbenson@redhat.com>
3982
3983         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
3984         unmapping the first object in a namespace.
3985
3986 2012-08-16  Roland McGrath  <roland@hack.frob.com>
3987
3988         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
3989         (__internal_setnetgrent): ... this.  Add internal_function to
3990         definition.  Add libc_hidden_def.
3991         (setnetgrent): Update caller.
3992         (internal_endnetgrent): Renamed to ...
3993         (__internal_endnetgrent): ... this.  Add internal_function to
3994         definition.  Add libc_hidden_def.
3995         (endnetgrent): Update caller.
3996         (internal_getnetgrent_r): Renamed to ...
3997         (__internal_getnetgrent_r): ... this.  Add internal_function to
3998         definition.  Add libc_hidden_def.
3999         (__getnetgrent_r): Update caller.
4000         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
4001
4002 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4003
4004         * stdlib/longlong.h: Update from GCC.
4005
4006 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4007
4008         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4009         on _QL, which is set by umul_ppmm but never used.
4010         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4011         variables, which are set by GMP macros but never used.
4012         * stdio-common/_itowa.c (_itowa): Likewise.
4013         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4014         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4015
4016 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4017
4018         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4019         struct La_sh_regs is not constant.
4020         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4021         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4022         and struct La_sparc64_regs are not constant.
4023
4024 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4025
4026         * sysdeps/unix/sysv/linux/kernel-features.h
4027         (__ASSUME_POSIX_TIMERS): Remove.
4028         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4029         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4030         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4031         Make code unconditional.
4032         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4033         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4034         Make code unconditional.
4035         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4036         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4037         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4038         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4039         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4040         Make code unconditional.
4041         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4042         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4043         (__libc_missing_posix_timers): Remove.
4044
4045 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4046
4047         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4048         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4049
4050         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4051
4052         * elf/dl-sym.c: Include <stdlib.h>.
4053
4054         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4055         constants, which avoids warnings in 32-bit builds.
4056
4057         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4058         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4059
4060         * misc/lseek.c: File moved to ...
4061         * io/lseek.c: ... here.
4062
4063         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4064
4065         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4066         shifting LEN more than 31 bits at once.
4067
4068 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4069
4070         [BZ #14195]
4071         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4072         segmentation fault for a case of two empty input strings.
4073         * string/test-strncasecmp.c (check1): Renamed to...
4074         (bz12205): ...this.
4075         (bz14195): Add new testcase for two empty input strings and N > 0.
4076         (test_main): Call new testcase, adapt for renamed function.
4077
4078 2012-08-15  Andreas Jaeger  <aj@suse.de>
4079
4080         [BZ #14090]
4081         * crypt/md5test2.c: New test, based on test supplied by Serge
4082         Belyshev <belyshev@depni.sinp.msu.ru>.
4083         * crypt/Makefile (xtests): Add md5test-giant..
4084         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4085
4086 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4087
4088         [BZ #14090]
4089         * crypt/md5.c (md5_process_block): Don't assume the buffer
4090         length is less than 2**32.
4091         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4092         length is less than 2**64.
4093
4094 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4095
4096         * string/str-two-way.h: Include <sys/param.h>.
4097         (MAX): Macro removed.
4098
4099         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4100         Move #define and #undef of memmove to just before and after
4101         including <string.h>.
4102
4103         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4104         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4105         and after including <string.h>.  Move declarations of
4106         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4107         to before #include "string/memmove.c".
4108
4109         * include/dirent.h: Declare __getdirentries.
4110
4111         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4112         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4113
4114 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4115
4116         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4117         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4118         * sysdeps/i386/configure: Regenerated.
4119         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4120         STABS_CURRENT_FILE, and STABS_FUN.
4121         (END): Remove call to STABS_FUN_END.
4122         (STABS_CURRENT_FILE1): Delete.
4123         (STABS_CURRENT_FILE): Likewise.
4124         (STABS_FUN): Likewise.
4125         (STABS_FUN_END): Likewise.
4126         (STABS_FUN2): Likewise.
4127         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4128         * sysdeps/x86_64/configure: Regenerated.
4129
4130 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4131
4132         * elf/dl-open.c: Include <atomic.h>.
4133         * elf/dl-lookup.c: Likewise.
4134
4135 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4136
4137         * sysdeps/unix/sysv/linux/kernel-features.h
4138         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4139         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4140         unconditionally.
4141         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4142         unconditionally.
4143         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4144         condition on __ASSUME_CLONE_THREAD_FLAGS.
4145
4146 2012-08-14  Andreas Jaeger  <aj@suse.de>
4147
4148         * sysdeps/i386/fpu/libm-test-ulps: Update.
4149
4150 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4151
4152         * include/atomic.h (atomic_exchange_and_add): Split into ...
4153         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4154         New atomic macros.
4155
4156 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4157
4158         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4159
4160 2012-08-13  Jeff Law <law@redhat.com>
4161
4162         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4163         null byte in the output string.
4164
4165 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4166
4167         * sysdeps/unix/sysv/linux/kernel-features.h
4168         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4169         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4170         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4171         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4172         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4173         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4174         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4175
4176 2012-08-09  Jeff Law <law@redhat.com>
4177
4178         [BZ #13939]
4179         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4180         When avoid_arena is set, don't retry in the that arena.  Pick the
4181         next one, whatever it might be.
4182         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4183         (arena_lock): Pass in new parameter to arena_get2.
4184         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4185         arena_get2.
4186         (__libc_malloc): Unify retrying after main arena failure with
4187         __libc_memalign version.
4188         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4189
4190 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4191
4192         [BZ #14166]
4193         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4194         to __redirect_strstr.
4195         (__strstr_sse42): Use typeof __redirect_strstr.
4196         (__strstr_ia32): Likewise.
4197         (__libc_strstr): New prototype.
4198         (strstr): Renamed to ...
4199         (__libc_strstr): This.
4200         (strstr): New strong alias of __libc_strstr.
4201         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4202         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4203         __redirect_time.
4204         Include <time.h>.
4205         (__libc_time): New prototype.
4206         (time_ifunc): Replace time with __libc_time.
4207         (time): New strong alias and hidden definition of __libc_time.
4208         (__GI_time): Remove strong alias.
4209         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4210         Include <stddef.h>.
4211         (memmove): Redefined to __redirect_memmove.
4212         (__memmove_sse2): Use typeof __redirect_memmove.
4213         (__memmove_ssse3): Likewise.
4214         (__memmove_ssse3_back): Likewise.
4215         (__libc_memmove): New prototype.
4216         (memmove): Renamed to ...
4217         (__libc_memmove): This.
4218         (memmove): New strong alias of __libc_memmove.
4219
4220 2012-08-08  Mark Salter  <msalter@redhat.com>
4221
4222         * elf/elf.h
4223         (R_MN10300_TLS_GD): Define.
4224         (R_MN10300_TLS_LD): Likewise.
4225         (R_MN10300_TLS_LDO): Likewise.
4226         (R_MN10300_TLS_GOTIE): Likewise.
4227         (R_MN10300_TLS_IE): Likewise.
4228         (R_MN10300_TLS_LE): Likewise.
4229         (R_MN10300_TLS_DTPMOD): Likewise.
4230         (R_MN10300_TLS_DTPOFF): Likewise.
4231         (R_MN10300_TLS_TPOFF): Likewise.
4232         (R_MN10300_SYM_DIFF): Likewise.
4233         (R_MN10300_ALIGN): Likewise.
4234         (R_MN10300_NUM): Update.
4235
4236 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4237
4238         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4239         Remove.
4240
4241 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4242
4243         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4244
4245         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4246         sysdeps/unix -> sysdeps/posix move.
4247         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4248
4249 2012-08-07      Allan McRae     <allan@archlinux.org>
4250
4251         [BZ #14303]
4252         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4253         (SUNOS_CPP): Likewise.
4254         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4255         not found.
4256         (open_input): Call CPP using execvp.
4257
4258 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4259
4260         * sysdeps/unix/sysv/linux/kernel-features.h
4261         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4262         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4263         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4264         (__ASSUME_WAITID_SYSCALL): Likewise.
4265         * sysdeps/unix/sysv/linux/dl-execstack.c
4266         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4267         code unconditional.
4268         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4269         conditional code.
4270         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4271         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4272         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4273         code.
4274         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4275         unconditional.
4276         [__ASSUME_WAITID_SYSCALL]: Likewise.
4277         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4278
4279 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4280
4281         * sysdeps/unix/closedir.c: Renamed to ...
4282         * sysdeps/posix/closedir.c: ... here.
4283         * sysdeps/unix/dirfd.c: Renamed to ...
4284         * sysdeps/posix/dirfd.c: ... here.
4285         * sysdeps/unix/dirstream.h: Renamed to ...
4286         * sysdeps/posix/dirstream.h: ... here.
4287         * sysdeps/unix/fdopendir.c: Renamed to ...
4288         * sysdeps/posix/fdopendir.c: ... here.
4289         * sysdeps/unix/opendir.c: Renamed to ...
4290         * sysdeps/posix/opendir.c: ... here.
4291         * sysdeps/unix/readdir.c: Renamed to ...
4292         * sysdeps/posix/readdir.c: ... here.
4293         * sysdeps/unix/readdir_r.c: Renamed to ...
4294         * sysdeps/posix/readdir_r.c: ... here.
4295         * sysdeps/unix/rewinddir.c: Renamed to ...
4296         * sysdeps/posix/rewinddir.c: ... here.
4297         * sysdeps/unix/seekdir.c: Renamed to ...
4298         * sysdeps/posix/seekdir.c: ... here.
4299         * sysdeps/unix/telldir.c: Renamed to ...
4300         * sysdeps/posix/telldir.c: ... here.
4301         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4302         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4303         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4304         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4305
4306         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4307         * bits/fcntl.h: ... here.
4308
4309         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4310         not 0.
4311         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4312         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4313         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4314         (struct flock): Move l_start, l_len to the beginning.
4315         Use __pid_t for l_pid.
4316         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4317         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4318         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4319         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4320         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4321         [__USE_LARGEFILE64] (struct flock64): New type.
4322         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4323
4324         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4325         * bits/dirent.h: ... here.
4326
4327         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4328         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4329
4330 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4331
4332         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4333         Change from 2.6.0 to 2.6.16.
4334         * sysdeps/unix/sysv/linux/configure: Regenerated.
4335         * sysdeps/unix/sysv/linux/kernel-features.h
4336         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4337         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4338         version.
4339         (__ASSUME_UTIMES): Likewise.
4340         (__ASSUME_CLONE_STOPPED): Remove.
4341         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4342         architectures, not kernel version.
4343         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4344         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4345         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4346         (__ASSUME_WAITID_SYSCALL): Likewise.
4347         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4348         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4349         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4350         refer to older versions.
4351
4352 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4353
4354         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4355         Define alphasort64 as an alias.
4356         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4357         Define versionsort64 as an alias.
4358         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4359         Define scandir64 as an alias.
4360         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4361         Define scandirat64 as an alias.
4362         * dirent/alphasort64.c (alphasort64):
4363         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4364         * dirent/versionsort64.c: Likewise.
4365         * dirent/scandir64.c: Likewise.
4366         * dirent/scandirat64.c: Likewise.
4367         * sysdeps/wordsize-64/alphasort.c: File removed.
4368         * sysdeps/wordsize-64/alphasort64.c: File removed.
4369         * sysdeps/wordsize-64/scandir.c: File removed.
4370         * sysdeps/wordsize-64/scandir64.c: File removed.
4371         * sysdeps/wordsize-64/scandirat.c: File removed.
4372         * sysdeps/wordsize-64/scandirat64.c: File removed.
4373         * sysdeps/wordsize-64/versionsort.c: File removed.
4374         * sysdeps/wordsize-64/versionsort64.c: File removed.
4375         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4376         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4377         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4378         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4379         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4380         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4381         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4382         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4383
4384         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4385         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4386         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4387         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4388         [defined __arch64__ || defined __sparcv9]
4389         (__INO_T_MATCHES_INO64_T): New macro.
4390         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4391         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4392         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4393         * sysdeps/unix/sysv/linux/bits/dirent.h
4394         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4395         (_DIRENT_MATCHES_DIRENT64): New macro.
4396
4397         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4398         Define lockf64 as an alias.
4399         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4400         Define fseeko64 as an alias.
4401         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4402         Define ftello64 as an alias.
4403         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4404         Define _IO_fgetpos64 and fgetpos64 as aliases.
4405         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4406         Define _IO_fsetpos64 and fsetpos64 as aliases.
4407         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4408         Conditionalize body on this.
4409         * libio/fseeko64.c: Likewise.
4410         * libio/ftello64.c: Likewise.
4411         * libio/iofgetpos64.c: Likewise.
4412         * libio/iofsetpos64.c: Likewise.
4413         * sysdeps/wordsize-64/lockf.c: File removed.
4414         * sysdeps/wordsize-64/lockf64.c: File removed.
4415         * sysdeps/wordsize-64/fseeko.c: File removed.
4416         * sysdeps/wordsize-64/fseeko64.c: File removed.
4417         * sysdeps/wordsize-64/ftello.c: File removed.
4418         * sysdeps/wordsize-64/ftello64.c: File removed.
4419         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4420         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4421         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4422         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4423         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4424         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4425         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4426         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4427         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4428         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4429         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4430         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4431         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4432         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4433
4434         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4435         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4436         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4437         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4438         [defined __arch64__ || defined __sparcv9]
4439         (__OFF_T_MATCHES_OFF64_T): New macro.
4440         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4441         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4442         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4443         (__OFF_T_MATCHES_OFF64_T): New macro.
4444
4445 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4446
4447         * stdlib/secure-getenv.c (__secure_getenv): Replace
4448         GLIBC_2_16 with GLIBC_2_17.
4449
4450 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4451
4452         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4453         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4454
4455 2012-08-03  David S. Miller  <davem@davemloft.net>
4456
4457         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4458
4459 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4460
4461         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4462         Remove.
4463         (__ASSUME_CORRECT_SI_PID): Likewise.
4464         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4465         (__ASSUME_TMPFS_NAME): Likewise.
4466         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4467         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4468         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4469         (HAVE_AUX_SECURE): Make definition unconditional.
4470         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4471         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4472
4473 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4474
4475         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4476         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4477         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4478         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4479         __eloop_threshold instead of SYMLOOP_MAX.
4480
4481         * sysdeps/generic/eloop-threshold.h: New file.
4482         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4483         of MAXSYMLINKS.
4484         * elf/chroot_canon.c (chroot_canon): Likewise.
4485
4486 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4487
4488         [BZ #13717]
4489         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4490         Change to 2.6.0 everywhere.
4491         * sysdeps/unix/sysv/linux/configure: Regenerated.
4492         * sysdeps/unix/sysv/linux/kernel-features.h
4493         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4494         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4495         kernel versions.
4496         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4497         (__ASSUME_FUTEX_REQUEUE): Remove.
4498         (__ASSUME_STATFS64): Define unconditionally.
4499         (__ASSUME_AT_SECURE): Likewise.
4500         (__ASSUME_CORRECT_SI_PID): Likewise.
4501         (__ASSUME_TGKILL): Define without depending on kernel version for
4502         i386.
4503         (__ASSUME_UTIMES): Likewise.
4504         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4505         kernel version.
4506         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4507         (__ASSUME_TMPFS_NAME): Likewise.
4508         * README: Update reference to Linux kernel versions.
4509
4510 2012-08-02  Marek Polacek  <polacek@redhat.com>
4511
4512         [BZ# 14150]
4513         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4514         libc_cv_asm_type_prefix with %.
4515         * configure: Regenerated.
4516         * include/libc-symbols.h: Remove comment about
4517         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4518         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4519         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4520         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4521         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4522         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4523         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4524         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4525         * elf/tst-unique2mod1.c: Likewise.
4526         * elf/tst-unique1mod2.c: Likewise.
4527         * elf/tst-unique1mod1.c: Likewise.
4528         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4529         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4530         Replace ASM_TYPE_DIRECTIVE with .type.
4531         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4532         * sysdeps/i386/sysdep.h: Likewise.
4533         * sysdeps/x86_64/sysdep.h: Likewise.
4534         * sysdeps/sh/sysdep.h: Likewise.
4535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4536         Do not define ASM_TYPE_DIRECTIVE.
4537         * sysdeps/powerpc/sysdep.h: Likewise.
4538         * sysdeps/powerpc/powerpc32/sysdep.h:
4539         Replace ASM_TYPE_DIRECTIVE with .type.
4540         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4541         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4542         * sysdeps/i386/fpu/e_powf.S: Likewise.
4543         * sysdeps/i386/fpu/e_expl.S: Likewise.
4544         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4545         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4546         * sysdeps/i386/fpu/e_pow.S: Likewise.
4547         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4548         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4549         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4550         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4551         * sysdeps/i386/fpu/e_log2.S: Likewise.
4552         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4553         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4554         * sysdeps/i386/fpu/e_powl.S: Likewise.
4555         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4556         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4557         * sysdeps/i386/fpu/e_logl.S: Likewise.
4558         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4559         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4560         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4561         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4562         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4563         * sysdeps/i386/fpu/e_log.S: Likewise.
4564         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4565         * sysdeps/i386/fpu/e_logf.S: Likewise.
4566         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4567         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4568         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4569         * sysdeps/i386/fpu/e_log10.S: Likewise.
4570         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4571         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4572         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4573         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4574         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4575         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4576         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4577         * sysdeps/i386/i686/strtok.S: Likewise.
4578         * sysdeps/i386/i386-mcount.S: Likewise.
4579         * sysdeps/i386/strtok.S: Likewise.
4580         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4581         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4582         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4583         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4584         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4585         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4586         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4587         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4588         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4589         * sysdeps/x86_64/_mcount.S: Likewise.
4590         * sysdeps/x86_64/strtok.S: Likewise.
4591         * sysdeps/sh/_mcount.S: Likewise.
4592
4593 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4594
4595         * libio/iofopen.c: Include <fcntl.h>.
4596         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4597         (_IO_fopen64, fopen64): Define as aliases.
4598         * libio/iofopen64.c: Include <fcntl.h>.
4599         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4600         Conditionalize body on this.
4601         * sysdeps/wordsize-64/iofopen.c: File removed.
4602         * sysdeps/wordsize-64/iofopen64.c: File removed.
4603
4604 2012-08-01  Marek Polacek  <polacek@redhat.com>
4605
4606         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4607         Use dlfcn directly instead of a variable.
4608         (binfmt-subdir): Do not define.
4609         (dlfcn): Likewise.
4610
4611 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4612
4613         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4614         Remove all definitions.
4615         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4616         <kernel-features.h>.
4617         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4618         (miss_F_GETOWN_EX): Remove all definitions.
4619         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4620         macro definition.
4621         [!__ASSUME_FCNTL64]: Remove conditional code.
4622         [__ASSUME_FCNTL64]: Make code unconditional.
4623         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4624         <kernel-features.h>.
4625         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4626         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4627         (lockf64) [__NR_fcntl64]: Make code unconditional.
4628         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4629
4630         * sysdeps/unix/sysv/linux/kernel-features.h
4631         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4632         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4633         Make code unconditional.
4634         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4635         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4637         [__NR_vfork]: Make code unconditional.
4638         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4639         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4641         [__NR_vfork]: Make code unconditional.
4642         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4643         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4644
4645 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4646
4647         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4648         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4649
4650         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4651         Define mkstemp64 as an alias.
4652         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4653         Define mkstemps64 as an alias.
4654         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4655         Define mkostemp64 as an alias.
4656         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4657         Define mkostemps64 as an alias.
4658         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4659         Conditionalize body on this.
4660         * misc/mkostemp64.c: Likewise.
4661         * misc/mkostemps64.c: Likewise.
4662         * misc/mkstemps64.c: Likewise.
4663         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4664         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4665         * sysdeps/wordsize-64/mkostemp.c: File removed.
4666         * sysdeps/wordsize-64/mkstemp.c: File removed.
4667         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4668         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4669         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4670         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4671
4672         [BZ #14138]
4673         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4674         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4675         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4676         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4677
4678         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4679         compat_symbol macros from <shlib-compat.h> rather than the underlying
4680         default_symbol_version and symbol_version macros, so that DEFAULT
4681         lines in shlib-versions are respected.
4682         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4683
4684 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4685
4686         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4687         Declare with warn_unused_result.
4688         (setgid, setregid, setegid, setresgid): Likewise.
4689         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4690         Likewise.
4691         * WUR-REPORT: Remove set*id functions.
4692
4693 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4694
4695         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4696
4697 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4698
4699         * include/sys/socket.h (__libc_accept, __libc_accept4):
4700         Add attribute_hidden.
4701         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4702
4703         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4704         use of PTR_MANGLE.
4705         * inet/getnetgrent_r.c (setup): Likewise.
4706
4707         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4708
4709 2012-07-31  David S. Miller  <davem@davemloft.net>
4710
4711         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4712
4713 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4714
4715         [BZ #13629]
4716         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4717         value between 1.0 and 2.0 and smaller part has absolute value less
4718         than 1.0.
4719         * math/s_clog10.c (__clog10): Likewise.
4720         * math/s_clog10f.c (__clog10f): Likewise.
4721         * math/s_clog10l.c (__clog10l): Likewise.
4722         * math/s_clogf.c (__clogf): Likewise.
4723         * math/s_clogl.c (__clogl): Likewise.
4724         * math/libm-test.inc (clog_test): Add more tests.
4725         (clog10_test): Likewise.
4726         * sysdeps/i386/fpu/libm-test-ulps: Update.
4727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4728
4729 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4730
4731         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4732         Exit with zero in case no suitable GID is found, and write a
4733         message to standard error.
4734
4735 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4736
4737         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4738         rather than to 1.
4739         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4740         (MAXPATHLEN): Removed.
4741         (NOGROUP, NODEV): New macros.
4742         (setbit, clrbit, isset, isclr): New macros.
4743         (howmany, roundup, powerof2): New macros.
4744         (DEV_BSIZE): New macro.
4745
4746         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4747         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4748
4749         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4750         definition on [!__NO_LONG_DOUBLE_MATH].
4751
4752         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4753         PTR_MANGLE and PTR_DEMANGLE.
4754
4755         * socket/accept4.c (accept4): Rename to __libc_accept4.
4756         Define accept4 as a weak alias.
4757
4758         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4759         on [_DIRENT_HAVE_D_TYPE].
4760         * io/ftw.c (ftw_dir): Likewise.
4761
4762         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4763
4764         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4765
4766         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4767         Use the BSD numbers rather than the arbitrary ones we had.
4768         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4769         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4770         (SIGXCPU, SIGXFSZ): New macros.
4771         (_NSIG): Now 32.
4772
4773         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4774         initializer on [_LIBC_REENTRANT].
4775
4776         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4777         definitions inside [_POSIX_MAPPED_FILES].
4778
4779         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4780
4781         * dirent/opendir.c: Include <fcntl.h>.
4782
4783         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4784         (__libc_getspecific): Likewise.
4785         (__libc_key_create): Likewise.
4786
4787         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4788         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4789         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4790         (tmpfile64): Define as alias.
4791         * sysdeps/wordsize-64/tmpfile.c: File removed.
4792         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4793         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4794         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4795
4796         * stdio-common/vfscanf.c: Include <stdbool.h>.
4797         * nss/makedb.c: Likewise.
4798         * stdio-common/_i18n_number.h: Likewise.
4799         * argp/argp-help.c: Likewise.
4800         * posix/wordexp.c: Likewise.
4801         * sysdeps/posix/spawni.c: Likewise.
4802         * nss/nss_files/files-initgroups.c: Likewise.
4803         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4804         * nss/nss_files/files-initgroups.c: Likewise.
4805         * nss/nss_db/db-netgrp.c: Likewise.
4806         * nss/nss_db/db-initgroups.c: Likewise.
4807         * io/fchmodat.c: Include <sys/stat.h>.
4808
4809         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4810         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4811
4812         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4813         [HAVE_MMAP].
4814
4815         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4816         Add multiple inclusion protection.
4817
4818 2012-07-27  David S. Miller  <davem@davemloft.net>
4819
4820         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4821
4822 2012-07-27  Gary Benson  <gbenson@redhat.com>
4823
4824         [BZ #14298]
4825         * elf/rtld.c: Include <stap-probe.h>.
4826         (dl_main): Added static probes "init_start" and "init_complete".
4827         * elf/dl-load.c: Include <stap-probe.h>.
4828         (lose): Take new parameter "nsid".
4829         Added static probe "map_failed".
4830         (_dl_map_object_from_fd): Pass namespace id to lose.
4831         Added static probe "map_start".
4832         (open_verify): Pass namespace id to lose.
4833         * elf/dl-open.c: Include <stap-probe.h>.
4834         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4835         and "reloc_complete".
4836         * elf/dl-close.c: Include <stap-probe.h>.
4837         (_dl_close_worker): Added static probes "unmap_start" and
4838         "unmap_complete".
4839         * elf/rtld-debugger-interface.txt: New file documenting the above.
4840
4841 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4842
4843         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4844         rather than a string variable.
4845         * sunrpc/rpc_main.c (h_output): Likewise.
4846         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4847
4848 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4849
4850         * inet/check_native.c: New file.
4851
4852 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4853
4854         [BZ #13629]
4855         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4856         if larger part has absolute value 1.0.
4857         * math/s_clog10.c (__clog10): Likewise.
4858         * math/s_clog10f.c (__clog10f): Likewise.
4859         * math/s_clog10l.c (__clog10l): Likewise.
4860         * math/s_clogf.c (__clogf): Likewise.
4861         * math/s_clogl.c (__clogl): Likewise.
4862         * math/libm-test.inc (clog_test): Add more tests.
4863         (clog10_test): Likewise.
4864         * sysdeps/i386/fpu/libm-test-ulps: Update.
4865         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4866
4867         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4868         (pltexit): Likewise.
4869         (La_regs): Likewise.
4870         (La_retval): Likewise.
4871         (int_retval): Likewise.
4872         Update #error for removed macros to refer only to definitions in
4873         tst-audit.h.
4874         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4875         macro.
4876         (pltexit): Likewise.
4877         (La_regs): Likewise.
4878         (La_retval): Likewise.
4879         (int_retval): Likewise.
4880         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4881         macro.
4882         (pltexit): Likewise.
4883         (La_regs): Likewise.
4884         (La_retval): Likewise.
4885         (int_retval): Likewise.
4886         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4887         macro.
4888         (pltexit): Likewise.
4889         (La_regs): Likewise.
4890         (La_retval): Likewise.
4891         (int_retval): Likewise.
4892         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4893         macro.
4894         (pltexit): Likewise.
4895         (La_regs): Likewise.
4896         (La_retval): Likewise.
4897         (int_retval): Likewise.
4898         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4899         macro.
4900         (pltexit): Likewise.
4901         (La_regs): Likewise.
4902         (La_retval): Likewise.
4903         (int_retval): Likewise.
4904         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4905         macro.
4906         (pltexit): Likewise.
4907         (La_regs): Likewise.
4908         (La_retval): Likewise.
4909         (int_retval): Likewise.
4910         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4911         macro definitions in tst-audit.h.
4912         * sysdeps/i386/tst-audit.h: New file.
4913         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4914         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4915         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4916         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4917         * sysdeps/sh/tst-audit.h: Likewise.
4918         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4919         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4920         * sysdeps/x86_64/tst-audit.h: Likewise.
4921
4922 2012-07-26  Andreas Jaeger  <aj@suse.de>
4923
4924         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4925         ptrace.
4926
4927         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4928         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4929         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4930         PTRACE_O_MASK.
4931         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4932         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4933         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4934
4935         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4936         value.
4937
4938         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4939         _sigsys.
4940         (si_call_addr, si_syscall, si_arch): Define new macro.
4941         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4942         _sigsys.
4943         (si_call_addr, si_syscall, si_arch): Define new marcro.
4944         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4945         _sigsys.
4946         (si_call_addr, si_syscall, si_arch): Define new macro.
4947         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4948         _sigsys.
4949         (si_call_addr, si_syscall, si_arch): Define new macro.
4950
4951 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4952
4953         [BZ #13717]
4954         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4955         Change to 2.4.21 where previously 2.4.1.
4956         * sysdeps/unix/sysv/linux/configure: Regenerated.
4957         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4958         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4959         Linux kernel version.
4960         (__ASSUME_STD_AUXV): Remove.
4961         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4962         kernel version.
4963         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4964         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4965         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4966         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4967         (__ASSUME_NETLINK_SUPPORT): Likewise.
4968         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4969         (__no_netlink_support): Remove conditional definition.
4970         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
4971         Remove.
4972         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4973         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
4974         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
4975         (if_nameindex_ioctl): Remove.
4976         (if_nameindex_netlink): Do not handle __no_netlink_support.
4977         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4978         code.
4979         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
4980         Remove conditional code.
4981         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
4982         code.
4983         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
4984         unconditional.
4985         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
4986         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
4987         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
4988         Remove.
4989         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
4990         [!__ASSUME_STD_AUXV]: Remove conditional code.
4991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
4992         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
4993         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
4994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
4995         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
4996         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
4997         code.
4998         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
4999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5000         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5001         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5002         conditional code.
5003         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5005         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5006         code.
5007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5008         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5009         conditional code.
5010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5011         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5012         code unconditional.
5013         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5014         conditional code.
5015         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5016         unconditional.
5017         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5018         conditional code.
5019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5020         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5021         unconditional.
5022         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5023         conditional code.
5024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5025         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5026         code unconditional.
5027         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5028         conditional code.
5029         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5030         unconditional.
5031         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5032         conditional code.
5033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5034         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5035         code unconditional.
5036         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5037         conditional code.
5038         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5039         unconditional.
5040         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5041         conditional code.
5042
5043 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5044
5045         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5046         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5047         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5048         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5049         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5050         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5051         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5052         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5053         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5054         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5055         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5056         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5057         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5058         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5059         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5060         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5061         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5062         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5063         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5064         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5065         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5066         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5067         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5068
5069 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5070
5071         * Versions.def: Add GLIBC_2.17.
5072         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5073         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5074         Introduce __libc_secure_getenv.
5075         * stdlib/Versions (2.17): Add secure_getenv
5076         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5077         * stdlib/secure-getenv.c: Rename __secure_getenv to
5078         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5079         symbol __secure_getenv for GLIBC_2.0.
5080         * stdlib/tst-secure-getenv.c: New.
5081         * stdlib/Makefile (tests): Add testcase.
5082         * manual/startup.texi (Environment Access): Document
5083         secure_getenv.
5084         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5085         __libc_secure_getenv.
5086         * inet/ruserpass.c (ruserpass): Likewise.
5087         * malloc/mtrace.c (mtrace): Likewise.
5088         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5089         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5090         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5091         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5092         HAVE_SECURE_GETENV.
5093         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5094         __secure_getenv to __libc_secure_getenv.
5095         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5097         Likewise.
5098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5099         Likewise.
5100         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5102         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5103         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5104         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5105         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5106         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5107
5108 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5109
5110         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5111         (struct La_i86_retval): Likewise.
5112         (struct La_x86_64_regs): Likewise.
5113         (struct La_x86_64_retval): Likewise.
5114         (struct La_x32_regs): Likewise.
5115         (struct La_x32_retval): Likewise.
5116         (struct La_ppc32_regs): Likewise.
5117         (struct La_ppc32_retval): Likewise.
5118         (struct La_ppc64_regs): Likewise.
5119         (struct La_ppc64_retval): Likewise.
5120         (struct La_sh_regs): Likewise.
5121         (struct La_sh_retval): Likewise.
5122         (struct La_s390_32_regs): Likewise.
5123         (struct La_s390_32_retval): Likewise.
5124         (struct La_s390_64_regs): Likewise.
5125         (struct La_s390_64_retval): Likewise.
5126         (struct La_sparc32_regs): Likewise.
5127         (struct La_sparc32_retval): Likewise.
5128         (struct La_sparc64_regs): Likewise.
5129         (struct La_sparc64_retval): Likewise.
5130         (struct audit_ifaces): Remove architecture-specific pltenter and
5131         pltexit members.
5132         * sysdeps/i386/ldsodefs.h: New file.
5133         * sysdeps/powerpc/ldsodefs.h: Likewise.
5134         * sysdeps/s390/ldsodefs.h: Likewise.
5135         * sysdeps/sh/ldsodefs.h: Likewise.
5136         * sysdeps/sparc/ldsodefs.h: Likewise.
5137         * sysdeps/x86_64/ldsodefs.h: Likewise.
5138
5139 2012-07-25  Marek Polacek  <polacek@redhat.com>
5140
5141         [BZ #6808]
5142         * math/libm-test.inc (yn_test): Add another test.
5143         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5144         to ERANGE when the result is +-Inf.
5145         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5146         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5147         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5148         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5149
5150 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5151
5152         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5153         equal to 0.
5154         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5155         clock_t.
5156         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5157
5158 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5159
5160         * configure.in <sysdeps resolving>: Correct printing
5161         Implies_before.
5162         * configure: Regenerate.
5163
5164 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5165
5166         * math/w_ilogb.c: Include <limits.h>.
5167         * math/w_ilogbl.c: Likewise.
5168
5169 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5170
5171         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5172         va_copy.  Document allowing for unavailable va_copy only as
5173         pre-C99 compatibility.
5174         * manual/string.texi (Copying and Concatenation): Use va_copy
5175         instead of __va_copy in concat example.
5176
5177 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5178
5179         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5180         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5181         it if not null.
5182
5183         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5184         with O_NOLINK passed to __file_name_lookup.
5185
5186         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5187         with O_NOLINK passed to __file_name_lookup.
5188
5189         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5190         negative N or less than NGIDS.
5191
5192         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5193         type to string_t.  Set ERANGE as errno and return it if NAME is not big
5194         enough.  Use memcpy instead of strncpy.
5195
5196 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5197
5198         * elf/Makefile (check-data): Remove.
5199         (localplt.data): New vpath directive.
5200         ($(objpfx)check-localplt.out): Use localplt.data from vpath
5201         instead of $(check-data).
5202         * scripts/data/localplt-generic.data: Move to ...
5203         * sysdeps/generic/localplt.data: ... here.
5204         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5205         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5206         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5208         ... here.
5209         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5211         ... here.
5212         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5213         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5214         ... here.
5215         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5216         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5217         ... here.
5218         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5219         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5220         ... here.
5221         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5222         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5223         ... here.
5224
5225 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5226
5227         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5228         PPC32 and PPC64 files.
5229         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5230         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5231
5232 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5233
5234         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5235         __makecontext_ret to ...
5236         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5237         ... here and call exit if uc_link is NULL.  New file.
5238         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5239         __makecontext_ret.S.
5240         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5241         __makecontext_ret to ...
5242         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5243         ... here and call exit if uc_link is NULL.  New file.
5244         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5245         __makecontext_ret.S.
5246
5247 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5248
5249         * elf/elf.h (R_390_IRELATIVE): New definition.
5250         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5251         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5252         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5253         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5254         (elf_machine_lazy_rel): Likewise.
5255         * sysdeps/s390/dl-irel.h: New file.
5256         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5257         * sysdeps/s390/s390-64/memset.S: New asm code.
5258         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5259         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5260         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5261         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5262         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5263         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5264         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5265         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5266         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5267         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5268         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5269         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5270         * sysdeps/s390/s390-32/memset.S: New asm code.
5271         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5272
5273 2012-07-17  Marek Polacek  <polacek@redhat.com>
5274
5275         [BZ #14349]
5276         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5277         * sysdeps/s390/s390-64/configure.in: Likewise.
5278         * sysdeps/sparc/configure.in: Likewise.
5279         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5280         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5281         * sysdeps/i386/configure.in: Likewise.
5282         * sysdeps/x86_64/configure.in: Likewise.
5283         * sysdeps/sh/configure.in: Likewise.
5284         * sysdeps/s390/s390-32/configure: Regenerated.
5285         * sysdeps/s390/s390-64/configure: Likewise.
5286         * sysdeps/x86_64/configure: Likewise.
5287         * sysdeps/sh/configure: Likewise.
5288         * sysdeps/powerpc/powerpc64/configure: Likewise.
5289         * sysdeps/powerpc/powerpc32/configure: Likewise.
5290         * sysdeps/sparc/configure: Likwise.
5291         * sysdeps/i386/configure: Likewise.
5292
5293         * elf/dl-open.c: Comment fixes.
5294
5295 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5296
5297         * Makefile [CXX] (check-data): Remove.
5298         [CXX] (c++-types.data): New vpath directive.
5299         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5300         vpath.  Do not allow for C++ type data being missing.
5301         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5302         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5303         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5304         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5305         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5306         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5307         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5309         ... here.
5310         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5312         ... here.
5313         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5314         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5315         ... here.
5316         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5317         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5318         ... here.
5319         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5320         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5321         ... here.
5322         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5323         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5324         ... here.
5325         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5326         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5327         ... here.
5328         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5329         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5330
5331         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5332         definitions to architecture-specific files.
5333         (TLS_IE): Likewise.
5334         (TLS_LD): Likewise.
5335         (TLS_GD): Likewise.
5336         * sysdeps/i386/tls-macros.h: New file.
5337         * sysdeps/powerpc/tls-macros.h: Likewise.
5338         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5339         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5340         * sysdeps/sh/tls-macros.h: Likewise.
5341         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5342         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5343         * sysdeps/x86_64/tls-macros.h: Likewise.
5344
5345 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5346
5347         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5348         zero value for regular exit case.
5349
5350         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5351         (__start_context): Preserve zero value for regular exit case.
5352
5353 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5354             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5355
5356         * manual/setjmp.texi (setcontext): Clarify normal process
5357         termination when uc_link is the null pointer.
5358         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5359         exit call.
5360
5361 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5362
5363         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5364         preprocessor.  Test for each exception mask separately.
5365
5366 2012-07-16  Andreas Jaeger  <aj@suse.de>
5367
5368         * po/ru.po: Update from translation team.
5369
5370 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5371
5372         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5373         equal to 0.
5374         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5375         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5376         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5377         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5378         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5379
5380 2012-07-13  Andreas Jaeger  <aj@suse.de>
5381
5382         * po/fr.po: Update from translation team.
5383
5384 2012-07-12  Marek Polacek  <polacek@redhat.com>
5385
5386         [BZ #14173]
5387         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5388         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5389         loop condition.
5390
5391 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5392
5393         [BZ #13717]
5394         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5395         Change to 2.4.1 where previously 2.4.0.
5396         * sysdeps/unix/sysv/linux/configure: Regenerated.
5397         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5398         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5399         version.
5400         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5401         (__ASSUME_AT_CLKTCK): Remove.
5402         (__ASSUME_AT_PAGESIZE): Likewise.
5403         (__ASSUME_AT_XID): Likewise.
5404         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5405         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5406         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5407         unconditionally.
5408         (HAVE_AUX_PAGESIZE): Likewise.
5409         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5410         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5411         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5412
5413 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5414
5415         [BZ #14307]
5416         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5417         the temporary buffer used to invoke __gethostbyname2_r,
5418         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5419         host_data / struct gaih_addrtuple.
5420         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5421         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5422         header file nss/nsswitch.h.
5423         * nss/nsswitch.h (global scope): Add definition of implementation
5424         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5425         resolv/nss_dns/dns-host.c).
5426
5427 2012-07-11  Andreas Jaeger  <aj@suse.de>
5428
5429         * po/fr.po: Update from translation team.
5430
5431         * po/sv.po: Update from translation team
5432         * po/fr.po: Another update from translation team.
5433
5434 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5435
5436         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5437         for subnormals or multiply small sinh result by itself.
5438         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5439         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5440
5441 2012-07-11  David S. Miller  <davem@davemloft.net>
5442
5443         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5444
5445 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5446
5447         [BZ #14347]
5448         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5449         (INTERNAL_MARK): Shift it here.
5450
5451 2012-07-10  Marek Polacek  <polacek@redhat.com>
5452
5453         [BZ #14151]
5454         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5455         libc_cv_asm_global_directive with .globl.
5456         * configure: Regenerated.
5457         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5458         with .globl.
5459         * sysdeps/i386/configure: Regenerated.
5460         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5461         with .globl.
5462         * sysdeps/x86_64/configure: Regenerated.
5463         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5464         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5465         * elf/tst-unique2mod2.c: Likewise.
5466         * elf/tst-unique2mod1.c: Likewise.
5467         * elf/tst-unique1mod2.c: Likewise.
5468         * elf/tst-unique1mod1.c: Likewise.
5469         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5470         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5471         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5472         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5473         * sysdeps/mach/sysdep.h: Likewise.
5474         * sysdeps/i386/sysdep.h: Likewise.
5475         * sysdeps/i386/i386-mcount.S: Likewise.
5476         * sysdeps/x86_64/_mcount.S: Likewise.
5477         * sysdeps/x86_64/sysdep.h: Likewise.
5478         * sysdeps/sh/_mcount.S: Likewise.
5479         * sysdeps/sh/sysdep.h: Likewise.
5480         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5481         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5482         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5483         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5484         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5485         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5486         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5487         * locale/localeinfo.h: Likewise.
5488         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5489         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5490
5491 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5492
5493         [BZ #14336]
5494         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5495         system".
5496         * manual/message.texi (The Uniforum approach): Likewise.
5497         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5498         (glibc iconv Implementation): Likewise.
5499
5500 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5501
5502         [BZ #14337]
5503         * math/s_clog.c (__clog): Avoid scaling a value down where that
5504         could result in underflow.
5505         * math/s_clog10.c (__clog10): Likewise.
5506         * math/s_clog10f.c (__clog10f): Likewise.
5507         * math/s_clog10l.c (__clog10l): Likewise.
5508         * math/s_clogf.c (__clogf): Likewise.
5509         * math/s_clogl.c (__clogl): Likewise.
5510         * math/libm-test.inc (clog_test): Add more tests.
5511         (clog10_test): Likewise.
5512         * sysdeps/i386/fpu/libm-test-ulps: Update.
5513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5514
5515 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5516
5517         [BZ #14283]
5518         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5519         by 7 not 8 to examine high bit of fractional part.
5520
5521         [BZ #14042]
5522         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5523         for call to __mcount_internal.
5524         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5525         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5526         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5527
5528 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5529
5530         [BZ #14154]
5531         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5532         approximation for values within 0x1p-13f of an odd multiple of
5533         pi/4.
5534         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5535         exception.  Add more tests.
5536         * sysdeps/i386/fpu/libm-test-ulps: Update.
5537
5538         [BZ #6778]
5539         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5540         inputs and return -1 for them.  Do not check for +Inf in case not
5541         reachable for +Inf.
5542         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5543         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5544         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5545         and return -1 for them.  Do not check for +Inf in case not
5546         reachable for +Inf.
5547         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5548         define.
5549         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5550         and return -1 for them.  Do not check for +Inf in case not
5551         reachable for +Inf.
5552         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5553         spurious underflow.
5554         * sysdeps/i386/fpu/libm-test-ulps: Update.
5555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5556
5557 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5558
5559         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5560
5561 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5562
5563         [BZ #14157]
5564         [BZ #14331]
5565         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5566         could result in spurious underflow.  Scale down values above
5567         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5568         * math/s_csqrtf.c (__csqrtf): Likewise.
5569         * math/s_csqrtl.c (__csqrtl): Likewise.
5570         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5571         spurious underflow.
5572         * sysdeps/i386/fpu/libm-test-ulps: Update.
5573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5574
5575 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5576
5577         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5578         xopen-msg.sed.
5579         * catgets/xopen-msg.awk: New file.
5580         * catgets/xopen-msg.sed: Removed.
5581
5582         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5583         po2text.sed.
5584         * intl/po2test.awk: New file.
5585         * intl/po2test.sed: Removed.
5586
5587 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5588
5589         [BZ #14328]
5590         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5591         or multiply small sinh result by itself.
5592         * math/s_ctanf.c (__ctanf): Likewise.
5593         * math/s_ctanh.c (__ctanh): Likewise.
5594         * math/s_ctanhf.c (__ctanhf): Likewise.
5595         * math/s_ctanhl.c (__ctanhl): Likewise.
5596         * math/s_ctanl.c (__ctanl): Likewise.
5597         * math/libm-test.inc (ctan_test_tonearest): New function.
5598         (ctan_test_towardzero): Likewise.
5599         (ctan_test_downward): Likewise.
5600         (ctan_test_upward): Likewise.
5601         (ctanh_test_tonearest): Likewise.
5602         (ctanh_test_towardzero): Likewise.
5603         (ctanh_test_downward): Likewise.
5604         (ctanh_test_upward): Likewise.
5605         (main): Call these new functions.
5606         * sysdeps/i386/fpu/libm-test-ulps: Update.
5607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5608
5609 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5610
5611         * .gitignore: Delete /ports entry.
5612
5613 2012-07-03  Andreas Jaeger  <aj@suse.de>
5614
5615         * po/bg.po: Update from translation team.
5616         * po/cs.po: Likewise.
5617         * po/de.po: Likewise.
5618         * po/hr.po: Likewise.
5619         * po/nl.pl: Likewise.
5620         * po/pl.po: Likewise.
5621         * po/vi.po: Likewise.
5622
5623 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5624
5625         * Makeconfig [!+link] (+link-before-libc): New variable.
5626         [!+link] (+link-after-libc): Likewise.
5627         [!+link] (+link-tests): Likewise.
5628         [!+link] (+link): Define in terms of $(+link-before-libc) and
5629         $(+link-after-libc).
5630         [!+link-static] (+link-static-before-libc): New variable.
5631         [!+link-static] (+link-static-after-libc): Likewise.
5632         [!+link-static] (+link-static-tests): Likewise.
5633         [!+link-static] (+link-static): Define in terms of
5634         $(+link-static-before-libc) and $(+link-static-after-libc).
5635         [build-shared] (link-libc-before-gnulib): New variable.
5636         [build-shared] (link-libc-tests): Likewise.
5637         [build-shared] (link-libc): Define in terms of
5638         $(link-libc-before-gnulib).
5639         [!build-shared] (link-libc-tests): New variable.
5640         (link-libc-static-tests): New variable.
5641         [!gnulib] (gnulib-arch): New variable.
5642         [!gnulib] (gnulib-tests): Likewise.
5643         [!gnulib] (static-gnulib-arch): Likewise.
5644         [!gnulib] (static-gnulib-tests): Likewise.
5645         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5646         Define with "=" instead of ":=".
5647         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5648         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5649         * Rules (binaries-all-notests): New variable.
5650         (binaries-all-tests): Likewise.
5651         (binaries-static-notests): Likewise.
5652         (binaries-static-tests): Likewise.
5653         (binaries-all): Define using $(binaries-all-notests) and
5654         $(binaries-all-tests).
5655         (binaries-static): Define using $(binaries-static-notests) and
5656         $(binaries-static-tests).
5657         (binaries-shared-tests): New variable.
5658         (binaries-shared-notests): Likewise.
5659         (binaries-shared): Remove variable.
5660         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5661         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5662         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5663         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5664         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5665         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5666         * elf/Makefile (sln-modules): New variable.
5667         (extra-objs): Add $(sln-modules:=.o).
5668         (ldconfig-modules): Add static-stubs.
5669         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5670         * elf/static-stubs.c: New file.
5671
5672         [BZ #14283]
5673         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5674         by 7 not 8 to examine high bit of fractional part.  Use volatile
5675         variables when splitting into final array of floats if
5676         __FLT_EVAL_METHOD__ != 0.
5677         * math/libm-test.inc (cos_test): Add another test.
5678         (sin_test): Likewise.
5679         * sysdeps/i386/fpu/libm-test-ulps: Update.
5680
5681         [BZ #14273]
5682         * math/libm-test.inc (cosh_test): Add more tests.
5683
5684         * version.h (RELEASE): Set to "development".
5685         (VERSION): Set to "2.16.90".
5686
5687 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5688
5689         * NEWS: Update copyright. Remove last-updated date.
5690         Mention math library bug fixes and timezone data changes.
5691         * README: Mention GNU/Hurd, x32, and HPPA support status.
5692
5693 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5694
5695         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5696
5697 2012-06-27  Andreas Jaeger  <aj@suse.de>
5698
5699         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5700
5701 2012-06-25  Andreas Jaeger  <aj@suse.de>
5702
5703         * sysdeps/s390/fpu/libm-test-ulps: Update.
5704
5705 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5706             Thomas Schwinge  <thomas@codesourcery.com>
5707
5708         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5709         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5710         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5711         fanotify_mark.
5712
5713 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5714
5715         * sysdeps/mach/start.c: Remove file.
5716         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5717         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5718         * sysdeps/sh/init-first.c: Likewise.
5719
5720         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5721         registers for frame unwinding purposes, add CFI directives.
5722         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5723         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5724         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5725         Likewise.
5726
5727         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5728         __fortify_fail returning.
5729         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5730
5731         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5732         sysdeps/sh/____longjmp_chk.S.
5733         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5734         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5735         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5736         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5737
5738         * sysdeps/sh/abort-instr.h: New file.
5739         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5740         process in case exit returns.
5741
5742         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5743         initialize the GOT register before use.
5744
5745         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5746         calculation of ARGC > 4.
5747
5748         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5749         meaningful names to some local labels.
5750
5751 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5752             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5753
5754         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5755         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5756         (__arch_compare_and_exchange_val_16_acq): Likewise.
5757         (__arch_compare_and_exchange_val_32_acq): Likewise.
5758         (atomic_exchange_and_add): Fix gUSA sequence.
5759         (atomic_add): Likewise.
5760         (atomic_add_negative): Likewise.
5761         (atomic_add_zero): Likewise.
5762         (atomic_bit_test_set): Likewise.
5763
5764 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5765
5766         [BZ #13579]
5767         * include/link.h (struct link_map): Add l_free_initfini.
5768         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5769         l_initfini.
5770         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5771         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5772         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5773         set.
5774
5775 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5776
5777         * configure.in: Use AC_LANG_SOURCE.
5778         * configure: Regenerate.
5779
5780 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5781
5782         * configure.in (libc_cv_localstatedir): New substituted variable.
5783         * configure: Regenerated.
5784         * config.make.in (localstatedir): New variable, substituted from
5785         libc_cv_localstatedir.
5786         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5787         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5788         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5789         * sysdeps/gnu/configure: Regenerated.
5790
5791 2012-06-21  Jeff Law  <law@redhat.com>
5792
5793         [BZ #14277]
5794         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5795         free.  Simplify list management for _LIBC case.
5796
5797 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5798
5799         [BZ #14273]
5800         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5801         Clear sign bit of 64-bit integer value before comparing against
5802         overflow value.
5803
5804         * sysdeps/mach/configure: Regenerated.
5805
5806 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5807
5808         [BZ #14278]
5809         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5810
5811 2012-06-21  Jeff Law  <law@redhat.com>
5812
5813         [BZ #13882]
5814         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5815         uint16_t for elements in the "seen" array to avoid char overflows.
5816         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5817         * elf/dl-open.c (dl_open_worker): Likewise.
5818
5819 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5820
5821         * scripts/list-sources.sh: Scan PORTS for translations.
5822         * po/libc.pot: Regenerated.
5823
5824 2012-06-21  Andreas Jaeger  <aj@suse.de>
5825
5826         [BZ #12194]
5827         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5828         warning.
5829         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5830         * bits/byteswap-16.h (__bswap_16): Likewise.
5831         * bits/byteswap.h (__bswap_constant_16): Likewise.
5832
5833 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5834
5835         [BZ #14117]
5836         * sysdeps/i386/fpu_control.h: Removed.
5837         * sysdeps/x86_64/fpu_control.h: Moved to ...
5838         * sysdeps/x86/fpu_control.h: Here.
5839
5840         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5841         (_FPU_SETCW): Likewise.
5842
5843 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5844
5845         [BZ #14117]
5846         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5847         * sysdeps/x86/fpu/bits/mathinline.h: This.
5848         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5849
5850         [BZ #14050]
5851         [BZ #14117]
5852         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5853         functions if __x86_64__ is defined.
5854
5855 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5856
5857         * string/endian.h: Add !__ASSEMBLER__ condition for including
5858         conversion interfaces.
5859
5860 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5861
5862         [BZ #14241]
5863         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5864         of ABS(x) in calculating zero to negative powers other than odd
5865         integers.
5866         * math/libm-test.inc (pow_test): Add more tests.
5867
5868 2012-06-15  Andreas Jaeger  <aj@suse.de>
5869
5870         * manual/contrib.texi (Contributors): Update entry of Liubov
5871         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5872         Machado Filho.
5873
5874 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5875
5876         * string/string.h: Add __wur to GNU version of strerror_r.
5877
5878 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5879
5880         [BZ #14229]
5881         * string/Makefile (tests): Add tst-strtok_r.
5882         * string/tst-strtok_r.c: New file.
5883         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5884         RAX_LP/RDX_LP on SAVE_PTR.
5885
5886 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5887
5888         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5889
5890 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5891
5892         * libm_test.inc (csqrt_test): Allow more spurious underflow
5893         exceptions.
5894         (j0_test): Likewise.
5895         (j1_test): Likewise.
5896         (y0_test): Likewise.
5897         (y1_test): Likewise.
5898
5899 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5900
5901         * po/Makefile (libc.pot): Use UTF-8 charset.
5902
5903 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5904
5905         [BZ #14210]
5906         Suppress sign-conversion warning from FD_SET.
5907         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5908         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5909         not unsigned long int.
5910         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5911
5912 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5913
5914         [BZ #14050]
5915         [BZ #14117]
5916         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5917         __extern_always_inline instead of __extern_inline.
5918         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5919         (__signbit): Likewise.
5920         (__signbitl): Support C++ namespace.
5921         (lrintf): New inline function.
5922         (lrint): Likewise.
5923         (llrintf): Likewise.
5924         (llrint): Likewise.
5925         (fmaxf): Likewise.
5926         (fmax): Likewise.
5927         (fminf): Likewise.
5928         (fmin): Likewise.
5929         (rint): Likewise.
5930         (rintf): Likewise.
5931         (ceil): Likewise.
5932         (ceilf): Likewise.
5933         (floor): Likewise.
5934         (floorf): Likewise.
5935         (nearbyint): Likewise.
5936         (nearbyintf): Likewise.
5937
5938 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5939
5940         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5941         non-default versions.
5942
5943 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5944
5945         [BZ #14218]
5946         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5947
5948 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5949
5950         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5951         (FE_UPWARD, FE_DOWNWARD): Don't define.
5952         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5953         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5954
5955         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5956         reading it.
5957         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5958         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5959
5960 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5961
5962         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5963         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5964         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5965         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5966
5967 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5968
5969         [BZ #14117]
5970         * sysdeps/i386/fpu/bits/fenv.h: Removed.
5971         * sysdeps/i386/fpu/Implies: New file.
5972         * sysdeps/x86_64/fpu/Implies: Likewise.
5973         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
5974         * sysdeps/x86/fpu/bits/fenv.h: This.
5975
5976         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
5977         __SSE_MATH__.
5978
5979 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
5980
5981         [BZ #14134]
5982         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
5983         character 0xffff that matches the last element of the
5984         conversion table.
5985
5986 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5987
5988         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
5989         fmodl commit.
5990
5991 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5992
5993         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
5994         values higher than 25.6283.
5995
5996 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5997
5998         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
5999         subnormal exponent extraction and add some __builtin_expect.
6000         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6001         Fix for subnormal mantissa calculation.
6002
6003 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
6004
6005         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6006         cpu2 is -1 and errno is not ENOSYS.
6007
6008 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6009
6010         [BZ #14117]
6011         * sysdeps/i386/i486/bits/string.h: Renamed to ...
6012         * sysdeps/x86/bits/string.h: This.
6013         * sysdeps/x86_64/bits/string.h: Removed.
6014
6015         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6016         if not compiling for x86-64, but compiling for >= i486.
6017
6018         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6019         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6020
6021         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6022         New macro from Linux kernel 3.4.0.
6023         (FP_XSTATE_MAGIC2): Likewise.
6024         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6025         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6026         (struct _fpx_sw_bytes): New struct.
6027         (struct _xsave_hdr): Likewise.
6028         (struct _ymmh_state): Likewise.
6029         (struct _xstate): Likewise.
6030
6031         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6032         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6033         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6034         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6035         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6036         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6037
6038         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6039         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6040         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6041         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6042         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6043         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6044
6045 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6046
6047         [BZ #13743]
6048         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6049         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6050         (sysdep_headers): Include sys/platform/ppc.h.
6051         * sysdeps/powerpc/test-gettimebase.c: Test for
6052         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6053         * manual/Makefile (appendices): Include platform.texi.
6054         * manual/contrib.texi (Contributors): Update @node pointers.
6055         * manual/maint.texi (Maintenance): Likewise.
6056         (Platform): New node.
6057         * manual/platform.texi: New file.  Document the new features.
6058
6059 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6060             Jakub Jelinek  <jakub@redhat.com>
6061
6062         [BZ #14188]
6063         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6064         where __builtin_expect is unavailable.
6065
6066 2012-06-03  David S. Miller  <davem@davemloft.net>
6067
6068         * stdlib/longlong.h: Updated from GCC.
6069
6070 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6071
6072         [BZ #14042]
6073         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6074         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6075         __mcount_internal.
6076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6077         (GLIBC_2.16): Likewise.
6078
6079 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6080
6081         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6082
6083 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6084
6085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6086         (default-abi): New variable.
6087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6088         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6089         variable.
6090         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6091         Likewise.
6092         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6093         Likewise.
6094         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6095         Likewise.
6096
6097         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6098         definition.  Document in comment.
6099
6100 2012-06-01  David S. Miller  <davem@davemloft.net>
6101
6102         * stdlib/longlong.h: Updated from GCC.
6103
6104 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6105
6106         [BZ #14117]
6107         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6108         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6109         sys/debugreg.h sys/io.h here.
6110         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6111         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6112         sys/io.h.
6113         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6114         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6115         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6116         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6117         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6118         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6119
6120         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6121         Define only if __x86_64__ is defined.
6122
6123 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6124
6125         [BZ #14048]
6126         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6127         Use int64_t for variable i.
6128         * math/libm-test.inc (fmod_test): Add more tests.
6129
6130         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6131         z computation is not scheduled after fetestexcept.
6132         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6133         Use math_force_eval instead of asm to ensure calculation scheduled
6134         before exception test.
6135         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6136         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6137
6138 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6139
6140         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6141         computation is not scheduled after fetestexcept.
6142
6143 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6144
6145         [BZ #14117]
6146         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6147         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6148
6149 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6150
6151         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6152         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6153
6154 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6155
6156         [BZ #14117]
6157         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6158         <bits/wordsize.h>.
6159         (__WCHAR_MIN): Support __WORDSIZE == 64.
6160         (__WCHAR_MAX): Likewise.
6161
6162         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6163         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6164
6165         [BZ #14183]
6166         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6167         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6168
6169         [BZ #14117]
6170         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6171         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6172
6173         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6174         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6175
6176         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6177         Defined to 1 if __x86_64__ isn't defined.
6178         (_STAT_VER_LINUX_OLD): New.
6179         (st_atime): Remove duplicate.
6180         (st_mtime): Likewise.
6181         (st_ctime): Likewise.
6182
6183 2012-05-31  David S. Miller  <davem@davemloft.net>
6184
6185         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6186         entries.
6187
6188 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6189
6190         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6191         gen-libm-test.pl.
6192
6193         [BZ #14132]
6194         * elf/dl-reloc.c: Include <_itoa.h>.
6195         (_dl_reloc_bad_type): Remove use of INTUSE.
6196         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6197         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6198         * stdio-common/psiginfo.c (psiginfo): Likewise.
6199         * stdio-common/psignal.c (psignal): Likewise.
6200         * string/strsignal.c (strsignal): Likewise.
6201         * include/signal.h (_sys_siglist): Declare hidden proto.
6202         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
6203         INTVARDEF with libc_hidden_data_def.
6204         * stdio-common/itoa-udigits.c: Likewise.
6205         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6206         (_itoa_lower_digits_internal): Remove declaration.
6207         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6208         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6209         (_sys_sigabbrev_internal): Remove aliases.
6210         (_sys_siglist): Define hidden alias.
6211
6212 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6213
6214         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6215         bits/sysctl.h.
6216
6217 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6218
6219         [BZ #14117]
6220         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6221         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6222
6223         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6224         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6225         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6226         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6227         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6228         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6229
6230         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6231         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6232         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6233
6234         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6235         with __addr.
6236         (insw): Likewise.
6237         (insl): Likewise.
6238         (outsb): Likewise.
6239         (outsw): Likewise.
6240         (outsl): Likewise.
6241
6242         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6243         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6244         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6245
6246         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6247         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6248         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6249         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6250         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6251         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6252
6253         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6254         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6255
6256         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6257         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6258
6259         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6260         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6261         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6262
6263         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6264         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6265         to ...
6266         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6267
6268         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6269         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6270         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6271
6272         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6273         for x86-64.
6274         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6275
6276 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6277
6278         * math/math.h (M_El): Use two more decimal places.
6279         (M_LOG2El): Likewise.
6280         (M_LOG10El): Likewise.
6281         (M_LN2l): Likewise.
6282         (M_LN10l): Likewise.
6283         (M_PIl): Likewise.
6284         (M_PI_2l): Likewise.
6285         (M_PI_4l): Likewise.
6286         (M_1_PIl): Likewise.
6287         (M_2_PIl): Likewise.
6288         (M_2_SQRTPIl): Likewise.
6289         (M_SQRT2l): Likewise.
6290         (M_SQRT1_2l): Likewise.
6291
6292 2012-05-31  David S. Miller  <davem@davemloft.net>
6293
6294         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6295         values between float registers.
6296         * sysdeps/sparc/sparc64/memset.S: Likewise.
6297         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6298
6299 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6300
6301         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6302         -D_FORTIFY_SOURCE=1.
6303         (CPPFLAGS-tst-longjmp_chk.c): Define.
6304         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6305         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6306         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6307         CFLAGS-tst-wchar-h.c.
6308
6309 2012-05-31  Marek Polacek  <polacek@redhat.com>
6310
6311         [BZ #14132]
6312         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6313         __endmntent_internal): Remove declaration.
6314         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6315         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6316         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6317
6318 2012-05-30  David S. Miller  <davem@davemloft.net>
6319
6320         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6321         (___Q_simulate_exceptions): Use real FP ops rather than writing
6322         into the %fsr.
6323         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6324         Likewise.
6325
6326 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6327
6328         [BZ #14117]
6329         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6330         * sysdeps/x86/bits/xtitypes.h: This.
6331
6332         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6333         * sysdeps/x86/bits/wordsize.h: This.
6334
6335         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6336         * sysdeps/x86/bits/huge_vall.h: This.
6337
6338         * sysdeps/i386/bits/select.h: Removed.
6339         * sysdeps/x86_64/bits/select.h: Renamed to ...
6340         * sysdeps/x86/bits/select.h: This.
6341
6342         * sysdeps/i386/bits/setjmp.h: Removed.
6343         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6344         * sysdeps/x86/bits/setjmp.h: This.
6345
6346         * sysdeps/i386/bits/mathdef.h: Removed.
6347         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6348         * sysdeps/x86/bits/mathdef.h: This.
6349
6350 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6351
6352         [BZ #14132]
6353         * include/sys/socket.h (__connect_internal)
6354         (__libc_sa_len_internal): Remove declaration.
6355         (__connect, __libc_sa_len): Declare hidden_proto.
6356         (SA_LEN): Remove use of INTUSE.
6357         * socket/connect.c: Add libc_hidden_def.
6358         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6359         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6360         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6361         alias.
6362         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6363         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6364         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6365         of adding _internal alias.
6366
6367 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6368
6369         [BZ #14117]
6370         * sysdeps/i386/bits/link.h: Removed.
6371         * sysdeps/i386/bits/linkmap.h: Likewise.
6372         * sysdeps/x86_64/bits/link.h: Renamed to ...
6373         * sysdeps/x86/bits/link.h: This.
6374         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6375         * sysdeps/x86/bits/linkmap.h: This.
6376
6377         * sysdeps/i386/bits/endian.h: Removed.
6378         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6379         * sysdeps/x86/bits/endian.h: This.
6380
6381         * sysdeps/i386/bits/byteswap.h: Removed.
6382         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6383         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6384         * sysdeps/x86/bits/byteswap.h: This.
6385         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6386         * sysdeps/x86/bits/byteswap-16.h: This.
6387         * sysdeps/i386/Implies: Add x86.
6388         * sysdeps/x86_64/Implies: Likewise.
6389
6390 2012-05-30  David S. Miller  <davem@davemloft.net>
6391
6392         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6393         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6394         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6395         (FP_TRAPPING_EXCEPTIONS): Define.
6396         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6397         (FP_TRAPPING_EXCEPTIONS): Define.
6398         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6399         subnormals only when inexact has been signalled or underflow
6400         exceptions are enabled.
6401         (_FP_PACK_CANONICAL): Likewise.
6402
6403 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6404
6405         [BZ #14183]
6406         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6407         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6408
6409 2012-05-30  Richard Henderson  <rth@twiddle.net>
6410
6411         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6412         with #ifndef NOT_IN_libc.
6413
6414         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6415         marked to avoid plt entry.
6416
6417 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6418
6419         [BZ #14112]
6420         * Makeconfig (default-abi): New macro.
6421         (abi-includes): Likewise.
6422         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6423         $(abi-$(default-abi)-lib-soname) for soname if defined.
6424         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6425         abi-variants.
6426         * Makefile (installed-stubs): Likewise.
6427         * include/stubs-biarch.h: Removed.
6428         * scripts/lib-names.awk: Only handle one library at a time.
6429         * scripts/soversions.awk: Remove WORDSIZE support.
6430         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6431         entries.
6432         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6433         Removed.
6434         (syscall-list-default-condition): Likewise.
6435         (syscall-list-default-condition): Likewise.
6436         (syscall-list-includes): Likewise.
6437         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6438         syscall-list-* with abi-*.  Handle undefined abi-variants.
6439         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6440         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6441         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6442         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6443         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6444         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6445         Removed.
6446         (syscall-list-32-options): Likewise.
6447         (syscall-list-32-condition): Likewise.
6448         (syscall-list-64-options): Likewise.
6449         (syscall-list-64-condition): Likewise.
6450         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6451         macro.
6452         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6453         Renamed to ...
6454         (abi-*): This.
6455         (abi-64-ld-soname): New macro.
6456         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6457         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6458         Renamed to ...
6459         (abi-*): This.
6460         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6461         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6462
6463 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6464
6465         * sysdeps/unix/sysv/linux/kernel-features.h
6466         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6467         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6468         include <kernel-features.h>.
6469         [!__NR_ftruncate64]: Remove conditional code.
6470         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6471         [__NR_ftruncate64]: Make code unconditional.
6472         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6473         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6474         include <kernel-features.h>.
6475         [!__NR_ftruncate64]: Remove conditional code.
6476         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6477         [__NR_ftruncate64]: Make code unconditional.
6478         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6480         include <kernel-features.h>.
6481         [!__NR_ftruncate64]: Remove conditional code.
6482         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6483         [__NR_ftruncate64]: Make code unconditional.
6484         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6486         include <kernel-features.h>.
6487         [!__NR_ftruncate64]: Remove conditional code.
6488         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6489         [__NR_ftruncate64]: Make code unconditional.
6490         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6491
6492         * configure.in (libc_cv_fpie): Weaken to a compile test using
6493         LIBC_TRY_CC_OPTION.
6494         * configure: Regenerated.
6495
6496 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6497
6498         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6499         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6500         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6501         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6502         Refreshed.
6503         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6504         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6505         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6506         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6507         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6508         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6509         Refreshed.
6510
6511 2012-05-27  David S. Miller  <davem@davemloft.net>
6512
6513         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6514         (___Q_zero): New.
6515         (__Q_simulate_exceptions): Return void.  Change to simulate
6516         exceptions by writing into the %fsr.
6517         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6518         (__Qp_handle_exceptions): Likewise.
6519         (numbers): Delete.
6520         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6521         __Qp_handle_exceptions.
6522         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6523         __Qp_handle_exceptions.
6524         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6525         as unused and give dummy FP_RND_NEAREST initializer.
6526         (FP_INHIBIT_RESULTS): Define.
6527         (___Q_simulate_exceptions): Update declaration.
6528         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6529         formatting.
6530         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6531         as unused and give dummy FP_RND_NEAREST initializer.
6532         (__Qp_handle_exceptions): Update declaration.
6533         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6534         formatting.
6535
6536 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6537
6538         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6539         the temporary FPU control word.
6540         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6541         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6542         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6543         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6544         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6545         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6546         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6547         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6548         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6549         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6550         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6551
6552 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6553
6554         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6555         fields.
6556
6557 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6558
6559         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6560         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6561         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6562         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6563         Likewise.
6564         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6565         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6566         Likewise.
6567
6568 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6569
6570         * po/h.po: Update from translation team.
6571
6572 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6573
6574         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6575
6576         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6577         handling of denormals.
6578         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6579         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6580         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6581         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6582         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6583         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6584         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6585         Likewise.
6586
6587 2012-05-26  Marek Polacek  <polacek@redhat.com>
6588
6589         [BZ #14152]
6590         * math/libm-test.inc (fma_test): Don't always expect underflow
6591         exception.
6592
6593 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6594
6595         [BZ #12416]
6596         * elf/tst-execstack.c: Include stackinfo.h.
6597         (do_test): Adjust test case to ensure that pthread_getattr_np
6598         behaviour remains the same after marking stack executable.
6599
6600 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6601
6602         * sysdeps/unix/sysv/linux/kernel-features.h
6603         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6604         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6605         kernel-features.h.
6606         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6607         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6608         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6609         kernel-features.h.
6610         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6611         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6612
6613 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6614
6615         * configure.in: Define the default includes to being none.
6616         * configure: Regenerated.
6617
6618 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6619
6620         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6621         * sysdeps/x86_64/setjmp.S: Likewise.
6622         * sysdeps/i386/bsd-setjmp.S: Likewise.
6623         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6624         * sysdeps/i386/setjmp.S: Likewise.
6625         * sysdeps/i386/__longjmp.S: Likewise.
6626         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6627         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6628
6629         * include/stap-probe.h: New file.
6630         * configure.in: Handle --enable-systemtap.
6631         * configure: Regenerated.
6632         * config.h.in (USE_STAP_PROBE): New #undef.
6633         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6634         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6635         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6636
6637 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6638
6639         [BZ #13717]
6640         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6641         to 2.4.0 where earlier.
6642         * sysdeps/unix/sysv/linux/configure: Regenerated.
6643         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6644         <kernel-features.h>.
6645         [__ASSUME_32BITUIDS]: Make code unconditional.
6646         [!__ASSUME_32BITUIDS]: Remove conditional code.
6647         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6648         <kernel-features.h>.
6649         [__ASSUME_32BITUIDS]: Make code unconditional.
6650         [!__ASSUME_32BITUIDS]: Remove conditional code.
6651         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6652         [__ASSUME_32BITUIDS]: Make code unconditional.
6653         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6654         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6655         <kernel-features.h>.
6656         [__ASSUME_32BITUIDS]: Make code unconditional.
6657         [!__ASSUME_32BITUIDS]: Remove conditional code.
6658         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6659         <kernel-features.h>.
6660         [__ASSUME_32BITUIDS]: Make code unconditional.
6661         [!__ASSUME_32BITUIDS]: Remove conditional code.
6662         * sysdeps/unix/sysv/linux/i386/getgid.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/i386/getgroups.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/i386/getresgid.c: Do not include
6671         <kernel-features.h>.
6672         [__ASSUME_32BITUIDS]: Make code unconditional.
6673         [!__ASSUME_32BITUIDS]: Remove conditional code.
6674         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6675         <kernel-features.h>.
6676         [__ASSUME_32BITUIDS]: Make code unconditional.
6677         [!__ASSUME_32BITUIDS]: Remove conditional code.
6678         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6679         <kernel-features.h>.
6680         [__ASSUME_32BITUIDS]: Make code unconditional.
6681         [!__ASSUME_32BITUIDS]: Remove conditional code.
6682         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6683         <kernel-features.h>.
6684         [__ASSUME_32BITUIDS]: Make code unconditional.
6685         [!__ASSUME_32BITUIDS]: Remove conditional code.
6686         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6687         <kernel-features.h>.
6688         [__ASSUME_32BITUIDS]: Make code unconditional.
6689         [!__ASSUME_32BITUIDS]: Remove conditional code.
6690         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6691         <kernel-features.h>.
6692         [__ASSUME_32BITUIDS]: Make code unconditional.
6693         [!__ASSUME_32BITUIDS]: Remove conditional code.
6694         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6695         <kernel-features.h>.
6696         [__NR_setresgid] (__setresgid): Do not declare.
6697         [__ASSUME_32BITUIDS]: Make code unconditional.
6698         [!__ASSUME_32BITUIDS]: Remove conditional code.
6699         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6700         <kernel-features.h>.
6701         [__NR_setresuid] (__setresuid): Do not declare.
6702         [__ASSUME_32BITUIDS]: Make code unconditional.
6703         [!__ASSUME_32BITUIDS]: Remove conditional code.
6704         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6705         <kernel-features.h>.
6706         [__ASSUME_32BITUIDS]: Make code unconditional.
6707         [!__ASSUME_32BITUIDS]: Remove conditional code.
6708         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6709         <kernel-features.h>.
6710         [__ASSUME_32BITUIDS]: Make code unconditional.
6711         [!__ASSUME_32BITUIDS]: Remove conditional code.
6712         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6713         <kernel-features.h>.
6714         [__ASSUME_32BITUIDS]: Make code unconditional.
6715         [!__ASSUME_32BITUIDS]: Remove conditional code.
6716         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6717         <kernel-features.h>.
6718         [__ASSUME_32BITUIDS]: Make code unconditional.
6719         [!__ASSUME_32BITUIDS]: Remove conditional code.
6720         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6721         <kernel-features.h>.
6722         [__ASSUME_32BITUIDS]: Make code unconditional.
6723         [!__ASSUME_32BITUIDS]: Remove conditional code.
6724         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6725         <kernel-features.h>.
6726         [__ASSUME_32BITUIDS]: Make code unconditional.
6727         [!__ASSUME_32BITUIDS]: Remove conditional code.
6728         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6729         <kernel-features.h>.
6730         [__ASSUME_32BITUIDS]: Make code unconditional.
6731         [!__ASSUME_32BITUIDS]: Remove conditional code.
6732         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6733         <kernel-features.h>.
6734         [__ASSUME_32BITUIDS]: Make code unconditional.
6735         [!__ASSUME_32BITUIDS]: Remove conditional code.
6736         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6737         <kernel-features.h>.
6738         [__ASSUME_32BITUIDS]: Make code unconditional.
6739         [!__ASSUME_32BITUIDS]: Remove conditional code.
6740         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6741         <kernel-features.h>.
6742         [__ASSUME_32BITUIDS]: Make code unconditional.
6743         [!__ASSUME_32BITUIDS]: Remove conditional code.
6744         * sysdeps/unix/sysv/linux/kernel-features.h
6745         (__ASSUME_SETRESUID_SYSCALL): Remove.
6746         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6747         (__ASSUME_32BITUIDS): Likewise.
6748         (__ASSUME_LDT_WORKS): Likewise.
6749         (__ASSUME_O_DIRECTORY): Likewise.
6750         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6751         architecture but not kernel version.
6752         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6753         (__ASSUME_MMAP2_SYSCALL): Likewise.
6754         (__ASSUME_STAT64_SYSCALL): Likewise.
6755         (__ASSUME_IPC64): Likewise.
6756         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6757         <kernel-features.h>.
6758         [__ASSUME_32BITUIDS]: Make code unconditional.
6759         [!__ASSUME_32BITUIDS]: Remove conditional code.
6760         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6761         <kernel-features.h>.
6762         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6763         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6764         132096]: Remove conditional code.
6765         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6766         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6767         <kernel-features.h>.
6768         [__ASSUME_32BITUIDS]: Make code unconditional.
6769         [!__ASSUME_32BITUIDS]: Remove conditional code.
6770         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6771         <kernel-features.h>.
6772         [__ASSUME_32BITUIDS]: Make code unconditional.
6773         [!__ASSUME_32BITUIDS]: Remove conditional code.
6774         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6775         <kernel-features.h>.
6776         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6777         unconditional.
6778         (__setresgid): Do not declare.
6779         [__ASSUME_32BITUIDS]: Make code unconditional.
6780         [!__ASSUME_32BITUIDS]: Remove conditional code.
6781         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6782         <kernel-features.h>.
6783         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6784         unconditional.
6785         (__setresuid): Do not declare.
6786         [__ASSUME_32BITUIDS]: Make code unconditional.
6787         [!__ASSUME_32BITUIDS]: Remove conditional code.
6788         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6789         <kernel-features.h>.
6790         [__ASSUME_32BITUIDS]: Make code unconditional.
6791         [!__ASSUME_32BITUIDS]: Remove conditional code.
6792         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6793         <kernel-features.h>.
6794         [__ASSUME_32BITUIDS]: Make code unconditional.
6795         [!__ASSUME_32BITUIDS]: Remove conditional code.
6796
6797 2012-05-25  Richard Henderson  <rth@twiddle.net>
6798
6799         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6800         dl_hwcap to ifunc resolver.
6801         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6802         elf_ifunc_invoke.
6803         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6804         dl_hwcap to ifunc resolver.
6805         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6806
6807 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6808
6809         [BZ #14153]
6810         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6811         for |x| <= 2**-26, not 2**-57.
6812         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6813         exception.
6814
6815 2012-05-24  Jeff Law  <law@redhat.com>
6816
6817         * stdio-common/Makefile (tests): Add bug25.
6818         * stdio-common/bug25.c: New test.
6819
6820 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6821
6822         [BZ #13576]
6823         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6824         multiple of MALLOC_ALIGNMENT in size.
6825         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6826
6827 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6828
6829         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6830         Require >= 256.
6831         (FILENAME_MAX): Use macro-int-constant.
6832         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6833         (_IOFBF): Use macro-int-constant.
6834         (_IOLBF): Likewise.
6835         (_IONBF): Likewise.
6836         (SEEK_CUR): Likewise.
6837         (SEEK_END): Likewise.
6838         (SEEK_SET): Likewise.
6839         (TMP_MAX): Likewise.
6840         (EOF): Use macro-int-constant.  Require < 0.
6841         (NULL): Use macro-constant.  Require == 0.
6842         (stdin): Require type to be FILE *.
6843         (stdout): Likewise.
6844         (stderr): Likewise.
6845         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6846         macro-int-constant.
6847         (EXIT_SUCCESS): Likewise.
6848         (NULL): Use macro-constant.  Require == 0.
6849         (RAND_MAX): Use macro-int-constant.
6850         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6851         [C99-based standards] (strtof): Require function.
6852         [C99-based standards] (strtold): Likewise.
6853         [C99-based standards] (strtoll): Likewise.
6854         [C99-based standards] (strtoull): Likewise.
6855         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6856         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6857         [ISO || ISO99 || ISO11] (math.h): Likewise.
6858         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6859         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6860         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6861
6862 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6863
6864         [BZ #14132]
6865         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6866         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6867         * intl/dgettext.c (DCGETTEXT): Likewise.
6868         * intl/gettext.c (DCGETTEXT): Likewise.
6869         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6870         * posix/regex_internal.h (gettext): Likewise.
6871         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6872         Remove declaration.
6873         * include/argz.h (__argz_count_internal)
6874         (__argz_stringify_internal): Remove declaration.
6875         (__argz_count, __argz_stringify): Declare hidden proto.
6876         * intl/dcgettext.c: Remove use of INTDEF.
6877         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6878         * string/argz-stringify.c: Likewise.
6879         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6880         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6881         Declare hidden proto.
6882         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6883         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6884         Declare hidden proto.
6885         * include/stdio.h (__asprintf_internal): Don't declare.
6886         (__asprintf): Don't define as macro.  Declare hidden proto.
6887         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6888         (__fsetlocking): Declare hidden proto.
6889         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6890         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6891         hidden proto.
6892         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6893         (_IO_setlinebuf): Remove use of INTUSE.
6894         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6895         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6896         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6897         Remove declaration.
6898         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6899         (_IO_do_flush): Remove use of INTUSE.
6900         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6901         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6902         (_IO_adjust_column, _IO_least_wmarker)
6903         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6904         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6905         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6906         (_IO_default_doallocate, _IO_wdefault_doallocate)
6907         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6908         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6909         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6910         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6911         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6912         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6913         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6914         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6915         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6916         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6917         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6918         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6919         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6920         proto.
6921         (_IO_flush_all_internal, _IO_adjust_column_internal)
6922         (_IO_default_uflow_internal, _IO_default_finish_internal)
6923         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6924         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6925         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6926         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6927         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6928         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6929         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6930         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6931         (_IO_file_close_internal, _IO_file_close_it_internal)
6932         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6933         (_IO_file_init_internal, _IO_file_attach_internal)
6934         (_IO_file_fopen_internal, _IO_file_read_internal)
6935         (_IO_file_sync_internal, _IO_file_seek_internal)
6936         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6937         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6938         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6939         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6940         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6941         (_IO_list_all_internal, _IO_link_in_internal)
6942         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6943         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6944         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6945         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6946         (_IO_do_write_internal, _IO_padn_internal)
6947         (_IO_getline_info_internal, _IO_getline_internal)
6948         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6949         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6950         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6951         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6952         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6953         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6954         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6955         with libc_hidden_ver, remove use of INTUSE.
6956         * libio/genops.c: Likewise.
6957         * libio/freopen.c: Likewise.
6958         * libio/freopen64.c: Likewise.
6959         * libio/iofclose.c: Likewise.
6960         * libio/iofdopen.c: Likewise.
6961         * libio/iofflush.c: Likewise.
6962         * libio/iofflush_u.c: Likewise.
6963         * libio/iofgets.c: Likewise.
6964         * libio/iofgets_u.c: Likewise.
6965         * libio/iofopen.c: Likewise.
6966         * libio/iofopncook.c: Likewise.
6967         * libio/iofread.c: Likewise.
6968         * libio/iofread_u.c: Likewise.
6969         * libio/ioftell.c: Likewise.
6970         * libio/iofwrite.c: Likewise.
6971         * libio/iogetline.c: Likewise.
6972         * libio/iogets.c: Likewise.
6973         * libio/iogetwline.c: Likewise.
6974         * libio/iopadn.c: Likewise.
6975         * libio/iopopen.c: Likewise.
6976         * libio/ioseekoff.c: Likewise.
6977         * libio/ioseekpos.c: Likewise.
6978         * libio/iosetbuffer.c: Likewise.
6979         * libio/iosetvbuf.c: Likewise.
6980         * libio/ioungetc.c: Likewise.
6981         * libio/ioungetwc.c: Likewise.
6982         * libio/iovdprintf.c: Likewise.
6983         * libio/iovsprintf.c: Likewise.
6984         * libio/iovsscanf.c: Likewise.
6985         * libio/memstream.c: Likewise.
6986         * libio/obprintf.c: Likewise.
6987         * libio/oldfileops.c: Likewise.
6988         * libio/oldiofclose.c: Likewise.
6989         * libio/oldiofdopen.c: Likewise.
6990         * libio/oldiofopen.c: Likewise.
6991         * libio/oldiopopen.c: Likewise.
6992         * libio/oldstdfiles.c: Likewise.
6993         * libio/putc.c: Likewise.
6994         * libio/setbuf.c: Likewise.
6995         * libio/setlinebuf.c: Likewise.
6996         * libio/stdfiles.c: Likewise.
6997         * libio/strops.c: Likewise.
6998         * libio/vasprintf.c: Likewise.
6999         * libio/vscanf.c: Likewise.
7000         * libio/vsnprintf.c: Likewise.
7001         * libio/vswprintf.c: Likewise.
7002         * libio/wfiledoalloc.c: Likewise.
7003         * libio/wfileops.c: Likewise.
7004         * libio/wgenops.c: Likewise.
7005         * libio/wmemstream.c: Likewise.
7006         * libio/wstrops.c: Likewise.
7007         * libio/__fpurge.c: Likewise.
7008         * libio/__fsetlocking.c: Likewise.
7009         * assert/assert.c: Likewise.
7010         * debug/fgets_chk.c: Likewise.
7011         * debug/fgets_u_chk.c: Likewise.
7012         * debug/fread_chk.c: Likewise.
7013         * debug/fread_u_chk.c: Likewise.
7014         * debug/gets_chk.c: Likewise.
7015         * debug/obprintf_chk.c: Likewise.
7016         * debug/vasprintf_chk.c: Likewise.
7017         * debug/vdprintf_chk.c: Likewise.
7018         * debug/vsnprintf_chk.c: Likewise.
7019         * debug/vsprintf_chk.c: Likewise.
7020         * malloc/mtrace.c: Likewise.
7021         * misc/error.c: Likewise.
7022         * misc/syslog.c: Likewise.
7023         * stdio-common/asprintf.c: Likewise.
7024         * stdio-common/fxprintf.c: Likewise.
7025         * stdio-common/getw.c: Likewise.
7026         * stdio-common/isoc99_fscanf.c: Likewise.
7027         * stdio-common/isoc99_scanf.c: Likewise.
7028         * stdio-common/isoc99_vfscanf.c: Likewise.
7029         * stdio-common/isoc99_vscanf.c: Likewise.
7030         * stdio-common/isoc99_vsscanf.c: Likewise.
7031         * stdio-common/printf-prs.c: Likewise.
7032         * stdio-common/printf_fp.c: Likewise.
7033         * stdio-common/printf_fphex.c: Likewise.
7034         * stdio-common/printf_size.c: Likewise.
7035         * stdio-common/putw.c: Likewise.
7036         * stdio-common/scanf.c: Likewise.
7037         * stdio-common/sprintf.c: Likewise.
7038         * stdio-common/tmpfile.c: Likewise.
7039         * stdio-common/vfprintf.c: Likewise.
7040         * stdio-common/vfscanf.c: Likewise.
7041         * stdlib/strfmon_l.c: Likewise.
7042         * sunrpc/openchild.c: Likewise.
7043         * sunrpc/xdr_stdio.c: Likewise.
7044         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7045         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7046
7047 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7048
7049         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7050
7051         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7052         in the third column, to generate for the shared library an IFUNC
7053         that uses _dl_vdso_vsym.
7054         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7055         * Makeconfig (object-suffixes-noshared): New variable.
7056
7057         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7058         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7059         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7060         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7061
7062         [BZ #14132]
7063         * include/sys/time.h (__gettimeofday): Remove macro.
7064         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7065         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7066         Remove INTDEF.
7067         (__gettimeofday): Add libc_hidden_def.
7068         (gettimeofday): Add libc_hidden_weak.
7069         * sysdeps/mach/gettimeofday.c: Likewise.
7070         * sysdeps/posix/gettimeofday.c: Likewise.
7071         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7072         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7073         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7074         (__gettimeofday_internal): Remove strong_alias.
7075         (__gettimeofday): Add libc_hidden_def.
7076         (gettimeofday): Add libc_hidden_weak.
7077         * sysdeps/unix/syscalls.list (gettimeofday):
7078         Remove __gettimeofday_internal alias.
7079
7080 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7081             H.J. Lu  <hongjiu.lu@intel.com>
7082
7083         [BZ #12495]
7084         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7085         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7086         (largebin_index_32_big): New.
7087         (largebin_index): Use it for 16-byte alignment.
7088         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7089         correction with front_misalign.
7090
7091 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7092
7093         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7094         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7095         Likewise.
7096         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7097         Likewise.
7098         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7099         Likewise.
7100         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7101         Likewise.
7102         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7103         Likewise.
7104         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7105         Likewise.
7106         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7107         Likewise.
7108         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7109         Likewise.
7110         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7111         Likewise.
7112         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7113         Likewise.
7114         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7115         Likewise.
7116         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7117         Likewise.
7118
7119         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7120         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7121
7122 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7123
7124         [BZ #10846]
7125         [BZ #14036]
7126         * math/libm-test.inc (exp_test): Add test from bug 14036.
7127         (pow_test): Add test from bug 10846.
7128
7129         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7130         and other flags.
7131         (special_function): Do not include flags in test name.
7132         (parse_args): Likewise.
7133         * sysdeps/i386/fpu/libm-test-ulps: Update.
7134         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7135         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7136         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7138
7139         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7140         exceptions.
7141         * math/libm-test.inc ("Philosophy"): Update comment about
7142         exception testing.
7143         (UNDERFLOW_EXCEPTION): New macro.
7144         (UNDERFLOW_EXCEPTION_OK): Likewise.
7145         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7146         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7147         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7148         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7149         (INVALID_EXCEPTION_OK): Update value.
7150         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7151         (OVERFLOW_EXCEPTION_OK): Likewise.
7152         (IGNORE_ZERO_INF_SIGN): Likewise.
7153         (test_exceptions): Handle underflow exceptions.
7154         (acos_test): Update for underflow exception expectations.
7155         (cexp_test): Likewise.
7156         (clog_test): Likewise.
7157         (clog10_test): Likewise.
7158         (csqrt_test): Likewise.
7159         (ctan_test): Likewise.
7160         (ctanh_test): Likewise.
7161         (exp_test): Likewise.
7162         (exp10_test): Likewise.
7163         (exp2_test): Likewise.
7164         (expm1_test): Likewise.
7165         (fma_test): Likewise.
7166         (j0_test): Likewise.
7167         (jn_test): Likewise.
7168         (nexttoward_test): Likewise.
7169         (pow_test): Likewise.
7170         (scalbn_test): Likewise.
7171         (scalbln_test): Likewise.
7172         (tan_test): Likewise.
7173         (y1_test): Likewise.
7174         * sysdeps/i386/fpu/libm-test-ulps: Update.
7175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7176
7177 2012-05-23  David S. Miller  <davem@davemloft.net>
7178
7179         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7180         (__libc_sigaction): Remove unused local variables.
7181
7182 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7183
7184         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7185
7186 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7187
7188         mktime: avoid signed integer overflow
7189         * time/mktime.c (__mktime_internal): Do not mishandle the case
7190         where diff == INT_MIN.
7191
7192         mktime: simplify computation of average
7193         * time/mktime.c (ranged_convert): Use new time_t_avg function
7194         instead of rolling our own (probably-slower) code.
7195
7196         mktime: do not assume signed right shift propagates sign bit
7197         * time/mktime.c (isdst_differ): New static function.
7198         (__mktime_internal): No need to normalize tm_isdst now.
7199         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7200         tm_isdst values.
7201
7202         mktime: merge another wrapv change from gnulib
7203         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7204         from some compilers.
7205
7206         mktime: remove incorrect attempt at unusual arithmetics
7207         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7208         The code didn't really work on such machines anyway.
7209         (TYPE_MINIMUM): Assume two's complement.
7210         (twos_complement_arithmetic): Verify that long_int and time_t
7211         are two's complement (or unsigned, in the latter case).
7212
7213         mktime: check signed shifts on long_int and time_t, too
7214         * time/mktime.c (SHR): Check that shifts work as desired
7215         on the types long_int and time_t too, as SHR is used on
7216         such types.
7217
7218         mktime: do not assume 'long' is wide enough
7219         * time/mktime.c (verify): Move decl up.
7220         (long_int): New type.
7221         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7222         to remove assumption in the code that 'long' is wide enough to
7223         store year values.  This assumption is not true on x32 and on
7224         some non-glibc platforms.
7225
7226         mktime: merge wrapv change from gnulib
7227         * time/mktime.c (WRAPV): New macro.
7228         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7229         (guess_time_tm, __mktime_internal): Do not assume that signed
7230         integer overflow wraps around; modern compilers generate code
7231         where this assumption is no longer valid.
7232
7233 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7234
7235         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7236         Replace "jmp L(pseudo_end)" with "ret".
7237         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7238         Likewise.
7239
7240 2012-05-23  Andreas Jaeger  <aj@suse.de>
7241
7242         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7243         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7244
7245 2012-05-23  Andreas Jaeger  <aj@suse.de>
7246             Maximilian Attems  <max@stro.at>
7247
7248         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7249         New macros.
7250
7251 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7252
7253         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7254         code so that pseudo_end is just ret and the stack pointer is
7255         correct also for static library in error case.
7256
7257 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7258
7259         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7260         move to syscalls.list.
7261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7265
7266         * manual/install.texi (Running make install): Do not mention Linux
7267         kernel version for which pt_chown is not needed.
7268         (Linux): Do not mention problems with nscd with 2.0 kernels.
7269         * INSTALL: Regenerated.
7270
7271 2012-05-23  Andreas Jaeger  <aj@suse.de>
7272
7273         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7274         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7275         macro.
7276         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7277         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7278         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7279         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7280         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7281         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7282         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7283         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7284         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7285         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7286         * sysdeps/unix/sysv/linux/bits/in.h
7287         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7288
7289 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7290
7291         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7292         (PREPARE_VERSION): Just use assert instead, it will be elided
7293         under [NDEBUG] anyway.
7294
7295 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7296
7297         * sysdeps/unix/sysv/linux/Makefile: Include
7298         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7299         (sysdep_routines): Remove sysctl.
7300         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7301         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7302         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7303         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7304         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7305
7306 2012-05-22  Andreas Jaeger  <aj@suse.de>
7307
7308         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7309         that pseudo_end is just ret and the stack pointer is correct also
7310         for static library in error case.
7311
7312 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7313
7314         [BZ #14122]
7315         * nss/nsswitch.c (defconfig_entries): New variable.
7316         (__nss_database_lookup): Don't leak defconfig entries.
7317         (nss_parse_service_list): Don't leak on error paths.
7318         (free_database_entries): New function.
7319         (free_defconfig): New function.
7320         (free_mem): Move common code to free_database_entries.
7321
7322 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7323
7324         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7325         Add arch_prctl.
7326         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7327
7328         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7329         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7330         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7331         New macro.
7332         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7333         (INTERNAL_SYSCALL_TYPES): Likewise.
7334         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7335         (LOAD_REGS_TYPES_[1-6]): Likewise.
7336         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7337         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7338
7339 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7340
7341         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7342         copysignl for GLIBC_2_0.
7343         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7344         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7345         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7346         logbl for GLIBC_2_0.
7347         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7348         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7349
7350 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7351
7352         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7353         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7354
7355         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7356         Use "neg %eax".
7357
7358         * time/mktime.c: Update copyright years.
7359
7360 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7361
7362         mktime: merge comment-quoting-style change from gnulib
7363         * time/mktime.c: Quote 'like this' in comments.
7364         The GNU coding standards suggest that we no longer quote `like this',
7365         as "`" and "'" are typically rendered asymmetrically nowadays.
7366         The typical gnulib style is to quote 'like this' when quoting
7367         code, and "like this" when quoting English.
7368
7369         * time/mktime.c (compile-command): Add "-I.".
7370
7371         mktime: merge mktime-internal.h change from gnulib
7372         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7373
7374         mktime: merge time_r change from gnulib
7375         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7376
7377         mktime: merge DEBUG change from gnulib
7378         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7379         case system <time.h> has a #define.
7380
7381         mktime: merge <sys/types.h> change from gnulib
7382         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7383         since <time.t> is now guaranteed to define time_t.
7384
7385         mktime: merge HAVE_CONFIG_H change from gnulib
7386         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7387
7388 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7389
7390         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7391         Use "neg %eax".
7392
7393         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7394         __rlim_t cast.
7395         (struct rusage): Use anonymous union to pad each field to
7396         __syscall_slong_t.
7397
7398 2012-05-21  David S. Miller  <davem@davemloft.net>
7399
7400         * Makefules (o-iterator): Remove .s cases.
7401         (compile-command.s): Delete.
7402         (COMPILE.s): Delete.
7403         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7404
7405 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7406
7407         * configure.in (libc_cv_predef_stack_protector): Only consider
7408         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7409         * configure: Regenerated.
7410
7411 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7412
7413         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7414         New macro.  Use R*LP on int and pointer.
7415         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7416         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7417         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7418         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7419
7420         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7421         [__WORDSIZE_TIME64_COMPAT32] instead of
7422         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7423         (struct utmp): Likewise.
7424         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7425         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7426         Renamed to ...
7427         (__WORDSIZE_TIME64_COMPAT32): This.
7428         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7429         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7430         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7431         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7432         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7433         (__WORDSIZE_TIME64_COMPAT32): New macro.
7434
7435 2012-05-21  Andreas Jaeger  <aj@suse.de>
7436
7437         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7438         only if [SHARED]. Add prototype for __wcschr_ia32.
7439
7440 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7441
7442         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7443         of %rbp unmolested in the jmp_buf while mangling the low bits.
7444         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7445         unmolested high bits of %rbp while demangling the low bits.
7446         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7447
7448 2012-05-21  Andreas Jaeger  <aj@suse.de>
7449
7450         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7451         * sunrpc/svc_simple.c: Use it for registerrpc.
7452         * sunrpc/xcrypt.c: Use it for passwd2des.
7453
7454         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7455
7456 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7457
7458         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7459         Don't define if [__SYSCALL_WORDSIZE != 32].
7460         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7461         New macro.
7462
7463 2012-05-21  Bruno Haible  <bruno@clisp.org>
7464             Andreas Jaeger  <aj@suse.de>
7465
7466         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7467         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7468         inptr and inend for must_buffer_ch.
7469         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7470         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7471         * stdio-common/Makefile (tests): Remove bug15.
7472         (bug15-ENV): Remove macro.
7473         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7474         anymore.
7475
7476 2012-05-19  Andreas Jaeger  <aj@suse.de>
7477             Roland McGrath  <roland@hack.frob.com>
7478
7479         * manual/contrib.texi: Completely rewritten. It contains now an
7480         alphabetical list of contributors and their contributions.
7481
7482 2012-05-21  Richard Henderson  <rth@twiddle.net>
7483
7484         * misc/getauxval.c (__getauxval): Use unsigned long int.
7485         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7486         (getauxval): Use unsigned long int.
7487
7488 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7489
7490         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7491
7492 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7493
7494         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7495         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7496         __alignof__ (long double).
7497
7498 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7499
7500         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7501
7502 2012-05-20  Richard Henderson  <rth@twiddle.net>
7503
7504         * misc/getauxval.c: New file.
7505         * misc/sys/auxv.h: New file.
7506         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7507         (routines): Add getauxval.
7508         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7509         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7510         * elf/dl-sysdep.c (_dl_auxv): Remove.
7511         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7512         * elf/dl-support.c (_dl_auxv): New variable.
7513         (_dl_aux_init): Initialize it.
7514         * manual/startup.texi (Auxiliary Vector): New node.
7515         * sysdeps/generic/bits/hwcap.h: New file.
7516         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7517         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7518         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7519         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7520         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7521         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7523         Update.
7524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7525         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7526         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7527         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7528         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7529         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7530         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7531         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7532
7533 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7534
7535         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7536
7537 2012-05-19  David S. Miller  <davem@davemloft.net>
7538
7539         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7540
7541 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7542
7543         [BZ #14123]
7544         * math/s_ccosh.c: Include <float.h>
7545         (__ccosh): Avoid internal overflow calculating sinh and cosh
7546         values before multiplying by sin and cos values.
7547         * math/s_ccoshf.c: Likewise.
7548         * math/s_ccoshl.c: Likewise.
7549         * math/s_csin.c: Likewise.
7550         * math/s_csinf.c: Likewise.
7551         * math/s_csinl.c: Likewise.
7552         * math/s_csinh.c: Likewise.
7553         * math/s_csinhf.c: Likewise.
7554         * math/s_csinhl.c: Likewise.
7555         * math/libm-test.inc (ccos_test): Add more tests.
7556         (ccosh_test): Likewise.
7557         (csin_test): Likewise.
7558         (csinh_test): Likewise.
7559         * sysdeps/i386/fpu/libm-test-ulps: Update.
7560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7561
7562 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7563
7564         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7565         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7566
7567         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7568
7569 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7570
7571         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7572         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7573         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7574         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7575         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7576         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7577         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7578         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7579         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7580         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7581         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7582         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7583         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7584         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7585         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7586         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7587         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7588         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7589         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7590         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7591         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7592         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7593         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7594         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7595         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7596         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7597         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7598         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7599         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7600         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7601         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7602
7603 2012-05-18  Andreas Jaeger  <aj@suse.de>
7604
7605         * csu/.gitignore: Delete.
7606
7607 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7608
7609         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7610         (timex): Use __syscall_slong_t.
7611
7612 2012-05-18  Andreas Jaeger  <aj@suse.de>
7613             Carlos O'Donell  <carlos_odonell@mentor.com>
7614
7615         * manual/install.texi (Configuring and compiling): Update
7616         description about files modified in the source directory.
7617         * INSTALL: Regenerated.
7618
7619 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7620
7621         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7622         value.  Use "or" to set return value to -1.
7623         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7624         negate return value.
7625
7626 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7627
7628         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7629         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7630         failure if the compiler has Graphite support disabled.
7631         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7632         Likewise.
7633         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7634         CFLAGS-memmove.c): Likewise.
7635         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7636         Likewise.
7637
7638 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7639
7640         * sysdeps/x86_64/x32/_itoa.h: New file.
7641
7642         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7643         getdents system call only if kernel and user dirents have the
7644         same d_ino and d_off.
7645
7646         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7647         LLONG_MAX != LONG_MAX.
7648         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7649         (_fitoa_word): Likewise.
7650
7651         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7652         years.
7653         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7654         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7655         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7656
7657         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7658         include <bits/wordsize.h>.  Check __x86_64__ instead of
7659         __WORDSIZE.
7660         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7661         if __x86_64__ is defined.  Use anonymous union on fpstate.
7662
7663         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7664         anonymous union.
7665
7666 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7667
7668         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7669         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7670         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7671         Refer to _rtld_local_ro instead of _rtld_global_ro.
7672         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7673         Likewise.
7674         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7675         Likewise.
7676         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7677         Likewise.
7678         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7679         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7680         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7681
7682         * sysdeps/powerpc/powerpc32/dl-machine.c
7683         (__elf_machine_runtime_setup) [PROF]: Don't reference
7684         _dl_prof_resolve.
7685
7686 2012-05-18  Andreas Jaeger  <aj@suse.de>
7687
7688         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7689         function only available for GCCs before 3.4 since GCC 3.4
7690         introduced a builtin.
7691         (lrint): Likewise.
7692         (llrintf): Likewise.
7693         (llrint): Likewise.
7694         (fmaxf): Likewise.
7695         (fmax): Likewise.
7696         (fminf): Likewise.
7697         (fmin): Likewise.
7698         (rint): Likewise.
7699         (rintf): Likewise.
7700         (nearbyint): Likewise.
7701         (nearbyintf): Likewise.
7702         (ceil): Likewise.
7703         (ceilf): Likewise.
7704         (floor): Likewise.
7705         (floorf): Likewise.
7706
7707 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7708
7709         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7710         on both fields and cast pointer to __syscall_ulong_t.
7711
7712         * bits/types.h (__fsword_t): New type.
7713         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7714         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7715         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7716         (__FSWORD_T_TYPE): Likewise.
7717         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7718         (__FSWORD_T_TYPE): Likewise.
7719         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7720         (__FSWORD_T_TYPE): Likewise.
7721         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7722         (__FSWORD_T_TYPE): Likewise.
7723         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7724         __SWORD_TYPE with __fsword_t.
7725         (statfs64): Likewise.
7726
7727 2012-05-17  David S. Miller  <davem@davemloft.net>
7728
7729         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7730
7731 2012-05-17  Andreas Jaeger  <aj@suse.de>
7732
7733         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7734         warning.
7735
7736 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7737
7738         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7739
7740 2012-05-17  Andreas Jaeger  <aj@suse.de>
7741
7742         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7743         when it is used.
7744
7745 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7746
7747         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7748
7749 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7750
7751         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7752         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7753
7754 2012-05-17  Andreas Jaeger  <aj@suse.de>
7755             Carlos O'Donell  <carlos_odonell@mentor.com>
7756
7757         [BZ #14059]
7758         * sysdeps/x86_64/multiarch/init-arch.h
7759         (bit_YMM_Usable): Rename to...
7760         (bit_AVX_Usable): ... this.
7761         (bit_FMA4_Usable): New macro.
7762         (bit_XMM_state): New macro.
7763         (bit_YMM_state): New macro.
7764         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7765         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7766         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7767         (CPUID_OSXSAVE): New macro.
7768         (CPUID_AVX): New macro.
7769         (CPUID_FMA4): New macro.
7770         (index_YMM_Usable): Rename to...
7771         (index_AVX_Usable): ... this.
7772         (HAS_AVX): Use HAS_ARCH_FEATURE.
7773         (HAS_FMA4): Likewise.
7774         (HAS_YMM_USABLE): Remove.
7775         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7776         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7777         are present.
7778         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7779         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7780         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7781         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7782         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7783
7784 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7785
7786         * math/libm-test.c: Support platforms without multiple rounding modes.
7787         * math/bug-nextafter.c: Support platforms without FP exceptions.
7788         * math/bug-nexttoward.c: Likewise.
7789         * math/test-fenv.c: Likewise.
7790         * math/test-misc.c: Likewise.
7791         * stdlib/bug-getcontext.c: Likewise.
7792
7793 2012-05-17  Andreas Jaeger  <aj@suse.de>
7794
7795         * manual/examples/search.c (critter_cmp): Change signature to
7796         avoid warnings.
7797         * manual/string.texi (Collation Functions): Likewise.
7798
7799 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7800
7801         * bits/types.h: Fold copyright years.
7802         * bits/typesizes.h: Likewise.
7803         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7804         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7805         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7806         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7807         * time/time.h: Likewise.
7808
7809 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7810
7811         [BZ #208]
7812         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7813         in instead of returning them.  Return void.
7814         (__libc_mallinfo): Accumulate over all arenas.
7815         (__malloc_stats): Adjust for change in int_mallinfo interface.
7816
7817 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7818
7819         [BZ #10375]
7820         * configure.in (NM): Add AC_CHECK_TOOL for it.
7821         (libc_extra_cflags): New substituted variable.
7822         Check for -fstack-protector being used implicitly.
7823         * configure: Regenerated.
7824         * config.make.in (config-extra-cflags): New variable,
7825         gets @libc_extra_cflags@.
7826         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7827
7828         [BZ #10375]
7829         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7830         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7831         * configure: Regenerated.
7832         * config.make.in (CPPUNDEFS): New substituted variable.
7833         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7834         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7835         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7836
7837 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7838
7839         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7840         (mq_attr): Use __syscall_slong_t.
7841
7842 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7843
7844         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7845         Check __x86_64__ instead of __WORDSIZE.
7846         (_STAT_VER_LINUX): Likewise.
7847         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7848         __syscall_ulong_t and __syscall_slong_t.
7849         (stat64): Likewise.
7850
7851 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7852
7853         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7854
7855 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7856
7857         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7858
7859 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7860
7861         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7862         __syscall_ulong_t.
7863
7864         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7865         include <bits/wordsize.h>.  Check __x86_64__ instead of
7866         __WORDSIZE.
7867         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7868         defined.
7869         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7870
7871         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7872         include <bits/wordsize.h>.  Check __x86_64__ instead of
7873         __WORDSIZE.
7874         (user_regs_struct): Use "__extension__ unsigned long long"
7875         instead of "unsigned long" if __x86_64__ is defined.
7876         (user): Likewise.  Pad after pointer field if __ILP32__ is
7877         defined.
7878
7879 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7880
7881         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7882         versions 5 to 9.
7883         * configure: Regenerated.
7884         * manual/install.texi (texinfo): Increase version requirement to
7885         4.5 or later.
7886         * INSTALL: Regenerated.
7887
7888         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7889
7890 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7891
7892         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7893
7894         * sysdeps/x86_64/x32/ffs.c: New file.
7895
7896         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7897         __syscall_ulong_t.
7898         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7899         defined.  Use __syscall_ulong_t.
7900         (shminfo): Use __syscall_ulong_t.
7901         (shm_info): Likewise.
7902
7903         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7904         __syscall_ulong_t.
7905
7906         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7907         <bits/wordsize.h>.
7908         (msgqnum_t): Use __syscall_ulong_t.
7909         (msglen_t): Likewise.
7910         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7911         __syscall_ulong_t.
7912
7913         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7914         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7915
7916         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7917
7918         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7919         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7920
7921         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7922         __syscall_slong_t.
7923
7924         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7925         include <bits/wordsize.h>.  Check __x86_64__ instead of
7926         __WORDSIZE.
7927
7928         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7929         "unsigned long long int" if __x86_64__ is defined.
7930         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7931
7932         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7933         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7934         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7935
7936         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7937         <stdint.h>.
7938         (GET_PC): Cast to uintptr_t first.
7939         (GET_FRAME): Likewise.
7940         (GET_STACK): Likewise.
7941
7942         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7943         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7944         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7945         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7946         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7947         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7948         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7949         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7950         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7951         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7952         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7953         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7954         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7955         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7956         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7957         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7958         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7959         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7960         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7961         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7962         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7963         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7964         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7965         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7966         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7967         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7968         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7969         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
7970         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
7971
7972 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
7973
7974         * Makerules (+depfiles): Also collect depfiles from .oS in
7975         $(extra-objs).
7976         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
7977         .oS, $(libnldbl-routines)).
7978
7979         * Makerules (native-compile-mkdep-flags): Define.
7980         * sunrpc/Makefile (extra-objs): Add $(addprefix
7981         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
7982         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
7983         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
7984         calling $(make-target-directory).
7985
7986 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7987
7988         * bits/types.h (__snseconds_t): Removed.
7989         * time/time.h (struct timespec): Replace __snseconds_t with
7990         __syscall_slong_t.
7991         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
7992         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
7993         Likewise.
7994         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7995         (__SNSECONDS_T_TYPE): Likewise.
7996         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7997         (__SNSECONDS_T_TYPE): Likewise.
7998         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7999         (__SNSECONDS_T_TYPE): Likewise.
8000
8001 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8002
8003         * sysdeps/mach/hurd/bits/typesizes.h
8004         (__SYSCALL_SLONG_TYPE): New macro.
8005         (__SYSCALL_ULONG_TYPE): Likewise.
8006
8007 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8008
8009         * bits/types.h (__syscall_slong_t): New type.
8010         (__syscall_ulong_t): Likewise.
8011
8012         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8013         (__SYSCALL_ULONG_TYPE): Likewise.
8014         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8015         (__SYSCALL_SLONG_TYPE): Likewise.
8016         (__SYSCALL_ULONG_TYPE): Likewise.
8017         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8018         (__SYSCALL_SLONG_TYPE): Likewise.
8019         (__SYSCALL_ULONG_TYPE): Likewise.
8020         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8021         (__SYSCALL_SLONG_TYPE): Likewise.
8022         (__SYSCALL_ULONG_TYPE): Likewise.
8023
8024 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8025
8026         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8027         Add sigaltstack-offsets.sym.
8028         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8029         <sigaltstack-offsets.h>.
8030         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8031         longjmp_msg pointer.
8032         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8033         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8034         signal stack.
8035         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8036
8037 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8038
8039         * elf/stackguard-macros.h: Remove file.
8040         * sysdeps/generic/stackguard-macros.h: New file.
8041         * sysdeps/i386/stackguard-macros.h: Likewise.
8042         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8043         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8044         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8045         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8046         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8047         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8048         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8049         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8050         <elf/stackguard-macros.h>.
8051
8052         [BZ #14109]
8053         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8054         __aligned__ in attribute.
8055         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8056         (gregset_t): Likewise.
8057
8058 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8059
8060         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8061         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8062         * sysdeps/x86_64/x32/Implies-after: New file.
8063
8064 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8065
8066         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8067         and access return value for _dl_profile_fixup.  Use R10_LP to
8068         load frame size.
8069
8070 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8071
8072         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8073
8074 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8075
8076         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8077         * sysdeps/x86_64/x32/sysdep.h: New file.
8078
8079 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8080
8081         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8082         * sysdeps/x86_64/setjmp.S: Likewise.
8083
8084 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8085
8086         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8087         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8088         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8089         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8090         remove unused global constant.
8091
8092 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8093
8094         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8095         include of <not-cancel.h>.
8096
8097 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8098
8099         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8100
8101 2012-05-15  Jeff Law  <law@redhat.com>
8102             Andreas Jaeger  <aj@suse.de>
8103
8104         [BZ #13594]
8105         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8106         out from...
8107         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8108         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8109         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8110         code changing __hst_map_handle.map.
8111
8112 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8113
8114         * configure.in (sysnames): Look for Implies-before and Implies-after
8115         files.
8116         * configure: Regenerated.
8117
8118 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8119
8120         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8121         8-byte data alignment with LP_SIZE alignment.
8122
8123 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8124
8125         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8126         into R10_LP.
8127
8128 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8129
8130         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8131
8132 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8133
8134         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8135         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8136         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8137         Likewise.
8138         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8139
8140 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8141
8142         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8143         (stackinfo_sub_sp): Likewise.
8144
8145 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8146
8147         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8148         RAX_LP.
8149
8150 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8151
8152         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8153         into R*_LP.
8154
8155 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8156
8157         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8158         sizes into R*_LP.
8159
8160 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8161
8162         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8163
8164 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8165
8166         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8167         into R11_LP and load __x86_64_shared_cache_size_half into
8168         R8_LP.
8169
8170 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8171
8172         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8173         R8_LP.
8174
8175 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8176
8177         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8178         logb for POWER7.
8179         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8180         logbf for POWER7.
8181         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8182         logbl for POWER7.
8183         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8184         powerpc32/power7/fpu/s_logb.c via #include.
8185         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8186         powerpc32/power7/fpu/s_logbf.c via #include.
8187         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8188         powerpc32/power7/fpu/s_logbl.c via #include.
8189
8190 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8191
8192         * README.libm: Remove file.
8193
8194 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8195
8196         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8197         count for x32.  Use R*_LP and omit operand-size suffix.
8198
8199 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8200
8201         * shlib-versions: Move x86_64-.*-linux.* entries to ...
8202         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
8203         * sysdeps/x86_64/x32/shlib-versions: New file.
8204
8205 2012-05-14  Roland McGrath  <roland@hack.frob.com>
8206
8207         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8208         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8209         Use _dl_fatal_printf instead.
8210
8211 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8212
8213         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8214         set if not set by the user.  Do not allow for being unset.
8215         * sysdeps/unix/sysv/linux/configure: Regenerated.
8216
8217 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8218
8219         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8220         the `q' suffix from lea and replace .quad with ASM_ADDR.
8221
8222 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8223
8224         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8225         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8226         instead of $17.
8227         (PTR_DEMANGLE): Likewise.
8228
8229 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8230
8231         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8232         (LP_OP): Likewise.
8233         (ASM_ADDR): Likewise.
8234         (RAX_LP): Likewise.
8235         (RBP_LP): Likewise.
8236         (RBX_LP): Likewise.
8237         (RCX_LP): Likewise.
8238         (RDI_LP): Likewise.
8239         (RSI_LP): Likewise.
8240         (RSP_LP): Likewise.
8241         (R8_LP): Likewise.
8242         (R9_LP): Likewise.
8243         (R10_LP): Likewise.
8244         (R10_LP): Likewise.
8245         (R11_LP): Likewise.
8246         (R12_LP): Likewise.
8247         (R13_LP): Likewise.
8248         (R14_LP): Likewise.
8249         (R15_LP): Likewise.
8250
8251 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8252
8253         * sysdeps/x86_64/x32/dl-machine.h: New file.
8254
8255 2012-05-14  Andreas Jaeger  <aj@suse.de>
8256
8257         * manual/Makefile (subdir): Remove export of subdir.
8258         (all): Remove target.
8259         (.PHONY): Remove all from list.
8260         (mkinstalldirs): Remove.
8261         (.PHONY): Remove installdirs from list.
8262         ($(inst_infodir)/libc.info): Use make-target-directory.
8263         (installdirs): Remove.
8264         (subdir_%): Remove.
8265         (glibc-targets): Remove.
8266         (lib): Remove.
8267         (stubs): Remove.
8268         ($(objpfx)stubs ../po/manual.pot): Remove.
8269         ($(objpfx)stamp%): Remove.
8270         (make-target-directory): Remove.
8271         (subdir_install): Remove.
8272         (routines): Remove.
8273         (aux): Remove.
8274         (sources): Remove.
8275         (objects): Remove.
8276         (headers): Remove.
8277
8278         [BZ #13750]
8279         * manual/.gitignore: Remove, it's not needed anymore.
8280         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8281         all files in it.
8282         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8283         directory.
8284         (texis): Renamed to $(objpfx)texis.
8285         (texis-path): New, contains path to generated files.
8286         (chapters.%): Use texis-path for complete path, add extra argument
8287         libc-texinfo.sh.
8288         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8289         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8290         (summary,texi, stamp-summary): Use complete path of
8291         files. Generate files in build dir.
8292         (dir-add.texi): Build in build dir.
8293         (libm-err.texi,stamp-libm-err): Likewise.
8294         (version.texi, stamp-version): Likewise.
8295         (.%c.texi): Likewise.
8296         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8297         (mostlyclean): Remove target.
8298         (realclean): Remove target.
8299         (generated): Add new variable with contents from mostlyclean and
8300         realclean, remove entries duplicated in common-mostlyclean, add
8301         stamp-libm-err and stamp-version.
8302         (generated-dirs): Add libc directory.
8303         ($(inst_infodir)/libc.info): Install files from build dir.
8304
8305         * manual/install.texi (Configuring and compiling): Adjust since
8306         the info files are not part of the tar ball anymore.
8307
8308 2012-05-14  Andreas Jaeger  <aj@suse.de>
8309
8310         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8311         variable.
8312
8313 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8314
8315         [BZ #13717]
8316         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8317         to 2.2.0 where earlier.
8318         * sysdeps/unix/sysv/linux/configure: Regenerated.
8319         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8320         Remove conditional code.
8321         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8322         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8323         Remove conditional code.
8324         [!__NR_lchown]: Likewise.
8325         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8326         [__NR_lchown]: Likewise.
8327         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8328         comment referencing __ASSUME_LCHOWN_SYSCALL.
8329         * sysdeps/unix/sysv/linux/i386/sigaction.c
8330         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8331         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8332         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8333         Remove conditional code.
8334         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8335         (__protocol_available): Remove #if 0 code.
8336         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8337         conditional code.
8338         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8339         * sysdeps/unix/sysv/linux/kernel-features.h
8340         (__ASSUME_GETCWD_SYSCALL): Don't define.
8341         (__ASSUME_REALTIME_SIGNALS): Likewise.
8342         (__ASSUME_PREAD_SYSCALL): Likewise.
8343         (__ASSUME_PWRITE_SYSCALL): Likewise.
8344         (__ASSUME_POLL_SYSCALL): Likewise.
8345         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8346         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8347         non-SPARC.
8348         (__ASSUME_SIOCGIFNAME): Don't define.
8349         (__ASSUME_MSG_NOSIGNAL): Likewise.
8350         (__ASSUME_SENDFILE): Define unconditionally.
8351         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8352         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8353         conditional code.
8354         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8355         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8356         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8357         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8358         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8359         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8360         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8362         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8363         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8365         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8366         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8368         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8369         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8371         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8372         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8374         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8375         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8377         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8378         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8380         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8381         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8383         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8384         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8385         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8386         Remove conditional code.
8387         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8388         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8389         Remove conditional code.
8390         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8391         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8392         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8393         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8394         Remove conditional code.
8395         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8396         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8397         Remove conditional code.
8398         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8399         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8400         Remove conditional code.
8401         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8402         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8403         Remove conditional code.
8404         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8405         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8406         Remove conditional code.
8407         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8408         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8409         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8410         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8411         * sysdeps/unix/sysv/linux/sigaction.c
8412         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8413         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8414         * sysdeps/unix/sysv/linux/sigpending.c
8415         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8416         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8417         * sysdeps/unix/sysv/linux/sigprocmask.c
8418         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8419         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8420         * sysdeps/unix/sysv/linux/sigsuspend.c
8421         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8422         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8423         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8424         (__libc_missing_rt_sigs): Remove.
8425         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8426         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8427         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8428         Remove conditional code.
8429         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8430         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8431         return 1.
8432         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8433         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8434         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8435         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8436
8437 2012-05-14  Andreas Jaeger  <aj@suse.de>
8438
8439         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8440         it's not used in glibc.
8441         (__coshm1): Likewise.
8442         (__acosh1p): Likewise.
8443         (__sgn): Likewise.
8444
8445         * manual/string.texi (Copying and Concatenation): Add missing
8446         variable in concat example.
8447         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8448
8449 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8450
8451         [BZ #14103]
8452         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8453         __builtin_clzl with __builtin_clzll.
8454
8455 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8456
8457         [BZ #14104]
8458         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8459         libc_freeres_ptr.
8460
8461 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8462
8463         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8464         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8465         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8466         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8467
8468 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8469
8470         * NEWS: Update ia64 info.
8471
8472 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8473
8474         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8475         used as bcopy.
8476
8477 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8478
8479         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8480         * sysdeps/unix/syscalls.list (dup3): Likewise.
8481         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8482         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8483
8484 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8485
8486         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8487         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8488
8489 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8490
8491         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8492         thread pointer.
8493         (TLS_IE): Use mov/add instead of movq/addq to load thread
8494         pointer.
8495         (TLS_GD_PREFIX): New.
8496         (TLS_GD): Use it.
8497
8498 2012-05-11  David S. Miller  <davem@davemloft.net>
8499
8500         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8501         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8502         (_FPU_SETCW): Likewise.
8503
8504 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8505
8506         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8507         is 32-byte aligned.
8508
8509 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8510
8511         [BZ #11837]
8512         * iconvdata/gb18030.c: Update tables.
8513         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8514         characters specially.
8515         (BODY for TO_LOOP): Add encoding of missing ranges.
8516
8517 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8518
8519         [BZ #13673]
8520         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8521         * sysdeps/mach/hurd/dup3.c: Likewise.
8522         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8523         * sysdeps/powerpc/memmove.c:: Likewise.
8524
8525 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8526
8527         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8528         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8529
8530 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8531
8532         * elf/elf.h (R_X86_64_RELATIVE64): New.
8533         (R_X86_64_NUM): Updated.
8534         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8535         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8536         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8537         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8538         tst-quad1pie tst-quad2pie
8539         (modules-names): Add tst-quadmod1 tst-quadmod2.
8540         ($(objpfx)tst-quad1): New dependency.
8541         ($(objpfx)tst-quad2): Likewise.
8542         ($(objpfx)tst-quad1pie): Likewise.
8543         ($(objpfx)tst-quad2pie): Likewise.
8544         * sysdeps/x86_64/tst-quad1.c: New file.
8545         * sysdeps/x86_64/tst-quad1pie.c: New file.
8546         * sysdeps/x86_64/tst-quad2.c: Likewise.
8547         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8548         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8549         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8550         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8551         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8552
8553 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8554
8555         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8556         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8557         * streams/stropts.h (t_scalar_t): Define type.
8558
8559         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8560         (_PATH_PRESERVE): Set to "/var/lib".
8561         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8562
8563         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8564         instead of int.
8565
8566         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8567         if __dir_mkfile succeeded.
8568
8569         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8570         checking for _hurd_dtablesize.  Unlock it right after having
8571         finished _hurd_dtable allocation.
8572
8573 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8574
8575         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8576         * sysdeps/mach/hurd/configure: Regenerated.
8577         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8578         special-casing to...
8579         * sysdeps/gnu/configure.in: ... this new file.
8580         * sysdeps/unix/sysv/linux/configure: Regenerated.
8581         * sysdeps/gnu/configure: New generated file.
8582
8583         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8584         for Linux: use nsec instead of usec, as well as:
8585         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8586         members of type struct timespec.
8587         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8588         New macros.
8589         (struct stat64): Likewise.
8590         (_STATBUF_ST_NSEC): New macro.
8591         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8592
8593         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8594         __strtoul_internal rather than strtoul.
8595
8596 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8597
8598         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8599         and reject them.
8600
8601 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8602
8603         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8604         which preserves existing values.
8605         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8606
8607 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8608
8609         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8610         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8611         greater than FD_SETSIZE.
8612
8613 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8614
8615         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8616         allocated, call __vm_protect to finish enabling the existing space, and
8617         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8618         allocate the remainder.
8619
8620 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8621
8622         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8623         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8624
8625 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8626
8627         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8628         sysdeps/mach/hurd/readlink.c.
8629
8630         * posix/tst-sysconf.c (posix_options): Only use
8631         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8632         _POSIX_SYNCHRONIZED_IO when they are defined
8633         * sysdeps/mach/hurd/bits/posix_opt.h:
8634         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8635         (_XOPEN_REALTIME): Undefine macro.
8636         (_XOPEN_REALTIME_THREADS): Undefine macro.
8637         (_XOPEN_SHM): Undefine macro.
8638         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8639         macro to -1.
8640         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8641         macro to -1.
8642         (_POSIX_ASYNC_IO): Undefine macro.
8643         (_POSIX_PRIORITIZED_IO): Undefine macro.
8644         (_POSIX_SPIN_LOCKS): Define macro to -1.
8645
8646         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8647         SA_NODEFER, SA_RESETHAND.
8648         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8649         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8650         F_DUPFD_CLOEXEC.
8651
8652 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8653
8654         * elf/Makefile (pldd-modules): Define unconditionally.
8655
8656 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8657
8658         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8659
8660 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8661
8662         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8663         Return ENOENT when name is empty.
8664         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8665
8666 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8667
8668         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8669
8670         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8671
8672 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8673
8674         Fix mlock in all cases except non-readable pages.
8675         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8676         instead of VM_PROT_ALL as parameter to __vm_wire function.
8677
8678         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8679         (__mkdir): When path is `/', just fail with EEXIST.
8680         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8681
8682 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8683
8684         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8685         <sys/uio.h> (for writev).
8686         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8687         and <sys/param.h> (for MIN).
8688
8689 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8690
8691         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8692         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8693         if interrupted.
8694
8695 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8696
8697         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8698         Depend on against $(link-rpcuserlibs).
8699
8700 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8701
8702         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8703         (__libc_stack_end): Do not use attribute_relro.
8704         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8705         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8706         to libthread-provided value.
8707         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8708         attribute_relro.
8709
8710 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8711
8712         [BZ #3748]
8713         * bits/libc-lock.h (__libc_once_get): New macro.
8714         * sysdeps/mach/bits/libc-lock.h: Likewise.
8715         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8716         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8717         instead of using implementation details.
8718
8719         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8720         * libio/freopen.c: Likewise.
8721         * libio/freopen64.c: Likewise.
8722         * misc/syslog.c: Likewise.
8723         * nscd/connections.c: Likewise.
8724         * nscd/netgroupcache.c: Likewise.
8725         * sysdeps/posix/getcwd.c: Likewise.
8726
8727 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8728
8729         * math/w_ilogbf.c: Add #include <limits.h>.
8730
8731 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8732
8733         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8734         path instead of returning without unlocking.
8735
8736         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8737         immediate-write ioctls.
8738         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8739
8740 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8741
8742         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8743         __builtin_frame_address instead of making assumptions about the
8744         location of the return address relative to DATA.  Force early load of
8745         the return address.
8746         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8747         __builtin_frame_address.
8748
8749         dup3 for GNU Hurd.
8750         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8751         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8752         implement dup3 and do some further code clean-ups.
8753         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8754         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8755
8756 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8757
8758         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8759
8760         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8761         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8762         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8763         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8764         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8765         d->port.lock.
8766
8767         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8768         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8769         when handler == SIG_ERR, not when handler != SIG_ERR.
8770
8771 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8772
8773         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8774         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8775         definitions.
8776
8777         accept4 for GNU Hurd.
8778         * include/sys/socket.h (__libc_accept4): New prototype.
8779         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8780         to implement __libc_accept4.
8781         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8782         __libc_accept4.
8783         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8784
8785         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8786         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8787         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8788         signal-defines.sym.
8789
8790 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8791
8792         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8793
8794 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8795
8796         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8797         assertion on O_CLOEXEC flag.
8798         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8799         * hurd/intern-fd.c: Likewise.
8800         * hurd/port2fd.c: Likewise.
8801
8802 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8803
8804         [BZ #3906]
8805         * bits/in.h (IPV6_PKTINFO): Define new macro.
8806         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8807
8808 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8809
8810         [BZ #13954]
8811         [BZ #13955]
8812         [BZ #13956]
8813         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8814         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8815         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8816         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8817         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8818         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8819         * math/libm-test.inc (logb_test) : Additional logb tests.
8820
8821 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8822             Andreas Jaeger  <aj@suse.de>
8823
8824         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8825         * configure: Regenerated.
8826         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8827         * config.make.in (link-obsolete-rpc): New substituted variable.
8828         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8829         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8830         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8831         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8832         so that libc.a contains the symbols.
8833         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8834         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8835         * sunrpc/auth_none.c: Likewise.
8836         * sunrpc/auth_unix.c: Likewise.
8837         * sunrpc/authdes_prot.c: Likewise.
8838         * sunrpc/authuxprot.c: Likewise.
8839         * sunrpc/clnt_gen.c: Likewise.
8840         * sunrpc/clnt_perr.c: Likewise.
8841         * sunrpc/clnt_raw.c: Likewise.
8842         * sunrpc/clnt_simp.c: Likewise.
8843         * sunrpc/clnt_tcp.c: Likewise.
8844         * sunrpc/clnt_udp.c: Likewise.
8845         * sunrpc/clnt_unix.c: Likewise.
8846         * sunrpc/des_crypt.c: Likewise.
8847         * sunrpc/des_soft.c: Likewise.
8848         * sunrpc/get_myaddr.c: Likewise.
8849         * sunrpc/key_call.c: Likewise.
8850         * sunrpc/key_prot.c: Likewise.
8851         * sunrpc/netname.c: Likewise.
8852         * sunrpc/pm_getmaps.c: Likewise.
8853         * sunrpc/pm_getport.c: Likewise.
8854         * sunrpc/pmap_clnt.c: Likewise.
8855         * sunrpc/pmap_prot.c: Likewise.
8856         * sunrpc/pmap_prot2.c: Likewise.
8857         * sunrpc/pmap_rmt.c: Likewise.
8858         * sunrpc/publickey.c: Likewise.
8859         * sunrpc/rpc_cmsg.c: Likewise.
8860         * sunrpc/rpc_common.c: Likewise.
8861         * sunrpc/rpc_dtable.c: Likewise.
8862         * sunrpc/rpc_prot.c: Likewise.
8863         * sunrpc/rpc_thread.c: Likewise.
8864         * sunrpc/rtime.c: Likewise.
8865         * sunrpc/svc.c: Likewise.
8866         * sunrpc/svc_auth.c: Likewise.
8867         * sunrpc/svc_raw.c: Likewise.
8868         * sunrpc/svc_run.c: Likewise.
8869         * sunrpc/svc_tcp.c: Likewise.
8870         * sunrpc/svc_udp.c: Likewise.
8871         * sunrpc/svc_unix.c: Likewise.
8872         * sunrpc/svcauth_des.c: Likewise.
8873         * sunrpc/xcrypt.c: Likewise.
8874         * sunrpc/xdr.c: Likewise.
8875         * sunrpc/xdr_array.c: Likewise.
8876         * sunrpc/xdr_float.c: Likewise.
8877         * sunrpc/xdr_intXX_t.c: Likewise.
8878         * sunrpc/xdr_mem.c: Likewise.
8879         * sunrpc/xdr_rec.c: Likewise.
8880         * sunrpc/xdr_ref.c: Likewise.
8881         * sunrpc/xdr_sizeof.c: Likewise.
8882         * sunrpc/xdr_stdio.c: Likewise.
8883
8884 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8885
8886         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8887         change.  Update copyright years.
8888
8889 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8890
8891         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8892
8893 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8894             Joseph Myers  <joseph@codesourcery.com>
8895             Paul Pluzhnikov  <ppluzhnikov@google.com>
8896
8897         [BZ #14012]
8898         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8899         requiring rpcgen.
8900         [cross-compiling] (extra-libs): Likewise.
8901         [cross-compiling] (extra-libs-others): Likewise.
8902         [cross-compiling] (librpcsvc-routines): Likewise.
8903         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8904         [cross-compiling] (omit-deps): Likewise.
8905         (sunrpc-CPPFLAGS): New variable.
8906         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8907         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8908         (cross-rpcgen-objs): New variable.
8909         (extra-objs): Append $(cross-rpcgen-objs).
8910         ($(cross-rpcgen-objs)): New rule.
8911         ($(objpfx)cross-rpcgen): Likewise.
8912         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8913         comment.
8914         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8915         ($(objpfx)x%.stmp): Likewise.
8916         * sunrpc/proto.h [IS_IN_build] (_): Define.
8917         [IS_IN_build] (_libc_intl_domainname): Likewise.
8918
8919 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8920
8921         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8922         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8923         and R_X86_64_TPOFF64.
8924
8925 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8926
8927         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8928         sysdeps/unix/sysv/syscalls.list.
8929         (stime): Likewise.
8930         (utime): Likewise.
8931         * sysdeps/unix/sysv/syscalls.list: Remove file.
8932
8933 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8934
8935         [BZ #3440]
8936         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8937         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8938         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8939         (__LC_IDENTIFICATION): Make these macros useful in #if
8940         expressions, as required by C99.
8941
8942 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8943
8944         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8945         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8946         after this.
8947
8948 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8949
8950         * stdlib/longlong.h: Updated from GCC.
8951
8952 2012-05-09  Andreas Jaeger  <aj@suse.de>
8953
8954         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8955         default is first entry.
8956         (run_mode): Set type.
8957         (main): Remove informal message about syslog.
8958         (options): Fix typo.
8959
8960         [BZ #14053]
8961         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8962         to asm.
8963         (lrint): Likewise.
8964         (llrintf): Likewise.
8965         (llrint): Likewise.
8966         (rint): Likewise.
8967         (rintf): Likewise.
8968         (nearbyint): Likewise.
8969         (nearbyintf): Likewise.
8970
8971 2012-05-09  Andreas Jaeger  <aj@suse.de>
8972             Pedro Alves  <palves@redhat.com>
8973
8974         * nscd/nscd.c (run_mode): Use enum.
8975         (main): Cleanup coding style issue.
8976
8977 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
8978             Andreas Jaeger  <aj@suse.de>
8979
8980         * nscd/nscd.c (go_background): Replaced with...
8981         (run_mode): ... this.
8982         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
8983         (options): Add -F --foreground.
8984         (main): Implement it.
8985         (parse_opt): Parse it.
8986
8987 2012-05-09  Andreas Jaeger  <aj@suse.de>
8988
8989         [BZ #14083]
8990         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
8991         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
8992         -Wconversion warning.
8993         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
8994         Likewise.
8995
8996 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
8997
8998         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
8999         == 0.
9000         (LC_ALL): Use macro-int-constant.
9001         (LC_COLLATE): Likewise.
9002         (LC_CTYPE): Likewise.
9003         (LC_MESSAGES): Likewise.
9004         (LC_MONETARY): Likewise.
9005         (LC_NUMERIC): Likewise.
9006         (LC_TIME): Likewise.
9007         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9008         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9009         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9010         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9011         Specify type.
9012         [C99-based standards] (float_t): Expect type.
9013         [C99-based standards] (double_t): Expect type.
9014         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9015         type.
9016         [C99-based standards] (HUGE_VALL): Likewise.
9017         [C99-based standards] (INFINITY): Likewise.
9018         [C99-based standards] (NAN): Likewise.
9019         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9020         [C99-based standards] (FP_NAN): Likewise.
9021         [C99-based standards] (FP_NORMAL): Likewise.
9022         [C99-based standards] (FP_SUBNORMAL): Likewise.
9023         [C99-based standards] (FP_ZERO): Likewise.
9024         [C99-based standards] (FP_FAST_FMA): Use
9025         optional-macro-int-constant.  Specify type.  Require == 1.
9026         [C99-based standards] (FP_FAST_FMAF): Likewise.
9027         [C99-based standards] (FP_FAST_FMAL): Likewise.
9028         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9029         [C99-based standards] (FP_ILOGBNAN): Likewise.
9030         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9031         Specify type.
9032         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9033         [C99-based standards] (math_errhandling): Specify type.
9034         [ISO99 || ISO11] (signgam): Do not allow.
9035         [non-C99-based standards] (copysignf): Do not allow.
9036         [non-C99-based standards] (exp2f): Likewise.
9037         [non-C99-based standards] (log2f): Likewise.
9038         [non-C99-based standards] (modff): Allow.
9039         [non-C99-based standards] (erff): Do not allow.
9040         [non-C99-based standards] (erfcf): Likewise.
9041         [non-C99-based standards] (gammaf): Likewise.
9042         [non-C99-based standards] (hypotf): Likewise.
9043         [non-C99-based standards] (j0f): Likewise.
9044         [non-C99-based standards] (j1f): Likewise.
9045         [non-C99-based standards] (jnf): Likewise.
9046         [non-C99-based standards] (lgammaf): Likewise.
9047         [non-C99-based standards] (tgammaf): Likewise.
9048         [non-C99-based standards] (y0f): Likewise.
9049         [non-C99-based standards] (y1f): Likewise.
9050         [non-C99-based standards] (ynf): Likewise.
9051         [non-C99-based standards] (isnanf): Likewise.
9052         [non-C99-based standards] (acoshf): Likewise.
9053         [non-C99-based standards] (asinhf): Likewise.
9054         [non-C99-based standards] (atanhf): Likewise.
9055         [non-C99-based standards] (cbrtf): Likewise.
9056         [non-C99-based standards] (expm1f): Likewise.
9057         [non-C99-based standards] (ilogbf): Likewise.
9058         [non-C99-based standards] (log1pf): Likewise.
9059         [non-C99-based standards] (logbf): Likewise.
9060         [non-C99-based standards] (nextafterf): Likewise.
9061         [non-C99-based standards] (remainderf): Likewise.
9062         [non-C99-based standards] (rintf): Likewise.
9063         [non-C99-based standards] (scalbf): Likewise.
9064         [non-C99-based standards] (copysignl): Likewise.
9065         [non-C99-based standards] (exp2l): Likewise.
9066         [non-C99-based standards] (log2l): Likewise.
9067         [non-C99-based standards] (modfl): Allow.
9068         [non-C99-based standards] (erfl): Do not allow.
9069         [non-C99-based standards] (erfcl): Likewise.
9070         [non-C99-based standards] (gammal): Likewise.
9071         [non-C99-based standards] (hypotl): Likewise.
9072         [non-C99-based standards] (j0l): Likewise.
9073         [non-C99-based standards] (j1l): Likewise.
9074         [non-C99-based standards] (jnl): Likewise.
9075         [non-C99-based standards] (lgammal): Likewise.
9076         [non-C99-based standards] (tgammal): Likewise.
9077         [non-C99-based standards] (y0l): Likewise.
9078         [non-C99-based standards] (y1l): Likewise.
9079         [non-C99-based standards] (ynl): Likewise.
9080         [non-C99-based standards] (isnanl): Likewise.
9081         [non-C99-based standards] (acoshl): Likewise.
9082         [non-C99-based standards] (asinhl): Likewise.
9083         [non-C99-based standards] (atanhl): Likewise.
9084         [non-C99-based standards] (cbrtl): Likewise.
9085         [non-C99-based standards] (expm1l): Likewise.
9086         [non-C99-based standards] (ilogbl): Likewise.
9087         [non-C99-based standards] (log1pl): Likewise.
9088         [non-C99-based standards] (logbl): Likewise.
9089         [non-C99-based standards] (nextafterl): Likewise.
9090         [non-C99-based standards] (remainderl): Likewise.
9091         [non-C99-based standards] (rintl): Likewise.
9092         [non-C99-based standards] (scalbl): Likewise.
9093         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9094         [non-C99-based standards] (FP_*): Do not allow.
9095         [C99-based standards] (FP_*): Change to
9096         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9097         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9098         allow.
9099         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9100         (SIG_ERR): Likewise.
9101         [X/Open-based standards] (SIG_HOLD): Likewise.
9102         (SIG_IGN): Likewise.
9103         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9104         positive value.
9105         (SIGFPE): Likewise.
9106         (SIGILL): Likewise.
9107         (SIGINT): Likewise.
9108         (SIGSEGV): Likewise.
9109         (SIGTER): Likewise.
9110         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9111         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9112         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9113         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9114         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9115         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9116         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9117         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9118         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9119         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9120         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9121         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9122         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9123         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9124         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9125         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9126         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9127         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9128         [X/Open-based standards] (SIGTRAP): Likewise.
9129         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9130         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9131         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9132         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9133         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9134         allow.
9135
9136 2012-05-08  Ian Wienand  <ianw@vmware.com>
9137
9138         [BZ #14080]
9139         * time/tzset.c (__tzset_parse_tz): Update default rules for
9140         daylight time changes in the Energy Policy Act of 2005.
9141
9142 2012-05-09  Andreas Jaeger  <aj@suse.de>
9143
9144         [BZ #13983]
9145         * elf/ldconfig.c (parse_conf): Change string to make clear that
9146         ldconfig only issued a warning if ld.so.conf does not exist.
9147
9148 2012-05-08  David S. Miller  <davem@davemloft.net>
9149
9150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9151         movxtod instead of popping the value on the stack.
9152
9153         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9154
9155 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9156
9157         * config.h.in: Add HAVE_ARM_PCS_VFP.
9158
9159 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9160
9161         [BZ #13979]
9162         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9163         checking but the checks are disabled for any reason.
9164
9165 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9166
9167         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9168         and ELF64_R_TYPE with ELFW(R_TYPE).
9169
9170 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9171
9172         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9173         (ulimit): Likewise.
9174
9175         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9176         (settimeofday): Likewise.
9177
9178 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9179
9180         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9181         a struct th_u2 inside the union, and move tu_block/tu_code into
9182         a new th_u3 union of tu_block/tu_code inside of that.  Move
9183         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9184         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9185         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9186         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9187         (th_stuff): Change to th_u1.tu_stuff.
9188         (th_data): Define.
9189         (th_msg): Change to th_u1.th_u2.tu_data.
9190
9191 2012-05-07  David S. Miller  <davem@davemloft.net>
9192
9193         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9194
9195         [BZ #14074]
9196         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9197         (SETUP_PIC_REG): Use it.
9198         (SETUP_PIC_REG_LEAF): Use it.
9199
9200 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
9201
9202         [BZ #13885]
9203         [BZ #13923]
9204         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9205         USE_AS_EXPM1L.
9206         (EXPL_FINITE): Likewise.
9207         (FLDLOG): Likewise.
9208         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9209         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9210         e_expl.S.
9211         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9212         USE_AS_EXPM1L.
9213         (EXPL_FINITE): Likewise.
9214         (FLDLOG): Likewise.
9215         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9216         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9217         e_expl.S.
9218         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9219         test of -max_value argument for long double.
9220         * sysdeps/i386/fpu/libm-test-ulps: Update.
9221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9222
9223 2012-05-06  David S. Miller  <davem@davemloft.net>
9224
9225         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9226         quad soft-float symbols whose references which are compiler
9227         generated.
9228         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9229
9230 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9231
9232         [BZ #13884]
9233         [BZ #13914]
9234         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9235         USE_AS_EXP10L.
9236         (EXPL_FINITE): Likewise.
9237         (FLDLOG): Likewise.
9238         (c0): Likewise.
9239         (c1): Likewise.
9240         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9241         Adjust comments for base varying.
9242         (__expl_finite): Change alias to EXPL_FINITE.
9243         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9244         e_expl.S.
9245         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9246         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9247         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9248         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9249         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9250         USE_AS_EXP10L.
9251         (EXPL_FINITE): Likewise.
9252         (FLDLOG): Likewise.
9253         (c0): Likewise.
9254         (c1): Likewise.
9255         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9256         Adjust comments for base varying.
9257         (__expl_finite): Change alias to EXPL_FINITE.
9258         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9259         tests for bugs.
9260         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9261
9262         [BZ #14064]
9263         * math/libm-test.inc (check_float_internal): Correct ulp
9264         calculation for subnormal expected results.
9265
9266 2012-05-06  Andreas Jaeger  <aj@suse.de>
9267
9268         * Makeconfig (+math-flags): New, set to -frounding-math.
9269         (+cflags): Add +math-flags so that all of glibc gets compiled with
9270         it.
9271
9272         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9273
9274 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9275
9276         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9277         Disable one test.
9278
9279         [BZ #13787]
9280         [BZ #13922]
9281         [BZ #14036]
9282         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9283         (__ieee754_expl): Allow for and saturate large arguments.
9284         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9285         (u_threshold): Likewise.
9286         (__exp): Call __ieee754_exp before checking for overflow and
9287         underflow.
9288         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9289         (u_threshold): Likewise.
9290         (__expf): Call __ieee754_expf before checking for overflow and
9291         underflow.
9292         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9293         (u_threshold): Likewise.
9294         (__expl): Call __ieee754_expl before checking for overflow and
9295         underflow.
9296         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9297         (__ieee754_expl): Allow for and saturate large arguments.
9298         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9299         missing overflow exception on overflow.
9300         (expm1_test): Do not allow missing overflow exception on overflow.
9301
9302         * sysdeps/i386/fpu/e_expl.c: Move to ...
9303         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9304         rather than using inline asm.
9305         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9306         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9307         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9308
9309         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9310         (nice): Likewise.
9311         (poll): Likewise.
9312         (signal): Likewise.
9313         (time): Likewise.
9314         (times): Likewise.
9315
9316 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9317
9318         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9319         sysdeps/unix/common/syscalls.list.
9320         (fchmod): Likewise.
9321         (fchown): Likewise.
9322         (ftruncate): Likewise.
9323         (getrusage): Likewise.
9324         (gettimeofday): Likewise.
9325         (setpgid): Likewise.
9326         (setregid): Likewise.
9327         (setreuid): Likewise.
9328         (sigaction): Likewise.
9329         (truncate): Likewise.
9330         (vhangup): Likewise.
9331         * sysdeps/unix/common/syscalls.list: Remove file.
9332         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9333         * sysdeps/unix/sysv/linux/Implies: Likewise.
9334
9335 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9336
9337         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9338         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9339         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9340         Moved to ...
9341         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9342         Here.
9343         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9344         to ...
9345         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9346         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9347         to ...
9348         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9349         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9350         to ...
9351         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9352         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9353         to ...
9354         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9355         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9356         to ...
9357         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9358         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9359         to ...
9360         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9361         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9362         to ...
9363         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9364         Here.
9365         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9366         to ...
9367         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9368         Here.
9369         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9370         to ...
9371         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9372         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9373         Moved to ...
9374         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9375         Here.
9376         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9377         to ...
9378         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9379
9380 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9381
9382         * sysdeps/unix/common/bits/dirent.h: Remove file.
9383         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9384
9385         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9386         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9387         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9388         * sysdeps/unix/bsd/isatty.c: Likewise.
9389         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9390         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9391         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9392
9393 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9394
9395         [BZ #13563]
9396         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9397         long double comparison inaccuracies.
9398         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9399         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9400
9401 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9402
9403         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9404         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9405
9406 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9407
9408         [BZ #14049]
9409         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9410         nonzero digits before rounding a hex value.
9411         * stdlib/tst-strtod.c (tests): Add another test.
9412
9413 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9414
9415         * sysdeps/s390/fpu/libm-test-ulps: Update.
9416
9417 2012-05-03  Andreas Jaeger  <aj@suse.de>
9418
9419         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9420         does not get optimized out.
9421         (malloc_opt_barrier): New.
9422
9423 2012-05-03  Andreas Jaeger  <aj@suse.de>
9424             Roland McGrath  <roland@hack.frob.com>
9425
9426         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9427         intermediate file deletion.
9428         (generated): Add .symlist files.
9429
9430 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9431
9432         [BZ #13775]
9433         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9434         Redirect under this condition.
9435         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9436         [__USE_GNU] (__dprintf_chk): Not under this condition.
9437         [__USE_GNU] (__vdprintf_chk): Likewise.
9438         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9439         under this condition.
9440         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9441         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9442         [__USE_XOPEN2K8] (vdprintf): Likewise.
9443         [__USE_GNU] (__dprintf_chk): Not under this condition.
9444         [__USE_GNU] (__vdprintf_chk): Likewise.
9445         [__USE_GNU] (dprintf): Likewise.
9446         [__USE_GNU] (vdprintf): Likewise.
9447
9448 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9449
9450         * elf/Makefile (common-generated): Set this instead of generated for
9451         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9452         $(all-built-dso)-derived lists.
9453
9454 2012-05-03  Andreas Jaeger  <aj@suse.de>
9455
9456         * sysdeps/i386/fpu/libm-test-ulps: Update.
9457
9458         * FAQ: Removed.
9459         * FAQ.in: Likewise.
9460         * scripts/gen-FAQ.pl: Likewise.
9461         * manual/install.texi (Installation): Point to online location of
9462         FAQ.
9463         * Makefile (files-for-dist): Remove FAQ.
9464         (FAQ): Remove.
9465
9466 2012-05-02  Allan McRae  <allan@archlinux.org>
9467
9468         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9469         (LDFLAGS-reldepmod5.so): Likewise.
9470         (LDFLAGS-reldep6mod1.so): Likewise.
9471         (LDFLAGS-reldep6mod4.so): Likewise.
9472         (LDFLAGS-reldep8mod3.so): Likewise.
9473         (LDFLAGS-unload4mod1.so): Likewise.
9474         (LDFLAGS-unload4mod2.so): Likewise.
9475         (LDFLAGS-tst-initorder): Likewise.
9476         (LDFLAGS-tst-initordera2.so): Likewise.
9477         (LDFLAGS-tst-initordera3.so): Likewise.
9478         (LDFLAGS-tst-initordera4.so): Likewise.
9479         (LDFLAGS-tst-initorderb2.so): Likewise.
9480         (LDFLAGS-noload): Likewise.
9481         (LDFLAGS-next): Likewise.
9482         (LDFLAGS-order2mod1.so): Likewise.
9483         (LDFLAGS-order2mod2.so): Likewise.
9484         (LDFLAGS-tst-initorder2): Likewise.
9485         (LDFLAGS-tst-initorder2a.so): Likewise.
9486         (LDFLAGS-tst-initorder2b.so): Likewise.
9487         (LDFLAGS-tst-initorder2c.so): Likewise.
9488         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9489
9490 2012-05-02  David S. Miller  <davem@davemloft.net>
9491
9492         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9493
9494 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9495
9496         [BZ #14055]
9497         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9498
9499 2012-05-02  Andreas Jaeger  <aj@suse.de>
9500
9501         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9502         since we manipulate rounding mode.
9503         (CPPFLAGS-test-idouble.c): Likewise.
9504         (CPPFLAGS-test-ifloat.c): Likewise.
9505         (CFLAGS-test-ldouble.c): Likewise.
9506         (CFLAGS-test-double.c): Likewise.
9507         (CFLAGS-test-float.c): Likewise.
9508         (CFLAGS-test-misc.c): Likewise.
9509         (CFLAGS-test-test-fenv.c): Likewise.
9510
9511 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9512
9513         [BZ #2550]
9514         [BZ #2570]
9515         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9516         comparisons to determine direction to adjust input.
9517
9518 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9519
9520         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9521         output to the target.
9522
9523         * scripts/localplt.awk: New file.
9524         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9525         (check-localplt-CFLAGS): Variable removed.
9526         ($(all-built-dso:=.jmprel)): New static pattern rule.
9527         (generated): Add those targets.
9528         (localplt-built-dso): New variable.
9529         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9530
9531         * elf/check-localplt.c: File removed.
9532
9533         * scripts/check-execstack.awk: New file.
9534         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9535         (check-execstack-CFLAGS): Variable removed.
9536         ($(objpfx)check-execstack.h): Target removed.
9537         ($(objpfx)execstack-default): New target.
9538         (generated): Add that instead of check-execstack.h.
9539         ($(all-built-dso:=.phdr)): New static pattern rule.
9540         (generated): Add those targets.
9541         * elf/check-execstack.c: File removed.
9542
9543         * scripts/check-textrel.awk: New file.
9544         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9545         (check-textrel-CFLAGS): Variable removed.
9546         (all-built-dso): Use := to define.o
9547         ($(all-built-dso:=.dyn)): New static pattern rule.
9548         (generated): Add those targets.
9549         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9550         * config.make.in (READELF): New substituted variable.
9551         * elf/check-textrel.c: File removed.
9552
9553 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9554
9555         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9556         allow.
9557         * conform/data/ctype.h-data [C99-based standards] (isblank):
9558         Expect function.
9559         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9560         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9561         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9562         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9563         Specify type.  Require positive value.
9564         (EILSEQ): Likewise.
9565         (ERANGE): Likewise.
9566         [ISO || POSIX] (EILSEQ): Do not expect.
9567         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9568         Specify type.  Require positive value.
9569         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9570         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9571         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9572         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9573         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9574         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9575         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9576         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9577         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9578         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9579         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9580         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9581         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9582         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9583         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9584         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9585         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9586         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9587         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9588         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9589         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9590         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9591         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9592         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9593         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9594         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9595         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9596         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9597         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9598         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9599         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9600         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9601         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9602         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9603         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9604         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9605         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9606         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9607         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9608         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9609         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9610         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9611         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9612         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9613         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9614         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9615         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9616         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9617         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9618         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9619         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9620         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9621         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9622         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9623         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9624         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9625         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9626         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9627         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9628         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9629         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9630         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9631         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9632         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9633         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9634         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9635         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9636         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9637         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9638         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9639         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9640         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9641         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9642         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9643         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9644         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9645         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9646         Require >= 2.
9647         (FLT_ROUNDS): Expect as macro, not constant.
9648         (FLT_MANT_DIG): Use macro-int-constant.
9649         (DBL_MANT_DIG): Likewise.
9650         (LDBL_MANT_DIG): Likewise.
9651         (FLT_DIG): Likewise.
9652         (DBL_DIG): Likewise.
9653         (LDBL_DIG): Likewise.
9654         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9655         (DBL_MIN_EXP): Likewise.
9656         (LDBL_MIN_EXP): Likewise.
9657         (FLT_MAX_EXP): Use macro-int-constant.
9658         (DBL_MAX_EXP): Likewise.
9659         (LDBL_MAX_EXP): Likewise.
9660         (FLT_MAX_10_EXP): Likewise.
9661         (DBL_MAX_10_EXP): Likewise.
9662         (LDBL_MAX_10_EXP): Likewise.
9663         (FLT_MAX): Use macro-constant.
9664         (DBL_MAX): Likewise.
9665         (LDBL_MAX): Likewise.
9666         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9667         (DBL_EPSILON): Likewise.
9668         (LDBL_EPSILON): Likewise.
9669         (FLT_MIN): Likewise.
9670         (DBL_MIN): Likewise.
9671         (LDBL_MIN): Likewise.
9672         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9673         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9674         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9675         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9676         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9677         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9678         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9679         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9680         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9681         [ISO11] (FLT_TRUE_MIN): Likewise.
9682         [ISO11] (LDBL_TRUE_MIN): Likewise.
9683         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9684         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9685         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9686         (SCHAR_MAX): Likewise.
9687         (UCHAR_MAX): Likewise.
9688         (CHAR_MIN): Likewise.
9689         (CHAR_MAX): Likewise.
9690         (MB_LEN_MAX): Use macro-int-constant.
9691         (SHRT_MIN): Use macro-int-constant.  Specify type.
9692         (SHRT_MAX): Likewise.
9693         (USHRT_MAX): Likewise.
9694         (INT_MAX): Likewise.
9695         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9696         bound negative.
9697         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9698         bound with "U".
9699         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9700         bound with "L".
9701         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9702         bound negative.  Suffix upper bound with "L".
9703         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9704         bound with "UL".
9705         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9706         Specify type.
9707         [C99-based standards] (LLONG_MAX): Likewise.
9708         [C99-based standards] (ULLONG_MAX): Likewise.
9709         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9710         == 0.
9711         [ISO11] (max_align_t): Require type.
9712         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9713
9714         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9715         from $CFLAGS, without defining away __attribute__ calls.
9716         (checknamespace): Use $CFLAGS_namespace.
9717
9718         * conform/conformtest.pl (@keywords): Only include C99 keywords
9719         for standards based on C99 or C11.
9720
9721         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9722         Disable tests.
9723         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9724         UNIX98]: Likewise.
9725
9726         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9727         usability of symbols in #if.
9728
9729         * conform/conformtest.pl: If macro or constant types start
9730         "promoted:", expect the symbol to be of the following type
9731         promoted by the integer promotions.
9732
9733         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9734         in one place.  Also handle "macro-constant".
9735
9736         * conform/conformtest.pl: Only accept expected macro values with
9737         "==".  Parse all "macro" lines in one place.
9738         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9739
9740         * conform/conformtest.pl: Handle braced types on "constant" lines
9741         instead of handling "typed-constant".
9742         * conform/data/signal.h-data: Use "constant" instead of
9743         "typed-constant".
9744
9745         * conform/conformtest.pl: Handle "optional-" at start of lines in
9746         one place rather than duplicating several cases.  Handle each
9747         format of "macro" line with initial "optional-".
9748
9749         * conform/conformtest.pl: Only accept expected constant or
9750         optional-constant values with "==".  Parse all "constant" lines in
9751         one place.  Parse all "optional-constant" lines in one place.
9752         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9753         * conform/data/fmtmsg.h-data: Likewise.
9754         * conform/data/netinet/in.h-data: Likewise.
9755         * conform/data/tar.h-data: Likewise.
9756         * conform/data/limits.h-data: Use "==" form on "constant" and
9757         "optional-constant" lines.
9758
9759         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9760         Use -std=c99 for XOPEN2K.
9761         (@knownproblems): Remove.
9762         (newtoken): Don't check %isknown.
9763
9764         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9765         Do not expect macro.
9766         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9767         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9768         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9769         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9770         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9771         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9772         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9773         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9774         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9775         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9776         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9777         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9778         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9779         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9780         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9781         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9782         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9783         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9784         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9785         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9786         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9787         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9788         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9789         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9790         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9791         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9792         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9793         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9794         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9795         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9796         [XPG3] (acosh): Likewise.
9797         [XPG3] (asinh): Likewise.
9798         [XPG3] (atanh): Likewise.
9799         [XPG3] (cbrt): Likewise.
9800         [XPG3] (expm1): Likewise.
9801         [XPG3] (ilogb): Likewise.
9802         [XPG3] (log1p): Likewise.
9803         [XPG3] (logb): Likewise.
9804         [XPG3] (nextafter): Likewise.
9805         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9806         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9807         [XPG3] (remainder): Likewise.
9808         [XPG3] (rint): Likewise.
9809         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9810         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9811         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9812         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9813         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9814         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9815         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9816         [UNIX98 || XOPEN2K] (scalb): Expect.
9817         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9818         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9819         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9820         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9821         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9822         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9823         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9824         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9825         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9826         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9827         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9828         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9829         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9830         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9831         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9832         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9833         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9834         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9835         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9836         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9837         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9838         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9839         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9840         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9841         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9842         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9843         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9844         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9845         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9846         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9847         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9848         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9849         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9850         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9851         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9852         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9853         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9854         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9855         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9856         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9857         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9858         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9859         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9860         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9861         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9862         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9863         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9864         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9865         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9866         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9867         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9868         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9869         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9870         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9871         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9872         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9873         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9874         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9875         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9876         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9877         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9878         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9879         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9880         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9881         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9882         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9883         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9884         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9885         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9886         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9887         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9888         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9889         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9890         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9891         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9892         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9893         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9894         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9895         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9896         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9897         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9898         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9899         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9900         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9901         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9902         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9903         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9904         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9905         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9906         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9907         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9908         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9909         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9910         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9911         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9912         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9913         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9914         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9915         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9916         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9917         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9918         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9919         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9920         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9921         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9922         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9923         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9924         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9925         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9926         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9927         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9928         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9929         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9930         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9931         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9932         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9933         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9934         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9935         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9936         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9937         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9938         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9939         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9940         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9941         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9942         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9943         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9944         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9945         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9946         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9947         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9948         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9949         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9950         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9951         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9952         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9953         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9954
9955         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9956         _XOPEN_SOURCE_EXTENDED for XPG4.
9957
9958         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9959
9960         * Makeconfig (localtime): Remove variable.
9961         (inst_localtime-file): Likewise.
9962
9963 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9964
9965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9966         Update.
9967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9968         Update.
9969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
9970         Update.
9971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
9972         Update.
9973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
9974         Update.
9975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
9976         Update.
9977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9978         Update.
9979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
9980         Update.
9981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
9982         Update.
9983
9984 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9985
9986         [BZ #2550]
9987         [BZ #2570]
9988         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
9989         comparisons to determine direction to adjust input.
9990         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9991         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
9992         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9993         Likewise.
9994         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9995         Likewise.
9996         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9997         Likewise.
9998         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9999         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10000         Likewise.
10001         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10002         Likewise.
10003         * math/libm-test.inc (nexttoward_test): Add more tests.
10004
10005 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10006
10007         [BZ #14040]
10008         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10009         in version GLIBC_2.1, not GLIBC_2.0.
10010         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10011         Likewise.
10012
10013 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10014
10015         [BZ #13942]
10016         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10017         (1 - x) * (1 + x).
10018         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10019         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10020         * math/libm-test.inc (acos_test): Add more tests.
10021         (asin_test): Likewise.
10022         * sysdeps/i386/fpu/libm-test-ulps: Update.
10023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10024
10025         [BZ #14034]
10026         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10027         of square root.
10028         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10029         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10030         * math/libm-test.inc (acos_test_tonearest): New function.
10031         (acos_test_towardzero): Likewise.
10032         (acos_test_downward): Likewise.
10033         (acos_test_upward): Likewise.
10034         (asin_test_tonearest): Likewise.
10035         (asin_test_towardzero): Likewise.
10036         (asin_test_downward): Likewise.
10037         (asin_test_upward): Likewise.
10038         (main): Call the new functions.
10039         * sysdeps/i386/fpu/libm-test-ulps: Update.
10040         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10041
10042         [BZ #13884]
10043         [BZ #13924]
10044         * math/e_exp10.c: Include <float.h>.
10045         (__ieee754_exp10): Handle underflow here rather than multiplying
10046         large negative argument by M_LN10.
10047         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10048         of __ieee754_expf.
10049         * math/e_exp10l.c: Include <float.h>.
10050         (__ieee754_exp10l): Handle underflow here rather than multiplying
10051         large negative argument by M_LN10l.
10052         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10053         spurious overflow exception on underflow.
10054
10055 2012-04-29  Marek Polacek  <polacek@redhat.com>
10056
10057         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10058         (__fortify_function): New macro.
10059         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10060         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10061         __extern_always_inline.
10062         * libio/bits/stdio2.h: Likewise.
10063         * libio/bits/stdio.h: Likewise.
10064         * string/string.h: Likewise.
10065         * string/bits/string3.h: Likewise.
10066         * include/stdio.h: Likewise.
10067         * stdlib/bits/stdlib.h: Likewise.
10068         * stdlib/stdlib.h: Likewise.
10069         * rt/bits/mqueue2.h: Likewise.
10070         * rt/mqueue.h: Likewise.
10071         * posix/bits/unistd.h: Likewise.
10072         * posix/unistd.h: Likewise.
10073         * io/bits/poll2.h: Likewise.
10074         * io/bits/fcntl2.h: Likewise.
10075         * io/fcntl.h: Likewise.
10076         * io/sys/poll.h: Likewise.
10077         * misc/bits/syslog.h: Likewise.
10078         * misc/bits/syslog-ldbl.h: Likewise.
10079         * misc/sys/syslog.h: Likewise.
10080         * socket/bits/socket2.h: Likewise.
10081         * socket/sys/socket.h: Likewise.
10082         * debug/tst-chk1.c: Likewise.
10083         * wcsmbs/bits/wchar2.h: Likewise.
10084         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10085         * wcsmbs/wchar.h: Likewise.
10086
10087 2012-04-29  Andreas Jaeger  <aj@suse.de>
10088
10089         * Makerules (tests): Remove enable-check-abi protection.
10090         (check-abi-warn): Remove.
10091         (check-abi-%): Remove check-abi-warn usage.
10092
10093         * configure.in: Remove check-abi configure option.
10094         * configure: Regenerated.
10095         * config.make.in (enable-check-abi): Remove.
10096
10097 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10098
10099         [BZ #14033]
10100         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10101         double functions to double *_finite functions.
10102
10103         [BZ #13941]
10104         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10105         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10106         LDBL_MIN_EXP.
10107         * stdio-common/Makefile (tests): Add tst-sprintf3.
10108         * stdio-common/tst-sprintf3.c: New file.
10109
10110         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10111         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10112
10113 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10114
10115         * conform/conformtest.pl: Remove duplicate typed-constant
10116         handling.
10117
10118 2012-04-28  David S. Miller  <davem@davemloft.net>
10119
10120         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10121         (check-abi-%): Remove AWK script prerequisite and explicit
10122         abilist directory.
10123         (check-abi): Rewrite to just diff the symlist with the abilist.
10124         (config-tls, config-abi-config): Delete, no longer used.
10125         (update-abi-%): Remove AWK script and explicit abilist directory.
10126         (update-abi): Rewrite to simply compare and conditionally copy the
10127         symlist and the sysdep abilist file.  Remove update-abi-config
10128         checks.
10129         * abilist/ld.abilist: Remove.
10130         * abilist/libBrokenLocale.abilist: Remove.
10131         * abilist/libanl.abilist: Remove.
10132         * abilist/libcrypt.abilist: Remove.
10133         * abilist/libdl.abilist: Remove.
10134         * abilist/librt.abilist: Remove.
10135         * abilist/libthread_db.abilist: Remove.
10136         * abilist/libutil.abilist: Remove.
10137         * scripts/extract-abilist.awk: Remove.
10138         * scripts/merge-abilist.awk: Remove.
10139         * sysdeps/generic/libcidn.abilist: New file.
10140         * sysdeps/generic/libnss_compat.abilist: New file.
10141         * sysdeps/generic/libnss_db.abilist: New file.
10142         * sysdeps/generic/libnss_dns.abilist: New file.
10143         * sysdeps/generic/libnss_files.abilist: New file.
10144         * sysdeps/generic/libnss_hesiod.abilist: New file.
10145         * sysdeps/generic/libnss_nis.abilist: New file.
10146         * sysdeps/generic/libnss_nisplus.abilist: New file.
10147         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10148         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10149         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10150         file.
10151         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10152         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10153         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10154         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10155         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10156         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10157         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10158         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10159         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10160         file.
10161         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10162         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10163         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10164         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10165         file.
10166         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10167         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10168         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10169         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10170         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10171         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10172         file.
10173         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10174         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10175         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10176         file.
10177         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10178         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10179         New file.
10180         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10181         New file.
10182         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10183         New file.
10184         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10185         New file.
10186         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10187         New file.
10188         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10189         New file.
10190         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10191         New file.
10192         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10193         New file.
10194         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10195         New file.
10196         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10197         New file.
10198         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10199         New file.
10200         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10201         New file.
10202         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10203         New file.
10204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10205         file.
10206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10207         New file.
10208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10209         New file.
10210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10211         file.
10212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10213         New file.
10214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10215         New file.
10216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10217         file.
10218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10219         New file.
10220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10221         New file.
10222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10223         New file.
10224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10225         New file.
10226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10227         New file.
10228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10229         New file.
10230         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10231         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10232         file.
10233         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10234         New file.
10235         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10236         file.
10237         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10238         file.
10239         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10240         file.
10241         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10242         file.
10243         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10244         file.
10245         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10246         New file.
10247         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10248         file.
10249         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10250         file.
10251         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10252         New file.
10253         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10254         file.
10255         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10256         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10257         file.
10258         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10259         New file.
10260         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10261         file.
10262         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10263         file.
10264         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10265         file.
10266         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10267         file.
10268         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10269         file.
10270         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10271         New file.
10272         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10273         file.
10274         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10275         file.
10276         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10277         New file.
10278         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10279         file.
10280         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10281         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10282         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10283         file.
10284         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10285         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10286         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10287         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10288         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10289         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10290         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10291         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10292         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10293         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10294         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10295         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10296         file.
10297         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10298         New file.
10299         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10300         file.
10301         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10302         file.
10303         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10304         file.
10305         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10306         file.
10307         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10308         file.
10309         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10310         New file.
10311         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10312         New file.
10313         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10314         file.
10315         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10316         New file.
10317         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10318         file.
10319         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10320         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10321         file.
10322         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10323         New file.
10324         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10325         file.
10326         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10327         file.
10328         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10329         file.
10330         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10331         file.
10332         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10333         file.
10334         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10335         New file.
10336         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10337         New file.
10338         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10339         file.
10340         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10341         New file.
10342         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10343         file.
10344
10345 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10346
10347         * conform/conformtest.pl: Fix typo in handling typed-constant from
10348         allow-header.
10349
10350 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10351
10352         * README: Cut down references to pre-2.6 Linux kernels and
10353         Linuxthreads.  Update lists of configurations in libc and ports
10354         and sort alphabetically.  Say "or newer" with Linux kernel version
10355         requirements.
10356
10357         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10358
10359 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10360
10361         [BZ #887]
10362         * math/libm-test.inc (logb_test_downward): New test to expose
10363         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10364         rounding mode.
10365
10366 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10367
10368         [BZ #14027]
10369         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10370         to be done.
10371         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10372         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10373
10374 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10375
10376         * sysdeps/unix/i386/brk.S: Remove file.
10377         * sysdeps/unix/i386/dl-brk.S: Likewise.
10378         * sysdeps/unix/i386/pipe.S: Likewise.
10379         * sysdeps/unix/i386/sigreturn.S: Likewise.
10380         * sysdeps/unix/i386/syscall.S: Likewise.
10381         * sysdeps/unix/i386/vfork.S: Likewise.
10382         * sysdeps/unix/i386/wait.S: Likewise.
10383
10384         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10385         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10386
10387         * configure.in (arm*-none*): Do not allow without
10388         --enable-hacker-mode.
10389         (netbsd*): Remove case setting base_os.
10390         (386bsd*): Likewise.
10391         (freebsd*): Likewise.
10392         (bsdi*): Likewise.
10393         (osf*): Likewise.
10394         (sunos*): Likewise.
10395         (ultrix*): Likewise.
10396         (newsos*): Likewise.
10397         (dynix*): Likewise.
10398         (*bsd*): Likewise.
10399         (sysv*): Likewise.
10400         (isc*): Likewise.
10401         (esix*): Likewise.
10402         (sco*): Likewise.
10403         (minix*): Likewise.
10404         (irix4*): Likewise.
10405         (irix6*): Likewise.
10406         (solaris[2-9]*): Likewise.
10407         (none): Likewise.
10408         * configure: Regenerated.
10409
10410 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10411
10412         [BZ #11521]
10413         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10414         overflow or cancellation in calculating denominator.
10415         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10416         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10417         down expression to avoid unexpected rounding in newer GCCs.
10418         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10419
10420 2012-04-26  David S. Miller  <davem@davemloft.net>
10421
10422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10423         long-double compat symbols.
10424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10429         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10430         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10431         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10432         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10433         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10434         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10435         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10436         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10437
10438 2012-04-25  David S. Miller  <davem@davemloft.net>
10439
10440         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10441         HWCAP_* values only after the memory barriers have been defined.
10442         (atomic_full_barrier): Define.
10443         (atomic_read_barrier): Define.
10444         (atomic_write_barrier): Define.
10445
10446 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10447
10448         * shlib-versions: Add libgcc_s version information.
10449         * sysdeps/generic/libgcc_s.h: Remove.
10450         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10451         libgcc_s.h.
10452         * sysdeps/gnu/unwind-resume.c: Likewise.
10453         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10454
10455 2012-04-25  David S. Miller  <davem@davemloft.net>
10456
10457         * sysdeps/unix/sparc/brk.S: Delete.
10458         * sysdeps/unix/sparc/dl-brk.S: Delete.
10459         * sysdeps/unix/sparc/pipe.S: Delete.
10460         * sysdeps/unix/sparc/sysdep.S: Delete.
10461         * sysdeps/unix/sparc/sysdep.h: Delete.
10462         * sysdeps/unix/sparc/vfork.S: Delete.
10463         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10464         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10465         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10466         ret_ERRVAL, r0, r1, MOVE): Define.
10467         (JUMPTARGET): Remove.
10468         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10469         sysdeps/unix/sparc/sysdep.h
10470         (ENTRY, END): Remove.
10471         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10472
10473 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10474
10475         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10476         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10477         -DIS_IN_build.
10478
10479         * timezone/README: Update upstream location and email address for
10480         tzcode and tzdata.
10481         * timezone/zdump.c: Update from tzcode 2012b.
10482         * timezone/zic.c: Likewise.
10483
10484         * configure.in (libc_cv_as_needed): Remove test.
10485         * configure: Regenerated.
10486         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10487         conditional definition.
10488         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10489         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10490         * config.make.in (have-as-needed): Remove variable.
10491
10492 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10493             Paul Pluzhnikov  <ppluzhnikov@google.com>
10494
10495         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10496         strings correctly.
10497
10498 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10499
10500         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10501         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10502         * sysdeps/sh/strlen.S: Likewise.
10503
10504 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10505
10506         * sysdeps/unix/fork.S: Remove file.
10507         * sysdeps/unix/i386/fork.S: Likewise.
10508         * sysdeps/unix/sparc/fork.S: Likewise.
10509
10510         * sysdeps/unix/system.c: Remove file.
10511         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10512
10513         * sysdeps/unix/getegid.S: Remove file.
10514         * sysdeps/unix/geteuid.S: Likewise.
10515
10516 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10517
10518         * scripts/check-localplt.awk: New file.
10519         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10520         of diff.
10521         * scripts/data/localplt-generic.data: Add a comment.
10522
10523         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10524         NODE when __dir_mkfile failed.
10525         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10526         Reported by Ludovic Courtès <ludo@gnu.org>.
10527
10528 2012-04-24  Andreas Jaeger  <aj@suse.de>
10529
10530         * Makerules (common-clean): Also remove gen-as-const-headers
10531         files.
10532
10533 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10534
10535         * Makerules (native-compile): Do not change working directory for
10536         build.  Use $(OUTPUT_OPTION) in command.
10537         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10538
10539 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10540
10541         [BZ #13886]
10542         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10543         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10544         * math/libm-test.inc (floor_test): Add more tests.
10545         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10546
10547 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10548
10549         * sysdeps/unix/getdents.c: Remove file.
10550         * sysdeps/unix/sysv/getdents.c: Likewise.
10551         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10552
10553         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10554         sysdeps/unix/mman/syscalls.list.
10555         (mmap): Likewise.
10556         (mprotect): Likewise.
10557         (msync): Likewise.
10558         (munmap): Likewise.
10559         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10560         * sysdeps/unix/mman/syscalls.list: Remove.
10561         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10562
10563         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10564         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10565         * configure: Regenerated.
10566         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10567         $(libgcc_s_suffix).
10568         * config.make.in (libgcc_s_suffix): Remove variable.
10569
10570 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10571
10572         * sysdeps/unix/sysv/gethostname.c: Move to ...
10573         * sysdeps/posix/gethostname.c: ... here.
10574
10575         * sysdeps/unix/execve.S: Remove file.
10576
10577         * sysdeps/unix/_exit.S: Remove file.
10578
10579 2012-04-23  Andreas Jaeger  <aj@suse.de>
10580
10581         [BZ #13739]
10582         * manual/Makefile: Remove make dist support, there's no
10583         need for a stand-alone documentation tar ball.
10584         (TEXI2DVI): Define always, it's not in Makeconfig.
10585         (dist): Removed.
10586         (tar-it): Removed.
10587         (edition): Removed.
10588         (glibc-doc-$(edition).tar): Removed
10589         (%.Z): Removed.
10590         (%.gz): Removed.
10591         (%.uu): Removed.
10592         (ETAGS): Remove, it's in Makeconfig.
10593         (move-if-change): Remove, it's in Makeconfig.
10594
10595 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10596
10597         [BZ #13970]
10598         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10599         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10600         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10601         (strtod_l, strtof_l, strtold_l): Remove __wur.
10602         It is not necessarily an error to ignore strtol's return value.
10603         One can reliably look at the stored endptr to decide whether
10604         the number had valid syntax.
10605
10606 2012-04-21  Andreas Jaeger  <aj@suse.de>
10607
10608         [BZ #13739]
10609         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10610
10611 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10612
10613         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10614         * sysdeps/unix/sysv/Versions: Remove file.
10615
10616 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10617
10618         [BZ #13927]
10619         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10620
10621 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10622
10623         [BZ #7064]
10624         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10625         version from __vm86.
10626
10627 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10628
10629         * sysdeps/unix/common/lxstat.c: Remove file.
10630         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10631
10632         * sysdeps/unix/sysv/Makefile: Remove file.
10633
10634         * sysdeps/unix/sysv/direct.h: Remove file.
10635
10636         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10637         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10638         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10639         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10640         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10641         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10642         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10643
10644         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10645
10646         * sysdeps/unix/xmknod.c: Remove file.
10647         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10648
10649         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10650
10651         * sysdeps/unix/sysv/i386/time.S: Remove file.
10652
10653         * sysdeps/unix/fxstat.c: Remove file.
10654         * sysdeps/unix/xstat.c: Likewise.
10655         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10656
10657         * sysdeps/unix/sysv/sigaction.c: Remove file.
10658
10659         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10660         (sysdep_headers): Remove variable.
10661         [termio.h not in sysdep_headers] (generated): Likewise.
10662         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10663         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10664         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10665         * sysdeps/unix/sysv/tcflow.c: Likewise.
10666         * sysdeps/unix/sysv/tcflush.c: Likewise.
10667         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10668         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10669         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10670         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10671         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10672
10673         * sysdeps/unix/siglist.c: Remove file.
10674
10675         * sysdeps/unix/getppid.S: Remove file.
10676
10677         * sysdeps/unix/mkdir.c: Remove file.
10678         * sysdeps/unix/rmdir.c: Likewise.
10679
10680 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10681
10682         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10683         ERR_MAX value.
10684         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10685         errlist-compat value.
10686
10687 2012-04-18  David S. Miller  <davem@davemloft.net>
10688
10689         * sysdeps/generic/memcopy.h (reg_char): Delete.
10690         * debug/strcat_chk.c: Use char, not reg_char.
10691         * debug/strcpy_chk.c: Likewise.
10692         * debug/strncat_chk.c: Likewise.
10693         * debug/strncpy_chk.c: Likewise.
10694         * string/memchr.c: Likewise.
10695         * string/memrchr.c: Likewise.
10696         * string/rawmemchr.c: Likewise.
10697         * string/strcat.c: Likewise.
10698         * string/strchr.c: Likewise.
10699         * string/strchrnul.c: Likewise.
10700         * string/strcmp.c: Likewise.
10701         * string/strcpy.c: Likewise.
10702         * string/strncat.c: Likewise.
10703         * string/strncmp.c: Likewise.
10704         * string/strncpy.c: Likewise.
10705
10706 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10707
10708         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10709         __builtin_memcopy is called when src and dest ranges are known to not
10710         overlap.
10711
10712 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10713
10714         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10715         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10716         fwd_align_merge macro call.
10717         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10718         bwd_align_merge macro call.
10719         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10720
10721 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10722
10723         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10724         bwd_align_merge macros.
10725         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10726         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10727         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10728
10729 2012-04-18  David S. Miller  <davem@davemloft.net>
10730
10731         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10732
10733 2012-04-18  Andreas Jaeger  <aj@suse.de>
10734
10735         [BZ# 6794]
10736         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10737         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10738         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10739
10740         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10741         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10742         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10743
10744         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10745         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10746         Adjust for changed ldbl-128 files.
10747
10748         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10749         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10750         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10751
10752 2012-04-17  David S. Miller  <davem@davemloft.net>
10753
10754         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10755
10756 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10757
10758         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10759         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10760         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10761         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10762         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10763         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10764
10765 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10766
10767         [BZ #6794]
10768         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10769         * math/libm-test.inc: Add ilogb errno and exception tests.
10770         * math/w_ilogb.c: New file: ilogb wrapper.
10771         * math/w_ilogbf.c: New file: ilogbf wrapper.
10772         * math/w_ilogbl.c: New file: ilogbl wrapper.
10773         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10774         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10775         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10776         exception being thrown with 0.0 as argument.
10777         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10778         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10779         exception being thrown with 0.0 as argument.
10780         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10781         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10782         exception being thrown with 0.0 as argument.
10783         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10784         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10785         exception being thrown with 0.0 as argument.
10786         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10787         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10788         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10789         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10790         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10791         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10792         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10793         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10794         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10795
10796 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10797
10798         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10799         with altivec.
10800
10801 2012-04-16  Marek Polacek  <polacek@redhat.com>
10802
10803         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10804
10805 2012-04-16  Marek Polacek  <polacek@redhat.com>
10806
10807         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10808         operands of fdivp instruction.
10809
10810 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10811
10812         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10813         * elf/tst-auditmod3b.c: Likewise.
10814         * elf/tst-auditmod4b.c: Likewise.
10815         * elf/tst-auditmod5b.c: Likewise.
10816         * elf/tst-auditmod6b.c: Likewise.
10817         * elf/tst-auditmod6c.c: Likewise.
10818         * elf/tst-auditmod7b.c: Likewise.
10819         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10820         * sysdeps/x86_64/preconfigure.in: Likewise.
10821         * sysdeps/x86_64/preconfigure: Regenerated.
10822
10823 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10824
10825         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10826         __ILP32__.
10827
10828 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10829
10830         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10831         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10832
10833 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10834
10835         [BZ #13973]
10836         * locale/iso-639.def: Fix gl language name. Spotted by
10837         Yaron Shahrabani.
10838
10839 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10840
10841         [BZ #2074]
10842         * libio/libio.h (__io_write_fn): Update comment.
10843
10844 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10845
10846         [BZ #2074]
10847         * stdio.texi (Hook Functions): The user provided writer function
10848         is not allowed to return -1.
10849
10850 2012-04-11  David S. Miller  <davem@davemloft.net>
10851
10852         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10853
10854 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10855
10856         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10857         Add a leading slash to rtkaio.
10858
10859 2012-04-11  Jim Meyering  <meyering@redhat.com>
10860
10861         [BZ #11959]
10862         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10863         It is not necessarily an error to ignore fwrite's return
10864         value.  One can reliably use ferror to test for errors after
10865         the fact.
10866
10867 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10868
10869         * bits/types.h (__snseconds_t): New type.
10870         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10871
10872         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10873         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10874         (__SNSECONDS_T_TYPE): Likewise.
10875         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10876         (__SNSECONDS_T_TYPE): Likewise.
10877         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10878         (__SNSECONDS_T_TYPE): Likewise.
10879
10880 2012-04-10  Andreas Jaeger  <aj@suse.de>
10881
10882         [BZ #2636]
10883         * manual/time.texi (Processor Time): Return type of times is
10884         elapsed real time since an arbitrary point in the past.
10885         (CPU Time): Move CLK_TCK from here...
10886         (Processor Time): ...to here.  Correct description.
10887         * manual/conf.texi (Constants for Sysconf): Correct description of
10888         _SC_CLK_TCK.
10889
10890 2012-04-10  David S. Miller  <davem@davemloft.net>
10891
10892         [BZ #13967]
10893         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10894         where the is a gap between DT_REL(A) and DT_JMPREL.
10895
10896 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10897
10898         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10899         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10900         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10901
10902 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10903
10904         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10905         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10906         (dl_main): Handle --inhibit-cache.
10907         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10908         _dl_inhibit_cache.
10909         * elf/dl-load.c (_dl_map_object): Use it.
10910         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10911
10912 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10913
10914         [BZ #13872]
10915         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10916         (__ieee754_powl): Saturate large exponents rather than testing for
10917         overflow of y*log2(x).
10918         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10919         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10920         exceptions.
10921
10922         [BZ #11521]
10923         * math/s_ctan.c: Include <float.h>.
10924         (__ctan): Avoid internal overflow or cancellation in calculating
10925         denominator.
10926         * math/s_ctanf.c: Likewise.
10927         * math/s_ctanl.c: Likewise.
10928         * math/s_ctanh.c: Likewise.
10929         * math/s_ctanhf.c: Likewise.
10930         * math/s_ctanhl.c: Likewise.
10931         * math/libm-test.inc (ctan_test): Add more tests.
10932         (ctanh_test): Likewise.
10933         * sysdeps/i386/fpu/libm-test-ulps: Update.
10934         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10935
10936 2012-04-09  Andreas Jaeger  <aj@suse.de>
10937
10938         [BZ #6894]
10939         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10940         is an optional BSD extension.
10941
10942         [BZ #10254]
10943         * manual/stdio.texi (Opening Streams): Document additional fopen
10944         parameters.
10945
10946 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10947
10948         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10949         %eax without telling the compiler.
10950
10951 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10952
10953         [BZ # 13963]
10954         * manual/install.texi: Use sourceware.org.
10955
10956 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10957
10958         [BZ #13873]
10959         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10960         (__ieee754_pow): Generate overflow and underflow using huge*huge
10961         and tiny*tiny rather than just returning constant infinity or zero
10962         for large exponents.
10963         * math/libm-test.inc (pow_test): Require overflow exceptions for
10964         applicable cases of large exponents.
10965
10966         [BZ #706]
10967         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10968         (__ieee754_pow): Use iterative multiplication algorithm only for
10969         integer exponents with absolute value below 1024.  Check for odd
10970         integer exponents when using algorithm for real exponents.
10971         * math/libm-test.inc (pow_test): Add more tests.
10972         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10973
10974 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
10975
10976         [BZ #13705]
10977         * math/libm-test.inc (exp_test): Do not allow overflow exception
10978         on underflow test.
10979
10980 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
10981
10982         [BZ #13705]
10983         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
10984         instead of __kernel_standard_f.
10985
10986 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
10987
10988         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
10989         * sysdeps/x86_64/memset_chk.S: Likewise.
10990
10991 2012-04-08  Andreas Jaeger  <aj@suse.de>
10992
10993         [BZ #10153]
10994         * manual/startup.texi (Environment Access): Describe return value
10995         for putenv and setenv.
10996
10997         [BZ #6895]
10998         * manual/filesys.texi (Directory Entries): Add description for
10999         DT_LNK.
11000
11001         [BZ #6890]
11002         * manual/filesys.texi (Directory Entries): Clarify that it's file
11003         system not operating system in the description of DT_UNKNOWN.
11004
11005         [BZ #6578]
11006         * manual/syslog.texi (closelog): Fix reference, it's openlog.
11007
11008 2012-04-08  Stephen Compall  <s11@member.fsf.org>
11009
11010         [BZ #6649]
11011         * manual/llio.texi (Opening and Closing Files): Add cross
11012         reference to explain mode argument.
11013
11014 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11015
11016         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11017         * sysdeps/x86_64/memset_chk.S: Likewise.
11018
11019 2012-04-07  David S. Miller  <davem@davemloft.net>
11020
11021         * elf/elf.h (R_SPARC_WDISP10): Define.
11022         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11023         R_SPARC_SIZE32.
11024         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11025         R_SPARC_SIZE64 and R_SPARC_H34.
11026
11027 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11028
11029         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11030         conditions and remove no longer applicable assertion.
11031
11032 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11033
11034         * bits/byteswap.h: Include <features.h>.
11035         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11036         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11037
11038 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11039
11040         * bits/byteswap.h (__bswap_16): Removed.
11041         Include <bits/byteswap-16.h> to get __bswap_16.
11042         * sysdeps/i386/bits/byteswap.h: Likewise.
11043         * sysdeps/s390/bits/byteswap.h: Likewise.
11044         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11045         * bits/byteswap-16.h: New file.
11046         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11047         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11048         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11049         * string/Makefile (headers): Add bits/byteswap-16.h.
11050
11051 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11052
11053         [BZ #13895]
11054         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11055         extra indirection.
11056         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11057         * nss/tst-nss-static.c: New.
11058
11059 2012-04-06  Robert Millan  <rmh@gnu.org>
11060
11061         [BZ #6486]
11062         * manual/llio.texi (File Position Primitive): lseek
11063         refers to WHENCE when it really means OFFSET.
11064
11065 2012-04-06  Andreas Jaeger  <aj@suse.de>
11066
11067         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11068         strncmp declarations.
11069
11070         * abilist/libc.abilist: Add __poll and __ppoll.
11071
11072 2012-04-05  David S. Miller  <davem@davemloft.net>
11073
11074         * scripts/check-local-headers.sh: Accept a host triplet in the
11075         path matched by the exclude regexp.
11076
11077         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11078         definition.
11079         * sysdeps/powerpc/powerpc32/dl-machine.h
11080         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11081         * sysdeps/s390/s390-32/dl-machine.h
11082         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11083         * sysdeps/sparc/sparc32/dl-machine.h
11084         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11085         * sysdeps/sparc/sparc64/dl-machine.h
11086         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11087
11088         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11089         lazy binding.
11090         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11091         undefined symbol errors.
11092
11093         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11094         DT_NEEDED entries.
11095
11096 2012-04-05  Michael Matz  <matz@suse.de>
11097
11098         [BZ #13592]
11099         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11100
11101 2012-04-05  Andreas Jaeger  <aj@suse.de>
11102
11103         [BZ #13908]
11104         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11105         comment.
11106
11107 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11108
11109         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11110         which ROUND is no valid rounding mode.
11111
11112 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11113
11114         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11115         read again.
11116         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11117
11118 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11119
11120         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11121         an exception using FPU order intentionally.
11122
11123 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11124
11125         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11126         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11127         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11128         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11129
11130 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11131
11132         [BZ #12340]
11133         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11134         EINVAL when BUFLEN is too smal.
11135
11136 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11137
11138         [BZ #13553]
11139         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11140         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11141
11142 2012-04-03  Andreas Jaeger  <aj@suse.de>
11143
11144         [BZ #13938]
11145         * manual/setjmp.texi (System V contexts): Fix sentence.
11146
11147         [BZ #13926]
11148         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11149         New macro for this case.
11150         [!__GNUC__] (__bswap_64): New inline function for this case.
11151         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11152         * bits/byteswap.h: Likewise.
11153         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11154         ull, guard with __GLIBC_HAVE_LONG_LONG.
11155
11156         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11157         __GLIBC_HAVE_LONG_LONG.
11158
11159         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11160         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11161
11162 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11163
11164         [BZ #13691]
11165         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11166         inptr and inend, rather than using last_ch.
11167
11168 2012-04-02  David S. Miller  <davem@davemloft.net>
11169
11170         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11171         * stdio-common/printf-parse.h (read_int): Change return type to
11172         'int', return -1 on INT_MAX overflow.
11173         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11174         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11175         overflows INT_MAX.  Check for overflow of in-format-string precision
11176         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11177         SIZE_MAX not INT_MAX for integer overflow test.
11178         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11179         skip the construct in the format string but do not record anything.
11180         * stdio-common/bug22.c: Adjust to test both width/prevision
11181         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11182         explicitly for proper errno values.
11183
11184 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11185
11186         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11187         CHAR_MAX.
11188         * string/test-strcmp.c [! WIDE]: Likewise.
11189         * time/tst-mktime2.c: Likewise for INT_MAX.
11190         * string/test-string.h: #include <sys/param.h> for MIN.
11191
11192         * csu/init-first.c (__libc_init_first): Call __ctype_init.
11193         * sysdeps/i386/init-first.c (init): Likewise.
11194         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11195         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11196         * sysdeps/sh/init-first.c (init): Likewise.
11197
11198 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
11199
11200         * po/ru.po: Update from translation team.
11201         * po/vi.po: Likewise.
11202
11203 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11204
11205         * resolv/nss_dns/dns-host.c: Merge copyright years.
11206
11207 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11208
11209         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11210         Optimize memcpy with prefetch if
11211         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
11212         src, dst pointers have unequal 16 byte alignments.
11213
11214 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11215
11216         [BZ #13928]
11217         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11218         from a CNAME entry and return the minimum ttl for the query.
11219         (gaih_getanswer_slice): Likewise.
11220
11221 2012-03-30  Jeff Law  <law@redhat.com>
11222
11223         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11224         due to long keys.
11225         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11226         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11227
11228         * resolv/nss_dns/dns-host.c: Update copyright year.
11229
11230 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11231
11232         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11233         requests to save a system call.  Fix check that all bytes are sent.
11234
11235         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11236         comments for sendmmsg.
11237
11238 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11239
11240         [BZ #13691]
11241         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11242         with only 1 character between 0x0041 and 0x01b0.
11243         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11244         * wcsmbs/tst-mbsnrtowcs.c: New file.
11245
11246 2012-03-29  David S. Miller  <davem@davemloft.net>
11247
11248         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11249         small copies by hand.
11250
11251 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11252
11253         [BZ #13761]
11254         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11255         _nss_compat_initgroups_dyn): Fall back to malloc/free
11256         for large group memberships.
11257
11258 2012-03-28  David S. Miller  <davem@davemloft.net>
11259
11260         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11261         that branches into memcpy.
11262         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11263         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11264         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11265         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11266         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11267         bits.
11268         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11269         implementation too.
11270         * sysdeps/sparc/mempcpy.S: New file.
11271
11272         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11273         the IFUNC routine in the libc case.
11274         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11275
11276         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11277         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11278         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11279         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11280         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11281         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11282         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11283         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11284
11285         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11286         loop to 256 bytes instead of 64 bytes and fix test signedness.
11287
11288         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11289         * sysdeps/sparc/sparc32/Makefile: rather than here...
11290         * sysdeps/sparc/sparc64/Makefile: and here.
11291
11292 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11293
11294         * malloc/mallocbug.c: Avoid warnings about unused variables.
11295
11296 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11297
11298         [BZ #13760]
11299         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11300         in the right place. Discard and retry query if response is
11301         larger than input buffer size.
11302
11303 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11304
11305         [BZ #369]
11306         [BZ #2678]
11307         [BZ #3866]
11308         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11309         x for large integer exponent.
11310         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11311         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11312         sign of result as needed afterwards.
11313         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11314         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11315         result for underflowing pow the same as for overflow.
11316         (__kernel_standard_l): Handle powl overflow and underflow here
11317         rather than calling __kernel_standard.
11318         * math/libm-test.inc (pow_test): Add more tests.
11319
11320         [BZ #3868]
11321         [BZ #13879]
11322         [BZ #13910]
11323         [BZ #13911]
11324         [BZ #13912]
11325         [BZ #13913]
11326         [BZ #13915]
11327         [BZ #13916]
11328         [BZ #13917]
11329         [BZ #13918]
11330         [BZ #13919]
11331         [BZ #13920]
11332         [BZ #13921]
11333         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11334         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11335         (__kernel_standard_l): New function.
11336         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11337         __kernel_standard.
11338         * math/w_acosl.c (__acosl): Likewise.
11339         * math/w_asinl.c (__asinl): Likewise.
11340         * math/w_atan2l.c (__atan2l): Likewise.
11341         * math/w_atanhl.c (__atanhl): Likewise.
11342         * math/w_coshl.c (__coshl): Likewise.
11343         * math/w_exp10l.c (__exp10l): Likewise.
11344         * math/w_exp2l.c (__exp2l): Likewise.
11345         * math/w_fmodl.c (__fmodl): Likewise.
11346         * math/w_hypotl.c (__hypotl): Likewise.
11347         * math/w_j0l.c (__j0l, __y0l): Likewise.
11348         * math/w_j1l.c (__j1l, __y1l): Likewise.
11349         * math/w_jnl.c (__jnl, __ynl): Likewise.
11350         * math/w_lgammal.c (__lgammal): Likewise.
11351         * math/w_log10l.c (__log10l): Likewise.
11352         * math/w_log2l.c (__log2l): Likewise.
11353         * math/w_logl.c (__logl): Likewise.
11354         * math/w_powl.c (__powl): Likewise.
11355         * math/w_remainderl.c (__remainderl): Likewise.
11356         * math/w_scalbl.c (sysv_scalbl): Likewise.
11357         * math/w_sinhl.c (__sinhl): Likewise.
11358         * math/w_sqrtl.c (__sqrtl): Likewise.
11359         * math/w_tgammal.c (__tgammal): Likewise.
11360         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11361         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11362         * math/libm-test.inc (acos_test): Add more tests.
11363         (acosh_test): Likewise.
11364         (asin_test): Likewise.
11365         (atanh_test): Likewise.
11366         (exp_test): Likewise.
11367         (exp10_test): Likewise.
11368         (exp2_test): Likewise.
11369         (expm1_test): Likewise.
11370         (lgamma_test): Likewise.
11371         (log_test): Likewise.
11372         (log10_test): Likewise.
11373         (log1p_test): Likewise.
11374         (log2_test): Likewise.
11375         (pow_test): Do not allow some spurious overflow exceptions.
11376         (sqrt_test): Add more tests.
11377         (tgamma_test): Likewise.
11378         (y0_test): Likewise.
11379         (y1_test): Likewise.
11380         (yn_test): Likewise.
11381
11382 2012-03-27  Anton Blanchard  <anton@samba.org>
11383
11384         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11385         MAP_HUGETLB.
11386         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11387         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11388         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11389
11390 2012-03-27  David S. Miller  <davem@davemloft.net>
11391
11392         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11393
11394         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11395         have-as-vis3 check.
11396
11397 2012-03-27  Andreas Jaeger  <aj@suse.de>
11398
11399         * sysdeps/x86_64/elf/configure.in: Moved to ...
11400         * sysdeps/x86_64/configure.in: ... here.
11401         * sysdeps/x86_64/elf/start.S: Moved to ...
11402         * sysdeps/x86_64/start.S: ... here.
11403         * sysdeps/x86_64/elf/configure: Delete.
11404
11405         * sysdeps/x86_64/configure.in: Merge contents from
11406         sysdeps/i386/configure.in (without i686 check).
11407
11408         * sysdeps/i386/elf/Versions: Merge into ...
11409         * sysdeps/i386/Versions: ... this.
11410         * sysdeps/i386/elf/Versions: Delete file.
11411         * sysdeps/i386/elf/start.S: Moved to ...
11412         * sysdeps/i386/start.S: ...here.
11413         * sysdeps/i386/elf/configure.in: Merge into...
11414         * sysdeps/i386/configure.in: ...here.
11415         * sysdeps/i386/elf/configure.in: Delete file.
11416         * sysdeps/i386/elf/configure: Delete file.
11417
11418         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11419         * debug/backtracesyms.c: ... here.
11420         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11421         * debug/backtracesymsfd.c: ... here.
11422         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11423         * sysdeps/generic/ifunc-sel.h: ... here.
11424
11425         * sysdeps/unix/i386/start.c: Delete file.
11426         * sysdeps/unix/sparc/start.c: Delete file.
11427         * sysdeps/unix/start.c: Delete file.
11428
11429         * sysdeps/sh/elf/configure.in: Moved to ...
11430         * sysdeps/sh/configure.in: ... here.
11431         * sysdeps/sh/elf/start.S: Moved to ...
11432         * sysdeps/sh/start.S: ... here.
11433         * sysdeps/sh/elf/configure: Delete file.
11434
11435         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11436         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11437         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11438         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11439         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11440         * sysdeps/powerpc/powerpc64/start.S: here.
11441         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11442         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11443         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11444         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11445         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11446
11447         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11448         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11449         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11450         * sysdeps/powerpc/powerpc32/start.S: ... here.
11451         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11452         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11453         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11454
11455         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11456         * sysdeps/powerpc/ifunc-sel.h: ... here.
11457         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11458         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11459
11460         * sysdeps/sparc/elf/configure.in: Moved to ...
11461         * sysdeps/sparc/configure.in: ... here.
11462         * sysdeps/sparc/elf/configure: Delete file.
11463         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11464         * sysdeps/sparc/sparc32/start.S: ... here.
11465         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11466         * sysdeps/sparc/sparc64/start.S: ... here.
11467         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11468         * sysdeps/sparc/sparc32/Makefile: ... this.
11469         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11470         * sysdeps/sparc/sparc64/Makefile: ... this.
11471
11472         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11473         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11474         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11475         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11476         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11477         * sysdeps/s390/s390-32/setjmp.S: ... here.
11478         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11479         * sysdeps/s390/s390-32/configure.in: ... here.
11480         * sysdeps/s390/s390-32/elf/configure: Delete file.
11481         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11482         * sysdeps/s390/s390-32/start.S: ... here.
11483
11484         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11485         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11486         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11487         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11488         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11489         * sysdeps/s390/s390-64/setjmp.S: ... here.
11490         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11491         * sysdeps/s390/s390-64/configure.in: ... here
11492         * sysdeps/s390/s390-64/elf/configure: Delete file.
11493         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11494         * sysdeps/s390/s390-64/start.S: ... here.
11495         * sysdeps/s390/s390-64/elf/configure: Delete.
11496
11497         * configure.in: Remove support for elf directories in sysdeps.
11498
11499         * configure: Regenerated.
11500         * sysdeps/i386/configure: Regenerated.
11501         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11502         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11503         * sysdeps/s390/s390-32/configure: Regenerated.
11504         * sysdeps/s390/s390-64/configure: Regenerated.
11505         * sysdeps/sh/configure: Regenerated.
11506         * sysdeps/sparc/configure: Regenerated.
11507         * sysdeps/x86_64/configure: Regenerated.
11508
11509 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11510
11511         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11512
11513         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11514         denormal result into account.
11515
11516 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11517
11518         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11519         Reported by Allan McRae <allan@archlinux.org>.
11520
11521 2012-03-23  Jeff Law  <law@redhat.com>
11522
11523         * nss/getnssent.c (__nss_getent): Fix typo.
11524
11525 2012-03-23  David S. Miller  <davem@davemloft.net>
11526
11527         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11528
11529 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11530
11531         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11532         to pad to uint64_t for each field.
11533         (dl_tls_index): Replace unsigned long with uint64_t.
11534
11535 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11536         Paul Pluzhnikov  <ppluzhnikov@google.com>
11537
11538         [BZ #6528]
11539         * grp/Makefile (otherlibs): Don't set it.
11540         * inet/Makefile (otherlibs): Likewise.
11541         * login/Makefile (otherlibs): Likewise.
11542         * nscd/Makefile (otherlibs): Likewise.
11543         * posix/Makefile (otherlibs): Likewise.
11544         * pwd/Makefile (otherlibs): Likewise.
11545         * rt/Makefile (otherlibs): Likewise.
11546         * sunrpc/Makefile (otherlibs): Likewise.
11547         * nss/Makefile (otherlibs): Likewise.
11548         Add libnss_files to routines and static-only-routines.
11549         ($(objpfx)getent): Remove rule.
11550         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11551         static-only-routines.
11552
11553 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11554
11555         [BZ #13892]
11556         * math/s_cexp.c: Include <float.h>.
11557         (__cexp): Handle exp result overflowing not necessarily
11558         overflowing both real and imaginary parts of result.
11559         * math/s_cexpf.c: Likewise.
11560         * math/s_cexpl.c: Likewise.
11561         * math/libm-test.inc (cexp_test): Add more tests.
11562         * sysdeps/i386/fpu/libm-test-ulps: Update.
11563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11564
11565 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11566
11567         * include/link.h (ELFW): New macro.
11568         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11569         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11570
11571 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11572
11573         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11574         with uint64_t.
11575
11576 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11577
11578         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11579         declaration.
11580         (struct La_x32_retval): Likewise.
11581
11582 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11583
11584         * sysdeps/x86_64/preconfigure.in: New file.
11585         * sysdeps/x86_64/preconfigure: New generated file.
11586
11587 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11588
11589         [BZ #13824]
11590         * math/e_exp2l.c: Include <float.h>.
11591         (__ieee754_exp2l): Handle overflow and underflow cases
11592         separately.  Only pass fractional part of argument to
11593         __ieee754_expl.
11594         * math/libm-test.inc (exp2_test): Add more tests.
11595
11596         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11597         negating x to take absolute value.
11598         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11599         Likewise.
11600         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11601         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11602         Likewise.
11603         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11604         computing low part if x was negated.
11605         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11606
11607 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11608
11609         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11610         la_x32_gnu_pltexit.
11611         (pltexit): Cast int_retval to ptrdiff_t.
11612         * elf/tst-auditmod3b.c: Likewise.
11613         * elf/tst-auditmod4b.c: Likewise.
11614         * elf/tst-auditmod5b.c: Likewise.
11615         * elf/tst-auditmod6b.c: Likewise.
11616         * elf/tst-auditmod6c.c: Likewise.
11617         * elf/tst-auditmod7b.c: Likewise.
11618
11619         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11620         and x32_gnu_pltexit.
11621
11622         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11623         __ELF_NATIVE_CLASS.
11624         (La_x32_regs): New macro.
11625         (La_x32_retval): Likewise.
11626         (la_x32_gnu_pltenter): New function prototype.
11627         (la_x32_gnu_pltexit): Likewise.
11628
11629 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11630
11631         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11632         exponent.
11633
11634         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11635
11636         * configure.in (libc_cv_cc_nofma): Check for option to disable
11637         generation of FMA instructions.
11638         * configure: Regenerate.
11639         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11640         * sysdeps/ieee754/dbl-64/Makefile: New file.
11641         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11642         Remove brandred-fma4.
11643         (CFLAGS-brandred-fma4.c): Remove.
11644         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11645         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11646         define.
11647         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11648         define.
11649
11650 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11651
11652         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11653         LLONG_MAX != LONG_MAX.
11654         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11655         (_fitoa_word): Likewise.
11656         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11657         LLONG_MAX != LONG_MAX.
11658         * stdio-common/_itowa.h: Include <_itoa.h>.
11659         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11660         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11661         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11662         only if not defined.
11663         (_ITOA_WORD_TYPE): Likewise.
11664         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11665         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11666
11667 2012-03-21  David S. Miller  <davem@davemloft.net>
11668
11669         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11670
11671 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11672
11673         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11674         of x86_64 when setting libc_cv_slibdir, libdir and
11675         libc_cv_localedir.
11676         * sysdeps/unix/sysv/linux/configure: Regenerated.
11677
11678 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11679
11680         * manual/lang.texi (Old Varargs): Remove section.
11681         (How Variadic): Update menu.
11682         (va_start): Do not mention varargs.h.
11683
11684 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11685             Joseph Myers  <joseph@codesourcery.com>
11686
11687         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11688         link test.
11689         * configure: Regenerated.
11690
11691 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11692
11693         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11694         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11695         conformtest.pl
11696
11697 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11698
11699         * NOTES: Remove.
11700         * Makefile (files-for-dist): Remove NOTES.
11701         (NOTES): Remove rule.
11702         * README: Don't refer to NOTES.
11703         * manual/creature.texi: Don't include macros.texi.
11704         * manual/intro.texi (creature.texi): Remove comment referring to
11705         NOTES.
11706
11707         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11708         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11709         * configure: Regenerated.
11710         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11711         LIBC_TRY_CC_OPTION.
11712         (libc_cv_as_i686): Likewise.
11713         (libc_cv_cc_avx): Likewise.
11714         (libc_cv_cc_sse2avx): Likewise.
11715         (libc_cv_cc_fma4): Likewise.
11716         (libc_cv_cc_novzeroupper): Likewise.
11717         * sysdeps/i386/configure: Regenerated.
11718
11719         [BZ #13883]
11720         * sysdeps/i386/fpu/s_cexp.S: Remove.
11721         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11722         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11723         * math/libm-test.inc (cexp_test): Add more tests.
11724         * sysdeps/i386/fpu/libm-test-ulps: Update.
11725         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11726
11727 2012-03-21  Allan McRae  <allan@archlinux.org>
11728
11729         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11730
11731 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11732
11733         [BZ #13871]
11734         * math/w_exp2.c: Do not include <float.h>.
11735         (o_threshold, u_threshold): Remove.
11736         (__exp2): Calculate result before checking finiteness and calling
11737         __kernel_standard.
11738         * math/w_exp2f.c: Likewise.
11739         * math/w_exp2l.c: Likewise.
11740         * math/libm-test.inc (exp2_test): Require overflow exception for
11741         1e6 input.
11742
11743         [BZ #3866]
11744         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11745         range of signed 64-bit integers before using fistpll.  Remove
11746         checks for whether integers fit in mantissa bits.
11747         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11748         the range of signed 32-bit integers before using fistpl.  Remove
11749         checks for whether integers fit in mantissa bits.
11750         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11751         (__ieee754_powl): Test for y outside the range of signed 64-bit
11752         integers before using fistpll.  Reduce 64-bit values to 63-bit
11753         ones as needed.
11754         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11755         divide-by-zero is raised for zero to large negative powers.
11756         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11757         (__ieee754_powl): Test for y outside the range of signed 64-bit
11758         integers before using fistpll.  Reduce 64-bit values to 63-bit
11759         ones as needed.
11760         * math/libm-test.inc (pow_test): Add more tests.
11761
11762 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11763
11764         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11765         <stdio-common/_itoa.h>.
11766         * debug/segfault.c: Likewise.
11767         * elf/dl-cache.c: Likewise.
11768         * elf/dl-minimal.c: Likewise.
11769         * elf/dl-misc.c: Likewise.
11770         * elf/dl-sysdep.c: Likewise.
11771         * elf/dl-version.c: Likewise.
11772         * elf/rtld.c: Likewise.
11773         * hurd/hurdsock.c: Likewise.
11774         * hurd/lookup-retry.c: Likewise.
11775         * malloc/malloc.c: Likewise.
11776         * malloc/mtrace.c: Likewise.
11777         * nscd/nscd_getgr_r.c: Likewise.
11778         * nscd/nscd_getpw_r.c: Likewise.
11779         * nscd/nscd_getserv_r.c: Likewise.
11780         * posix/getopt_init.c: Likewise.
11781         * posix/wordexp.c: Likewise.
11782         * stdio-common/_itoa.c: Likewise.
11783         * stdio-common/printf_fphex.c: Likewise.
11784         * stdio-common/vfprintf.c: Likewise.
11785         * string/_strerror.c: Likewise.
11786         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11787         * sysdeps/i386/i686/hp-timing.h: Likewise.
11788         * sysdeps/mach/_strerror.c: Likewise.
11789         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11790         * sysdeps/mach/hurd/sethostid.c: Likewise.
11791         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11792         * sysdeps/mach/xpg-strerror.c: Likewise.
11793         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11794         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11795         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11796         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11797         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11798         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11799         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11800         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11801         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11802         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11803         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11804         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11805         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11806         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11807         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11808         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11809         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11810         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11811         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11812         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11813         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11814
11815         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11816
11817         * stdio-common/_itoa.h: Moved to ...
11818         * sysdeps/generic/_itoa.h: Here.
11819
11820         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11821
11822         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11823         instead of "_itoa.h" and "_itowa.h".
11824         * stdio-common/vfprintf.: Likewise.
11825
11826 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11827
11828         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11829         <bits/wordsize.h>.
11830         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11831         (__signbit): Likwise.
11832         (llrintf): Likwise.
11833         (llrint): Likwise.
11834
11835 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11836
11837         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11838         __WORDSIZE != 64.
11839
11840 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11841
11842         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11843         OVERFLOW_EXCEPTION_OK.
11844         * math/libm-test.inc ("Philosophy"): Update comment about
11845         exception testing.
11846         (OVERFLOW_EXCEPTION): Define.
11847         (OVERFLOW_EXCEPTION_OK): Likewise.
11848         (INVALID_EXCEPTION_OK): Renumber.
11849         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11850         (IGNORE_ZERO_INF_SIGN): Likewise.
11851         (test_exceptions): Handle FE_OVERFLOW.
11852         (exp10_test): Expect overflow exceptions.
11853         (exp2_test): Likewise.
11854         (expm1_test): Likewise.
11855         (nextafter_test): Likewise.
11856         (pow_test): Likewise.
11857         (scalbn_test): Likewise.
11858         (scalbln_test): Likewise.
11859
11860 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11861
11862         * sysdeps/x86_64/bits/atomic.h
11863         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11864         64bit integer.
11865         (atomic_exchange_acq): Likewise.
11866         (__arch_exchange_and_add_body): Likewise.
11867         (__arch_add_body): Likewise.
11868         (atomic_add_negative): Likewise.
11869         (atomic_add_zero): Likewise.
11870
11871 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11872
11873         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11874         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11875
11876 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11877
11878         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11879         Check __x86_64__ instead of __WORDSIZE.
11880
11881 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11882
11883         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11884
11885 2012-03-19  David S. Miller  <davem@davemloft.net>
11886
11887         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11888
11889         * sysdeps/sparc/fpu/fenv_private.h: New file.
11890         * sysdeps/sparc/fpu/math_private.h: Use it.
11891         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11892         Remove.
11893         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11894         (libc_feholdexcept_setroundl): Remove.
11895         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11896         Remove.
11897         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11898         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11899
11900 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11901
11902         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11903         int64_t instead of long int.
11904         (INSERT_WORDS64): Likwise.
11905
11906 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11907
11908         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11909         _Unwind_GetCFA return to _Unwind_Ptr first.
11910
11911 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11912
11913         [BZ #13629]
11914         * math/s_clog.c: Include <float.h>.
11915         (__clog): Scale large or subnormal inputs.
11916         * math/s_clogf.c: Likewise.
11917         * math/s_clogl.c: Likewise.
11918         * math/s_clog10.c: Include <float.h>.
11919         (M_LOG10_2): Define.
11920         (__clog10): Scale large or subnormal inputs.
11921         * math/s_clog10f.c: Likewise.
11922         * math/s_clog10l.c: Likewise.
11923         * math/libm-test.inc (clog_test): Add more tests.
11924         (clog10_test): Likewise.
11925         * sysdeps/i386/fpu/libm-test-ulps: Update.
11926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11927
11928         [BZ #11451]
11929         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11930         x and y.
11931         * math/libm-test.inc (atan2_test): Add another test.
11932
11933         * Makerules (common-objdir-compile): Remove.
11934         * sysdeps/unix/Makefile (config-generated): Do not add
11935         $(unix-generated) to variable.
11936         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11937         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11938         Remove rule.
11939         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11940         Likewise.
11941         [generic bits/local_lim.h] (before-compile): Do not append to
11942         variable.
11943         [generic bits/local_lim.h] (common-generated): Likewise.
11944         [generic sys/param.h] (before-compile): Do not append to variable.
11945         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11946         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11947         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11948         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11949         include.
11950         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11951         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11952         [generic sys/param.h] ($(addprefix
11953         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11954         [generic sys/param.h] (common-generated): Do not append to
11955         variable.
11956         [generic sys/param.h] (sysdep_headers): Likewise.
11957         [generic bits/errno.h] (before-compile): Do not append to
11958         variable.
11959         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11960         rule.
11961         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11962         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11963         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11964         [generic bits/errno.h] (common-generated): Do not append to
11965         variable.
11966         [generic bits/ioctls.h] (before-compile): Do not append to
11967         variable.
11968         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11969         rule.
11970         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
11971         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
11972         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
11973         rule.
11974         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
11975         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
11976         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
11977         [generic bits/ioctls.h] (common-generated): Do not append to
11978         variable.
11979         [generic sys/syscall.h] (syscall.h): Remove variable.
11980         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
11981         rule.
11982         [generic sys/syscall.h] (before-compile): Do not append to
11983         variable.
11984         [generic sys/syscall.h] (common-generated): Likewise.
11985         * sysdeps/unix/errnos-tmpl.c: Remove file.
11986         * sysdeps/unix/errnos.awk: Likewise.
11987         * sysdeps/unix/ioctls-tmpl.c: Likewise.
11988         * sysdeps/unix/ioctls.awk: Likewise.
11989         * sysdeps/unix/mk-local_lim.c: Likewise.
11990         * sysdeps/unix/snarf-ioctls: Likewise.
11991
11992 2012-03-19  Richard Henderson  <rth@twiddle.net>
11993
11994         * sysdeps/i386/fpu/fenv_private.h: New file.
11995         * sysdeps/i386/fpu/math_private.h: Use it.
11996         (math_opt_barrier, math_force_eval): Remove.
11997         (libc_feholdexcept_setround_53bit): Remove.
11998         (libc_feupdateenv_53bit): Remove.
11999         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12000         (math_opt_barrier, math_force_eval): Remove.
12001         (libc_feholdexcept): Remove.
12002         (libc_feholdexcept_setround): Remove.
12003         (libc_fetestexcept, libc_fesetenv): Remove.
12004         (libc_feupdateenv_test): Remove.
12005         (libc_feupdateenv, libc_feholdsetround): Remove.
12006         (libc_feresetround): Remove.
12007
12008         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12009         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12010
12011         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12012         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12013         (libc_feupdateenv_testl): New.
12014         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12015         (libc_feupdateenv_testf): New.
12016         (libc_feupdateenv): Use libc_feupdateenv_test.
12017         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12018         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12019
12020         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12021         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12022         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12023         (libc_feresetround_noex): New.
12024         (libc_feresetround_noexf): New.
12025         (libc_feresetround_noexl): New.
12026         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12027         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12028         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12029         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12030         SET_RESTORE_ROUND.
12031         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12032         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12033         (__cos): Likewise.
12034         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12035         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12036         SET_RESTORE_ROUND_NOEX.
12037         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12038         SET_RESTORE_ROUND_NOEXF.
12039         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12040         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12041         (libc_feholdsetroundf): New.
12042         (libc_feresetround, libc_feresetroundf): New.
12043
12044         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12045         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12046         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12047
12048         * sysdeps/generic/math_private.h: Include <fenv.h>.
12049         (default_libc_feholdexcept): New.
12050         (default_libc_feholdexcept_setround): New.
12051         (default_libc_fesetenv, default_libc_feupdateenv): New.
12052         (libc_feholdexcept): Only define if undefined.
12053         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12054         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12055         (libc_feholdexcept_setroundl): Likewise.
12056         (libc_feholdexcept_setround_53bit): Likewise.
12057         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12058         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12059         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12060         (libc_feupdateenv_53bit): Likewise.
12061         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12062         (libc_feholdexcept): Convert from macro to inline function.
12063         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12064         (libc_fesetenv, libc_feupdateenv): Likewise.
12065
12066         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12067         not previously defined.
12068         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12069         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12070         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12071         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12072         * sysdeps/ieee754/flt-32/math_private.h: New file.
12073         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12074         math_private.h below SET_FLOAT_WORD.
12075         (__isnan, __isinf_ns, __finite): Remove.
12076         (__isnanf, __isinf_nsf, __finitef): Remove.
12077
12078 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12079
12080         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12081
12082 2012-03-17  David S. Miller  <davem@davemloft.net>
12083
12084         [BZ #6471]
12085         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12086         for 2.16.
12087
12088 2012-03-16  David S. Miller  <davem@davemloft.net>
12089
12090         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12091         warnings.
12092
12093         [BZ #6471]
12094         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12095         properly.
12096         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12097         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12098         sysdep_routines when subdir is sysvipc.
12099         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12100         __getshmlba helper.
12101
12102         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12103
12104 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12105
12106         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12107         [__LP64__].
12108
12109 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12110
12111         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12112         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12113         (__lround): Renamed to ...
12114         (__llround): This.  Replace long int with long long int.
12115         Define lround functions as aliases of llround functions.
12116         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12117
12118 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12119
12120         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12121         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12122         adresses to uintptr_t.  Replace "long int" and "unsigned long
12123         int" with "greg_t" on va_arg.
12124
12125 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12126
12127         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12128         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12129
12130         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12131         Move e_machine check before EI_CLASS check.  Handle x32
12132         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12133         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12134         SKIP_EM_IA_64 and include
12135         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12136
12137         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12138         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12139         (add_system_dir): New macro.
12140
12141         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12142         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12143
12144 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12145
12146         [BZ #2551]
12147         [BZ #2552]
12148         [BZ #2553]
12149         [BZ #2554]
12150         [BZ #2562]
12151         [BZ #2563]
12152         [BZ #2565]
12153         [BZ #2566]
12154         [BZ #2576]
12155         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12156         (y0): Likewise.
12157         * math/w_j0f.c (j0f): Likewise.
12158         (y0f): Likewise.
12159         * math/w_j0l.c (__j0l): Likewise.
12160         (__y0l): Likewise.
12161         * math/w_j1.c (j1): Likewise.
12162         (y1): Likewise.
12163         * math/w_j1f.c (j1f): Likewise.
12164         (y1f): Likewise.
12165         * math/w_j1l.c (__j1l): Likewise.
12166         (__y1l): Likewise.
12167         * math/w_jn.c (jn): Likewise.
12168         (yn): Likewise.
12169         * math/w_jnf.c (jnf): Likewise.
12170         (ynf): Likewise.
12171         * math/w_jnl.c (__jnl): Likewise.
12172         (__ynl): Likewise.
12173         * math/libm-test.inc (j0_test): Add more tests.
12174         (j1_test): Likewise.
12175         (jn_test): Likewise.  Add trailing semicolon to existing test.
12176         (y0_test): Likewise.
12177         (y1_test): Likewise.
12178         * sysdeps/i386/fpu/libm-test-ulps: Update.
12179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12180
12181         [BZ #13851]
12182         [BZ #13854]
12183         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12184         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12185         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12186         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12187         (__tanl): Set errno for infinite argument.
12188         * sysdeps/i386/fpu/mptan.c: Remove.
12189         * sysdeps/i386/fpu/s_tan.S: Likewise.
12190         * sysdeps/i386/fpu/s_tanl.S: Likewise.
12191         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12192         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12193         * math/libm-test.inc (tan_test): Add more tests and enable more
12194         tests for double and long double.
12195         * sysdeps/i386/fpu/libm-test-ulps: Update.
12196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12197
12198 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12199
12200         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12201         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12202
12203 2012-03-16  Roland McGrath  <roland@hack.frob.com>
12204
12205         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12206         * configure.in: Use it for both main tree and add-ons.
12207         * configure: Regenerated.
12208
12209 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12210
12211         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12212
12213 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12214
12215         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12216         in comment.
12217
12218         [BZ #13851]
12219         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12220         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12221         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12222         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12223         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12224         infinite argument.
12225         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12226         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12227         != 0 for prec == 2.
12228         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12229         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12230         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12231         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12232         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12233         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12234         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12235         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12236         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12237         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12238         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12239         * math/libm-test.inc (cos_test): Add more tests and enable more
12240         tests for long double.
12241         (sin_test): Likewise.
12242         (sincos_test): Likewise.
12243         * sysdeps/i386/fpu/libm-test-ulps: Update.
12244         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12245
12246 2012-03-16  David S. Miller  <davem@davemloft.net>
12247
12248         * sysdeps/sparc/fpu/math_private.h: New file.
12249
12250 2012-03-15  David S. Miller  <davem@davemloft.net>
12251
12252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12253         file.
12254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12256         file.
12257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12258         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12259         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12260         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12261         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12262         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12263         sysdep routines.
12264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12265
12266         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12267         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12268
12269         * sysdeps/sparc/sparc-ifunc.h: New file.
12270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12271         sparc-ifunc.h
12272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12274         Likewise.
12275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12276         Likewise.
12277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12281         Likewise.
12282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12287         Likewise.
12288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12289         Likewise.
12290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12294         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12295         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12296         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12297         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12298         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12299         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12300         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12301         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12302         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12303         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12304         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12305         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12306         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12307         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12308         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12309         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12310         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12311         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12312         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12313         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12314
12315 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12316
12317         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12318         scaling.
12319         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12320
12321 2012-03-15  Andreas Jaeger  <aj@suse.de>
12322
12323         [BZ #13852]
12324         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12325         ieee754/flt-32 implementation for sin, cos and sincos.
12326         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12327         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12328         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12329         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12330         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12331         ieee754/flt-32 implementation for tan.
12332
12333         * math/libm-test.inc (cos_test): Enable some large input tests for
12334         float as well
12335         (sin_test): Likewise.
12336         (sincos_test): Likewise.
12337         (tan_test): Add tests for large input.
12338
12339         * sysdeps/i386/fpu/libm-test-ulps: Update.
12340
12341 2012-03-15  Andreas Jaeger  <aj@suse.de>
12342
12343         [BZ #13658]
12344         * math/libm-test.inc (cos_test): Add more test cases.
12345         (sin_test): Likewise.
12346         (sincos_test): Likewise.
12347
12348 2012-03-15  Andreas Jaeger  <aj@suse.de>
12349
12350         [BZ #13837]
12351         * math/libm-test.inc (cos_test): Add a test case for large input
12352         value.
12353         (sin_test): Likewise.
12354         (sincos_test): Likewise.
12355
12356 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12357         Joseph Myers  <joseph@codesourcery.com>
12358
12359         [BZ #13658]
12360         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12361         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12362         * sysdeps/i386/fpu/branred.c: Likewise.
12363         * sysdeps/i386/fpu/dosincos.c: Likewise.
12364         * sysdeps/i386/fpu/mpa.c: Likewise.
12365         * sysdeps/i386/fpu/s_cos.S: Likewise.
12366         * sysdeps/i386/fpu/s_sin.S: Likewise.
12367         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12368         * sysdeps/i386/fpu/sincos32.c: Likewise.
12369
12370         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12371         Define.
12372         (libc_feupdateenv_53bit): Define.
12373         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12374         Define.
12375         (libc_feupdateenv_53bit): Define.
12376
12377         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12378         53 bit (without extend i386 double precision).
12379
12380         * math/libm-test.inc (sincos_test): Add tests for large input.
12381         (sin): Likewise.
12382         (cos): Likewise.
12383
12384         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12385
12386 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12387
12388         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12389
12390 2012-03-15  David S. Miller  <davem@davemloft.net>
12391
12392         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12393         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12394         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12395         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12396         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12397         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12398         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12399         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12400         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12401         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12402         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12403         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12404         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12405         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12406         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12408         file.
12409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12411         file.
12412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12414         file.
12415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12417         file.
12418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12419         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12420         fmin/fmax sysdep routines.
12421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12422
12423 2012-03-14  David S. Miller  <davem@davemloft.net>
12424
12425         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12426         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12427         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12428         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12429         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12430         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12431         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12432         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12433         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12434         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12435         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12436         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12437         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12438         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12439         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12440         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12441         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12442         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12443         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12444         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12445         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12446         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12447         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12448         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12449         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12450         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12451         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12452         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12453         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12454         routines.
12455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12456         file.
12457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12459         file.
12460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12462         file.
12463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12465         file.
12466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12468         file.
12469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12471         file.
12472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12473         file.
12474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12475         file.
12476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12477         file.
12478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12479         New file.
12480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12481         file.
12482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12483         file.
12484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12486         file.
12487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12489         file.
12490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12492         file.
12493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12495         VIS3 routines.
12496
12497         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12498         New file.
12499
12500         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12501
12502         * sysdeps/sparc/configure.in: New file.
12503         * sysdeps/sparc/configure: Generate.
12504         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12505         * configure: Regenerate.
12506         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12507         * config.make.in (have-as-vis3): New.
12508         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12509         available use -Av9d instead of -Av9a.
12510         * sysdeps/sparc/sparc64/Makefile: Likewise.
12511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12513         New file.
12514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12515         file.
12516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12517         New file.
12518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12519         file.
12520         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12521         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12522         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12523         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12524         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12525
12526         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12527         fzeros/fnegs to load 0x80000000 into a float register instead of
12528         using the stack.
12529         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12530
12531 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12532
12533         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12534         bits/syscall.h.
12535         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12536         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12537         ($(inst_includedir)/bits/syscall.h): Remove rule.
12538         ($(objpfx)bits/syscall.d): Include instead of
12539         $(objpfx)syscall-list.d.
12540         (generated): Change syscall-list.h and syscall-list.d to
12541         bits/syscall.h and bits/syscall.d.
12542
12543 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12544
12545         [BZ #13846]
12546         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12547
12548 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12549
12550         [BZ #13841]
12551         * math/s_csqrt.c: Include <float.h>.
12552         (__csqrt): Scale large or subnormal inputs.
12553         * math/s_csqrtf.c: Likewise.
12554         * math/s_csqrtl.c: Likewise.
12555         * math/libm-test.inc (csqrt_test): Add more tests.
12556         * sysdeps/i386/fpu/libm-test-ulps: Update.
12557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12558
12559         [BZ #13840]
12560         * math/libm-test.inc (hypot_test): Add more tests.
12561
12562 2012-03-13  David S. Miller  <davem@davemloft.net>
12563
12564         [BZ #13840]
12565         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12566         double-precision for the calculation instead of scaling.
12567
12568 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12569
12570         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12571         manipulate bits before adding and subtracting TWO52[sx].
12572         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12573         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12574         Likewise.
12575         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12576
12577 2012-03-13  David S. Miller  <davem@davemloft.net>
12578
12579         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12580         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12581         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12582         rtld-global-offsets.h
12583         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12584
12585         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12586         large parameters.
12587
12588         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12589
12590         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12591         'err' in the ifdef scope in which it is actually used.
12592
12593         * nss/nss_db/db-init.c: Include string.h
12594
12595 2012-03-12  David S. Miller  <davem@davemloft.net>
12596
12597         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12598         masking out of the most significant byte of random value used.
12599         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12600         Fix coding style in previous change.
12601
12602         * sysdeps/unix/sysv/linux/kernel-features.h
12603         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12604         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12605         expression.
12606         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12607         later.
12608
12609 2012-03-11  David S. Miller  <davem@davemloft.net>
12610
12611         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12612         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12613         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12614         for 'resultvar' otherwise things get truncated on 64-bit.
12615
12616         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12617         Fix masking out of the most significant byte of random value used.
12618
12619         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12620
12621 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12622
12623         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12624
12625 2012-03-09  David S. Miller  <davem@davemloft.net>
12626
12627         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12628         variables with appropriate CPP guards.
12629         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12630         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12631         on resulting framesize and the management of the outregs buffer for pltexit.
12632         Preserve floating point return values across _dl_call_pltexit call.
12633         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12634         framesize and the management of the outregs buffer for pltexit.
12635         Preserve floating point return values across _dl_call_pltexit
12636         call.
12637         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12638         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12639         (print_exit): Fix format string for return register value.
12640
12641 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12642
12643         * sunrpc/Makefile (others): Add rpcgen.
12644         ($(objpfx)rpcgen): Remove special build rule and dependency on
12645         libc.
12646         * sunrpc/rpcgen.c: New file.
12647
12648 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12649
12650         [BZ #13673]
12651         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12652         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12653         * sysdeps/i386/crti.S: Likewise.
12654         * sysdeps/i386/crtn.S: Likewise.
12655         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12656         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12657         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12658         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12659         * sysdeps/sh/crti.S: Likewise.
12660         * sysdeps/sh/crtn.S: Likewise.
12661         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12662
12663         [BZ #13673]
12664         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12665         with URL.
12666         * locale/programs/locfile-kw.gperf: Likewise.
12667         * locale/programs/charmap-kw.h: Regenerated.
12668         * locale/programs/locfile-kw.h: Likewise.
12669
12670         [BZ #13673]
12671         * intl/plural.y: Replace FSF snail mail address with URL.
12672         * intl/plural.c: Regenerated.
12673
12674 2012-03-09  Richard Henderson  <rth@twiddle.net>
12675
12676         * include/math_private.h: Remove file.
12677         * math/math_private.h: Move file ...
12678         * sysdeps/generic/math_private.h: ... here.
12679
12680         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12681         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12682         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12683
12684         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12685         and <math_private.h>.
12686         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12687         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12688         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12689         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12690         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12691         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12692         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12693         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12694         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12695         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12696         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12697         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12698         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12699         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12700         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12701         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12702         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12703         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12704         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12705         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12706         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12707         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12708         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12709         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12710         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12711         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12712         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12713         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12714         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12715         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12716         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12717         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12718         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12719         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12720         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12721         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12722         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12723         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12724         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12725         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12726         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12727         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12728         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12729         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12730         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12731         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12732         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12733         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12734         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12735         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12736         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12737         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12738         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12739         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12740         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12741         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12742         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12743         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12744         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12745         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12746         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12747         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12748         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12749         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12750         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12751         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12752         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12753         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12754         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12755         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12756         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12757         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12758         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12759         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12760         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12761         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12762         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12763         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12764         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12765         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12766         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12767         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12768         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12769         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12770         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12771         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12772         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12773         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12774         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12775         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12776         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12777         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12778         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12779         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12780         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12781         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12782         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12783         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12784         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12785         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12786         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12787         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12788         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12789         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12790         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12791         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12792         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12793         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12794         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12795         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12796         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12797         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12798         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12799         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12800         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12801         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12802         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12803         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12804         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12805         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12806         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12807         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12808         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12809         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12810         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12811         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12812         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12813         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12814         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12815         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12816         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12817         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12818         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12819         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12820         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12821         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12822         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12823         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12824         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12825         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12826         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12827         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12828         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12829         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12830         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12831         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12832         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12833         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12834         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12835         * sysdeps/ieee754/k_standard.c: Likewise.
12836         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12837         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12838         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12839         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12840         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12841         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12842         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12843         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12844         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12845         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12846         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12847         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12848         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12849         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12850         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12851         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12852         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12853         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12854         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12855         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12856         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12857         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12858         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12859         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12860         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12861         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12862         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12863         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12864         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12865         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12866         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12867         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12868         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12869         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12870         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12871         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12872         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12873         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12874         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12875         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12876         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12877         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12878         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12879         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12880         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12881         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12882         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12883         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12884         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12885         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12886         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12887         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12888         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12889         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12890         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12891         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12892         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12893         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12894         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12895         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12896         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12897         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12898         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12899         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12900         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12901         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12902         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12903         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12904         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12905         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12906         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12907         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12908         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12909         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12910         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12911         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12912         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12913         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12914         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12915         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12916         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12917         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12918         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12919         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12920         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12921         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12922         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12923         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12924         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12925         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12926         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12927         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12928         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12929         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12930         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12931         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12932         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12933         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12934         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12935         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12936         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12937         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12938         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12939         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12940         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12941         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12942         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12943         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12944         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12945         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12946         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12947         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12948         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12949         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12950         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12951         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12952         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12953         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12954         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12955         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12956         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12957         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12958         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12959         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12960         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12961         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12962         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12963         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12964         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12965         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12966         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12967         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12968         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12969         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12970         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
12971         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
12972         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
12973         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12974         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12975         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
12976         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
12977         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12978         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
12979         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
12980         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
12981         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12982         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12983         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12984         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12985         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
12986         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12987         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12988         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
12989         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12990         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
12991         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
12992         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
12993         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12994         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
12995         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12996         * sysdeps/ieee754/s_lib_version.c: Likewise.
12997         * sysdeps/ieee754/s_matherr.c: Likewise.
12998         * sysdeps/ieee754/s_signgam.c: Likewise.
12999         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13000         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13001         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13002         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13003         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13004         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13005         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13006         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13007         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13008         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13009         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13010         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13011         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13012         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13013         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13014         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13015         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13016         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13017         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13018         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13019         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13020
13021 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13022
13023         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13024         * sunrpc/rpc_main.c: Likewise.
13025         * sunrpc/rpc_svcout.c: Likewise.
13026
13027 2012-03-09  David S. Miller  <davem@davemloft.net>
13028
13029         * include/math_private.h: New file.
13030
13031 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13032
13033         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13034         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13035         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13036         from <bits/socket_type.h>.
13037         (enum __socket_type): Don't define here.
13038         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13039         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13040         bits/socket_type.h.
13041
13042         [BZ #13566]
13043         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13044         checking __USE_GNU.
13045
13046         * Makerules ($(inst_includedir)/%.h): New rule.
13047         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13048         (install-others): Remove variable setting.
13049         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13050
13051 2012-03-08  Richard Henderson  <rth@twiddle.net>
13052
13053         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13054         from macro to inline function; merge with the
13055         !__LIBC_INTERNAL_MATH_INLINES version.
13056         (__ieee754_sqrtf): Likewise.
13057
13058         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13059         to inline function.
13060         (__rintf, __floor, __floorf): Likewise.
13061
13062         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13063         macro to inline function.
13064         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13065
13066         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13067         not <math/math_private.h>.
13068
13069 2012-03-08  David S. Miller  <davem@davemloft.net>
13070
13071         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13072         copyright year.
13073         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13074
13075 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13076
13077         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13078         normalization.
13079         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13080         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13081
13082 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13083
13084         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13085         be defined individually, they must be defined as a block.  Define
13086         S for printing a string instead of hidint the different by using a
13087         macro for adding the 'l'.
13088         * stdio-common/tst-fphex-wide.c: Adjust.
13089
13090 2012-03-07  Marek Polacek  <polacek@redhat.com>
13091
13092         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13093
13094 2012-03-08  Marek Polacek  <polacek@redhat.com>
13095
13096         [BZ #13806]
13097         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13098         * stdio-common/tst-fphex.c: Define a few macros to make the
13099         test reusable.  Use them.
13100         * stdio-common/tst-fphex-wide.c: New file.
13101
13102 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13103
13104         [BZ #6911]
13105         * manual/macros.texi (gnusystems): New macro.
13106         (nongnusystems): Likewise.
13107         (gnulinuxhurdsystems): Likewise.
13108         (gnuhurdsystems): Likewise..
13109         (gnulinuxsystems): Likewise.
13110         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13111         variants of the GNU system, not "GNU system".
13112         * manual/conf.texi: Likewise.
13113         * manual/errno.texi: Likewise.  Update example of errno macro
13114         expansion.
13115         * manual/filesys.texi: Likewise.
13116         (getumask): Document as specific to GNU/Hurd.
13117         * manual/install.texi: Likewise.  Reword some references to
13118         GNU/Linux.
13119         * manual/intro.texi: Likewise.
13120         * manual/io.texi: Likewise.
13121         (File Name Portability): Detail which constraints are inapplicable
13122         to all GNU systems and which are only inapplicable to GNU/Hurd.
13123         * manual/job.texi: Likewise.
13124         * manual/llio.texi: Likewise.
13125         (O_NOCTTY): Document as present on GNU/Linux.
13126         * manual/maint.texi: Likewise.
13127         * manual/memory.texi: Likewise.
13128         * manual/pattern.texi: Likewise.
13129         * manual/pipe.texi: Likewise.
13130         * manual/process.texi: Likewise.
13131         * manual/resource.texi: Likewise.
13132         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13133         child on GNU/Hurd.
13134         * manual/setjmp.texi: Likewise.
13135         * manual/signal.texi: Likewise.
13136         * manual/startup.texi: Likewise.
13137         * manual/stdio.texi: Likewise.
13138         * manual/terminal.texi: Likewise.
13139         (ONLCR): Document as POSIX.
13140         (OXTABS): Document availability on GNU/Linux as XTABS.
13141         (ONOEOT): Document availability separately from other bits.
13142         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13143         * manual/time.texi: Likewise.
13144         * manual/users.texi: Likewise.
13145         * INSTALL: Regenerated.
13146         * sysdeps/gnu/errlist.c: Regenerated.
13147
13148         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13149         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13150         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13151         puts.
13152         * configure: Regenerated.
13153
13154 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13155
13156         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13157         default includes instead of AC_HEADER_CHECK.
13158         * sysdeps/i386/configure: Regenerated.
13159
13160         [BZ #10716]
13161         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13162         * math/s_cacoshf.c (__cacoshf): Likewise.
13163         * math/s_cacoshl.c (__cacoshl): Likewise.
13164         * math/s_casinh.c (__casinh): Set signs of result from argument.
13165         * math/s_casinhf.c (__casinhf): Likewise.
13166         * math/s_casinhl.c (__casinhl): Likewise.
13167         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13168         (casinh_test): Add more tests.
13169         * sysdeps/i386/fpu/libm-test-ulps: Update.
13170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13171
13172 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13173
13174         * po/zh_TW.po: Update from translation team.
13175
13176         * login/Makefile (distribute): Remove variable.
13177         * catgets/Makefile: Likewise.
13178         * mach/Makefile: Likewise.
13179         * malloc/Makefile: Likewise.
13180         * misc/Makefile: Likewise.
13181         * iconv/Makefile: Likewise.
13182         * nscd/Makefile: Likewise.
13183         * hurd/Makefile: Likewise.
13184         * manual/Makefile: Likewise.
13185         * locale/Makefile: Likewise.
13186         * intl/Makefile: Likewise.
13187         * conform/Makefile: Likewise.
13188         * nss/Makefile: Likewise.
13189         * time/Makefile: Likewise.
13190         * soft-fp/Makefile: Likewise.
13191         * dirent/Makefile: Likewise.
13192         * gmon/Makefile: Likewise.
13193         * po/Makefile: Likewise.
13194         * rt/Makefile: Likewise.
13195         * socket/Makefile: Likewise.
13196         * math/Makefile: Likewise.
13197         * signal/Makefile: Likewise.
13198         * debug/Makefile: Likewise.
13199         * elf/Makefile: Likewise.
13200         * timezone/Makefile: Likewise.
13201         * stdlib/Makefile: Likewise.
13202         * iconvdata/Makefile: Likewise.
13203         * sunrpc/Makefile: Likewise.
13204         * io/Makefile: Likewise.
13205         * argp/Makefile: Likewise.
13206         * inet/Makefile: Likewise.
13207         * hesiod/Makefile: Likewise.
13208         * grp/Makefile: Likewise.
13209         * csu/Makefile: Likewise.
13210         * wctype/Makefile: Likewise.
13211         * crypt/Makefile: Likewise.
13212         * libio/Makefile: Likewise.
13213         * string/Makefile: Likewise.
13214         * nis/Makefile: Likewise.
13215         * resolv/Makefile: Likewise.
13216         * stdio-common/Makefile: Likewise.
13217         * wcsmbs/Makefile: Likewise.
13218         * dlfcn/Makefile: Likewise.
13219         * posix/Makefile: Likewise.
13220
13221         [BZ #6959]
13222         * timezone/Makefile: Don't install timezone files, just the programs
13223         and scripts.
13224
13225 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13226
13227         * nss/databases.def: Add missing gshadow entry.
13228
13229         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13230
13231 2012-03-06  Marek Polacek  <polacek@redhat.com>
13232
13233         [BZ #13726]
13234         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13235         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13236         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13237         * stdio-common/tst-long-dbl-fphex.c: New file.
13238
13239 2012-03-06  David S. Miller  <davem@davemloft.net>
13240
13241         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13242         (set_obp_int): New function.
13243         (get_obp_int): New function.
13244         (__get_clockfreq_via_dev_openprom): Likewise.
13245         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13246         Avoid unused variable warnings on 'val' and use builtin_expect.
13247         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13248         __builtin_expect.
13249         (INLINE_CLONE_SYSCALL): Likewise.
13250
13251 2012-03-05  David S. Miller  <davem@davemloft.net>
13252
13253         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13254
13255 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13256
13257         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13258
13259         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13260         only for |x| >= 40.
13261         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13262
13263 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13264
13265         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13266         Replace gettimeofday with __vdso_gettimeofday.
13267
13268         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13269         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13270         __vdso_clock_gettime and __vdso_getcpu.
13271
13272         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13273         time with __vdso_time.
13274
13275 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13276
13277         * manual/lang.texi (size_t): Note types to which size_t may be
13278         equivalent with the GNU C Library, but do not describe when
13279         differences between them are significant.
13280
13281 2012-03-05  Andreas Jaeger  <aj@suse.de>
13282
13283         * sysdeps/i386/fpu/libm-test-ulps: Update.
13284
13285 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13286
13287         [BZ #3976]
13288         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13289         (__ieee754_pow): Save and restore rounding mode and use
13290         round-to-nearest for main computations.
13291         * math/libm-test.inc (pow_test_tonearest): New function.
13292         (pow_test_towardzero): Likewise.
13293         (pow_test_downward): Likewise.
13294         (pow_test_upward): Likewise.
13295         (main): Call the new functions.
13296         * sysdeps/i386/fpu/libm-test-ulps: Update.
13297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13298
13299         [BZ #3976]
13300         * math/libm-test.inc (cosh_test_tonearest): New function.
13301         (cosh_test_towardzero): Likewise.
13302         (cosh_test_downward): Likewise.
13303         (cosh_test_upward): Likewise.
13304         (sinh_test_tonearest): Likewise.
13305         (sinh_test_towardzero): Likewise.
13306         (sinh_test_downward): Likewise.
13307         (sinh_test_upward): Likewise.
13308         (main): Call the new functions.
13309         * sysdeps/i386/fpu/libm-test-ulps: Update.
13310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13311
13312 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13313
13314         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13315         default stack guard is set in last bytes.
13316         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13317
13318 2012-03-05  Kees Cook  <keescook@chromium.org>
13319
13320         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13321
13322         [BZ #13656]
13323         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13324         possibly allocate from heap instead of stack.
13325         * stdio-common/bug-vfprintf-nargs.c: New file.
13326         * stdio-common/Makefile (tests): Add nargs overflow test.
13327
13328 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13329
13330         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13331
13332 2012-03-03  Marek Polacek  <polacek@redhat.com>
13333
13334         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13335         * math/math_private.h: Likewise.
13336         * stdlib/tst-strtod.c: Likewise.
13337         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13338         * sysdeps/x86_64/bits/atomic.h: Likewise.
13339
13340 2012-03-02  David S. Miller  <davem@davemloft.net>
13341
13342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13344         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13345         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13346         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13347         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13348         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13349         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13350
13351 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13352
13353         [BZ #13792]
13354         * manual/examples/README: New file, says the example source files
13355         can be used under GPL>=2.
13356         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13357         line containing just "*/".
13358         * manual/examples/add.c: Add copyright header (GPL>=2).
13359         * manual/examples/argp-ex1.c: Likewise.
13360         * manual/examples/argp-ex2.c: Likewise.
13361         * manual/examples/argp-ex3.c: Likewise.
13362         * manual/examples/argp-ex4.c: Likewise.
13363         * manual/examples/atexit.c: Likewise.
13364         * manual/examples/db.c: Likewise.
13365         * manual/examples/dir.c: Likewise.
13366         * manual/examples/dir2.c: Likewise.
13367         * manual/examples/execinfo.c: Likewise.
13368         * manual/examples/filecli.c: Likewise.
13369         * manual/examples/filesrv.c: Likewise.
13370         * manual/examples/fmtmsgexpl.c: Likewise.
13371         * manual/examples/genpass.c: Likewise.
13372         * manual/examples/inetcli.c: Likewise.
13373         * manual/examples/inetsrv.c: Likewise.
13374         * manual/examples/isockad.c: Likewise.
13375         * manual/examples/longopt.c: Likewise.
13376         * manual/examples/memopen.c: Likewise.
13377         * manual/examples/memstrm.c: Likewise.
13378         * manual/examples/mkfsock.c: Likewise.
13379         * manual/examples/mkisock.c: Likewise.
13380         * manual/examples/mygetpass.c: Likewise.
13381         * manual/examples/pipe.c: Likewise.
13382         * manual/examples/popen.c: Likewise.
13383         * manual/examples/rprintf.c: Likewise.
13384         * manual/examples/search.c: Likewise.
13385         * manual/examples/select.c: Likewise.
13386         * manual/examples/setjmp.c: Likewise.
13387         * manual/examples/sigh1.c: Likewise.
13388         * manual/examples/sigusr.c: Likewise.
13389         * manual/examples/stpcpy.c: Likewise.
13390         * manual/examples/strdupa.c: Likewise.
13391         * manual/examples/strftim.c: Likewise.
13392         * manual/examples/strncat.c: Likewise.
13393         * manual/examples/subopt.c: Likewise.
13394         * manual/examples/swapcontext.c: Likewise.
13395         * manual/examples/termios.c: Likewise.
13396         * manual/examples/testopt.c: Likewise.
13397         * manual/examples/testpass.c: Likewise.
13398         * manual/examples/timeval_subtract.c: Likewise.
13399
13400         [BZ #13792]
13401         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13402         function to ...
13403         * manual/timeval_subtract.c.texi: ... here, new file.
13404
13405 2012-03-02  David S. Miller  <davem@davemloft.net>
13406
13407         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13408
13409 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13410
13411         [BZ #3976]
13412         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13413         (__sin): Save and restore rounding mode and use round-to-nearest
13414         for all computations.
13415         (__cos): Save and restore rounding mode and use round-to-nearest
13416         for all computations.
13417         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13418         <fenv.h>.
13419         (tan): Save and restore rounding mode and use round-to-nearest for
13420         all computations.
13421         * math/libm-test.inc (cos_test_tonearest): New function.
13422         (cos_test_towardzero): Likewise.
13423         (cos_test_downward): Likewise.
13424         (cos_test_upward): Likewise.
13425         (sin_test_tonearest): Likewise.
13426         (sin_test_towardzero): Likewise.
13427         (sin_test_downward): Likewise.
13428         (sin_test_upward): Likewise.
13429         (tan_test_tonearest): Likewise.
13430         (tan_test_towardzero): Likewise.
13431         (tan_test_downward): Likewise.
13432         (tan_test_upward): Likewise.
13433         (main): Call the new functions.
13434         * sysdeps/i386/fpu/libm-test-ulps: Update.
13435         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13436
13437         [BZ #10135]
13438         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13439         small n, then large n, before computing and testing k+n.
13440         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13441         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13442         Likewise.
13443         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13444         Likewise.
13445         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13446         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13447         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13448         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13449         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13450         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13451         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13452         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13453         * math/libm-test.inc (scalbn_test): Add more tests.
13454         (scalbln_test): Likewise.
13455
13456         * manual/filesys.texi (mode_t): Describe constraints on size and
13457         signedness, not exact equivalence to a particular type.
13458         (ino_t): Likewise.
13459         (ino64_t): Likewise.
13460         (dev_t): Likewise.
13461         (nlink_t): Likewise.
13462         (blkcnt_t): Likewise.
13463         (blkcnt64_t): Likewise.
13464         * manual/llio.texi (off_t): Likewise.
13465
13466         [BZ #3976]
13467         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13468         (__ieee754_exp): Save and restore rounding mode and use
13469         round-to-nearest for all computations.
13470         * math/libm-test.inc (exp_test_tonearest): New function.
13471         (exp_test_towardzero): Likewise.
13472         (exp_test_downward): Likewise.
13473         (exp_test_upward): Likewise.
13474         (main): Call the new functions.
13475         * sysdeps/i386/fpu/libm-test-ulps: Update.
13476         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13477
13478 2012-03-01  Chris Demetriou  <cgd@google.com>
13479
13480         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13481         have predictable order.
13482
13483 2012-03-01  David S. Miller  <davem@davemloft.net>
13484
13485         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13486
13487         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13488         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13489         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13490         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13491
13492         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13493         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13494         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13495         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13496         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13497         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13498         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13499         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13500         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13501
13502         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13503
13504         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13505         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13506         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13507
13508         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13509         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13510         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13511         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13512         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13513         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13514         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13515         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13516         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13517         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13518         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13519         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13520         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13521         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13522         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13523         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13524         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13525         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13526         * sysdeps/sparc/elf/configure: Regenerated.
13527
13528 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13529
13530         * configure.in (AS, LD): Require binutils 2.20 or later.
13531         * configure: Regenerated.
13532         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13533         as required minimum version.
13534         * INSTALL: Regenerated.
13535
13536         [BZ #2541]
13537         [BZ #4108]
13538         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13539         before squaring exponent.
13540         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13541         bottom long double and 27 bits of top long double before squaring
13542         exponent.
13543         * math/libm-test.inc (erfc_test): Add more tests.
13544         * sysdeps/i386/fpu/libm-test-ulps: Update.
13545         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13546         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13547
13548 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13549
13550         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13551         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13552         containing bit-fields.
13553         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13554         * soft-fp/single.h (_FP_UNION_S): Likewise.
13555         * soft-fp/double.h (_FP_UNION_D): Likewise.
13556
13557 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13558
13559         [BZ #13786]
13560         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13561         not include ../strcmp.S.
13562         [USE_AS_STRNCASECMP_L]: Likewise.
13563         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13564         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13565         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13566         (__strncasecmp_l_ia32): Define as alias to
13567         __strncasecmp_l_nonascii.
13568
13569         [BZ #5794]
13570         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13571         * sysdeps/i386/fpu/libm-test-ulps: Update.
13572         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13573
13574         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13576
13577 2012-02-29  Jeff Law  <law@redhat.com>
13578
13579         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13580         out of bounds read.
13581
13582 2012-02-29  Marek Polacek  <polacek@redhat.com>
13583
13584         [BZ #13706]
13585         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13586         * elf/Makefile: Add rules to run tst-unused-dep.out.
13587
13588 2012-02-28  David S. Miller  <davem@davemloft.net>
13589
13590         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13591         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13592         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13593         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13594         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13595         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13596
13597 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13598
13599         * math/libm-test.inc (llround_test): Move one test from
13600         lround_test.  Use TEST_f_L in moved test.
13601         (lround_test): Move misplaced test to llround_test.  Add testcase
13602         from bug 2561.
13603
13604 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13605
13606         * sysdeps/x86_64/fpu/e_expf.S: New file.
13607         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13608
13609 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13610
13611         [BZ #13637]
13612         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13613         of remain_len that may cause incomplete multi-byte character and
13614         false match.
13615         * posix/bug-regex33.c: New file.
13616         * posix/Makefile (tests): Add bug-regex33.
13617
13618 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13619
13620         * manual/macros.texi: New file.
13621         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13622         * manual/libc.texinfo: Include macros.texi.
13623         * manual/creatute.texi: Likewise.
13624         * manual/install.texi: Likewise.
13625         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13626         @glibcadj{} in references to the GNU C Library.
13627         * manual/charset.texi: Likewise.
13628         * manual/conf.texi: Likewise.
13629         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13630         when not using those macros.
13631         * manual/creature.texi: Likewise.
13632         * manual/crypt.texi: Likewise.
13633         * manual/errno.texi: Likewise.
13634         * manual/filesys.texi: Likewise.
13635         * manual/header.texi: Likewise.
13636         * manual/install.texi: Likewise.
13637         * manual/intro.texi: Likewise.
13638         * manual/io.texi: Likewise.
13639         * manual/job.texi: Likewise.
13640         * manual/lang.texi: Likewise.
13641         * manual/libc.texiinfo: Likewise.
13642         * manual/llio.texi: Likewise.
13643         * manual/locale.texi: Likewise.
13644         * manual/maint.texi: Likewise.
13645         * manual/math.texi: Likewise.
13646         * manual/memory.texi: Likewise.
13647         * manual/message.texi: Likewise.
13648         * manual/nss.texi: Likewise.
13649         * manual/pattern.texi: Likewise.
13650         * manual/process.texi: Likewise.
13651         * manual/resource.texi: Likewise.
13652         * manual/search.texi: Likewise.
13653         * manual/setjmp.texi: Likewise.
13654         * manual/signal.texi: Likewise.
13655         * manual/socket.texi: Likewise.
13656         * manual/startup.texi: Likewise.
13657         * manual/stdio.texi: Likewise.
13658         * manual/string.texi: Likewise.
13659         * manual/sysinfo.texi: Likewise.
13660         * manual/syslog.texi: Likewise.
13661         * manual/terminal.texi: Likewise.
13662         * manual/time.texi: Likewise.
13663         * manual/users.texi: Likewise.
13664         * INSTALL: Regenerated.
13665         * NOTES: Regenerated.
13666         * sysdeps/gnu/errlist.c: Regenerated.
13667
13668 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13669
13670         * include/dirent.h: Include <dirstream.h> before
13671         <dirent/dirent.h>.
13672
13673 2012-02-28  David S. Miller  <davem@davemloft.net>
13674
13675         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13676         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13677         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13678         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13679
13680 2012-02-27  David S. Miller  <davem@davemloft.net>
13681
13682         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13683         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13684         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13685         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13686
13687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13688         frame pointer instead of stack pointer relative arg slot.
13689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13690         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13691         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13692
13693 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13694
13695         [BZ #3992]
13696         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13697
13698 2012-02-27  David S. Miller  <davem@davemloft.net>
13699
13700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13702         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13703         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13704         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13705         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13706         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13707         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13708
13709 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13710
13711         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13712         later.  Allow versions 5-9.
13713         * configure: Regenerated.
13714         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13715         required minimum version and 4.6 as recommended version.  Do not
13716         mention bugs in GCC 2.7 and 2.8.
13717         * INSTALL: Regenerated.
13718
13719 2012-02-27  David S. Miller  <davem@davemloft.net>
13720
13721         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13722         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13723         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13724         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13725         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13726         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13727         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13728         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13729
13730         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13731         manipulate bits before adding and subtracting TWO112[sx].
13732         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13733
13734 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13735
13736         [BZ #13775]
13737         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13738         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13739         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13740         being in POSIX, because they are in 1003.1-2008.
13741
13742         * rt/tst-aio.c: Include <fcntl.h>.
13743         * rt/tst-aio7.c: Likewise.
13744         * rt/tst-aio64.c: Likewise.
13745
13746         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13747
13748 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13749
13750         * manual/install.texi (--with-headers): Describe headers as
13751         interface headers, not private headers.
13752         (Specific advice for GNU/Linux systems): Describe use of headers
13753         from "make headers_install", not private headers from older
13754         kernels.
13755         * INSTALL: Regenerated.
13756         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13757         Change to 2.6.19.
13758         * sysdeps/unix/sysv/linux/configure: Regenerated.
13759
13760         * manual/llio.texi (fclean): Remove documentation.
13761
13762         * manual/Makefile (libc-texi-generated): New variable.  Include
13763         version.texi.
13764         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13765         $(libc-texi-generated), not duplicated list of files.
13766         (version.texi, stamp-version): New rules.
13767         (realclean): Remove $(libc-texi-generated), not individual files
13768         from that list.  Do not remove dir-add.texinfo.
13769         * manual/libc.texinfo: Comment out uses of edition numbers and
13770         references to printed manual.  Remove last-updated dates.
13771         (EDITION): Comment out.
13772         (ISBN): Likewise.
13773         (VERSION, UPDATED): Remove.
13774         (version.texi): Include.
13775
13776 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13777
13778         * sysdeps/posix/spawni.c: Include <signal.h>.
13779         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13780         * sysdeps/pthread/aio_fsync.c: Likewise.
13781
13782 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13783
13784         * conform/Makefile (tests): Run only when not cross-compiling and
13785         when fast-check is not defined.
13786
13787         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13788         * conform/data/limits.h-data: Fixes for POSIX2008.
13789         * conform/run-conformtest.sh: Run all tests.
13790         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13791         headers.
13792         * include/bits/dlfcn.h: Likewise.
13793         * include/langinfo.h: Likewise.
13794         * include/monetary.h: Likewise.
13795         * include/sys/poll.h: Likewise.
13796
13797         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13798         for __USE_GNU.
13799         * posix/spawn.h: Define __need_sigset_t.
13800         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13801         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13802         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13803         to get sigevent_t only.
13804         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13805         only for __USE_GNU.
13806         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13807         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13808         process_vm_writev only for __USE_GNU.
13809         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13810
13811         * conform/Makefile: For now ignore errors from run-conformtest.
13812         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13813         POSIX to avoid namespace pollution.  Don't prepend headers.
13814         * conform/data/aio.h-data: Fixes for POSIX testing.
13815         * conform/data/fcntl.h-data: Likewise.
13816         * conform/data/glob.h-data: Likewise.
13817         * conform/data/grp.h-data: Likewise.
13818         * conform/data/pthread.h-data: Likewise.
13819         * conform/data/pwd.h-data: Likewise.
13820         * conform/data/signal.h-data: Likewise.
13821         * conform/data/spawn.h-data: Likewise.
13822         * conform/data/stdio.h-data: Likewise.
13823         * conform/data/stdlib.h-data: Likewise.
13824         * conform/data/stropts.h-data: Likewise.
13825         * conform/data/sys/mman.h-data: Likewise.
13826         * conform/data/sys/stat.h-data: Likewise.
13827         * conform/data/sys/types.h-data: Likewise.
13828         * conform/data/sys/wait.h-data: Likewise.
13829         * conform/data/time.h-data: Likewise.
13830         * conform/data/unistd.h-data: Likewise.
13831         * conform/data/utime.h-data: Likewise.
13832
13833         * io/sys/stat.h: fchmod was always in POSIX.
13834         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13835         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13836         * rt/aio.h: Define __need_timespec before including <time.h>.
13837         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13838         struct.  Add forward declaration of pthread_attr_t and use it in
13839         sigevent.
13840         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13841         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13842         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13843         always remove CLK_TCK definition.
13844
13845 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13846
13847         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13848
13849 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13850
13851         * conform/run-conformtest.sh: New file.
13852         * conform/Makefile: Run run-conformtest for tests.
13853         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13854         support.
13855
13856         * conform/data/uchar.h-data: New file.
13857         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13858         * conform/data/arpa/inet.h-data: Likewise.
13859         * conform/data/assert.h-data: Likewise.
13860         * conform/data/complex.h-data: Likewise.
13861         * conform/data/cpio.h-data: Likewise.
13862         * conform/data/ctype.h-data: Likewise.
13863         * conform/data/dirent.h-data: Likewise.
13864         * conform/data/dlfcn.h-data: Likewise.
13865         * conform/data/errno.h-data: Likewise.
13866         * conform/data/fcntl.h-data: Likewise.
13867         * conform/data/float.h-data: Likewise.
13868         * conform/data/fmtmsg.h-data: Likewise.
13869         * conform/data/fnmatch.h-data: Likewise.
13870         * conform/data/ftw.h-data: Likewise.
13871         * conform/data/glob.h-data: Likewise.
13872         * conform/data/grp.h-data: Likewise.
13873         * conform/data/iconv.h-data: Likewise.
13874         * conform/data/inttypes.h-data: Likewise.
13875         * conform/data/langinfo.h-data: Likewise.
13876         * conform/data/libgen.h-data: Likewise.
13877         * conform/data/limits.h-data: Likewise.
13878         * conform/data/locale.h-data: Likewise.
13879         * conform/data/math.h-data: Likewise.
13880         * conform/data/monetary.h-data: Likewise.
13881         * conform/data/mqueue.h-data: Likewise.
13882         * conform/data/ndbm.h-data: Likewise.
13883         * conform/data/net/if.h-data: Likewise.
13884         * conform/data/netdb.h-data: Likewise.
13885         * conform/data/netinet/in.h-data: Likewise.
13886         * conform/data/nl_types.h-data: Likewise.
13887         * conform/data/poll.h-data: Likewise.
13888         * conform/data/pthread.h-data: Likewise.
13889         * conform/data/pwd.h-data: Likewise.
13890         * conform/data/regex.h-data: Likewise.
13891         * conform/data/sched.h-data: Likewise.
13892         * conform/data/search.h-data: Likewise.
13893         * conform/data/semaphore.h-data: Likewise.
13894         * conform/data/setjmp.h-data: Likewise.
13895         * conform/data/signal.h-data: Likewise.
13896         * conform/data/spawn.h-data: Likewise.
13897         * conform/data/stdarg.h-data: Likewise.
13898         * conform/data/stdio.h-data: Likewise.
13899         * conform/data/stdlib.h-data: Likewise.
13900         * conform/data/string.h-data: Likewise.
13901         * conform/data/strings.h-data: Likewise.
13902         * conform/data/stropts.h-data: Likewise.
13903         * conform/data/sys/ipc.h-data: Likewise.
13904         * conform/data/sys/mman.h-data: Likewise.
13905         * conform/data/sys/msg.h-data: Likewise.
13906         * conform/data/sys/resource.h-data: Likewise.
13907         * conform/data/sys/select.h-data: Likewise.
13908         * conform/data/sys/sem.h-data: Likewise.
13909         * conform/data/sys/shm.h-data: Likewise.
13910         * conform/data/sys/socket.h-data: Likewise.
13911         * conform/data/sys/stat.h-data: Likewise.
13912         * conform/data/sys/statvfs.h-data: Likewise.
13913         * conform/data/sys/time.h-data: Likewise.
13914         * conform/data/sys/timeb.h-data: Likewise.
13915         * conform/data/sys/times.h-data: Likewise.
13916         * conform/data/sys/types.h-data: Likewise.
13917         * conform/data/sys/uio.h-data: Likewise.
13918         * conform/data/sys/un.h-data: Likewise.
13919         * conform/data/sys/utsname.h-data: Likewise.
13920         * conform/data/sys/wait.h-data: Likewise.
13921         * conform/data/syslog.h-data: Likewise.
13922         * conform/data/tar.h-data: Likewise.
13923         * conform/data/termios.h-data: Likewise.
13924         * conform/data/utime.h-data: Likewise.
13925         * conform/data/utmpx.h-data: Likewise.
13926         * conform/data/varargs.h-data: Likewise.
13927         * conform/data/wchar.h-data: Likewise.
13928         * conform/data/wctype.h-data: Likewise.
13929         * conform/data/wordexp.h-data: Likewise.
13930
13931         * include/stropts.h: New file.
13932         * include/uchar.h: New file.
13933         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13934         * include/assert.h: Likewise.
13935         * include/ctype.h: Likewise.
13936         * include/dirent.h: Likewise.
13937         * include/dlfcn.h: Likewise.
13938         * include/fcntl.h: Likewise.
13939         * include/fnmatch.h: Likewise.
13940         * include/glob.h: Likewise.
13941         * include/grp.h: Likewise.
13942         * include/libio.h: Likewise.
13943         * include/locale.h: Likewise.
13944         * include/math.h: Likewise.
13945         * include/net/if.h: Likewise.
13946         * include/netdb.h: Likewise.
13947         * include/netinet/in.h: Likewise.
13948         * include/pthread.h: Likewise.
13949         * include/pwd.h: Likewise.
13950         * include/regex.h: Likewise.
13951         * include/sched.h: Likewise.
13952         * include/search.h: Likewise.
13953         * include/setjmp.h: Likewise.
13954         * include/signal.h: Likewise.
13955         * include/stdio.h: Likewise.
13956         * include/stdlib.h: Likewise.
13957         * include/string.h: Likewise.
13958         * include/sys/cdefs.h: Likewise.
13959         * include/sys/mman.h: Likewise.
13960         * include/sys/msg.h: Likewise.
13961         * include/sys/resource.h: Likewise.
13962         * include/sys/select.h: Likewise.
13963         * include/sys/socket.h: Likewise.
13964         * include/sys/stat.h: Likewise.
13965         * include/sys/statvfs.h: Likewise.
13966         * include/sys/time.h: Likewise.
13967         * include/sys/times.h: Likewise.
13968         * include/sys/uio.h: Likewise.
13969         * include/sys/utsname.h: Likewise.
13970         * include/sys/wait.h: Likewise.
13971         * include/termios.h: Likewise.
13972         * include/time.h: Likewise.
13973         * include/ulimit.h: Likewise.
13974         * include/unistd.h: Likewise.
13975         * include/utime.h: Likewise.
13976         * include/wchar.h: Likewise.
13977         * include/wctype.h: Likewise.
13978         * include/wordexp.h: Likewise.
13979
13980         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
13981
13982         * time/time.h: TIME_UTC must be a macro.
13983         Make timespec_get available for ISO C11 only as well.
13984
13985 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
13986
13987         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
13988         Reported by Peng Haitao <penght@cn.fujitsu.com>.
13989
13990 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13991
13992         * configure.in: Use -o not -a in test for unsupported multi-arch.
13993
13994 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13995
13996         * manual/texinfo.tex: Update to version 2012-01-19.16.
13997
13998 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
13999
14000         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14001
14002 2012-02-24  Roland McGrath  <roland@hack.frob.com>
14003
14004         [BZ #13738]
14005         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14006         * manual/fdl-1.3.texi: New file.
14007         * manual/fdl-1.1.texi: File removed.
14008
14009         [BZ #13738]
14010         * manual/libc.texinfo (FDL_VERSION): New @set.
14011         Use it for mention of FDL in cover text.
14012         (Documentation License): Use it in @include file name.
14013
14014 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14015             Roland McGrath  <roland@hack.frob.com>
14016
14017         [BZ #5461]
14018         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14019         not LONG_LONG_MAX and LONG_LONG_MIN.
14020         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14021         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14022         name.
14023         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14024
14025 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14026
14027         [BZ #2547]
14028         [BZ #11365]
14029         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14030         manipulate bits before adding and subtracting TWO23[sx].
14031         * math/libm-test.inc (nearbyint_test): Add more tests.
14032
14033 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14034
14035         [BZ #2548]
14036         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14037         bits before adding and subtracting TWO23[sx].
14038         * math/libm-test.inc (rint_test): Add more tests.
14039         (rint_test_tonearest): Likewise.
14040         (rint_test_towardzero): Likewise.
14041         (rint_test_downward): Likewise.
14042         (rint_test_upward: Likewise.
14043
14044 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14045
14046         [BZ #10110]
14047         * include/stdc-predef.h: New file.  Extracted from features.h.
14048         * include/features.h: Include stdc-predef.h.
14049         * Makefile (headers): Add stdc-predef.h.
14050         * CONFORMANCE (Compiler limitations): Update.
14051
14052 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14053
14054         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14055
14056 2012-02-21  David S. Miller  <davem@davemloft.net>
14057
14058         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14059         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14060
14061 2012-02-20  David S. Miller  <davem@davemloft.net>
14062
14063         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14064         using a normal save/restore sequence, rather than allocating a
14065         dummy stack frame just to store a frame pointer and restore.
14066         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14067
14068 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14069
14070         * manual/install.texi: Fix stray word in line-wrapped comment.
14071
14072 2012-02-20  David S. Miller  <davem@davemloft.net>
14073
14074         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14075         both binutils and gcc support GOTDATA.
14076
14077         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14078         "rd %pc" in the PIC register setup sequences.
14079
14080         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14081         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14082         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14083         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14084         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14085         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14086         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14087         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14088         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14089         (SYSCALL_ERROR_HANDLER): Likewise.
14090         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14091         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14092         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14093         (SYSCALL_ERROR_HANDLER): Likewise.
14094
14095         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14096         (HAVE_GCC_GOTDATA): New.
14097         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14098         relocation support in both binutils and gcc.
14099         * sysdeps/sparc/elf/configure: Regenerate.
14100
14101         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14102         * sysdeps/sparc/sparc32/elf/configure: Delete.
14103         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14104         * sysdeps/sparc/sparc64/elf/configure: Delete.
14105         * sysdeps/sparc/elf/configure.in: New file.
14106         * sysdeps/sparc/elf/configure: Generate.
14107
14108         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14109         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14110         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14111         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14112         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14113
14114 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14115
14116         * manual/install.texi: Do not mention specific glibc version
14117         numbers.
14118         * manual/libc.texinfo (VERSION, UPDATED): Update.
14119         (@copying): Use @copyright{} and range of years.
14120
14121 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14122
14123         [BZ #13695]
14124         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14125         [crti.S not in sysdirs] (generated): Do not append.
14126         [crti.S not in sysdirs] (omit-deps): Likewise.
14127         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14128         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14129         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14130         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14131         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14132         Likewise.
14133         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14134         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14135         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14136         * csu/defs.awk: Remove file.
14137         * sysdeps/generic/initfini.c: Likewise.
14138         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14139         variable.
14140         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14141         Likewise.
14142
14143 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14144
14145         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14146         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14147         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14148         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14149         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14150         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14151         <bits/epoll.h>.
14152         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14153         (__EPOLL_PACKED): Define to empty if not defined by
14154         <bits/epoll.h>.
14155         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14156         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14157         bits/epoll.h.
14158
14159 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14160
14161         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14162         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14163         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14164         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14165         <bits/timerfd.h>.
14166         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14167         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14168         bits/timerfd.h.
14169
14170 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14171
14172         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14173         in C locale.
14174         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14175         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14176         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14177         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14178
14179 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14180
14181         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14182         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14183
14184 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14185
14186         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14187         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14188         defined.
14189         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14190         Likewise.
14191         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14192         entry for 2.16.
14193
14194 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
14195
14196         * math/w_acos.c: Use non-signaling floating-point comparisons.
14197         * math/w_acosf.c: Likewise.
14198         * math/w_acosh.c: Likewise.
14199         * math/w_acoshf.c: Likewise.
14200         * math/w_acoshl.c: Likewise.
14201         * math/w_acosl.c: Likewise.
14202         * math/w_asin.c: Likewise.
14203         * math/w_asinf.c: Likewise.
14204         * math/w_asinl.c: Likewise.
14205         * math/w_atanh.c: Likewise.
14206         * math/w_atanhf.c: Likewise.
14207         * math/w_atanhl.c: Likewise.
14208         * math/w_exp2.c: Likewise.
14209         * math/w_exp2f.c: Likewise.
14210         * math/w_exp2l.c: Likewise.
14211         * math/w_j0.c: Likewise.
14212         * math/w_j0f.c: Likewise.
14213         * math/w_j0l.c: Likewise.
14214         * math/w_j1.c: Likewise.
14215         * math/w_j1f.c: Likewise.
14216         * math/w_j1l.c: Likewise.
14217         * math/w_jn.c: Likewise.
14218         * math/w_jnf.c: Likewise.
14219         * math/w_log.c: Likewise.
14220         * math/w_log10.c: Likewise.
14221         * math/w_log10f.c: Likewise.
14222         * math/w_log10l.c: Likewise.
14223         * math/w_log2.c: Likewise.
14224         * math/w_log2f.c: Likewise.
14225         * math/w_log2l.c: Likewise.
14226         * math/w_logf.c: Likewise.
14227         * math/w_logl.c: Likewise.
14228         * math/w_sqrt.c: Likewise.
14229         * math/w_sqrtf.c: Likewise.
14230         * math/w_sqrtl.c: Likewise.
14231         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14232         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14233         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14234         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14235         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14236
14237 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14238
14239         [BZ #9739]
14240         * manual/string.texi (strnlen): Use correct parameter name in
14241         equivalent expression.
14242
14243 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14244
14245         [BZ #11174]
14246         * manual/users.texi (seteuid): Consistently use neweuid for
14247         argument name.
14248
14249 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14250
14251         [BZ #13704]
14252         * manual/nss.texi (Services in the NSS configuration): Correct
14253         list of services in example configuration file.
14254
14255 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14256
14257         [BZ #11322]
14258         * manual/arith.texi: Remove statements about negative zero
14259         behaving identically to zero.
14260
14261 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14262
14263         [BZ #5993]
14264         * manual/install.texi: Do not document upgrading from libc5.
14265
14266 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14267
14268         [BZ #4596]
14269         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14270
14271 2012-02-18  David S. Miller  <davem@davemloft.net>
14272
14273         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14274         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14275         %o7 across the call.
14276         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14277         instead.
14278         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14279         SETUP_PIC_REG_LEAF.
14280         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14281         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14282         * sysdeps/sparc/crtn.S: Likewise.
14283
14284 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14285
14286         * aout/Makefile: Remove.
14287
14288 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14289
14290         [BZ #13058]
14291         * manual/examples/argp-ex1.c (main): Format definition in GNU
14292         style.
14293         * manual/examples/argp-ex2.c (main): Likewise.
14294         * manual/examples/argp-ex3.c (main): Likewise.
14295         * manual/examples/argp-ex4.c (main): Likewise.
14296         * manual/examples/longopt.c (main): Use new-style prototype
14297         definition.
14298         * manual/examples/strncat.c (main): Specify return type and use
14299         (void) for arguments.
14300         * manual/examples/subopt.c (main): Use char **argv argument.
14301
14302 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14303
14304         [BZ #5077]
14305         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14306         rounding modes.
14307
14308 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14309
14310         [BZ #6907]
14311         * manual/string.texi (strchr): Change when strchrnul is
14312         recommended.
14313
14314 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14315
14316         [BZ #174]
14317         * manual/locale.texi (setlocale): Document LOCPATH.
14318
14319 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14320
14321         [BZ #10210]
14322         * manual/process.texi (execle): Move @dots{} before last argument.
14323
14324 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14325
14326         [BZ #12047]
14327         * manual/charset.texi (Generic Charset Conversion): Fix typo
14328         (LC_TYPE -> LC_CTYPE).
14329
14330 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14331
14332         [BZ #5805]
14333         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14334         (scalbnf): Likewise.
14335         (scalbnl): Likewise.
14336         (scalbln): Likewise.
14337         (scalblnf): Likewise.
14338         (scalblnl): Likewise.
14339         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14340         (vwarnx): Likewise.
14341         (verr): Likewise.
14342         (verrx): Likewise.
14343         * manual/filesys.texi (telldir): Use braces around return type.
14344         * manual/llio.texi (mmap): Add space after comma.
14345         (mmap64): Likewise.
14346         * manual/math.texi (jn): Use @var{} on parameter names.
14347         (jnf): Likewise.
14348         (jnl): Likewise.
14349         (yn): Likewise.
14350         (ynf): Likewise.
14351         (ynl): Likewise.
14352         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14353         line.
14354         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14355         "...".
14356         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14357         (sched_get_priority_max): Likewise.
14358         * manual/signal.texi (sigvec): Add space after comma.
14359         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14360         names.
14361         (if_indextoname): Likewise.
14362         (if_freenameindex): Likewise.
14363         (sendto): Use ',' instead of '.' in prototype.
14364         * manual/startup.texi (syscall): Use @dots{} instead of literal
14365         "...".
14366         * manual/stdio.texi (__fpending): Separate initial words of
14367         paragraph from @deftypefun line.
14368         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14369         "...".
14370         (vsyslog): Use @var{} on parameter names.
14371         * manual/terminal.texi (stty): Use @var{} on parameter names.
14372         * manual/users.texi (getutmp): Use @var{} on parameter names.
14373         (getutmpx): Likewise.
14374
14375 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14376
14377         [BZ #6884]
14378         * manual/stdio.texi (fopen): Fix typos in description of
14379         ",ccs=STRING".
14380
14381 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14382
14383         [BZ #4026]
14384         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14385         get clock_id definition.
14386
14387 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14388
14389         [BZ #4822]
14390         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14391         (madvise): Cast every argument to void on its own.
14392
14393 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14394
14395         [BZ #9902]
14396         * manual/startup.texi (Exit Status): Fix typo.
14397
14398 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14399
14400         [BZ #10140]
14401         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14402         * manual/examples/argp-ex2.c: Likewise.
14403         * manual/examples/argp-ex3.c: Likewise.
14404
14405 2012-02-16  Richard Henderson  <rth@redhat.com>
14406
14407         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14408         * sysdeps/s390/s390-32/initfini.c: Remove.
14409         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14410         * sysdeps/s390/s390-64/initfini.c: Remove.
14411
14412 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14413
14414         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14415         compiler output for sysdeps/generic/initfini.c.
14416         * sysdeps/sh/elf/initfini.c: Remove file.
14417
14418 2012-02-16  David S. Miller  <davem@davemloft.net>
14419
14420         [BZ #11494]
14421         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14422
14423         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14424         * sysdeps/sparc/crti.S: New file.
14425         * sysdeps/sparc/crtn.S: New file.
14426         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14427         * sysdeps/sparc/sparc64/Makefile: Likewise.
14428
14429 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14430
14431         [BZ #3335]
14432         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14433
14434 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14435
14436         [BZ #4822]
14437         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14438
14439         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14440         (write, read, close): Likewise.
14441         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14442
14443 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14444
14445         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14446         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14447         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14448         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14449         <bits/signalfd.h>.
14450         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14451         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14452         bits/signalfd.h.
14453
14454 2012-02-14  Marek Polacek  <polacek@redhat.com>
14455
14456         * sysdeps/x86_64/crti.S: New file.
14457         * sysdeps/x86_64/crtn.S: New file.
14458         * sysdeps/x86_64/elf/initfini.c: Remove file.
14459
14460 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14461
14462         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14463         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14464         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14465         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14466         <bits/inotify.h>.
14467         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14468         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14469         bits/inotify.h.
14470
14471 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14472
14473         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14474         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14475         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14476         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14477         <bits/eventfd.h>.
14478         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14479         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14480         bits/eventfd.h.
14481
14482 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14483
14484         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14485         __feraiseexcept instead of feraiseexcept.
14486
14487         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14488         nanosleep invocations.
14489         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14490         strings, and add error checking for a nanosleep invocations.
14491
14492 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14493
14494         Replace FSF snail mail address with URLs, as per GNU coding standards.
14495         Most of the snail mail addresses were wrong anyway, and omitting
14496         them makes the source code easier to maintain.  Almost all of the
14497         changes are to license notices and to locale LC_IDENTIFICATION
14498         addresses, except for this one:
14499         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14500         not its snail mail address.
14501
14502 2012-02-09  Richard Henderson  <rth@twiddle.net>
14503
14504         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14505         of kernel-features.h.
14506
14507         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14508
14509 2012-02-08  Marek Polacek  <polacek@redhat.com>
14510
14511         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14512         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14513         * sysdeps/gnu/_G_config.h: Likewise.
14514         * sysdeps/generic/_G_config.h: Likewise.
14515
14516 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14517
14518         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14519         tests.
14520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14521
14522         * sysdeps/powerpc/powerpc32/crti.S: New file.
14523         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14524         * sysdeps/powerpc/powerpc64/crti.S: New file.
14525         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14526
14527         * Makeconfig (have-initfini): Don't set.
14528         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14529         * configure.in (nopic_initfini): Don't substitute.
14530         * config.h.in (HAVE_INITFINI): Don't #undef.
14531         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14532         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14533
14534 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14535
14536         Support crti.S and crtn.S provided directly by architectures.
14537         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14538         [crti.S in sysdirs] (omit-deps): Likewise.
14539         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14540         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14541         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14542         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14543         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14544         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14545         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14546         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14547         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14548         compiler output for sysdeps/generic/initfini.c.
14549         * sysdeps/i386/elf/Makefile: Remove file.
14550         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14551
14552 2012-02-07  Marek Polacek  <polacek@redhat.com>
14553
14554         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14555         * sysdeps/gnu/_G_config.h: Likewise.
14556         * sysdeps/mach/hurd/_G_config.h: Likewise.
14557
14558 2012-02-07  Marek Polacek  <polacek@redhat.com>
14559
14560         * math/Makefile (tests): Add tst-CMPLX2.
14561         * math/tst-CMPLX2.c: New file.
14562
14563 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14564
14565         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14566
14567         * math/libm-test.inc (jn_test): Add missing L suffix.
14568
14569 2012-02-06  Marek Polacek  <polacek@redhat.com>
14570
14571         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14572         * sysdeps/i386/fpu/e_powf.S: Likewise.
14573         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14574         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14575         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14576         * sysdeps/i386/fpu/e_pow.S: Likewise.
14577         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14578         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14579         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14580         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14581         * sysdeps/i386/fpu/e_log2.S: Likewise.
14582         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14583         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14584         * sysdeps/i386/fpu/e_powl.S: Likewise.
14585         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14586         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14587         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14588         * sysdeps/i386/fpu/e_logl.S: Likewise.
14589         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14590         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14591         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14592         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14593         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14594         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14595         * sysdeps/i386/fpu/e_log.S: Likewise.
14596         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14597         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14598         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14599         * sysdeps/i386/fpu/e_logf.S: Likewise.
14600         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14601         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14602         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14603         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14604         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14605         * sysdeps/i386/fpu/e_log10.S: Likewise.
14606         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14607         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14608         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14609         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14610         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14611         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14612         * sysdeps/i386/asm-syntax.h: Likewise.
14613         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14614         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14615         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14616         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14617         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14618         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14619         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14620         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14621         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14622         * sysdeps/powerpc/sysdep.h: Likewise.
14623         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14624         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14625
14626 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14627
14628         [BZ #411]
14629         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14630
14631 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14632
14633         * sysdeps/i386/sysdep.h: Include <features.h>.
14634         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14635         version.
14636
14637 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14638
14639         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14640         Define.
14641         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14642         LOAD_PIC_REG_STR.
14643
14644 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14645
14646         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14647         (SETUP_PIC_REG): Use GET_PC_THUNK.
14648         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14649         macro.
14650
14651 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14652
14653         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14654         for non-PIC compilation.
14655         (SETUP_PIC_REG): Add .p2align directive.
14656         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14657         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14658         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14659         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14660         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14661         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14662         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14663         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14664         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14665         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14666         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14667         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14668         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14669         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14670         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14671         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14672         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14673         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14674         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14675         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14676         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14677         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14678         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14679         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14680         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14681         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14682         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14683         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14684         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14685         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14686         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14687         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14688         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14689         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14690         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14691         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14692         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14693         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14694         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14695         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14696         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14697
14698 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14699
14700         * math/tst-CMPLX.c: Include <stdio.h>.
14701
14702 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14703
14704         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14705         float.
14706         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14707         * sysdeps/sparc/bits/mathdef.h: Likewise.
14708
14709 2012-01-31  Marek Polacek  <polacek@redhat.com>
14710
14711         * libio/libio.h: Don't define _PARAMS.
14712         * locale/programs/config.h: Don't define PARAMS.
14713         * stdlib/strtol_l.c: Likewise.
14714         (__strtol_l): Remove PARAMS from the prototype.
14715
14716 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14717
14718         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14719         names.  Just use the correct names.  Remove unnecessary wrapper
14720         functions.
14721         * malloc/arena.c: Likewise.
14722         * malloc/hooks.c: Likewise.
14723
14724         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14725         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14726         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14727
14728 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14729
14730         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14731         into tail calls.
14732         (update_get_addr): New function.
14733         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14734         GET_ADDR_MODULE parameter.
14735
14736 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14737
14738         * crypt/cert.c: Remove __STDC__ conditionals.
14739         * crypt/crypt-entry.c: Likewise.
14740         * crypt/crypt_util.c: Likewise.
14741         * libio/filedoalloc.c: Likewise.
14742         * libio/fileops.c: Likewise.
14743         * libio/genops.c: Likewise.
14744         * libio/iofclose.c: Likewise.
14745         * libio/iofdopen.c: Likewise.
14746         * libio/iofopen.c: Likewise.
14747         * libio/iofopen64.c: Likewise.
14748         * libio/iogetdelim.c: Likewise.
14749         * libio/iopopen.c: Likewise.
14750         * libio/obprintf.c: Likewise.
14751         * libio/oldfileops.c: Likewise.
14752         * libio/oldiofclose.c: Likewise.
14753         * libio/oldiofdopen.c: Likewise.
14754         * libio/oldiofopen.c: Likewise.
14755         * libio/oldiopopen.c: Likewise.
14756         * libio/wfiledoalloc.c: Likewise.
14757         * libio/wgenops.c: Likewise.
14758         * locale/programs/xmalloc.c: Likewise.
14759         * misc/syslog.c: Likewise.
14760         * stdio-common/xbug.c: Likewise.
14761         * string/memchr.c: Likewise.
14762         * string/memcmp.c: Likewise.
14763         * string/memrchr.c: Likewise.
14764         * string/rawmemchr.c: Likewise.
14765         * sysdeps/posix/getcwd.c: Likewise.
14766         * time/strftime_l.c: Likewise.
14767
14768 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14769
14770         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14771         * config.make.in (config-cflags-sse2avx): Define.
14772         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14773         Fix typo.
14774
14775 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14776
14777         * scripts/config.guess: Update from upstream config git repository.
14778         * scripts/config.sub: Likewise.
14779
14780 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14781
14782         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14783         (EM_NUM): Update.
14784         (R_TILEPRO_*, R_TILEGX_*): New macros.
14785
14786         * scripts/firstversions.awk: Fix bug in version range handling.
14787
14788         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14789
14790         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14791
14792         * include/sys/epoll.h: New file.
14793         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14794         libc_hidden_def.
14795
14796 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14797
14798         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14799         Avoid unnecessary __WORDSIZE == 64 test.
14800         (fmaxf): Use VEX format if possible.
14801         (fmax): Likewise.
14802         (fminf): Likewise.
14803         (fmin): Likewise.
14804
14805         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14806         * math/math_private.h: Remove libc_fegetround* and
14807         libc_fesetround*.
14808         * sysdeps/i386/configure.in: Check for -msse2avx.
14809         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14810         also if SSE2AVX is defined.
14811         Remove libc_fegetround* and libc_fesetround*.
14812         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14813         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14814         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14815         of HAS_YMM_USABLE.
14816         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14817         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14818         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14819         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14820         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14821
14822         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14823
14824 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14825
14826         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14827         size is not set.
14828         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14829
14830 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14831
14832         [BZ #13618]
14833         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14834         relocation.
14835         * Makeconfig (libm): Define.
14836         * elf/Makefile: Add rules to build and run tst-relsort1.
14837         * elf/tst-relsort1.c: New file.
14838         * elf/tst-relsort1mod1.c: New file.
14839         * elf/tst-relsort1mod2.c: New file.
14840
14841 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14842
14843         * math/s_ldexp.c: Remove __STDC__ conditionals.
14844         * math/s_ldexpf.c: Likewise.
14845         * math/s_ldexpl.c: Likewise.
14846         * math/s_nextafter.c: Likewise.
14847         * math/s_nexttowardf.c: Likewise.
14848         * math/s_significand.c: Likewise.
14849         * math/s_significandf.c: Likewise.
14850         * math/s_significandl.c: Likewise.
14851         * math/w_jnl.c: Likewise.
14852         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14853         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14854         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14855         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14856         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14857         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14858         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14859         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14860         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14861         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14862         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14863         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14864         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14865         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14866         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14867         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14868         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14869         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14870         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14871         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14872         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14873         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14874         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14875         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14876         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14877         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14878         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14879         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14880         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14881         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14882         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14883         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14884         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14885         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14886         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14887         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14888         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14889         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14890         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14891         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14892         * sysdeps/ieee754/k_standard.c: Likewise.
14893         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14894         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14895         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14896         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14897         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14898         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14899         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14900         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14901         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14902         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14903         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14904         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14905         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14906         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14907         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14908         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14909         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14910         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14911         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14912         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14913         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14914         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14915         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14916         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14917         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14918         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14919         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14920         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14921         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14922         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14923         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14924         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14925         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14926         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14927         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14928         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14929         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14930         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14931         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14932         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14933         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14934         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14935         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14936         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14937         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14938         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14939         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14940         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14941         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14942         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14943         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14944         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14945         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14946         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14947         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14948         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14949         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14950         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14951         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14952         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14953         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14954         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14955         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14956         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14957         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14958         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14959         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14960         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14961         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14962         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14963         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14964         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14965         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14966         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14967         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14968         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14969         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
14970         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14971         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
14972         * sysdeps/ieee754/s_matherr.c: Likewise.
14973         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
14974         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
14975         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
14976         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
14977
14978 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14979
14980         * crypt/md5.h: Remove __STDC__ conditionals.
14981         * libio/libioP.h: Likewise.
14982         * locale/programs/config.h: Likewise.
14983         * sysdeps/generic/sysdep.h: Likewise.
14984         * sysdeps/i386/asm-syntax.h: Likewise.
14985         * sysdeps/s390/asm-syntax.h: Likewise.
14986         * sysdeps/unix/sysdep.h: Likewise.
14987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
14988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
14989
14990 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
14991
14992         * libio/libio.h: Remove __STDC__ conditionals.
14993         * malloc/obstack.h: Likewise.
14994         * math/complex.h: Likewise.
14995         * math/math.h: Likewise.
14996         * sysdeps/generic/_G_config.h: Likewise.
14997         * sysdeps/gnu/_G_config.h: Likewise.
14998         * sysdeps/mach/hurd/_G_config.h: Likewise.
14999         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15000         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15001         * sysdeps/sparc/bits/mathdef.h: Likewise.
15002
15003 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
15004
15005         [BZ #13583]
15006         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15007         Clean up HAS_* macros.
15008         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15009         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15010         possible.
15011         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15012         HAS_AVX.
15013         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15014         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15015         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15016         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15017         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15018
15019 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15020
15021         * elf/tst-unique3.cc (gets): Remove declaration.
15022         * elf/tst-unique3lib.cc (gets): Likewise.
15023         * elf/tst-unique3lib2.cc (gets): Likewise.
15024         * elf/tst-unique4.cc (gets): Likewise.
15025
15026 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15027
15028         * include/stdio.h: Add C++ protection.  Add gets declarations and
15029         definitions.
15030         * debug/tst-chk1.c: Don't declare gets here.
15031         * stdio-common/tst-gets.c: Likewise.
15032
15033 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15034
15035         * posix/glob: Remove directory.
15036
15037 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15038
15039         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15040
15041 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15042
15043         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15044         of the non-standard EPFNOSUPPORT.
15045
15046 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15047
15048         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15049         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15050         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15051
15052 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15053
15054         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15055
15056 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15057
15058         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15059         transient errors.
15060         * nscd/grpcache.c (cache_addgr): Likewise.
15061         * nscd/hstcache.c (cache_addhst): Likewise.
15062         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15063         * nscd/pwdcache.c (cache_addpw): Likewise.
15064         * nscd/servicescache.c (cache_addserv): Likewise.
15065
15066 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15067
15068         * malloc/malloc.c: Various cleanups.
15069         * malloc/hooks.c: Likewise.
15070
15071         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15072         * stdlib/bug-fmtmsg1.c: New file.
15073
15074         * stdlib/fmtmsg.c (init): Add missing unlock.
15075         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15076
15077 2012-01-12  Marek Polacek  <polacek@redhat.com>
15078
15079         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15080         and _GNU_SOURCE.
15081
15082 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15083
15084         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15085         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15086         macro to ensure uniqueness of label name.
15087         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15088         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15089
15090 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15091
15092         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15093
15094         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15095         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15096         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15097         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15098
15099 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15100
15101         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15102
15103         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15104         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15105         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15106
15107         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15108
15109         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15110         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15111         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15112         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15113
15114         * math/bits/math-finite.h: Add ldexp support.
15115
15116 2012-01-10  Marek Polacek  <polacek@redhat.com>
15117
15118         * locale/programs/localedef.h (show_archive_content): Add noreturn
15119         attribute.
15120
15121 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15122
15123         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15124
15125 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15126
15127         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15128
15129         * io/Makefile (headers): Add bits/poll2.h.
15130
15131 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15132
15133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15134         typo #include statement.
15135
15136 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15137
15138         * include/sys/cdefs.h: Define __attribute_alloc_size.
15139         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15140         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15141         * elf/pldd.c: Likewise.
15142         * iconv/iconv_charmap.c: Likewise.
15143         * iconv/iconvconfig.c: Likewise.
15144         * iconv/strtab.c: Likewise.
15145         * locale/programs/locale.c: Likewise.
15146         * locale/programs/localedef.h: Likewise.
15147         * locale/programs/simple-hash.c: Likewise.
15148         * nscd/nscd.h: Likewise.
15149         * nss/makedb.c: Likewise.
15150         * sysdeps/generic/ldconfig.h: Likewise.
15151         * locale/programs/localedef.c: Remove xmalloc prototype.
15152         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15153
15154 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15155
15156         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15157         appropriate.
15158
15159 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15160
15161         * math/Makefile (tests): Add tst-CMPLX.
15162         * math/tst-CMPLX.c: New file.
15163
15164         * math/complex.h (CMPLXL): Fix typo.
15165
15166         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15167         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15168         GLIBC_2.16.
15169         * debug/tst-chk1.c: Add poll and ppoll tests.
15170         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15171         * include/sys/poll.h: Add hidden proto for ppoll.
15172         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15173         * sysdeps/mach/hurd/ppoll.c: Likewise.
15174         * io/ppoll.c: Likewise.
15175         * debug/poll_chk.c: New file.
15176         * debug/ppoll_chk.c: New file.
15177         * include/bits/poll2.h: New file.
15178         * io/bits/poll2.h: New file.
15179
15180         [BZ #1350]
15181         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15182
15183         * configure.in: static is always set to yes.  Remove.
15184         * config.make.in: Don't set build-static.
15185         * Makeconfig: Remove use of build-static.
15186         * dlfcn/Makefile: Likewise.
15187         * elf/Makefile: Likewise.
15188         * math/Makefile: Likewise.
15189         * misc/Makefile: Likewise.
15190         * nptl/Makefile: Likewise.
15191         * sysdeps/mach/hurd/Makefile: Likewise.
15192
15193         * configure.in: PWD_P is not used anymore.
15194         * config.make.in: Remove PWD_P entry.
15195
15196         * configure.in: Remove last remnants of RANLIB.
15197         No need to check for signed size_t anymore.
15198         Don't set libc_commonpagesize and libc_relro_required here for Alpha
15199         and IA-64.
15200         Remove __builtin_expect test because we require at least gcc 3.4.
15201         * aclocal.m4: Likewise.
15202
15203         * wcsmbs/mbrtoc16.c: Implement using towc function.
15204         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15205         * wcsmbs/wcsmbsload.c: Likewise.
15206         * iconv/gconv_simple.c: Likewise.
15207         * iconv/gconv_int.h: Likewise.
15208         * iconv/gconv_builtin.h: Likewise.
15209         * iconv/iconv_prog.c: Remove CHAR16 handling.
15210
15211         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15212
15213         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15214
15215         * configure.in: Remove --with-elf and --enable-bounded options.
15216         Dont set base_machine for ia64.  More non-ELF conditions removed.
15217         Remove testing and setting of leading underscore information.
15218         * config.make.in (build-bounded): Set to no.
15219         * config.h.in: Remove NO_UNDERSCORES entry.
15220         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15221         them.
15222         * csu/start.c: Remove !NO_UNDERSCORE code.
15223         * locale/localeinfo.h: Likewise.
15224         * sysdeps/generic/machine-gmon.h: Likewise.
15225         * sysdeps/generic/sysdep.h: Likewise.
15226         * sysdeps/i386/sysdep.h: Likewise.
15227         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15228         * sysdeps/mach/sysdep.h: Likewise.
15229         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15230         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15231         * sysdeps/sh/sysdep.h: Likewise.
15232         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15233         * sysdeps/unix/i386/sysdep.S: Likewise.
15234         * sysdeps/unix/sparc/start.c: Likewise.
15235         * sysdeps/unix/sparc/sysdep.S: Likewise.
15236         * sysdeps/unix/sparc/sysdep.h: Likewise.
15237         * sysdeps/unix/start.c: Likewise.
15238         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15239         * sysdeps/x86_64/sysdep.h: Likewise.
15240
15241 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15242
15243         [BZ #13553]
15244         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15245         for non-gcc.
15246         * argp/argp-fmtstream.h: Use const instead __const.
15247         * argp/argp.h: Likewise.
15248         * assert/assert.h: Likewise.
15249         * bits/fenv.h: Likewise.
15250         * bits/sched.h: Likewise.
15251         * bits/sigset.h: Likewise.
15252         * bits/sigthread.h: Likewise.
15253         * catgets/nl_types.h: Likewise.
15254         * conform/data/pthread.h-data: Likewise.
15255         * crypt/crypt-private.h: Likewise.
15256         * crypt/crypt.h: Likewise.
15257         * crypt/crypt_util.c: Likewise.
15258         * ctype/ctype.h: Likewise.
15259         * debug/execinfo.h: Likewise.
15260         * debug/mbsnrtowcs_chk.c: Likewise.
15261         * debug/mbsrtowcs_chk.c: Likewise.
15262         * debug/wcsnrtombs_chk.c: Likewise.
15263         * debug/wcsrtombs_chk.c: Likewise.
15264         * debug/wcstombs_chk.c: Likewise.
15265         * dirent/dirent.h: Likewise.
15266         * dlfcn/dlfcn.h: Likewise.
15267         * elf/neededtest4.c: Likewise.
15268         * grp/grp.h: Likewise.
15269         * gshadow/gshadow.h: Likewise.
15270         * iconv/gconv.h: Likewise.
15271         * iconv/gconv_int.h: Likewise.
15272         * iconv/gconv_simple.c: Likewise.
15273         * iconv/iconv.h: Likewise.
15274         * iconv/loop.c: Likewise.
15275         * iconv/skeleton.c: Likewise.
15276         * include/aio.h: Likewise.
15277         * include/aliases.h: Likewise.
15278         * include/argz.h: Likewise.
15279         * include/arpa/inet.h: Likewise.
15280         * include/assert.h: Likewise.
15281         * include/dirent.h: Likewise.
15282         * include/dlfcn.h: Likewise.
15283         * include/execinfo.h: Likewise.
15284         * include/fcntl.h: Likewise.
15285         * include/fenv.h: Likewise.
15286         * include/glob.h: Likewise.
15287         * include/grp.h: Likewise.
15288         * include/libintl.h: Likewise.
15289         * include/mntent.h: Likewise.
15290         * include/netdb.h: Likewise.
15291         * include/pwd.h: Likewise.
15292         * include/rpc/netdb.h: Likewise.
15293         * include/sched.h: Likewise.
15294         * include/search.h: Likewise.
15295         * include/shadow.h: Likewise.
15296         * include/signal.h: Likewise.
15297         * include/stdio.h: Likewise.
15298         * include/stdlib.h: Likewise.
15299         * include/string.h: Likewise.
15300         * include/sys/socket.h: Likewise.
15301         * include/sys/stat.h: Likewise.
15302         * include/sys/statfs.h: Likewise.
15303         * include/sys/statvfs.h: Likewise.
15304         * include/sys/syslog.h: Likewise.
15305         * include/sys/time.h: Likewise.
15306         * include/sys/uio.h: Likewise.
15307         * include/time.h: Likewise.
15308         * include/unistd.h: Likewise.
15309         * include/utmp.h: Likewise.
15310         * include/wchar.h: Likewise.
15311         * include/wctype.h: Likewise.
15312         * inet/aliases.h: Likewise.
15313         * inet/arpa/inet.h: Likewise.
15314         * inet/netinet/ether.h: Likewise.
15315         * inet/netinet/in.h: Likewise.
15316         * intl/libintl.h: Likewise.
15317         * io/bits/fcntl2.h: Likewise.
15318         * io/fcntl.h: Likewise.
15319         * io/ftw.h: Likewise.
15320         * io/sys/poll.h: Likewise.
15321         * io/sys/stat.h: Likewise.
15322         * io/sys/statfs.h: Likewise.
15323         * io/sys/statvfs.h: Likewise.
15324         * io/utime.h: Likewise.
15325         * libio/bits/stdio.h: Likewise.
15326         * libio/bits/stdio2.h: Likewise.
15327         * libio/libio.h: Likewise.
15328         * libio/libioP.h: Likewise.
15329         * libio/stdio.h: Likewise.
15330         * locale/lc-ctype.c: Likewise.
15331         * locale/locale.h: Likewise.
15332         * login/utmp.h: Likewise.
15333         * malloc/arena.c: Likewise.
15334         * malloc/malloc.c: Likewise.
15335         * malloc/malloc.h: Likewise.
15336         * malloc/mcheck.c: Likewise.
15337         * malloc/mtrace.c: Likewise.
15338         * math/bits/mathcalls.h: Likewise.
15339         * math/fenv.h: Likewise.
15340         * math/math_private.h: Likewise.
15341         * misc/bits/error.h: Likewise.
15342         * misc/bits/syslog.h: Likewise.
15343         * misc/err.h: Likewise.
15344         * misc/error.h: Likewise.
15345         * misc/fstab.h: Likewise.
15346         * misc/mntent.h: Likewise.
15347         * misc/regexp.h: Likewise.
15348         * misc/search.h: Likewise.
15349         * misc/sgtty.h: Likewise.
15350         * misc/sys/mman.h: Likewise.
15351         * misc/sys/syslog.h: Likewise.
15352         * misc/sys/uio.h: Likewise.
15353         * misc/sys/xattr.h: Likewise.
15354         * misc/ttyent.h: Likewise.
15355         * nis/rpcsvc/ypclnt.h: Likewise.
15356         * nss/nss.h: Likewise.
15357         * posix/bits/unistd.h: Likewise.
15358         * posix/fnmatch.h: Likewise.
15359         * posix/glob.h: Likewise.
15360         * posix/sched.h: Likewise.
15361         * posix/spawn.h: Likewise.
15362         * posix/sys/wait.h: Likewise.
15363         * posix/unistd.h: Likewise.
15364         * posix/wordexp.h: Likewise.
15365         * pwd/pwd.h: Likewise.
15366         * resolv/netdb.h: Likewise.
15367         * resource/sys/resource.h: Likewise.
15368         * rt/aio.h: Likewise.
15369         * rt/bits/mqueue2.h: Likewise.
15370         * rt/mqueue.h: Likewise.
15371         * shadow/shadow.h: Likewise.
15372         * signal/signal.h: Likewise.
15373         * socket/send.c: Likewise.
15374         * socket/sendto.c: Likewise.
15375         * socket/sys/socket.h: Likewise.
15376         * stdio-common/printf.h: Likewise.
15377         * stdlib/bits/stdlib.h: Likewise.
15378         * stdlib/fmtmsg.h: Likewise.
15379         * stdlib/monetary.h: Likewise.
15380         * stdlib/stdlib.h: Likewise.
15381         * stdlib/ucontext.h: Likewise.
15382         * streams/stropts.h: Likewise.
15383         * string/argz.h: Likewise.
15384         * string/bits/string2.h: Likewise.
15385         * string/string.h: Likewise.
15386         * string/strings.h: Likewise.
15387         * sunrpc/rpc/auth.h: Likewise.
15388         * sunrpc/rpc/auth_des.h: Likewise.
15389         * sunrpc/rpc/clnt.h: Likewise.
15390         * sunrpc/rpc/netdb.h: Likewise.
15391         * sunrpc/rpc/pmap_clnt.h: Likewise.
15392         * sunrpc/rpc/xdr.h: Likewise.
15393         * sysdeps/generic/inttypes.h: Likewise.
15394         * sysdeps/generic/net/if.h: Likewise.
15395         * sysdeps/generic/sys/swap.h: Likewise.
15396         * sysdeps/gnu/net/if.h: Likewise.
15397         * sysdeps/gnu/utmpx.h: Likewise.
15398         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15399         * sysdeps/i386/i486/bits/string.h: Likewise.
15400         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15401         * sysdeps/s390/bits/string.h: Likewise.
15402         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15403         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15404         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15405         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15406         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15407         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15408         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15409         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15410         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15411         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15412         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15413         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15414         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15415         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15416         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15417         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15418         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15419         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15420         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15421         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15422         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15423         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15424         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15425         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15426         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15427         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15428         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15429         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15430         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15431         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15432         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15433         * sysvipc/sys/ipc.h: Likewise.
15434         * sysvipc/sys/msg.h: Likewise.
15435         * sysvipc/sys/sem.h: Likewise.
15436         * sysvipc/sys/shm.h: Likewise.
15437         * termios/termios.h: Likewise.
15438         * time/sys/time.h: Likewise.
15439         * time/time.h: Likewise.
15440         * wcsmbs/bits/wchar2.h: Likewise.
15441         * wcsmbs/uchar.h: Likewise.
15442         * wcsmbs/wchar.h: Likewise.
15443         * wctype/wctype.h: Likewise.
15444
15445         [BZ #13551]
15446         * Makeconfig: Remove all but ELF support including AIX support.
15447         * Makerules: Likewise.
15448         * config.h.in: Likewise.
15449         * config.make.in: Likewise.
15450         * configure: Likewise.
15451         * configure.in: Likewise.
15452         * csu/Makefile: Likewise.
15453         * csu/version.c: Likewise.
15454         * debug/Makefile: Likewise.
15455         * dlfcn/Makefile: Likewise.
15456         * elf/Makefile: Likewise.
15457         * extra-lib.mk: Likewise.
15458         * iconv/Makefile: Likewise.
15459         * include/libc-symbols.h: Likewise.
15460         * include/shlib-compat.h: Likewise.
15461         * resolv/Makefile: Likewise.
15462         * resolv/res_libc.c: Likewise.
15463         * rt/Makefile: Likewise.
15464         * sysdeps/i386/asm-syntax.h: Likewise.
15465         * sysdeps/i386/sysdep.h: Likewise.
15466         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15467         * sysdeps/mach/sysdep.h: Likewise.
15468         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15469         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15470         * sysdeps/s390/asm-syntax.h: Likewise.
15471         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15472         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15473         * sysdeps/sh/sysdep.h: Likewise.
15474         * sysdeps/unix/sparc/sysdep.h: Likewise.
15475         * sysdeps/wordsize-32/divdi3.c: Likewise.
15476         * sysdeps/x86_64/sysdep.h: Likewise.
15477
15478         * argp/Versions: Remove _argp_unlock_xxx.
15479
15480         [BZ #13559]
15481         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15482         * abilist/libBrokenLocale.abilist: Likewise.
15483         * abilist/libanl.abilist: Likewise.
15484         * abilist/libc.abilist: Likewise.
15485         * abilist/libcrypt.abilist: Likewise.
15486         * abilist/libdl.abilist: Likewise.
15487         * abilist/libm.abilist: Likewise.
15488         * abilist/libnsl.abilist: Likewise.
15489         * abilist/libpthread.abilist: Likewise.
15490         * abilist/libresolv.abilist: Likewise.
15491         * abilist/librt.abilist: Likewise.
15492         * abilist/libthread_db.abilist: Likewise.
15493         * abilist/libutil.abilist: Likewise.
15494         * abilist/libnss_db.abilist: New file.
15495
15496         * scripts/abilist.awk: Add support for indirect functions.
15497
15498         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15499
15500         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15501
15502         * shlib-versions: Remove entries for ports architectures.
15503
15504         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15505         files in ports.
15506         * elf/stackguard-macros.h: Remove support for IA-64.
15507         * elf/tst-auditmod1.c: Likewise.
15508         * sysdeps/generic/ldsodefs.h: Likewise.
15509
15510         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15511         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15512         configure files.
15513
15514         [BZ #13552]
15515         * configure.in: Remove --enable-omitfp support.
15516         * FAQ.in: Adjust.
15517         * config.make.in: Likewise.
15518         * Makeconfig: Likewise.
15519         * manual/install.texi: Likewise.
15520
15521         In case anyone cares, the IA-64 architecture could move to ports.
15522         * sysdeps/ia64/*: Removed.
15523         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15524         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15525
15526         [BZ #13555]
15527         * configure.in: Remove entries for unsupported architectures.
15528
15529         [BZ #13533]
15530         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15531         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15532         routines.
15533         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15534         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15535         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15536         fall back to using wcrtomb.
15537         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15538         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15539         renaming.
15540         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15541         * wcsmbs/tst-c16c32-1.c: New file.
15542
15543         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15544         local variable.
15545
15546         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15547
15548         * elf/tst-unique3.cc: Add explicit declaration of gets.
15549         * elf/tst-unique3lib.cc: Likewise.
15550         * elf/tst-unique3lib2.cc: Likewise.
15551         * elf/tst-unique4.cc: Likewise.
15552
15553         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15554
15555 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15556
15557         [BZ #13566]
15558         * assert/assert.h (static_assert): Don't define for C++.
15559         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15560         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15561
15562 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15563
15564         * iconv/loop.c (single loop): Fix assertion in storing of
15565         remaining bytes.
15566
15567         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15568
15569 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15570
15571         * posix/getconf.c: Update copyright year.
15572         * nss/getent.c: Likewise.
15573         * nss/makedb.c: Likewise.
15574         * iconv/iconvconfig.c: Likewise.
15575         * iconv/iconv_prog.c: Likewise.
15576         * elf/ldconfig.c: Likewise.
15577         * elf/pldd.c: Likewise.
15578         * elf/sotruss.ksh: Likewise.
15579         * catgets/gencat.c: Likewise.
15580         * csu/version.c: Likewise.
15581         * elf/ldd.bash.in: Likewise.
15582         * elf/sprof.c (print_version): Likewise.
15583         * locale/programs/locale.c: Likewise.
15584         * locale/programs/localedef.c: Likewise.
15585         * login/programs/pt_chown.c: Likewise.
15586         * nscd/nscd.c (print_version): Likewise.
15587         * debug/xtrace.sh: Likewise.
15588         * malloc/memusage.sh: Likewise.
15589         * malloc/mtrace.pl: Likewise.
15590         * debug/catchsegv.sh: Likewise.
15591
15592 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15593
15594         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15595         pure attribute.
15596
15597 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15598
15599         [BZ #13533]
15600         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15601         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15602         transformations.
15603         * iconv/gconv_int.h: Likewise.
15604         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15605         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15606         from libc for GLIBC_2.16.
15607         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15608         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15609         * wcsmbs/uchar.h: Really define mbstate_t.
15610         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15611         * wcsmbs/c16rtomb.c: New file.
15612         * wcsmbs/mbrtoc16.c: New file.
15613         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15614         for C/POSIX locale.
15615         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15616         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15617
15618         * wcsmbs/wchar.h: Add missing __restrict.
15619
15620 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15621
15622         [BZ #13532]
15623         * time/Makefile (routines): Add timespec_get.
15624         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15625         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15626         timespec for ISO C11.
15627         * time/timespec_get.c: New file.
15628         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15629         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15630
15631         [BZ #13531]
15632         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15633         * stdlib/stdlib.h: Declare aligned_alloc.
15634         * Versions.def: Add GLIBC_2.16 for libc.
15635         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15636
15637         [BZ 13527]
15638         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15639         ISO C11.
15640
15641         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15642         code.
15643
15644         [BZ #13528]
15645         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15646
15647         [BZ #13529]
15648         * assert/assert.h (static_assert): Define.
15649
15650         * version.h: Update for 2.16 development version.
15651
15652         [BZ #13526]
15653         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15654         _ISOC11_SOURCE.
15655
15656         * version.h (RELEASE): Bump for 2.15 release.
15657         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15658
15659         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15660         Patch by Marek Polacek <mpolacek@redhat.com>.
15661
15662         * bits/byteswap.h: Protect long long constants with __extension__.
15663         * sysdeps/i386/bits/byteswap.h: Likewise.
15664         * sysdeps/ia64/bits/byteswap.h: Likewise.
15665         * sysdeps/s390/bits/byteswap.h: Likewise.
15666         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15667
15668 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15669
15670         [BZ #13540]
15671         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15672         destination buffer.
15673         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15674
15675 2011-12-23  Marek Polacek  <polacek@redhat.com>
15676
15677         * elf/dl-addr.c (determine_info): Add inline keyword.
15678         * elf/tst-auditmod4b.c (check_avx): Likewise.
15679         * elf/tst-auditmod6b.c (check_avx): Likewise.
15680         * elf/tst-auditmod6c.c (check_avx): Likewise.
15681         * elf/tst-auditmod7b.c (check_avx): Likewise.
15682
15683 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15684
15685         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15686         !__SSE_MATH__.
15687
15688 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15689
15690         [BZ #13540]
15691         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15692         processing for last bytes.
15693
15694 2011-08-06  Bruno Haible  <bruno@clisp.org>
15695
15696         [BZ #13061]
15697         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15698         U+0385, not to U+1FEE.
15699
15700         [BZ #13062]
15701         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15702         entry for U+00A5 U+0301.
15703
15704 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15705
15706         [BZ #13166]
15707         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15708         buffer for the output is too small.
15709
15710         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15711         optimization.
15712
15713         [BZ #13185]
15714         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15715         SSE flags if possible.
15716
15717 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15718
15719         [BZ #13540]
15720         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15721         processing for last bytes.
15722
15723 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15724
15725         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15726         (syscall-list-default-options, syscall-list-default-condition)
15727         (syscall-list-includes): Define.
15728         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15729         list of ABIs and options and #if conditions for each ABI.  Do not
15730         handle common syscalls between ABIs specially.
15731         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15732         Remove.
15733         (syscall-list-variants, syscall-list-32bit-options)
15734         (syscall-list-32bit-condition, syscall-list-64bit-options)
15735         (syscall-list-64bit-condition): Define.
15736         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15737         (syscall-list-variants, syscall-list-32bit-options)
15738         (syscall-list-32bit-condition, syscall-list-64bit-options)
15739         (syscall-list-64bit-condition): Define.
15740         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15741         Remove.
15742         (syscall-list-variants, syscall-list-32bit-options)
15743         (syscall-list-32bit-condition, syscall-list-64bit-options)
15744         (syscall-list-64bit-condition): Define.
15745         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15746         Remove.
15747         (syscall-list-variants, syscall-list-32bit-options)
15748         (syscall-list-32bit-condition, syscall-list-64bit-options)
15749         (syscall-list-64bit-condition): Define.
15750
15751 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15752
15753         * locale/iso-639.def: Add brx entry.
15754
15755         [BZ #13328]
15756         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15757         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15758
15759         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15760         __feraiseexcept_renamed.
15761
15762 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15763
15764         [BZ #13538]
15765         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15766         EPOLLET with unsigned values.
15767         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15768         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15769
15770         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15771         to large cancellation.
15772         * math/s_cacoshf.c: Likewise.
15773         * math/s_cacoshl.c: Likewise.
15774
15775 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15776
15777         [BZ #13305]
15778         [BZ #12786]
15779         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15780         * math/s_cacoshf.c: Likewise.
15781         * math/s_cacoshl.c: Likewise.
15782
15783 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15784
15785         [BZ #13439]
15786         * iconv/gconv.h: Define __GCONV_SWAP.
15787         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15788         * iconvdata/utf-16.c: Likewise.
15789         * iconvdata/utf-32.c: Likewise.
15790
15791 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15792
15793         [BZ #13524]
15794         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15795         numerator after shifting it by one limb.
15796
15797 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15798
15799         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15800         under [__USE_EXTERN_INLINES].
15801
15802 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15803
15804         [BZ #13446]
15805         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15806
15807 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15808
15809         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15810         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15811         optimized code.
15812         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15813         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15814         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15815         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15816         for strncasecmp/strncasecmp_l compilation.
15817         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15818         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15819
15820 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15821
15822         [BZ #13484]
15823         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15824         of __asm__.
15825
15826 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15827
15828         [BZ #13506]
15829         * time/tzfile.c (__tzfile_read): Check values from file header.
15830
15831 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15832
15833         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15834         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15835         * powerpc/powerpc32/dl-start.S: Likewise.
15836         * powerpc/powerpc32/elf/start.S: Likewise.
15837         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15838         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15839         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15840         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15841         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15842         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15843         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15844         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15845         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15846         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15847         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15848         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15849         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15850         * powerpc/powerpc32/memset.S: Likewise.
15851         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15852         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15853         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15854         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15855         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15856         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15857         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15858         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15859         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15860         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15861         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15862         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15863         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15864
15865 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15866
15867         * math/libm-test.inc: Added more nearbyint tests.
15868         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15869         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15870         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15871         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15872
15873 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15874
15875         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15876         FD_CLOEXEC.
15877
15878 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15879
15880         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15881         Add wcscpy-ssse3 wcscpy-c.
15882         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15883         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15884         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15885         * sysdeps/x86_64/wcschr.S: New file.
15886         * sysdeps/x86_64/wcsrchr.S: New file.
15887         * string/test-strcmp.c: Remove checking of wcscmp function for
15888         wrong alignments.
15889         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15890         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15891         wcsrchr-sse2 wcsrchr-c.
15892         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15893         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15894         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15895         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15896         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15897         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15898         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15899         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15900         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15901         * wcsmbc/wcschr.c (WCSCHR): New macro.
15902
15903 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15904
15905         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15906         * wcsmbs/test-wcsrchr.c: New file.
15907         * string/test-strrchr.c: Add wcsrchr support.
15908         (WIDE): New macro.
15909         * wcsmbs/test-wcscpy.c: New file.
15910         * string/test-strcpy.c: Add wcscpy support.
15911         (WIDE): New macro.
15912
15913 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15914
15915         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15916         the inner loop.
15917
15918 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15919
15920         [BZ #13472]
15921         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15922
15923 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15924
15925         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15926         Minor optimizations.
15927
15928         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15929         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15930         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15931
15932 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15933
15934         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15935         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15936         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15937         for gcc to avoid warnings.
15938         * inet/Makefile (tests): Add tst-checks.
15939         * inet/tst-checks.c: New file.
15940
15941         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15942         warning.
15943
15944         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15945         __wmemcmp_sse2.
15946
15947         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15948         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15949
15950         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15951
15952 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15953
15954         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15955         problem.
15956
15957         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15958
15959 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15960
15961         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15962         conditional on GCC version.
15963         (__arch_compare_and_exchange_val_8_acq)
15964         (__arch_compare_and_exchange_val_16_acq)
15965         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15966         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15967         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15968
15969 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
15970
15971         * sysdeps/sh/backtrace.c: New file.
15972
15973 2011-12-02  Andreas Schwab  <schwab@redhat.com>
15974
15975         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
15976         parenthesis.
15977
15978 2011-12-01  Andreas Schwab  <schwab@redhat.com>
15979
15980         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
15981         falling back to utime.
15982
15983 2011-11-30  Andreas Schwab  <schwab@redhat.com>
15984
15985         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
15986         expectations for float.
15987
15988 2011-11-29  Andreas Schwab  <schwab@redhat.com>
15989
15990         * locale/weight.h (findidx): Add parameter len.
15991         * locale/weightwc.h (findidx): Likewise.
15992         * posix/fnmatch_loop.c (FCT): Adjust caller.
15993         * posix/regcomp.c (build_equiv_class): Likewise.
15994         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
15995         * posix/regexec.c (check_node_accept_bytes): Likewise.
15996         * string/strcoll_l.c (STRCOLL): Likewise.
15997         * string/strxfrm_l.c (STRXFRM): Likewise.
15998
15999 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
16000
16001         * Makefile.in: Remove CVSOPT handling.
16002         * configure.in: Remove use of AC_REVISION.
16003         * iconvdata/Makefile (distribute): No need to filter out CVS.
16004         * scripts/list-sources.sh: Remove CVS, subversion and monotone
16005         handling.
16006
16007 2011-11-16  Andreas Schwab  <schwab@redhat.com>
16008
16009         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16010         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16011         [USE_AS_STRNCASECMP_L]: Likewise.
16012         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16013         NO_TLS_DIRECT_SEG_REFS.
16014         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16015         Fix argument offsets for non-PIC.
16016         [USE_AS_STRNCASECMP_L]: Likewise.
16017         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16018         NO_TLS_DIRECT_SEG_REFS.
16019
16020 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16021
16022         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16023         O_CLOEXEC.
16024         * locale/loadlocale.c (_nl_load_locale): Likewise.
16025
16026 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16027
16028         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16029         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16030         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16031         (SYSCALL_GETTIME): Set errno on error.
16032
16033         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16034         count references to noai6ai_cached.
16035
16036 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16037
16038         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16039
16040         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16041         FD_CLOEXEC for /proc/self/maps.
16042
16043         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16044         FD_CLOEXEC for /proc/meminfo.
16045
16046         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16047         gai.conf.
16048
16049         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16050         FD_CLOEXEC for given file.
16051
16052         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16053
16054         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16055         FD_CLOEXEC for /etc/hosts.
16056         (_gethtent): Likewise.
16057
16058         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16059
16060         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16061         cancellation and set FD_CLOEXEC for /etc/netgroup.
16062
16063         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16064         reading /etc/publickey.
16065
16066         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16067         allow cancellation when reading /etc/group.
16068
16069         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16070         cancellation.
16071         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16072
16073         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16074         when using data file.
16075
16076         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16077
16078         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16079         (write_nis_obj): Use "c" and "e" in fopen.
16080
16081         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16082
16083         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16084
16085         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16086
16087         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16088
16089         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16090         locale.alias.
16091
16092         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16093
16094         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16095
16096         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16097
16098         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16099         file parsing and set FD_CLOEXEC.
16100
16101 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16102
16103         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16104
16105 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16106
16107         * malloc/arena.c (arena_get2): Don't call reused_arena when
16108         _int_new_arena failed.
16109
16110 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16111
16112         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16113         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16114         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16115         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16116         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16117         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16118         to compile strcasecmp and strncasecmp.
16119         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16120         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16121
16122         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16123
16124 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16125
16126         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16127         locale-defines.sym to gen-as-const-headers.
16128         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16129         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16130         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16131         to compile strcasecmp and strncasecmp.
16132         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16133         strcasecmp_l and strncasecmp_l.
16134         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16135         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16136         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16137         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16138         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16139         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16140         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16141         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16142         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16143         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16144         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16145
16146 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16147
16148         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16149         result of SYSDEP_GETTIME_CPU to retval.
16150         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16151         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16152
16153         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16154         variable.
16155
16156         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16157         mantissa words.
16158         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16159
16160         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16161         from unused variable.
16162
16163         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16164         DWARF definitions.
16165         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16166         for assembling.
16167
16168         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16169         over namespaces.
16170
16171         * sunrpc/rpc_prot.c (rejected): Fix case value.
16172
16173         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16174         unsigned long long int to avoid warnings in shift.
16175
16176         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16177         of use of trans.
16178         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16179         variable tmp.
16180
16181         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16182         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16183         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16184
16185         * nis/nis_table.c (nis_list): Use variable of correct type for
16186         result of __follow_path call.
16187
16188 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16189
16190         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16191         of math functions ceil, trunc, floor, round, and sqrt, when
16192         avaliable on the platform.
16193         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16194         name clash.
16195         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16196         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16197         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16198
16199 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
16200
16201         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16202         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16203
16204 2011-11-11  Roland McGrath  <roland@hack.frob.com>
16205
16206         * include/unistd.h: Fix __readlink return type.
16207         Reported by Chris Metcalf <cmetcalf@tilera.com>.
16208
16209 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
16210
16211         * stdlib/ucontext.h: Undo last change for makecontext.
16212
16213 2011-11-11  Andreas Schwab  <schwab@redhat.com>
16214
16215         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16216
16217         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16218         * setjmp/setjmp.h: Mark functions as non-leaf.
16219         * setjmp/bits/setjmp2.h: Likewise.
16220         * stdlib/ucontext.h: Likewise.
16221
16222 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16223
16224         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16225         (reused_arena): Don't check arena limit.
16226         (arena_get2): Atomically check arena limit.
16227
16228 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16229
16230         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16231         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16232
16233         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16234         instructions.
16235
16236 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16237
16238         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16239         handler when locking.
16240
16241         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16242         Fix size of allocated buffer.
16243
16244 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16245
16246         [BZ #10103]
16247         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16248         declarations for long double functions.
16249         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16250
16251         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16252
16253 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16254
16255         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16256         installed.
16257
16258         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16259         is disabled.
16260
16261 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16262
16263         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16264
16265 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16266
16267         * include/alloca.h (stackinfo_alloca_round): Define.
16268         (extend_alloca): Use it.
16269         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16270         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16271         here.
16272
16273         * scripts/check-local-headers.sh: Ignore libaudit.h.
16274
16275         * nscd/Makefile (extra-objs): Make recursively expanded.
16276
16277 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16278
16279         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16280         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16281
16282         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16283         * posix/tst-rfc3484-2.c: Likewise.
16284         * posix/tst-rfc3484-3.c: Likewise.
16285
16286         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16287         process_vm_writev.
16288         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16289         process_vm_writev.
16290         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16291         process_vm_writev from libc using GLIBC_2.15 version.
16292
16293         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16294
16295 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16296
16297         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16298         stack usage.
16299
16300 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16301
16302         [BZ #13367]
16303         * nss/getent.c (initgroups_keys): Show error message in case no group
16304         names are given.
16305
16306         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16307         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16308         __bump_nl_timestamp.
16309         * nscd/connections (nscd_init): When host database is served open
16310         netlink socket and request notification about configuration changes.
16311         (main_loop_poll): Track netlink file descriptor and bump timestamp
16312         in case data becomes available.
16313         (main_loop_epoll): Likewise.
16314         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16315         (database_pers_head): Add extra_data fileds.
16316         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16317         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16318         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16319         Adjust caller.
16320         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16321         in6ai data, call __free_in6ai.
16322         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16323         Add -DHAVE_NETLINK.
16324         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16325         interface information.  Reuse previous data if netlink timestamp
16326         is not changed.
16327         (__bump_nl_timestamp): New function.
16328         (__free_in6ai): New function.
16329
16330 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16331
16332         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16333         close_not_cancel_no_status here.
16334         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16335
16336 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16337
16338         [BZ #13276]
16339         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16340         return value.
16341
16342         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16343         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16344         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16345
16346 2011-07-03  Andreas Jaeger  <aj@suse.de>
16347
16348         [BZ #10709]
16349         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16350         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16351         * math/libm-test.inc (sin_test): Add test case.
16352
16353 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16354
16355         [BZ #13337]
16356         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16357         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16358
16359         * elf/chroot_canon.c (chroot_canon): Cleanups.
16360
16361         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16362
16363         [BZ #13335]
16364         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16365         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16366
16367         * string/test-strchr.c: Make usable for strchrnul testing.
16368         * string/test-strchrnul.c: New file.
16369         * string/Makefile (strop-tests): Add strchrnul.
16370
16371         * po/it.po: Update from translation team.
16372         * po/es.po: Likewise.
16373
16374 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16375
16376         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16377         the three constants needed as parameters.  Drop the others.
16378         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16379         __m128i_strloadu_tolower.
16380         Create and initialize variable zero and use it in all the places
16381         where _mm_setzero_si128 was used.
16382
16383         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16384         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16385         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16386         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16387         anymore.
16388         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16389         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16390         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16391         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16392         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16393         __mpranred, __mptan.
16394         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16395         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16396         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16397         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16398         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16399         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16400         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16401         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16402         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16403
16404 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16405
16406         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16407         redefine if SHARED.
16408         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16409
16410         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16411         wide char related routines to wcsmbs subdir.
16412
16413 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16414
16415         [BZ #13344]
16416         * misc/sys/cdefs.h (__THROWNL): Define.
16417         * posix/unistd.h: Use __THREADNL instead of __THREAD
16418         for memory synchronization functions.
16419
16420 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16421
16422         [BZ #13349]
16423         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16424         doesn't exist.
16425         * manual/stdio.texi (Obstack Streams): Node removed.
16426
16427 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16428
16429         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16430         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16431         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16432
16433         * math/math_private.h (math_force_eval): Allow non-addressable
16434         arguments.
16435         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16436
16437 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16438
16439         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16440         file is not needed.
16441
16442         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16443         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16444         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16445         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16446         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16447         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16448         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16449         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16450         Add AVX variants.
16451         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16452         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16453         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16454         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16455         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16456         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16457         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16458         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16459         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16460         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16461         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16462         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16463         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16464         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16465         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16466         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16467         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16468         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16469         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16470
16471         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16472         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16473
16474         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16475         place.  Use VEX encoding when compiling for AVX.
16476
16477 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16478
16479         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16480         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16481
16482         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16483
16484 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16485
16486         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16487         useless if() expression.
16488         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16489         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16490         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16491         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16492         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16493         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16494         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16495         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16496         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16497         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16498         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16499         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16500         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16501         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16502         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16503         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16504         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16505         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16506         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16507
16508         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16509
16510 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16511
16512         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16513         condition.
16514         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16515
16516 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16517
16518         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16519         .text section.  Avoid duplicate constants.
16520         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16521         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16522         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16523         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16524         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16525         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16526         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16527         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16528         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16529         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16530         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16531         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16532         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16533         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16534         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16535         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16536         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16537         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16538         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16539         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16540         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16541         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16542         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16543         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16544         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16545         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16546         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16547         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16548         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16549         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16550         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16551         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16552         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16553         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16554         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16555         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16556         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16557         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16558         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16559         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16560         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16561         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16562         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16563         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16564         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16565
16566 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16567
16568         * sysdeps/x86_64/dla.h: Move to ...
16569         * sysdeps/x86_64/fpu/dla.h: ...here.
16570         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16571         situations.  Use __builtin_fma only for gcc 4.6 and up.
16572
16573         * config.make.in: Add have-mfma4 entry.
16574         * configure.in: Substitute libc_cv_cc_fma4.
16575         * math/Makefile (dbl-only-routines): Add sincostab.
16576         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16577         Use __sincostab not sincos.
16578         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16579         name is a macro.
16580         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16581         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16582         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16583         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16584         using __copysign.
16585         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16586         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16587         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16588         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16589         and __inv.
16590         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16591         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16592         __copysign.
16593         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16594         define aliases when function name is a macro.
16595         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16596         sysdeps/ieee754/dbl-64/sincos.tbl.
16597         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16598         fma4-enabled routines.
16599         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16600         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16601         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16602         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16603         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16604         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16605         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16606         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16607         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16608         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16609         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16610         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16611         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16612         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16613         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16614         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16615         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16616         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16617         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16618         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16619         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16620         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16621         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16622         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16623         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16624         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16625         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16626         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16627         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16628         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16629
16630         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16631         rename.
16632         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16633         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16634         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16635         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16636         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16637         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16638         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16639         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16640
16641 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16642
16643         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16644
16645 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16646
16647         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16648
16649         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16650         prediction.
16651         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16652
16653         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16654         Remove unused variable magic_bits.
16655         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16656
16657         * string/strnlen.c: Define and use STRNLEN macro.
16658         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16659         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16660         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16661         * wcsmbs/wcslen.c: Define and use WCSLEN.
16662         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16663         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16664         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16665         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16666         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16667         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16668         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16669
16670 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16671
16672         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16673         strnlen-sse2-no-bsf.
16674         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16675         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16676         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16677         Add strnlen support.
16678         (USE_AS_STRNLEN): New macro.
16679         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16680         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16681         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16682         * sysdeps/x86_64/wcslen.S: New file.
16683
16684 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16685
16686         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16687         XMM-moves are used for copying on small sizes.
16688
16689 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16690
16691         * wcsmbs/Makefile (strop-tests): Add wcschr.
16692         * wcsmbs/test-wcschr.c: New file.
16693         * string/test-strchr.c: Update.
16694         Add wcschr support.
16695         (WIDE): New macro.
16696
16697 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16698
16699         * wcsmbs/Makefile (strop-tests): Add wcslen.
16700         * wcsmbs/test-wcslen.c: New file.
16701         * string/test-strlen.c: Update.
16702         Add wcslen support.
16703         (WIDE): New macro.
16704
16705 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16706
16707         * po/it.po: Update from translation team.
16708
16709 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16710
16711         * sysdeps/x86_64/wcscmp.S: Update.
16712         Fix wrong comparison semantics.
16713         wcscmp shall use signed comparison not unsigned.
16714         Don't use substraction to avoid overflow bug.
16715         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16716         * wcsmbc/wcscmp.c: Likewise.
16717         * string/test-strcmp.c: Likewise.
16718         Add new tests to check cases with negative values.
16719
16720 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16721
16722         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16723         * sysdeps/x86_64/dla.h: ...here.  New file.
16724         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16725         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16726         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16727         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16728         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16729         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16730         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16731         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16732         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16733
16734 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16735
16736         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16737         __ynl_finite aliases.
16738
16739 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16740
16741         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16742
16743         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16744         define DLA_FMA.
16745         [DLA_FMA] (EMULV): Use DLA_FMA.
16746         [DLA_FMA] (MUL12): Use EMULV.
16747         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16748         that are not needed.
16749         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16750         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16751         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16752         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16753         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16754         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16755         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16756
16757 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16758
16759         * math/s_nan.c: Undef __nan.
16760         * math/s_nanf.c: Undef __nanf.
16761         * math/s_nanl.c: Undef __nanl.
16762         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16763         "math_private.h".
16764
16765 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16766
16767         * math/s_catan.c: Add branch predictions.
16768         * math/s_catanf.c: Likewise.
16769         * math/s_catanh.c: Likewise.
16770         * math/s_catanhf.c: Likewise.
16771         * math/s_catanhl.c: Likewise.
16772         * math/s_catanl.c: Likewise.
16773         * math/s_cexp.c: Likewise.
16774         * math/s_cexpf.c: Likewise.
16775         * math/s_cexpl.c: Likewise.
16776         * math/s_clog.c: Likewise.
16777         * math/s_clog10.c: Likewise.
16778         * math/s_clog10f.c: Likewise.
16779         * math/s_clog10l.c: Likewise.
16780         * math/s_clogf.c: Likewise.
16781         * math/s_clogl.c: Likewise.
16782         * math/s_csqrt.c: Likewise.
16783         * math/s_csqrtf.c: Likewise.
16784         * math/s_csqrtl.c: Likewise.
16785         * math/s_ctanf.c: Likewise.
16786         * math/s_ctanh.c: Likewise.
16787         * math/s_ctanhf.c: Likewise.
16788         * math/s_ctanhl.c: Likewise.
16789         * math/s_ctanl.c: Likewise.
16790
16791         * math/math_private.h: Define __nan, __nanf, __nanl.
16792         * math/s_cacosh.c: Include <math_private.h>.
16793         * math/s_cacoshl.c: Likewise.
16794         * math/s_casinh.c: Likewise.
16795         * math/s_casinhf.c: Likewise.
16796         * math/s_casinhl.c: Likewise.
16797         * math/s_ccos.c: Rely entire on ccosh.
16798         * math/s_ccosf.c: Rely entire on ccoshf.
16799         * math/s_ccosl.c: Rely entirely on ccoshl.
16800         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16801         Remove tests for FE_INVALID.
16802         * math/s_ccoshf.c: Likewise.
16803         * math/s_ccoshl.c: Likewise.
16804         * math/s_csin.c: Likewise.
16805         * math/s_csinf.c: Likewise.
16806         * math/s_csinh.c Likewise.
16807         * math/s_csinhf.c: Likewise.
16808         * math/s_csinhl.c: Likewise.
16809         * math/s_csinl.c: Likewise.
16810         * math/s_ctan.c: Likewise.
16811         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16812         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16813         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16814
16815 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16816
16817         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16818         compilation problems.
16819
16820         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16821         __builtin_expect.
16822
16823 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16824
16825         * sysdeps/i386/configure.in: Test for -mfma4 option.
16826         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16827         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16828         COMMON_CPUID_INDEX_80000001.
16829         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16830         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16831         use it if FMA3 is not supported.
16832         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16833
16834         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16835         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16836
16837 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16838
16839         [BZ #12892]
16840         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16841         it would create a cycle with a link time dependency.
16842
16843 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16844
16845         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16846         instruction.
16847         * string/Makefile (strop-tests): Add rawmemchr.
16848         * string/test-rawmemchr.c: New file.
16849
16850         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16851         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16852         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16853         when compiling str{,n}casecmp and when AVX is available.  Hook up
16854         new optimized code in initializers.
16855
16856 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16857
16858         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16859         __feraiseexcept instead of feraiseexcept.
16860
16861 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16862
16863         * math/math_private.h: Define defaults for libc_fetestexcept and
16864         libc_feupdateenv.
16865         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16866         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16867         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16868         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16869         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16870         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16871         libc_fetestexcept and libc_feupdateenv.
16872
16873         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16874         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16875         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16876         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16877         libc_feholdexcept_setround.
16878
16879         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16880         Add s_nearbyint-c and s_nearbyintf-c.
16881         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16882         nearbyintf inlines.
16883         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16884         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16885         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16886         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16887
16888         * math/math_private.h: Define defaults for libc_fegetround,
16889         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16890         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16891         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16892         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16893         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16894         standard functions.
16895         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16896         Remove comments and hacks for old compiler versions.
16897         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16898         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16899         libc_feholdexceptl.
16900
16901 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16902
16903         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16904         (__feraiseexcept_renamed): Add __NTH.
16905         (feraiseexcept): Add __NTH.  Rename local variables to fix
16906         namespace violations.
16907
16908 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16909
16910         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16911
16912         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16913
16914         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16915         recently added interfaces.
16916         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16917
16918         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16919         about macro parameter expansion.
16920
16921         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16922         __NO_MATH_INLINES is defined.  Cleanups.
16923
16924         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16925         and __floorf is target has SSE4.1.
16926         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16927         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16928         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16929         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16930
16931         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16932         name.
16933         (floorf): Likewise.
16934
16935         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16936
16937 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16938
16939         * misc/sys/cdefs.h: Fix last change.
16940
16941         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16942         database lookup.
16943
16944 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16945
16946         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16947
16948         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16949         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16950         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16951         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16952         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16953         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16954         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16955         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16956         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16957         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16958         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16959         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16960         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16961         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16962         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16963         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16964         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16965         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16966         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16967         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16968         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16969         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
16970
16971         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
16972         ceil, ceilf, floor, floorf.
16973
16974         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
16975         Perform IRELATIVE relocations last.
16976
16977         * elf/do-rel.h: Add another parameter nrelative, replacing the
16978         local variable with the same name.  Change name of the function
16979         to end in Rel or Rela (uppercase).
16980         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
16981         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
16982         elf_dynamic_do_##reloc function.
16983
16984 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
16985
16986         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
16987         is sufficient, at least on modern CPUs.
16988
16989         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
16990
16991         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
16992         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
16993
16994         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
16995         __expl_finite.
16996         * math/bits/math-finite.h: Add entries for exp.
16997         * math/e_expl.c: Add __*_finite alias.
16998         * sysdeps/i386/fpu/e_exp.S: Likewise.
16999         * sysdeps/i386/fpu/e_expf.S: Likewise.
17000         * sysdeps/i386/fpu/e_expl.c: Likewise.
17001         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17002         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17003         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17004         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17005         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17006         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17007         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17008
17009         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17010         is sufficient, at least on modern CPUs.
17011
17012         * ctype/ctype-info.c (__ctype_init): Define.
17013         * include/ctype.h (__ctype_init): Declare.
17014         (__ctype_b_loc): The variable is always initialized.
17015         (__ctype_toupper_loc): Likewise.
17016         (__ctype_tolower_loc): Likewise.
17017         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17018         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17019
17020 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17021
17022         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17023
17024         * configure.in: Also look in $cxxmachine/include for C++ system
17025         headers.
17026
17027 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17028
17029         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17030         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17031         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17032         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17033         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17034         (USE_AS_WMEMCMP): New macro.
17035         Fixing indents.
17036         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17037         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17038         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17039         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17040         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17041         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17042         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17043         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17044         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17045         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17046         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17047         (USE_AS_WMEMCMP): New macro.
17048         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17049         * sysdeps/string/test-memcmp.c: Update.
17050         Fix simple_wmemcmp.
17051         Add new tests.
17052         * wcsmbs/wmemcmp.c: Update.
17053         (WMEMCMP): New macro.
17054         Fix overflow bug.
17055
17056 2011-10-12  Andreas Jaeger  <aj@suse.de>
17057
17058         [BZ #13268]
17059         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17060
17061 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17062
17063         * libio/iofwide.c (do_length): Avoid warning.
17064
17065         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17066
17067 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17068
17069         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17070
17071         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17072         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17073         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17074         * sysdeps/i386/i686/fpu/e_log.S: New file.
17075         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17076         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17077
17078         * ctype/ctype.h: Add support for inlined isXXX functions when
17079         compiling C++ code.
17080
17081 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17082
17083         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17084
17085         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17086
17087 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17088
17089         [BZ #13291]
17090         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17091
17092 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17093
17094         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17095         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17096         feraiseexcept.
17097
17098         * sysdeps/x86_64/memrchr.S: Check for zero size.
17099
17100         * string/stratcliff.c: Add memrchr tests.
17101
17102 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17103
17104         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17105         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17106         rawmemchr-sse2 rawmemchr-sse2-bsf.
17107         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17108         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17109         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17110         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17111         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17112         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17113         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17114         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17115         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17116         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17117         * string/memrchr.c (MEMRCHR): New macro.
17118
17119 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17120
17121         Add integration with gcc's -ffinite-math-only and optimize wrapper
17122         functions in libm.
17123         * Versions.def: Define GLIBC_2.15 version for libm.
17124         * math/Makefile (headers): Add bits/math-finite.h.
17125         * math/bits/math-finite.h: New file.
17126         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17127         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17128         * math/e_acoshl.c: Add __*_finite alias.
17129         * math/e_acosl.c: Likewise.
17130         * math/e_asinl.c: Likewise.
17131         * math/e_atan2l.c: Likewise.
17132         * math/e_atanhl.c: Likewise.
17133         * math/e_coshl.c: Likewise.
17134         * math/e_exp10.c: Likewise.
17135         * math/e_exp10f.c: Likewise.
17136         * math/e_exp10l.c: Likewise.
17137         * math/e_exp2l.c: Likewise.
17138         * math/e_fmodl.c: Likewise.
17139         * math/e_gammal_r.c: Likewise.
17140         * math/e_hypotl.c: Likewise.
17141         * math/e_j0l.c: Likewise.
17142         * math/e_j1l.c: Likewise.
17143         * math/e_jnl.c: Likewise.
17144         * math/e_lgammal_r.c: Likewise.
17145         * math/e_log10l.c: Likewise.
17146         * math/e_log2l.c: Likewise.
17147         * math/e_logl.c: Likewise.
17148         * math/e_powl.c: Likewise.
17149         * math/e_sinhl.c: Likewise.
17150         * math/e_sqrtl.c: Likewise.
17151         * math/e_scalb.c: Completely rewritten and optimized.
17152         * math/e_scalbf.c: Likewise.
17153         * math/e_scalbl.c: Likewise.
17154         * math/w_acos.c: Likewise.
17155         * math/w_acosf.c: Likewise.
17156         * math/w_acosl.c: Likewise.
17157         * math/w_acosh.c: Likewise.
17158         * math/w_acoshf.c: Likewise.
17159         * math/w_acoshl.c: Likewise.
17160         * math/w_asin.c: Likewise.
17161         * math/w_asinf.c: Likewise.
17162         * math/w_asinl.c: Likewise.
17163         * math/w_atan2.c: Likewise.
17164         * math/w_atan2f.c: Likewise.
17165         * math/w_atan2l.c: Likewise.
17166         * math/w_atanh.c: Likewise.
17167         * math/w_atanhf.c: Likewise.
17168         * math/w_atanhl.c: Likewise.
17169         * math/w_exp10.c: Likewise.
17170         * math/w_exp10f.c: Likewise.
17171         * math/w_exp10l.c: Likewise.
17172         * math/w_fmod.c: Likewise.
17173         * math/w_fmodf.c: Likewise.
17174         * math/w_fmodl.c: Likewise.
17175         * math/w_j0.c: Likewise.
17176         * math/w_j0f.c: Likewise.
17177         * math/w_j0l.c: Likewise.
17178         * math/w_j1.c: Likewise.
17179         * math/w_j1f.c: Likewise.
17180         * math/w_j1l.c: Likewise.
17181         * math/w_jn.c: Likewise.
17182         * math/w_jnf.c: Likewise.
17183         * math/w_log.c: Likewise.
17184         * math/w_logf.c: Likewise.
17185         * math/w_logl.c: Likewise.
17186         * math/w_log10.c: Likewise.
17187         * math/w_log10f.c: Likewise.
17188         * math/w_log10l.c: Likewise.
17189         * math/w_log2.c: Likewise.
17190         * math/w_log2f.c: Likewise.
17191         * math/w_log2l.c: Likewise.
17192         * math/w_pow.c: Likewise.
17193         * math/w_powf.c: Likewise.
17194         * math/w_powl.c: Likewise.
17195         * math/w_remainder.c: Likewise.
17196         * math/w_remainderf.c: Likewise.
17197         * math/w_remainderl.c: Likewise.
17198         * math/w_scalb.c: Likewise.
17199         * math/w_scalbf.c: Likewise.
17200         * math/w_scalbl.c: Likewise.
17201         * math/w_sqrt.c: Likewise.
17202         * math/w_sqrtf.c: Likewise.
17203         * math/w_sqrtl.c: Likewise.
17204         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17205         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
17206         used.
17207         * math/math_private.h: Declare __kernel_standard_f.
17208         * math/w_cosh.c: Remove cruft and optimize a bit.
17209         * math/w_coshf.c: Likewise.
17210         * math/w_coshl.c: Likewise.
17211         * math/w_exp2.c: Likewise.
17212         * math/w_exp2f.c: Likewise.
17213         * math/w_exp2l.c: Likewise.
17214         * math/w_hypot.c: Likewise.
17215         * math/w_hypotf.c: Likewise.
17216         * math/w_hypotl.c: Likewise.
17217         * math/w_lgamma.c: Likewise.
17218         * math/w_lgamma_r.c: Likewise.
17219         * math/w_lgammaf.c: Likewise.
17220         * math/w_lgammaf_r.c: Likewise.
17221         * math/w_lgammal.c: Likewise.
17222         * math/w_lgammal_r.c: Likewise.
17223         * math/w_sinh.c: Likewise.
17224         * math/w_sinhf.c: Likewise.
17225         * math/w_sinhl.c: Likewise.
17226         * math/w_tgamma.c: Likewise.
17227         * math/w_tgammaf.c: Likewise.
17228         * math/w_tgammal.c: Likewise.
17229         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17230         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17231         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17232         Minor optimizations.  Pretty printing.  Remove cruft.
17233         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17234         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17235         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17236         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17237         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17238         * sysdeps/i386/fpu/e_asin.S: Likewise.
17239         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17240         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17241         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17242         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17243         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17244         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17245         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17246         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17247         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17248         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17249         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17250         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17251         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17252         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17253         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17254         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17255         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17256         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17257         * sysdeps/i386/fpu/e_log.S: Likewise.
17258         * sysdeps/i386/fpu/e_log10.S: Likewise.
17259         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17260         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17261         * sysdeps/i386/fpu/e_log2.S: Likewise.
17262         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17263         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17264         * sysdeps/i386/fpu/e_logf.S: Likewise.
17265         * sysdeps/i386/fpu/e_logl.S: Likewise.
17266         * sysdeps/i386/fpu/e_pow.S: Likewise.
17267         * sysdeps/i386/fpu/e_powf.S: Likewise.
17268         * sysdeps/i386/fpu/e_powl.S: Likewise.
17269         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17270         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17271         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17272         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17273         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17274         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17275         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17276         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17277         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17278         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17279         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17280         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17281         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17282         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17283         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17284         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17285         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17286         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17287         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17288         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17289         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17290         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17291         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17292         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17293         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17294         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17295         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17296         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17297         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17298         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17299         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17300         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17301         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17302         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17303         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17304         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17305         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17306         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17307         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17308         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17309         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17310         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17311         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17312         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17313         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17314         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17315         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17316         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17317         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17318         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17319         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17320         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17321         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17322         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17323         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17324         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17325         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17326         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17327         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17328         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17329         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17330         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17331         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17332         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17333         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17334         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17335         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17336         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17337         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17338         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17339         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17340         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17341         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17342         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17343         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17344         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17345         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17346         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17347         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17348         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17349         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17350         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17351         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17352         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17353         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17354         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17355         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17356         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17357         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17358         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17359         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17360         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17361         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17362         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17363         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17364         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17365         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17366         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17367         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17368         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17369         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17370         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17371         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17372         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17373         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17374         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17375         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17376         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17377         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17378         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17379         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17380         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17381         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17382         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17383         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17384         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17385         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17386         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17387         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17388         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17389         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17390         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17391         (__isnanf): Likewise.
17392         (__isinf_ns): Likewise.
17393         (__isinf_nsf): Likewise.
17394         (__finite): Likewise.
17395         (__finitef): Likewise.
17396         (__ieee754_sqrt): Define as macro.
17397         (__ieee754_sqrtf): Define as macro.
17398         (__ieee754_sqrtl): Define as macro.
17399         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17400         inlined copy.
17401         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17402         __FINITE_MATH_ONLY__ consistent.
17403         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17404
17405 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17406
17407         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17408         of rawmemchr.
17409
17410         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17411
17412 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17413
17414         * po/ja.po: Update from translation team.
17415
17416 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17417
17418         * locale/programs/locarchive.c (prepare_address_space): New function.
17419         (create_archive, enlarge_archive, open_archive): Use it.
17420
17421         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17422         inside [SHARED], where it is used.
17423
17424         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17425
17426         * nss/getent.c (netgroup_keys): Remove unused variable.
17427         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17428
17429 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17430
17431         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17432         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17433         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17434         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17435         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17436         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17437         * math/Makefile (libm-calls): Add s_isinf_ns.
17438         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17439         * math/multc3.c: Likewise.
17440         * math/s_casin.c: Likewise.
17441         * math/s_casinf.c: Likewise.
17442         * math/s_casinl.c: Likewise.
17443         * math/s_ccos.c: Likewise.
17444         * math/s_ccosf.c: Likewise.
17445         * math/s_ccosl.c: Likewise.
17446         * math/s_ctan.c: Likewise.
17447         * math/s_ctanf.c: Likewise.
17448         * math/s_ctanh.c: Likewise.
17449         * math/s_ctanhf.c: Likewise.
17450         * math/s_ctanhl.c: Likewise.
17451         * math/s_ctanl.c: Likewise.
17452         * math/w_fmod.c: Likewise.
17453         * math/w_fmodf.c: Likewise.
17454         * math/w_fmodl.c: Likewise.
17455         * math/w_remainder.c: Likewise.
17456         * math/w_remainderf.c: Likewise.
17457         * math/w_remainderl.c: Likewise.
17458         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17459         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17460         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17461         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17462         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17463         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17464         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17465         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17466
17467         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17468         of the number.
17469         * stdio-common/printf_fphex.c: Likewise.
17470         * stdio-common/printf_size.c: Likewise.
17471
17472         * math/e_exp10.c: Include math_private.h using <...> not "...".
17473         * math/e_exp10f.c: Likewise.
17474         * math/e_exp10l.c: Likewise.
17475         * math/e_exp2l.c: Likewise.
17476         * math/e_j0l.c: Likewise.
17477         * math/e_j1l.c: Likewise.
17478         * math/e_jnl.c: Likewise.
17479         * math/e_lgammal_r.c: Likewise.
17480         * math/e_rem_pio2l.c: Likewise.
17481         * math/e_scalb.c: Likewise.
17482         * math/e_scalbf.c: Likewise.
17483         * math/e_scalbl.c: Likewise.
17484         * math/k_cosl.c: Likewise.
17485         * math/k_sinl.c: Likewise.
17486         * math/k_tanl.c: Likewise.
17487         * math/s_cacoshf.c: Likewise.
17488         * math/s_catan.c: Likewise.
17489         * math/s_catanf.c: Likewise.
17490         * math/s_catanh.c: Likewise.
17491         * math/s_catanhf.c: Likewise.
17492         * math/s_catanhl.c: Likewise.
17493         * math/s_catanl.c: Likewise.
17494         * math/s_ccosh.c: Likewise.
17495         * math/s_ccoshf.c: Likewise.
17496         * math/s_ccoshl.c: Likewise.
17497         * math/s_cexp.c: Likewise.
17498         * math/s_cexpf.c: Likewise.
17499         * math/s_cexpl.c: Likewise.
17500         * math/s_clog.c: Likewise.
17501         * math/s_clog10.c: Likewise.
17502         * math/s_clog10f.c: Likewise.
17503         * math/s_clog10l.c: Likewise.
17504         * math/s_clogf.c: Likewise.
17505         * math/s_clogl.c: Likewise.
17506         * math/s_csin.c: Likewise.
17507         * math/s_csinf.c: Likewise.
17508         * math/s_csinh.c: Likewise.
17509         * math/s_csinhf.c: Likewise.
17510         * math/s_csinhl.c: Likewise.
17511         * math/s_csinl.c: Likewise.
17512         * math/s_csqrt.c: Likewise.
17513         * math/s_csqrtf.c: Likewise.
17514         * math/s_csqrtl.c: Likewise.
17515         * math/s_ctan.c: Likewise.
17516         * math/s_ctanf.c: Likewise.
17517         * math/s_ctanh.c: Likewise.
17518         * math/s_ctanhf.c: Likewise.
17519         * math/s_ctanhl.c: Likewise.
17520         * math/s_ctanl.c: Likewise.
17521         * math/s_ldexp.c: Likewise.
17522         * math/s_ldexpf.c: Likewise.
17523         * math/s_ldexpl.c: Likewise.
17524         * math/s_significand.c: Likewise.
17525         * math/s_significandf.c: Likewise.
17526         * math/s_significandl.c: Likewise.
17527         * math/w_acos.c: Likewise.
17528         * math/w_acosf.c: Likewise.
17529         * math/w_acosh.c: Likewise.
17530         * math/w_acoshf.c: Likewise.
17531         * math/w_acoshl.c: Likewise.
17532         * math/w_acosl.c: Likewise.
17533         * math/w_asin.c: Likewise.
17534         * math/w_asinf.c: Likewise.
17535         * math/w_asinl.c: Likewise.
17536         * math/w_atan2.c: Likewise.
17537         * math/w_atan2f.c: Likewise.
17538         * math/w_atan2l.c: Likewise.
17539         * math/w_atanh.c: Likewise.
17540         * math/w_atanhf.c: Likewise.
17541         * math/w_atanhl.c: Likewise.
17542         * math/w_cosh.c: Likewise.
17543         * math/w_coshf.c: Likewise.
17544         * math/w_coshl.c: Likewise.
17545         * math/w_dremf.c: Likewise.
17546         * math/w_exp10.c: Likewise.
17547         * math/w_exp10f.c: Likewise.
17548         * math/w_exp10l.c: Likewise.
17549         * math/w_exp2.c: Likewise.
17550         * math/w_exp2f.c: Likewise.
17551         * math/w_fmod.c: Likewise.
17552         * math/w_fmodf.c: Likewise.
17553         * math/w_fmodl.c: Likewise.
17554         * math/w_hypot.c: Likewise.
17555         * math/w_hypotf.c: Likewise.
17556         * math/w_hypotl.c: Likewise.
17557         * math/w_j0.c: Likewise.
17558         * math/w_j0f.c: Likewise.
17559         * math/w_j0l.c: Likewise.
17560         * math/w_j1.c: Likewise.
17561         * math/w_j1f.c: Likewise.
17562         * math/w_j1l.c: Likewise.
17563         * math/w_jn.c: Likewise.
17564         * math/w_jnf.c: Likewise.
17565         * math/w_jnl.c: Likewise.
17566         * math/w_lgamma.c: Likewise.
17567         * math/w_lgamma_r.c: Likewise.
17568         * math/w_lgammaf.c: Likewise.
17569         * math/w_lgammaf_r.c: Likewise.
17570         * math/w_lgammal.c: Likewise.
17571         * math/w_lgammal_r.c: Likewise.
17572         * math/w_log.c: Likewise.
17573         * math/w_log10.c: Likewise.
17574         * math/w_log10f.c: Likewise.
17575         * math/w_log10l.c: Likewise.
17576         * math/w_log2.c: Likewise.
17577         * math/w_log2f.c: Likewise.
17578         * math/w_log2l.c: Likewise.
17579         * math/w_logf.c: Likewise.
17580         * math/w_logl.c: Likewise.
17581         * math/w_pow.c: Likewise.
17582         * math/w_powf.c: Likewise.
17583         * math/w_powl.c: Likewise.
17584         * math/w_remainder.c: Likewise.
17585         * math/w_remainderf.c: Likewise.
17586         * math/w_remainderl.c: Likewise.
17587         * math/w_scalb.c: Likewise.
17588         * math/w_scalbf.c: Likewise.
17589         * math/w_scalbl.c: Likewise.
17590         * math/w_sinh.c: Likewise.
17591         * math/w_sinhf.c: Likewise.
17592         * math/w_sinhl.c: Likewise.
17593         * math/w_sqrt.c: Likewise.
17594         * math/w_sqrtf.c: Likewise.
17595         * math/w_sqrtl.c: Likewise.
17596         * math/w_tgamma.c: Likewise.
17597         * math/w_tgammaf.c: Likewise.
17598         * math/w_tgammal.c: Likewise.
17599
17600         * po/ja.po: Update from translation team.
17601
17602 2011-09-29  Andreas Jaeger  <aj@suse.de>
17603
17604         [BZ #13179]
17605         * sunrpc/netname.c (netname2host): Fix logic.
17606
17607         [BZ #6779]
17608         [BZ #6783]
17609         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17610         correctly.
17611         * math/w_remainder.c (__remainder): Likewise.
17612         * math/w_remainderf.c (__remainderf): Likewise.
17613         * math/libm-test.inc (remainder_test): Add test cases.
17614
17615 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17616
17617         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17618         sdiv_qrnnd.
17619
17620 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17621
17622         * string/test-memcmp.c: Avoid unncessary #defines.
17623         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17624
17625 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17626
17627         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17628         Use new sse2 version for core i3 - i7 as it's faster
17629         than sse42 version.
17630         (bit_Prefer_PMINUB_for_stringop): New.
17631         * sysdeps/x86_64/rawmemchr.S: Update.
17632         Replace with faster SSE2 version.
17633         * sysdeps/x86_64/memrchr.S: New file.
17634         * sysdeps/x86_64/memchr.S: Update.
17635         Replace with faster SSE2 version.
17636
17637 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17638
17639         * elf/dl-load.c (lose): Add cast to avoid warning.
17640
17641 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17642
17643         * po/ca.po: Update from translation team.
17644
17645         * inet/getnetgrent_r.c: Hook up nscd.
17646         * nscd/Makefile (routines): Add nscd_netgroup.
17647         (nscd-modules): Add netgroupcache.
17648         (CFLAGS-netgroupcache.c): Define.
17649         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17650         (cache_search): Add const to second parameter.
17651         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17652         INNETGR.
17653         (dbs): Add netgrdb entry.
17654         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17655         (verify_persistent_db): Handle netgrdb.
17656         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17657         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17658         GETFDNETGR.
17659         (netgroup_response_header): Define.
17660         (innetgroup_response_header): Define.
17661         (datahead): Add netgroup_response_header and innetgroup_response_header
17662         elements.
17663         * nscd/nscd.conf: Add entries for netgroup cache.
17664         * nscd/nscd.h (dbtype): Add netgrdb.
17665         (_PATH_NSCD_NETGROUP_DB): Define.
17666         (netgroup_iov_disabled): Declare.
17667         (xmalloc, xcalloc, xrealloc): Move declarations here.
17668         (cache_search): Adjust prototype.
17669         Add netgroup-related prototypes.
17670         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17671         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17672         (__nscd_innetgr): Declare.
17673         * nscd/selinux.c (perms): Use access_vector_t as element type and
17674         add netgroup-related initializers.
17675         * nscd/netgroupcache.c: New file.
17676         * nscd/nscd_netgroup.c: New file.
17677         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17678         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17679         For four parameters use innetgr.
17680         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17681         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17682         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17683         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17684
17685         * nscd/connections.c (register_traced_file): Don't register file
17686         for disabled databases.
17687
17688 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17689
17690         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17691
17692         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17693         from tree and freeing node.
17694
17695 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17696
17697         * nss/nsswitch.c (__nss_database_lookup): Handle
17698         nss_parse_service_list out of memory case.
17699
17700 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17701
17702         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17703         out of memory case.
17704
17705 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17706
17707         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17708         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17709         pass it down.
17710         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17711         elf_machine_rela, elf_machine_lazy_rel.
17712         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17713         (ELF_DYNAMIC_DO_REL): Likewise.
17714         (ELF_DYNAMIC_DO_RELA): Likewise.
17715         (ELF_DYNAMIC_RELOCATE): Likewise.
17716         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17717         to ELF_DYNAMIC_DO_REL.
17718         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17719         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17720         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17721         elf_machine_rela.
17722         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17723         skip_ifunc, don't call ifunc function if non-zero.
17724         (elf_machine_rela): Likewise.
17725         (elf_machine_lazy_rel): Likewise.
17726         (elf_machine_lazy_rela): Likewise.
17727         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17728         (elf_machine_lazy_rel): Likewise.
17729         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17730         Likewise.
17731         (elf_machine_lazy_rel): Likewise.
17732         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17733         Likewise.
17734         (elf_machine_lazy_rel): Likewise.
17735         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17736         (elf_machine_lazy_rel): Likewise.
17737         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17738         (elf_machine_lazy_rel): Likewise.
17739         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17740         (elf_machine_lazy_rel): Likewise.
17741         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17742         (elf_machine_lazy_rel): Likewise.
17743         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17744         (elf_machine_lazy_rel): Likewise.
17745         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17746         (elf_machine_lazy_rel): Likewise.
17747
17748 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17749
17750         * nss/nss_files/files-init.c (_nss_files_init): Use static
17751         initialization for all the *_traced_file variables.
17752
17753 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17754
17755         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17756
17757 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17758
17759         [BZ #13226]
17760         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17761
17762 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17763
17764         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17765         Reread the line before reparsing it.
17766
17767 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17768
17769         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17770
17771 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17772             Maxim Kuvyrkov  <maxim@codesourcery.com>
17773             Joseph Myers  <joseph@codesourcery.com>
17774
17775         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17776         if needed for __stack_chk_guard.
17777
17778 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17779
17780         * sysdeps/posix/spawni.c (script_execute): Always define it.
17781         It will be optimized away if unused.
17782         (maybe_script_execute): New function.
17783         (__spawni): Call it.
17784
17785         * Makerules: Don't include tls.make.
17786         (config-tls): Always set to thread.
17787         * tls.make.c: File removed.
17788
17789 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17790
17791         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17792         * config.make.in (CPPFLAGS-config): New substituted variable.
17793
17794 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17795
17796         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17797
17798         [BZ #13192]
17799         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17800         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17801
17802 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17803
17804         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17805         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17806         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17807         (CALL_FAIL): Likewise.
17808         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17809         (CALL_FAIL): Macro removed.
17810         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17811
17812 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17813
17814         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17815         for __FINITE_MATH_ONLY__ == 1.
17816
17817 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17818
17819         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17820         __ieee754_sqrt instead of sqrt.
17821         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17822         __ieee754_sqrtf instead of sqrtf.
17823         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17824         __floorf instead of floorf.
17825         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17826         __floorf, __truncf instead of floorf, truncf.
17827
17828 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17829
17830         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17831
17832         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17833         __extern_always_inline.
17834         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17835         32-bit.
17836
17837 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17838
17839         * elf/rtld.c (dl_main): Also relocate in dependency order when
17840         doing symbol dependency testing.
17841
17842 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17843
17844         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17845         Always define `refsym'.
17846
17847 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17848
17849         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17850         (__FD_ELT): Renamed from __FDELT.
17851         * misc/bits/select2.h (__FD_ELT): Likewise.
17852         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17853         __FD_MASK instead of __FDELT, __FDMASK.
17854         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17855         Likewise.
17856         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17857         Likewise.
17858
17859         * elf/Makefile (gen-ldd): Fix pattern.
17860
17861         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17862         (init_tls): Likewise.
17863
17864 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17865
17866         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17867
17868 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17869
17870         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17871         `struct cmsghdr *' instead of `void *'.
17872         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17873         Likewise.
17874
17875 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17876
17877         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17878         if non-absolute.
17879         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17880         ldd_rewrite_script.
17881
17882 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17883
17884         * configure.in: Remove --with-tls option.
17885         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17886         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17887         out in case it is missing.
17888         * sysdeps/ia64/elf/configure.in: Likewise.
17889         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17890         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17891         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17892         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17893         * sysdeps/sh/elf/configure.in: Likewise.
17894         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17895         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17896         * sysdeps/x86_64/elf/configure.in: Likewise.
17897         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17898         * sysdeps/mach/hurd/tls.h: Likewise.
17899
17900         [BZ #13067]
17901         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17902
17903         [BZ #13090]
17904         * configure.in: Fix use of AC_INIT.
17905
17906         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17907
17908 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17909
17910         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17911         __set_errno.
17912         * malloc/hooks.c: Likewise.
17913
17914         [BZ #11929]
17915         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17916         variables statically.
17917         (narenas): Initialize.
17918         (list_lock): Initialize.
17919         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17920         initializtion of main_arena and list_lock.  Small cleanups.
17921         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17922         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17923         Add initializers to main_arena and mp_.
17924         (malloc_state): Remove pagesize member.  Change all users to use
17925         GLRO(dl_pagesize).
17926
17927         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17928         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17929         is always initialized.
17930
17931         * malloc/malloc.c: Removed unused configurations and dead code.
17932         * malloc/arena.c: Likewise.
17933         * malloc/hooks.c: Likewise.
17934         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17935
17936         * include/tls.h: Removed.  USE___THREAD must always be defined.
17937         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17938         * elf/dl-libc.c: Likewise.
17939         * elf/dl-tsd.c: Likewise.
17940         * include/errno.h: Likewise.
17941         * include/netdb.h: Likewise.
17942         * include/resolv.h: Likewise.
17943         * inet/herrno-loc.c: Likewise.
17944         * inet/herrno.c: Likewise.
17945         * malloc/arena.c: Likewise.
17946         * malloc/hooks.c: Likewise.
17947         * malloc/malloc.c: Likewise.
17948         * resolv/res-state.c: Likewise.
17949         * resolv/res_libc.c: Likewise.
17950         * sysdeps/i386/dl-machine.h: Likewise.
17951         * sysdeps/ia64/dl-machine.h: Likewise.
17952         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17953         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17954         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17955         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17956         * sysdeps/sh/dl-machine.h: Likewise.
17957         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17958         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17959         * sysdeps/unix/i386/sysdep.S: Likewise.
17960         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17961         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17962         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17963         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17964         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17965         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17966         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17967         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17968         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17969         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
17970         * sysdeps/unix/x86_64/sysdep.S: Likewise.
17971         * sysdeps/x86_64/dl-machine.h: Likewise.
17972         * tls.make.c: Likewise.
17973
17974         * configure.in: Remove --with-__thread option.  Make tests for
17975         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
17976         tls_model attribute fail if no support is available.  Remove
17977         USE_IN_LIBIO.
17978         * Makeconfig: Adjust for dropped configure option.  All features are
17979         now mandatory.
17980         * Makerules: Likewise.
17981         * Versions.def: Likewise.
17982         * argp/argp-fmtstream.c: Likewise.
17983         * argp/argp-fmtstream.h: Likewise.
17984         * argp/argp-help.c: Likewise.
17985         * assert/assert.c: Likewise.
17986         * config.h.in: Likewise.
17987         * config.make.in: Likewise.
17988         * configure: Likewise.
17989         * configure.in: Likewise.
17990         * csu/Versions: Likewise.
17991         * csu/init.c: Likewise.
17992         * elf/tst-audit2.c: Likewise.
17993         * elf/tst-tls10.c: Likewise.
17994         * elf/tst-tls10.h: Likewise.
17995         * elf/tst-tls11.c: Likewise.
17996         * elf/tst-tls12.c: Likewise.
17997         * elf/tst-tls14.c: Likewise.
17998         * elf/tst-tlsmod11.c: Likewise.
17999         * elf/tst-tlsmod12.c: Likewise.
18000         * elf/tst-tlsmod13.c: Likewise.
18001         * elf/tst-tlsmod13a.c: Likewise.
18002         * elf/tst-tlsmod14a.c: Likewise.
18003         * elf/tst-tlsmod15b.c: Likewise.
18004         * elf/tst-tlsmod16a.c: Likewise.
18005         * elf/tst-tlsmod16b.c: Likewise.
18006         * elf/tst-tlsmod7.c: Likewise.
18007         * elf/tst-tlsmod8.c: Likewise.
18008         * elf/tst-tlsmod9.c: Likewise.
18009         * gmon/gmon.c: Likewise.
18010         * grp/fgetgrent_r.c: Likewise.
18011         * grp/putgrent.c: Likewise.
18012         * hurd/fopenport.c: Likewise.
18013         * include/libc-symbols.h: Likewise.
18014         * include/tls.h: Likewise.
18015         * intl/gettextP.h: Likewise.
18016         * intl/loadinfo.h: Likewise.
18017         * locale/global-locale.c: Likewise.
18018         * locale/localeinfo.h: Likewise.
18019         * mach/devstream.c: Likewise.
18020         * malloc/arena.c: Likewise.
18021         * malloc/set-freeres.c: Likewise.
18022         * misc/err.c: Likewise.
18023         * misc/getttyent.c: Likewise.
18024         * misc/mntent_r.c: Likewise.
18025         * posix/getopt.c: Likewise.
18026         * posix/wordexp.c: Likewise.
18027         * pwd/fgetpwent_r.c: Likewise.
18028         * resolv/Versions: Likewise.
18029         * resolv/res_hconf.c: Likewise.
18030         * shadow/fgetspent_r.c: Likewise.
18031         * shadow/putspent.c: Likewise.
18032         * stdio-common/printf_fphex.c: Likewise.
18033         * stdio-common/tmpfile.c: Likewise.
18034         * stdlib/abort.c: Likewise.
18035         * stdlib/fmtmsg.c: Likewise.
18036         * sunrpc/auth_unix.c: Likewise.
18037         * sunrpc/clnt_perr.c: Likewise.
18038         * sunrpc/clnt_tcp.c: Likewise.
18039         * sunrpc/clnt_udp.c: Likewise.
18040         * sunrpc/clnt_unix.c: Likewise.
18041         * sunrpc/openchild.c: Likewise.
18042         * sunrpc/svc_simple.c: Likewise.
18043         * sunrpc/svc_tcp.c: Likewise.
18044         * sunrpc/svc_udp.c: Likewise.
18045         * sunrpc/svc_unix.c: Likewise.
18046         * sunrpc/xdr.c: Likewise.
18047         * sunrpc/xdr_array.c: Likewise.
18048         * sunrpc/xdr_rec.c: Likewise.
18049         * sunrpc/xdr_ref.c: Likewise.
18050         * sunrpc/xdr_stdio.c: Likewise.
18051
18052 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18053
18054         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18055
18056 2011-07-03  Andreas Jaeger  <aj@suse.de>
18057
18058         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18059         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18060         regenerate with gen-libm-tests.pl.
18061
18062 2010-05-12  Petr Baudis  <pasky@suse.cz>
18063
18064         [BZ #11589]
18065         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18066         around j0() zero points by switching to j1().
18067         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18068         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18069         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18070         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18071
18072 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18073
18074         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18075         instead of 0.
18076         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18077         instead of 0.                              .
18078         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18079         Patch in part by Pavel Roskin <proski@gnu.org>.
18080
18081         [BZ #13138]
18082         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18083         realloc.
18084         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18085         Free memory block if necessary.
18086
18087         [BZ #12847]
18088         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18089         be NULL.  Don't lock in this case.
18090
18091 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18092
18093         * elf/elf.h (ELFOSABI_GNU): New macro.
18094         (ELFOSABI_LINUX): Define to that.
18095
18096 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18097
18098         * string/strncat.c (strncat): Undef the symbol in case it has been
18099         defined in bits/string.h.
18100
18101 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18102
18103         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18104
18105         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18106         link map.
18107
18108 2011-08-17  Andreas Jaeger  <aj@suse.de>
18109
18110         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18111
18112 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18113             Ian Lance Taylor  <iant@google.com>
18114
18115         * math/libm-test.inc (lround_test): New testcase.
18116         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18117
18118 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18119
18120         * Makefile: Remove support for automatic cvs check-ins.
18121         * Makerules: Likewise.
18122         * config.make.in: Likewise.
18123         * configure.in: Likewise.
18124         * intl/Makefile: Likewise.
18125         * locale/Makefile: Likewise.
18126         * po/Makefile: Likewise.
18127         * posix/Makefile: Likewise.
18128         * sysdeps/gnu/Makefile: Likewise.
18129         * sysdeps/mach/hurd/Makefile: Likewise.
18130         * sysdeps/sparc/sparc32/Makefile: Likewise.
18131
18132         [BZ #13118]
18133         * posix/Makefile (bug-regex32-ENV): Define.
18134         Patch by John Stanley <jpsinthemix@verizon.net>.
18135
18136         * misc/Makefile (headers): Add bits/select2.h.
18137         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18138         * misc/bits/select2.h: New file.
18139         * include/bits/select2.h: New file.
18140         * debug/Makefile (routines): Add fdelt_chk.
18141         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18142         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18143         FD_ISSET.
18144         * debug/fdelt_chk.c: New file.
18145
18146         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18147         * wcsmbs/test-wmemcmp.c: Likewise.
18148         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18149         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18150
18151 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18152
18153         * string/Makefile (strop-tests): Add memcmp.
18154         * string/test-wmemcmp.c: New file.
18155         * string/test-memcmp.c: Add wmemcmp support.
18156
18157 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18158
18159         [BZ #13153]
18160         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18161         2011-07-19 change.
18162
18163         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18164         garbage value in a __mach_port_mod_refs call in the cases of the
18165         task-self and thread-self ports.
18166
18167 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18168
18169         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18170
18171 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18172
18173         * elf/dl-load.c (lose): Check for non-null L.
18174
18175 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18176
18177         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18178
18179         * elf/dl-libc.c (dlerror_run): Pass back error code from
18180         dl_catch_error.
18181
18182         [BZ #13123]
18183         * elf/dl-load.c (lose): Free l_origin if it is valid.
18184
18185         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18186         names.
18187         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18188         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18189         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18190         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18191         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18192         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18193
18194 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18195
18196         * sysdeps/powerpc/fpu/e_hypot.c: New file.
18197         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18198         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18199         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18200         * sysdeps/powerpc/fpu/k_cosf.c: New file.
18201         * sysdeps/powerpc/fpu/k_sinf.c: New file.
18202         * sysdeps/powerpc/fpu/s_cosf.c: New file.
18203         * sysdeps/powerpc/fpu/s_sinf.c: New file.
18204         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18205         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18206
18207 2011-08-15  Alan Modra  <amodra@gmail.com>
18208
18209         [BZ #13092]
18210         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18211         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18212         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
18213         ppc_mcount to static-only-routines.
18214         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18215         __mcount_internal.
18216         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18217         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18218
18219 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18220
18221         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18222         for finite and infinity parameters.
18223
18224 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18225
18226         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18227         and add nop instructions for throughput optimization.
18228         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18229
18230 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18231
18232         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18233         aligned copy for power7 with vector-scalar instructions.
18234         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18235
18236 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18237
18238         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18239         AVX check.
18240
18241 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18242
18243         [BZ #13144]
18244         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18245         last change.
18246
18247 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18248
18249         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18250         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18251         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18252         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18253         clock_gettime.
18254
18255 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18256
18257         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18258         Forgot to demangle the pointer.
18259
18260         * sysdeps/i386/sysdep.h: Define atom_text_section.
18261         * sysdeps/x86_64/sysdep.h: Likewise.
18262         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18263         section with atom_text_section.
18264         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18265         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18266         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18267         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18268         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18269
18270         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18271         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18272         already be defined.  Change to take two parameters and don't assign
18273         result to variable.  Adjust all users.
18274         Define INTERNAL_GETTIME if not already defined.
18275         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18276         call.
18277         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18278         HAVE_CLOCK_GETTIME_VSYSCALL.
18279         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18280
18281         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18282         gettimeofday vsyscall, just use time.
18283
18284 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18285
18286         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18287         <errno.h>.
18288
18289 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18290
18291         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18292         syscall on x86-64.
18293         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18294         syscall.
18295         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18296         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18297         syscall if possible.
18298
18299 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18300
18301         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18302         e_ident.  Don't pass to find_mapsXX.
18303         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18304
18305 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18306
18307         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18308         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18309         * sysdeps/x86_64/multiarch/strchr.S: Update.
18310         Check bit_slow_BSF bit.
18311         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18312         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18313         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18314
18315 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18316
18317         [BZ #13134]
18318         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18319         before glibc 2.15.
18320         (tryshell): Define.
18321         (__spawni): Change last parameter to be flag.  Test
18322         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18323         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18324         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18325         * posix/spawni.c: Likewise.
18326         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18327         * posix/spawnp.c: Likewise.  Change normal version to use
18328         SPAWN_XFLAGS_USE_PATH.
18329         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18330         SPAWN_XFLAGS_TRY_SHELL.
18331
18332         [BZ #13150]
18333         * posix/glob.h: Remove gcc 1.x support.
18334
18335         [BZ #13068]
18336         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18337
18338 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18339
18340         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18341         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18342         strrchr-sse2-bsf
18343         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18344         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18345         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18346         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18347         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18348         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18349
18350 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18351
18352         * sysdeps/x86_64/wcscmp.S: New file.
18353
18354         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18355         wcscmp-c wcscmp-sse2
18356         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18357         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18358         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18359         * wcsmbs/wcscmp.c: Allow renaming.
18360
18361 2011-09-05  David S. Miller  <davem@davemloft.net>
18362
18363         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18364         stack slot, rather than the struct return pointer slot.
18365         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18366         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18367         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18368         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18369
18370 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18371
18372         * po/ja.po: Update from translation team.
18373
18374         [BZ #13144]
18375         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18376         kernel in 64-bit binaries.
18377
18378 2011-09-01  David S. Miller  <davem@davemloft.net>
18379
18380         * elf/elf.h (HWCAP_SPARC_*): Move to..
18381         * sysdeps/sparc/sysdep.h: this new file and add new values.
18382         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18383         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18384         _DL_HWCAP_COUNT to 24.
18385         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18386         entries.
18387         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18388         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18389         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18390         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18391         instead of magic constants.
18392         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18393
18394 2011-08-31  David S. Miller  <davem@davemloft.net>
18395
18396         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18397         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18398         Reimplement to do errno handling inline.
18399         (SYSCALL_ERROR_HANDLER): New macro.
18400         (__SYSCALL_STRING): Do not do errno handling in asm.
18401         (__CLONE_SYSCALL_STRING): Delete.
18402         (__INTERNAL_SYSCALL_STRING): Delete.
18403         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18404         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18405         (PSEUDO): Reimplement to do errno handling inline.
18406         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18407         (SYSCALL_ERROR_HANDLER): New macro.
18408         (__SYSCALL_STRING): Do not do errno handling in asm.
18409         (__CLONE_SYSCALL_STRING): Delete.
18410         (__INTERNAL_SYSCALL_STRING): Delete.
18411         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18412         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18413         i386.
18414         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18415         (inline_syscall*): Add 'err' argument.
18416         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18417         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18418         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18419         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18420
18421         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18422         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18423
18424 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18425
18426         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18427
18428 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18429
18430         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18431         directive.
18432
18433 2011-08-24  David S. Miller  <davem@davemloft.net>
18434
18435         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18436
18437 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18438
18439         * elf/Makefile: Add rules to build and run unload8 test.
18440         * elf/unload8.c: New file.
18441         * elf/unload8mod1.c: New file.
18442         * elf/unload8mod1x.c: New file.
18443         * elf/unload8mod2.c: New file.
18444         * elf/unload8mod3.c: New file.
18445
18446         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18447         it wasn't used.
18448
18449 2011-08-23  David S. Miller  <davem@davemloft.net>
18450
18451         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18452         subtract stack bias.
18453         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18454         %sp not %fp in calculations.
18455         (_JMPBUF_UNWINDS_ADJ): Likewise.
18456
18457         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18458         (aio_suspend): Call it to force an exception region around the
18459         AIO_MISC_WAIT() invocation.
18460
18461 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18462
18463         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18464         backslash.
18465
18466 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18467
18468         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18469         protection macro.
18470         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18471         and <dl-machine.h>.
18472         (Elf64_FuncDesc): Remove.
18473
18474 2011-08-22  David S. Miller  <davem@davemloft.net>
18475
18476         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18477         sigaltstack check, add missing cfi directives.
18478         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18479         missing cfi directives, and sigaltstack handling.
18480
18481 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18482
18483         [BZ #11724]
18484         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18485         object is seen twice.
18486         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18487
18488         * elf/Makefile (distribute): Add tst-initorder2.c.
18489         (tests): Add tst-initorder2.
18490         (modules-names): Add tst-initorder2a tst-initorder2b
18491         tst-initorder2c tst-initorder2d.  Add rules to build them.
18492         ($(objpfx)tst-initorder2.out): New rule.
18493         * elf/tst-initorder2.c: New file.
18494         * elf/tst-initorder2.exp: New file.
18495
18496 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18497
18498         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18499
18500         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18501         dependencies back to end of function.
18502
18503         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18504         $(elfobjdir)/ld.so.
18505
18506 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18507
18508         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18509         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18510         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18511         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18512         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18513         of __vdso_gettimeofday.
18514         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18515         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18516         attribute_hidden.
18517         (_libc_vdso_platform_setup): Remove initialization of
18518         __vdso_gettimeofday and __vdso_time.
18519
18520 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18521
18522         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18523         and fgetc_unlocked.
18524         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18525         getc_unlocked.
18526
18527         * elf/dl-open.c (add_to_global): Report additions to the global scope
18528         for LD_DEBUG=scopes.
18529         (dl_open_worker): Also print scope of newly loaded dependencies.
18530         (_dl_show_scope): Indicate if there is no scope.
18531
18532         [BZ #13114]
18533         * stdio-common/Makefile (tests): Add bug24.
18534         * stdio-common/bug24.c: New file.
18535
18536 2011-08-19  Andreas Jaeger  <aj@suse.de>
18537
18538         [BZ #13114]
18539         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18540         non-existant file when using close-on-exec mode.
18541
18542 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18543
18544         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18545         the very first instruction.
18546
18547         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18548         the CFI state in the end.
18549         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18550         inclusion of dl-trampoline.h.
18551         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18552
18553 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18554
18555         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18556         expectations for long double.
18557
18558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18559         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18560
18561 2011-08-14  David S. Miller  <davem@davemloft.net>
18562
18563         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18564         artificual limit depends upon the system page size.
18565
18566 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18567
18568         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18569         * resolv/Makefile: Define CFLAGS-libresolv.
18570
18571 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18572
18573         * nss/makedb.c (compute_tables): Make variables used in nested
18574         function static.
18575
18576 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18577
18578         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18579         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18580         if buffer was too small.
18581
18582         * elf/pldd.c (main): Attach to all threads in the process.
18583         Rewrite /proc handling to use *at functions.
18584
18585 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18586
18587         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18588         specifies first scope to show.
18589         (dl_open_worker): Update callers.  Move printing scope of new
18590         object to before the relocation.
18591         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18592         * sysdeps/generic/ldsodefs.h: Update declaration.
18593
18594         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18595         string for the scope number.
18596
18597 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18598
18599         * nscd/servicescache.c (cache_addserv): Make sure written is always
18600         initialized.
18601
18602 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18603
18604         * sysdeps/i386/i486/bits/atomic.h
18605         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18606         statement expression, so as to suppress "set but not used" warning.
18607         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18608
18609         * string/strncat.c (STRNCAT): Use prototype definition.
18610
18611         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18612         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18613         -Iprograms here.
18614         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18615         (localedef-modules): Add localedef.
18616         (locale-modules): Add locale.
18617
18618         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18619         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18620         to avoid a warning.
18621
18622 2011-08-14  David S. Miller  <davem@davemloft.net>
18623
18624         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18625         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18626
18627 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18628
18629         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18630         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18631         * elf/rtld.c (dl_main): Set l_name of vDSO.
18632         Call _dl_show_scope when DL_DEBUG_SCOPES.
18633         (process_dl_debug): Recognize scopes flag and also set it for all.
18634         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18635         Declare _dl_show_scope.
18636
18637         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18638         (do_dlopen): Pass caller_dlopen to dl_open.
18639         (__libc_dlopen_mode): Initialize caller_dlopen.
18640
18641         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18642         of libc.  Make tolower call locale-independent.  Optimize a bit by
18643         using isdigit instead of isalnum.
18644         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18645
18646 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18647
18648         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18649         was a dependency or dynamically loaded.
18650
18651 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18652
18653         * intl/l10nflist.c: Allow architecture-specific pop function.
18654         * sysdeps/x86_64/l10nflist.c: New file.
18655
18656         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18657         classification.
18658
18659 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18660
18661         * include/dirent.h: Add libc_hidden_proto for scandirat and
18662         scandirat64.  Don't declare __scandirat64.
18663         * dirent/scandirat.c: Add libc_hidden_def.
18664         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18665         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18666
18667 2011-08-10  David S. Miller  <davem@davemloft.net>
18668
18669         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18670         enum.
18671         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18672         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18673         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18674
18675 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18676
18677         * Versions.def [libc]: Add GLIBC_2.15.
18678         * dirent/Makefile (routines): Add scandirat and scandirat64.
18679         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18680         GLIBC_2.15.
18681         * dirent/dirent.h: Declare scandirat and scandirat64.
18682         * dirent/scandirat.c: New file.
18683         * dirent/scandirat64.c: New file.
18684         * sysdeps/wordsize-64/scandirat.c: New file.
18685         * sysdeps/wordsize-64/scandirat64.c: New file.
18686         * dirent/opendir.c: Define opendirat.
18687         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18688         using scandirat.
18689         * dirent/scandir64.c: Adjust for scandir.c change.
18690         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18691         __scandirat64, and __scandir_cancel_handler.
18692         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18693         additional parameter and use openat instead of open (outside of ld.so).
18694         Add new __opendir as wrapper around __opendirat.
18695         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18696         here without requiring old scandirat implementation.
18697
18698 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18699
18700         * dirent/scandir.c (cancel_handler): Renamed to
18701         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18702         defined.  Adjust users.
18703         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18704         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18705
18706 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18707
18708         * string/test-string.h (IMPL): Use __STRING to expand name and then
18709         stringify it.
18710
18711         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18712         of cleanups.
18713
18714 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18715
18716         * string/Makefile: Update.
18717         (strop-tests): Append strncat.
18718         * string/test-wcscmp.c: New file.
18719         New comprehensive test for wcscmp.
18720         * string/test-strcmp.c: Update.
18721         (WIDE): New define.
18722
18723 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18724
18725         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18726         line.
18727
18728 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18729
18730         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18731         encoding to ACE if AI_IDN.
18732
18733 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18734
18735         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18736         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18737
18738 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18739
18740         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18741         Fix overflow bug in strncat.
18742         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18743
18744         * string/test-strncat.c: Update.
18745         Add new tests for checking overflow bugs.
18746
18747 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18748
18749         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18750         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18751         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18752         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18753         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18754         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18755         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18756         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18757         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18758
18759         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18760         (USE_AS_STRCAT): Define.
18761         Add strcat and strncat support.
18762         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18763
18764 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18765
18766         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18767         __n bigger than INT_MAX+1.
18768         (__strncmp_g): Likewise.
18769
18770 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18771
18772         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18773         * libio/stido.h: Likewise.
18774
18775         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18776         (AF_NFC): Define.
18777         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18778         (AF_NFC): Define.
18779
18780         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18781         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18782         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18783         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18784         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18785
18786         [BZ #13021]
18787         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18788         installed.
18789
18790         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18791         typo.
18792         (_dl_x86_64_save_sse): Likewise.
18793
18794 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18795
18796         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18797         OSXSAVE.
18798         (_dl_x86_64_save_sse): Likewise.
18799
18800         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18801
18802         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18803
18804 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18805
18806         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18807         change.
18808         (_dl_x86_64_save_sse): Use correct AVX check.
18809
18810 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18811
18812         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18813         bug in strncpy/strncat.
18814         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18815
18816 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18817
18818         * string/tester.c (test_strcat): Add tests for different alignments
18819         of source and destination.
18820         (test_strncat): Likewise.
18821
18822 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18823
18824         [BZ #12852]
18825         * posix/glob.c (glob): Check passed in values before using them in
18826         expressions to avoid some overflows.
18827         (glob_in_dir): Likewise.
18828
18829         [BZ #13007]
18830         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18831         check for AVX enablement so that we don't crash with old kernels and
18832         new hardware.
18833         * elf/tst-audit4.c: Add same checks here.
18834         * elf/tst-audit6.c: Likewise.
18835
18836         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18837
18838 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18839
18840         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18841
18842 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18843
18844         * po/cs.po: Update from translation team.
18845         * po/bg.po: Likewise.
18846
18847 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18848
18849         * misc/sys/cdefs.h: Add support for const attribute.
18850         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18851         to gnu_dev_{major,minor,makedev} functions.
18852
18853 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18854
18855         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18856
18857 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18858
18859         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18860         strlen results.
18861
18862 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18863
18864         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18865         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18866         register in order to avoid conflicts with the soft frame pointer
18867         being held in r11 when necessary.
18868         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18869         (INTERNAL_VSYSCALL_NCS): Likewise.
18870
18871 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18872
18873         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18874         * elf/dl-fini.c (_dl_fini): Adjust caller.
18875         * elf/dl-close.c (_dl_close_worker): Likewise.
18876         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18877
18878 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18879
18880         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18881         "aux_cache->nlibs < 0".
18882
18883         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18884         in the reload-count case.
18885
18886 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18887
18888         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18889         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18890         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18891         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18892         * sysdeps/x86_64/multiarch/strcat.S: New file.
18893         * sysdeps/x86_64/multiarch/strncat.S: New file.
18894         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18895         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18896         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18897         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18898         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18899         (USE_AS_STRCAT): Define.
18900         Add strcat and strncat support.
18901         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18902         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18903         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18904         * string/strncat.c: Update.
18905         (USE_AS_STRNCAT): Define.
18906         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18907         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18908         and i7.
18909         * sysdeps/x86_64/multiarch/init-arch.h
18910         (bit_Prefer_PMINUB_for_stringop): New.
18911         (index_Prefer_PMINUB_for_stringop): Likewise.
18912         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18913         bit_Prefer_PMINUB_for_stringop.
18914
18915 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18916
18917         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18918         buffer64.
18919         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18920         of casting of buffer.
18921         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18922         buffer32 and buffer64.
18923         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18924         writes instead of casting of buffer.
18925         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18926         buffer32.
18927         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18928         casting of buffer.
18929
18930 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18931
18932         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18933
18934 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18935
18936         * nscd/nscd.c (termination_handler): Don't do anything for a database
18937         if it has not yet been initialized.
18938
18939 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18940
18941         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18942
18943 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18944
18945         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18946
18947 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18948
18949         * po/nl.po: Update from translation team.
18950         * po/sv.po: Likewise.
18951
18952 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18953
18954         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18955         now disallowed by GCC.
18956
18957         * configure.in (use-default-link): Default to yes if a test -shared
18958         link meets our qualifications.
18959         * configure: Regenerated.
18960
18961         * config.make.in (output-format): New variable.
18962         * configure.in: Check for ld --print-output-format support.
18963         * configure: Regenerated.
18964         * Makerules ($(common-objpfx)format.lds)
18965         [$(output-format) != unknown]: Just use $(output-format),
18966         instead of the linker-script munging.
18967
18968 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18969
18970         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
18971         of $(common-objpfx)shlib.lds.
18972         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
18973
18974         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
18975         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
18976
18977         * configure.in (-z relro check): Adjust test code to add a large
18978         writable data section after it.
18979         * configure: Regenerated.
18980
18981 2011-07-11  Roland McGrath  <roland@hack.frob.com>
18982
18983         * configure.in (-z relro check): Fix test code to make the variable
18984         truly const.
18985         * configure: Regenerated.
18986
18987 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
18988
18989         * nscd/nscd.h (struct traced_file): Define.
18990         (struct database_dyn): Remove inotify_descr, reset_res, and filename
18991         elements.  Add traced_files.
18992         (inotify_fd): Declare.
18993         (register_traced_file): Declare.
18994         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
18995         (inotify_fd): Export.
18996         (resolv_conf_descr): Remove.
18997         (nscd_init): Move inotify descriptor creation to main.
18998         Don't register files for notification here.
18999         (register_traced_file): New function.
19000         (invalidate_cache): Don't use reset_res to determine whether to call
19001         res_init, go through the list of registered files.
19002         (main_loop_poll): The inotify descriptors are now stored in the
19003         structures for the traced files.
19004         (main_loop_epoll): Likewise
19005         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
19006         to __nss_disable_nscd.
19007         * nscd/cache.c (prune_cache): There is no single inotify descriptor
19008         for a database anymore.  Check the records for all the registered
19009         files instead.
19010         * nss/Makefile (libnss_files-routines): Add files-init.
19011         (libnss_db-routines): Add db-init.
19012         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19013         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19014         * nss/nss_db/db-init.c: New file.
19015         * nss/nss_files/files-init.c: New file.
19016         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19017         __nss_lookup_function.
19018         (__nss_lookup_function): Call nss_load_library.
19019         (nss_load_all_libraries): New function.
19020         (__nss_disable_nscd): Take parameter with callback function for files
19021         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19022         used for the cached services.
19023         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19024         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19025         options for features to all the files in nscd.
19026
19027         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19028
19029 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19030
19031         * csu/elf-init.c (__libc_csu_init): Comment typo.
19032
19033 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19034
19035         * po/pl.po: Update from translation team.
19036         * po/ja.po: Likewise.
19037         * po/ru.po: Likewise.
19038         * po/ko.po: Likewise.
19039         * po/fr.po: Likewise.
19040
19041 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19042
19043         * configure.in (.ctors/.dtors header and trailer check):
19044         Use an empirical test on a built program.
19045         * configure: Regenerated.
19046
19047         * configure.in (-z relro check): Use an empirical test on a built DSO.
19048         Detect, but do not require, on ia64.
19049         * configure: Regenerated.
19050
19051         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19052         Update tests that use readelf to use $READELF instead.
19053         * configure: Regenerated.
19054
19055 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19056
19057         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19058         if the result is not used.
19059
19060 2011-07-05  Andreas Jaeger  <aj@suse.de>
19061
19062         [BZ#9696]
19063         * stdlib/tst-strtod.c: Add testcase.
19064
19065 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19066
19067         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19068         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19069         The latter has a higher limit.  Take additional parameter to pass to
19070         the new function.
19071         (__pathconf): Pass file to __statfs_link_max.
19072         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19073         __statfs_link_max.
19074         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19075         __statfs_link_max.
19076
19077         [BZ #12868]
19078         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19079         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19080         Handle Lustre.
19081         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19082         (__statfs_filesize_max): Likewise.
19083         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19084
19085 2011-07-05  Andreas Jaeger  <aj@suse.de>
19086
19087         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19088
19089 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19090
19091         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19092         `status' variable.
19093         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19094         Likewise.
19095
19096 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19097
19098         * Makefile (strop-tests): Add strncat.
19099         * string/test-strncat.c: New file.
19100
19101 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19102
19103         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19104
19105 2011-06-21  Andreas Jaeger  <aj@suse.de>
19106
19107         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19108         Copy rule from iconvdata/Makefile.
19109
19110 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19111
19112         [BZ #12922]
19113         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19114         but no long options are defined, just return 'W'.
19115
19116 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19117
19118         [BZ #9696]
19119         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19120
19121 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19122
19123         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19124         netgroups to read.
19125         (innetgr): Likewise.
19126
19127 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19128
19129         * config.make.in (install_root): Default to $(DESTDIR).
19130
19131 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19132
19133         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19134
19135 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19136
19137         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19138
19139         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19140         containing directory rather than embedding absolute directory names.
19141
19142         * scripts/check-local-headers.sh: Rewritten using awk.
19143         Match by word, not by line.  Print error messages for matches.
19144         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19145
19146         * Makerules [shlib-lds-flags empty]:
19147         ($(common-objpfx)libc_pic.opts): New target.
19148         ($(common-objpfx)libc_pic.os.clean): New target.
19149         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19150
19151         * config.make.in (OBJCOPY): New variable.
19152         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19153         * configure: Regenerated.
19154
19155         * config.make.in (use-default-link): New variable.
19156         * configure.in (use_default_link): Grok --with-default-link to set it.
19157         * configure: Regenerated.
19158         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19159         (shlib-lds, shlib-lds-flags): Define to empty.
19160
19161         * Makerules (shlib-lds): New variable.
19162         (shlib-lds-flags): New variable.
19163         (build-shlib, build-moduile, build-module-asneeded): Use it.
19164         ($(common-objpfx)libc.so): Use $(shlib-lds).
19165         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19166         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19167
19168         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19169         DT_FLAGS/DT_FLAGS_1 with zero flags.
19170
19171         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19172         linker script munging.
19173
19174 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19175
19176         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19177         as 128-bit value.
19178         * crypt/sha512.c (sha512_process_block): Perform total addition using
19179         128-bit if possible.
19180         (__sha512_finish_ctx): Likewise.
19181         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19182         as 64-bit value.
19183         * crypt/sha256.c (SWAP64): Define.
19184         (sha256_process_block): Perform total addition using 64-bit if
19185         possible.
19186         (__sha256_finish_ctx): Likewise.
19187
19188 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
19189
19190         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
19191         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19192         * nscd/hstcache.c (cache_addhst): Likewise.
19193         * nscd/grpcache.c (cache_addgr): Likewise.
19194         * nscd/aicache.c (addhstaiX): Likewise
19195         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19196
19197 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
19198
19199         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19200         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19201         * nscd/hstcache.c (cache_addhst): Likewise.
19202         * nscd/grpcache.c (cache_addgr): Likewise.
19203         * nscd/aicache.c (addhstaiX): Likewise
19204
19205 2011-07-01  Andreas Schwab  <schwab@redhat.com>
19206
19207         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19208         domain only when needed.
19209
19210 2011-06-30  Andreas Schwab  <schwab@redhat.com>
19211
19212         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19213         is always restored.
19214
19215 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19216
19217         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19218         are re-adding the entry.
19219         * nscd/servicescache.c (cache_addserv): Likewise.
19220
19221 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19222
19223         * sysdeps/generic/dl-irel.h: fix protection against multiple
19224         inclusions.
19225         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19226
19227 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19228
19229         [BZ #12935]
19230         * malloc/memusage.sh: Fix quoting in message.
19231         * debug/xtrace.sh: Likewise.
19232
19233         * configure.in: Remove support for --experimental-malloc option, make
19234         it the default.
19235         * config.make.in: Likewise.
19236         * malloc/Makefile: Likewise.
19237
19238 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19239
19240         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19241         two-byte characters.
19242
19243 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19244
19245         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19246         AC_CACHE_CHECK invocation.
19247         * configure: Regenerated.
19248
19249         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19250
19251 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19252
19253         [BZ #12350]
19254         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19255         bit from old_res_options.
19256
19257         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19258
19259         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19260         value type for setfct.
19261
19262 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19263
19264         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19265         __gettimeofday instead of gettimeofday.
19266
19267 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19268
19269         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19270
19271 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19272
19273         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19274
19275         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19276         info.
19277
19278 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19279
19280         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19281         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19282         strcpy-sse2-unaligned strncpy-sse2-unaligned
19283         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19284         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19285         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19286         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19287         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19288         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19289         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19290         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19291         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19292         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19293         (STRCPY): Support SSE2 and SSSE3 versions.
19294
19295 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19296
19297         [BZ #12874]
19298         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19299         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19300         kernels which artificially limit size of requests.
19301
19302 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19303
19304         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19305         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19306         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19307         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19308         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19309         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19310         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19311         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19312         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19313         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19314         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19315         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19316         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19317         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19318         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19319         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19320         Enable unaligned load optimization for Intel Core i3, i5 and i7
19321         processors.
19322         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19323         Define.
19324         (index_Fast_Unaligned_Load): Define.
19325         (HAS_FAST_UNALIGNED_LOAD): Define.
19326
19327 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19328
19329         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19330
19331 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19332
19333         [BZ #12907]
19334         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19335         until it is clear that the information is realy needed.
19336         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19337
19338 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19339
19340         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19341
19342 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19343
19344         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19345         /sys/devices/system/cpu/online if it is usable.
19346
19347         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19348         reading the information from the /proc filesystem to once a second.
19349
19350 2011-06-21  Andreas Jaeger  <aj@suse.de>
19351
19352         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19353         NULL after inclusion of kernel headers.
19354
19355 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19356
19357         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19358         calls to internal_setent.
19359
19360         [BZ #12885]
19361         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19362         addresses using gethostbyname4_r ignore IPv4 addresses.
19363
19364         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19365         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19366
19367         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19368
19369 2011-06-20  David S. Miller  <davem@davemloft.net>
19370
19371         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19372         inclusions.
19373         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19374
19375         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19376         (elf_irel): Use it.
19377         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19378         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19379         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19380         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19381         * sysdeps/x86_64/dl-irel.h: Likewise.
19382
19383         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19384         * elf/dl-sym.c: Likewise.
19385
19386 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19387
19388         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19389         need to dereference resplen2.
19390
19391 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19392
19393         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19394
19395 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19396
19397         * Makeconfig: Define vardbdir and inst_vardbdir.
19398         * nss/Makefile: Add rules to install db-Makefile.
19399
19400         * nss/nss_db/db-XXX.c: Cleanup.
19401
19402         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19403         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19404         GLIBC_PRIVATE.
19405         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19406         * nss/makedb.c: Implement -g option to specify that value strings
19407         are generated and should not be added to table iterated over for
19408         get*ent calls.
19409         * nss/nss_db/db-initgroups.c: New file.
19410
19411         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19412         interface.
19413
19414         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19415         (internal_getgrouplist): Adjust to name change.
19416         Update use_initgroups_entry if this is not the first call.
19417         * nss/databases.def: Add initgroups entry.
19418
19419         * nss/makedb.c (compute_tables): Check result of multiple hash table
19420         sizes to minimize maximum chain length.
19421
19422 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19423
19424         * Versions.def: Add entry for libnss_db.
19425         * shlib-versions: Likewise.
19426         * nss/Makefile: Add rules to build libnss_db.
19427         * nss/Versions: Add libnss_db information.  Organize libnss_files
19428         entries better.
19429         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19430         makedb progra.  Some minor improvements to generate smaller files.
19431         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19432         here from...
19433         * nss/makedb.c: ...here.
19434         Improve database format to be smaller and require less memory at
19435         runtime.
19436         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19437         db anymore.
19438         * nss/nss_db/db-netgrp.c: Likewise.
19439         * nss/nss_db/db-open.c: Likewise.
19440         * nss/nss_files/flies-XXX.x: Adjust comments.
19441         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19442         * nss/nss_files/files-grp.c: Likewise.
19443         * nss/nss_files/files-hosts.c: Likewise.
19444         * nss/nss_files/files-network.c: Likewise.
19445         * nss/nss_files/files-proto.c: Likewise.
19446         * nss/nss_files/files-pwd.c: Likewise.
19447         * nss/nss_files/files-rpc.c: Likewise.
19448         * nss/nss_files/files-service.c: Likewise.
19449         * nss/nss_files/files-sgrp.c: Likewise.
19450         * nss/nss_files/files-spwd.c: Likewise.
19451         * nss/nss_db/db-alias.c: Removed.
19452         * nss/nss_db/dummy-db.h: Removed.
19453
19454 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19455
19456         * nss/makedb.c: Rewritten to not use database library.
19457         * nss/Makefile: Update to build new makedb program.
19458
19459 2011-06-14  Andreas Jaeger  <aj@suse.de>
19460
19461         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19462         memset declaration.
19463
19464 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19465
19466         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19467         tmpbuf.
19468
19469 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19470
19471         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19472         * elf/Makefile ($(objpfx)ld.so): Likewise.
19473
19474         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19475         Don't list ld.so twice in dependencies.
19476
19477         * posix/bug-regex31.c: Include <stdlib.h>.
19478
19479         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19480
19481         * nis/nss_compat/compat-spwd.c
19482         (getspent_next_nss_netgr): Remove unused variable.
19483         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19484
19485         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19486         nonmembers" output to use the right array.
19487
19488         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19489
19490         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19491
19492         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19493         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19494         * catgets/gencat.c (read_input_file): Likewise.
19495         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19496
19497         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19498         variable definition inside #if's controlling its use.
19499
19500         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19501
19502         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19503
19504         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19505
19506         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19507         unreachable code.
19508
19509         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19510
19511         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19512         * configure: Regenerated.
19513
19514         * Makerules: Revert last change.
19515         * elf/Makefile: Likewise.
19516
19517 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19518
19519         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19520         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19521         (reloc-link): Likewise.
19522
19523 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19524
19525         * elf/Makefile: Add rules to build pldd.
19526         * elf/pldd.c: New file.
19527         * elf/pldd-xx.c: New file.
19528
19529 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19530
19531         * version.h: Update for 2.15 development version.
19532
19533 2011-06-07  David S. Miller  <davem@davemloft.net>
19534
19535         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19536         ifuncs.
19537         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19538         elf_machine_lazy_rel): Likewise.
19539         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19540         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19541         elf_machine_lazy_rel): Likewise.
19542         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19543         dl_hwcap via passed in argument.
19544         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19545         Likewise.
19546
19547 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19548
19549         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19550
19551 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19552
19553         [BZ #12849]
19554         * manual/fdl-1.1.texi: New file, verbatim from:
19555         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19556         * manual/lgpl-2.1.texi: New file, verbatim from:
19557         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19558         * manual/Makefile (licenses): New variable, list those new file names.
19559         (texis): Use it.
19560         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19561
19562         * manual/fdl.texi: File removed.
19563         * manual/lesser.texi: File removed.
19564         * manual/libc.texinfo (Copying, Documentation License):
19565         Use new @include file names, put @appendix directive before @include.
19566
19567 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19568
19569         [BZ #12841]
19570         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19571         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19572         (mq_open): Add __NTH.
19573
19574 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19575
19576         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19577         Assume Intel Core i3/i5/i7 processor if AVX is available.
19578
19579 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19580
19581         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19582         typo.
19583
19584 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19585
19586         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19587         memory.  Use alloca_account.  Fix memory leak when retrying.
19588
19589 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19590
19591         * version.h (RELEASE): Bump for 2.14 release.
19592         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19593
19594         * config.make.in (RANLIB): Remove entry.
19595
19596 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19597
19598         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19599         (libc.pot): Work around missing support for .ksh extension in xgettext.
19600
19601         [BZ #12684]
19602         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19603         if both request failed.
19604         (send_dg): In case of server errors clear resplen or *resplen2.
19605
19606         [BZ #12454]
19607         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19608         when there are multiple maps.
19609         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19610         (_dl_fini): Remove test here.
19611
19612         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19613
19614 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19615
19616         [BZ #12350]
19617         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19618         bit from old_res_options.
19619         (gaih_inet): Likewise.
19620
19621         [BZ #11099]
19622         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19623         as signed.
19624
19625         * resolv/res_init.c (res_setoptions): Make the code more compact.
19626
19627         [BZ #11558]
19628         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19629         set RES_USEVC.
19630
19631         [BZ #11634]
19632         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19633
19634         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19635
19636         [BZ #11781]
19637         * malloc/malloc.h: Declare malloc hook variables as volatile.
19638
19639         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19640         in last patch.
19641
19642         [BZ #11799]
19643         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19644         raise in the comment.
19645         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19646         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19647         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19648
19649 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19650
19651         [BZ #12811]
19652         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19653         grow the buffers more if it already has to be sufficient.
19654         (build_wcs_upper_buffer): Likewise.
19655         * posix/regexec.c (check_matching): Likewise.
19656         (clean_state_log_if_needed): Likewise.
19657         (extend_buffers): Don't enlarge buffers beyond size of the input
19658         buffer.
19659         Patches mostly by Emil Wojak <emil@wojak.eu>.
19660         * posix/bug-regex32.c: New file.
19661         * posix/Makefile (tests): Add bug-regex32.
19662
19663         * locale/findlocale.c (_nl_find_locale): Return right away if
19664         _nl_explode_name failed.
19665         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19666
19667         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19668
19669         * debug/xtrace.sh: Unify messages.
19670         * malloc/memusage.sh: Likewise.
19671
19672         [BZ #12813]
19673         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19674         time symbol from vDSO.  Substitute with vsyscall if not available.
19675         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19676         __vdso_time.
19677
19678         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19679         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19680         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19681         Add sendmmsg and internal_sendmmsg.
19682         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19683         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19684         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19685
19686         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19687         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19688         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19689
19690 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19691
19692         [BZ #12813]
19693         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19694         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19695         available.
19696         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19697         __vdso_getcpu.
19698
19699         [BZ #12814]
19700         * iconvdata/Makefile (tests): Add bug-iconv9.
19701         * iconvdata/bug-iconv9.c: New file.
19702
19703 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19704
19705         [BZ #12814]
19706         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19707
19708 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19709
19710         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19711         (struct user_regs_struct): Change intcs field back to cs.
19712
19713 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19714
19715         * po/ja.po: Update from translation team.
19716
19717 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19718
19719         [BZ #12795]
19720         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19721         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19722
19723 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19724
19725         * stdlib/longlong.h: Update from GCC.
19726
19727 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19728
19729         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19730         parameter name.
19731         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19732         Add parameter name.
19733         (__sysconf): Pass it down.
19734
19735 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19736
19737         [BZ #12671]
19738         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19739         some situations.
19740         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19741         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19742         add in in __libc_use_alloca calls.  Adjust callers.
19743         (glob): Use malloc in some situations.
19744
19745         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19746         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19747         pltexit.
19748
19749 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19750
19751         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19752         and CLOCK_BOOTTIME_ALARM.
19753
19754         [BZ #12782]
19755         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19756         is returned.
19757
19758         * string/_strerror.c (__strerror_r): Print negative errors as signed
19759         numbers.
19760
19761         [BZ #12777]
19762         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19763         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19764         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19765
19766         * configure.in: Fix typo in redirection and correct removal of test
19767         files in two cases.
19768
19769         [BZ #12788]
19770         * locale/setlocale.c (new_composite_name): Fix test to check for
19771         identical name of all categories.
19772
19773         [BZ #12792]
19774         * libio/filedoalloc.c (local_isatty): New function.
19775         (_IO_file_doallocate): Use local_isatty.
19776         * stdio-common/perror.c (perror): In case a new stream is used
19777         forward the stream error.
19778         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19779         error flag.
19780
19781 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19782
19783         [BZ #11869]
19784         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19785         alloca.
19786         * include/alloca.h (extend_alloca_account): Define.
19787
19788         [BZ #11857]
19789         * posix/regex.h: Fix comments with documentation of user-accessible
19790         fields after compilation and describe correct free'ing of pattern
19791         after re_compile_pattern.
19792         Patch by Reuben Thomas <rrt@sc3d.org>.
19793
19794 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19795
19796         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19797         and -mno-altivec to prevent the compiler from using Altivec and/or
19798         VSX instructions when the corresponding registers are not available.
19799
19800 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19801
19802         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19803
19804 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19805
19806         * libio/freopen.c (freopen): Use __dup2, not dup2.
19807         * libio/freopen64.c (freopen64): Likewise.
19808
19809 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19810
19811         [BZ #12775]
19812         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19813         * math/Makefile (tests): Add test-powl.
19814         (CFLAGS-test-powl.c): Define.
19815         * math/test-powl.c: New file.
19816
19817 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19818
19819         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19820
19821 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19822
19823         [BZ #11837]
19824         * iconvdata/gb18030.c: Update to GB18020-2005.
19825
19826 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19827
19828         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19829         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19830         Patch by Aharon Robbins <arnold@skeeve.com>.
19831
19832         [BZ #11892]
19833         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19834         on the stack.
19835
19836         [BZ #11895]
19837         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19838         through underflows.
19839
19840         [BZ #12766]
19841         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19842         point to strings before performing equality test for error_one_per_line
19843         mode.
19844
19845         [BZ #11697]
19846         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19847
19848         [BZ #11820]
19849         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19850         (struct user_fpregs_struct): Avoid __uint*_t types.
19851
19852         [BZ #6420]
19853         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19854         symbol info.  Use it instead of calling _dl_addr locally.
19855         (lock_and_info): New function.
19856         (tr_freehook): Call lock_and_info and pass symbol info as additional
19857         parameter to tr_where.
19858         (tr_mallochook): Likewise.
19859         (tr_reallochook): Likewise.
19860         (tr_memalignhook): Likewise.
19861
19862         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19863         used and couldn't be at all thread-safe.
19864
19865 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19866
19867         * libio/freopen.c (freopen): Don't close old file descriptor
19868         before the new one is opened.  Instead dup the new file descriptor
19869         to the old one after the new stream is created.
19870         * libio/freopen64.c (freopen64): Likewise.
19871         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19872         * libio/fileops.c (_IO_new_file_close_it): Handle new
19873         _IO_FLAGS2_NOCLOSE flag.
19874         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19875         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19876         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19877         _IO_FLAGS2_NOCLOSE flag.
19878         * include/unistd.h: Add hidden_proto for dup3.
19879         Define __have_dup3.
19880         * io/dup3.c: Define hidden symbol.
19881         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19882
19883         [BZ #7101]
19884         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19885         when an incomplete long option is used.
19886         * posix/tst-getopt_long1.c: New file.
19887         * posix/Makefile (tests): Add tst-getopt_long1.
19888
19889         [BZ #10138]
19890         * scripts/config.guess: Update from autoconf-2.68.
19891         * scripts/config.sub: Likewise.
19892
19893         [BZ #10157]
19894         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19895         tests into ...
19896         (has_cpuclock): ...this.  New function.
19897         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19898         macro here based on has_cpuclock code.
19899
19900         [BZ #10149]
19901         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19902         First byte (not low byte) is now always NUL.
19903         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19904
19905         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19906         Use non-cancelable interfaces.
19907
19908         [BZ #9809]
19909         * locale/iso-639.def: Add entry for Sorani.
19910
19911         [BZ #11901]
19912         * include/stdlib.h: Move include protection to the right place.
19913         Define abort_msg_s.  Declare __abort_msg with it.
19914         * stdlib/abort.c (__abort_msg): Adjust type.
19915         * assert/assert.c (__assert_fail_base): New function.  Majority
19916         of code from __assert_fail.  Allocate memory for __abort_msg with
19917         mmap.
19918         (__assert_fail): Now call __assert_fail_base.
19919         * assert/assert-perr.c: Remove bulk of implementation.  Use
19920         __assert_fail_base.
19921         * include/assert.hL Declare __assert_fail_base.
19922         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19923         mmap.
19924         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19925
19926 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19927
19928         [BZ #11952]
19929         [BZ #12453]
19930         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19931         until all modules are registered in the DTV.
19932         * elf/Makefile: Add rules to build and run tst-tls19.
19933         * elf/tst-tls19.c: New file.
19934         * elf/tst-tls19mod1.c: New file.
19935         * elf/tst-tls19mod2.c: New file.
19936         * elf/tst-tls19mod3.c: New file.
19937         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19938
19939         [BZ #12083]
19940         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19941         correctly.
19942
19943         [BZ #12601]
19944         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19945         two-byte sequence errors.
19946         * iconvdata/Makefile (tests): Add bug-iconv8.
19947         * iconvdata/bug-iconv8.c: New file.
19948
19949         [BZ #12626]
19950         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19951         buf2 definition.
19952
19953         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19954
19955         [BZ #12432]
19956         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19957         (dummy_getcfa): New function.
19958         (init): Get _Unwind_GetCFA address, use dummy if not found.
19959         (backtrace_helper): In recursion check, also check whether CFA changes.
19960         (__backtrace): Completely initialize arg.
19961
19962         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19963         storing incomplete byte sequence in state object.  Avoid testing for
19964         guaranteed too small input if we know there is enough data available.
19965
19966 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19967
19968         * Makeconfig (+link-pie): Indent.
19969         * Rules (binaries-pie): Define if $(have-fpie) and
19970         $(build-shared).
19971         (binaries-shared): Also filter out $(binaries-pie).
19972         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
19973         * nscd/Makefile (others-pie): Add nscd.
19974         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
19975         ($(objpfx)nscd): Remove command override.
19976         * login/Makefile (others-pie): Add pt_chown.
19977         ($(objpfx)pt_chown): Remove command override.
19978         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
19979         remove command overrides.
19980
19981 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
19982
19983         * libio/tst_putwc.c: Fix error messages.
19984
19985         [BZ #12724]
19986         * libio/fileops.c (_IO_new_file_close_it): Always flush when
19987         currently writing and seek to current position when not.
19988         * libio/Makefile (tests): Add bug-fclose1.
19989         * libio/bug-fclose1.c: New file.
19990
19991 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
19992
19993         [BZ #12511]
19994         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
19995         don't set DF_1_NODELETE here.
19996         (do_lookup_x): When entering new entry test for copy relocation
19997         and if necessary set DF_1_NODELETE flag.
19998         * elf/tst-unique4.cc: New file.
19999         * elf/tst-unique4.h: New file.
20000         * elf/tst-unique4lib.cc: New file.
20001         * elf/Makefile: Add rules to build and run tst-unique4.
20002         Patch by Piotr Bury <pbury@goahead.com>.
20003
20004 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20005
20006         [BZ #12052]
20007         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20008
20009         [BZ #12625]
20010         * misc/mntent_r.c (addmntent): Flush the stream after the output
20011
20012         [BZ #12393]
20013         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20014         (is_trusted_path_normalize): Skip initial colon.  Append slash
20015         to empty buffer.  Duplicate is_trusted_path code but allow
20016         constructed patch to be prefix.
20017         (is_dst): Allow $ORIGIN followed by /.
20018         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20019         Correct testing of result of is_trusted_path_normalize
20020         (decompose_rpath): Fix warning.
20021
20022 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20023
20024         [BZ #11257]
20025         * grp/initgroups.c (internal_getgrouplist): When we found the service
20026         list through the initgroups entry in nsswitch.conf do not always
20027         continue on a successful lookup.  Don't always use the
20028         __nss_group_database value if it is set.
20029         * nss/nsswitch.conf (initgroups): Change action for successful db
20030         lookup to continue for compatibility.
20031
20032 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20033
20034         [BZ #11532]
20035         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20036         and CP774 modules.
20037         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20038         and CP774 modules.
20039         * iconvdata/tst-tables.sh: Likewise.
20040         * iconvdata/cp770.c: New file.
20041         * iconvdata/cp771.c: New file.
20042         * iconvdata/cp772.c: New file.
20043         * iconvdata/cp773.c: New file.
20044         * iconvdata/cp774.c: New file.
20045         * iconvdata/testdata/CP770: New file.
20046         * iconvdata/testdata/CP770..UTF8: New file.
20047         * iconvdata/testdata/CP771: New file.
20048         * iconvdata/testdata/CP771..UTF8: New file.
20049         * iconvdata/testdata/CP772: New file.
20050         * iconvdata/testdata/CP772..UTF8: New file.
20051         * iconvdata/testdata/CP773: New file.
20052         * iconvdata/testdata/CP773..UTF8: New file.
20053         * iconvdata/testdata/CP774: New file.
20054         * iconvdata/testdata/CP774..UTF8: New file.
20055
20056         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20057         END CHARMAP line.
20058         * iconvdata/gen-8bit-gap.sh: Likewise.
20059         * iconvdata/gen-8bit.sh: Likewise.
20060
20061         * locale/iso-639.def: Add ary entry.
20062
20063         [BZ #11258]
20064         * locale/C-translit.h.in: Add U20A1 transliteration.
20065
20066         [BZ #12178]
20067         * locale/iso-639.def: Add wae entry.
20068         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20069
20070         [BZ #12545]
20071         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20072         for n.
20073
20074         [BZ #12711]
20075         * locale/C-translit.h.in: Add entry for U20B9.
20076         Patch by pravin.d.s@gmail.com.
20077
20078 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20079
20080         [BZ #12713]
20081         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20082         ENAMETOOLONG use generic getcwd.
20083         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20084         in rtld.  Use *stat64.
20085         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20086         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20087         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20088         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20089         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20090         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20091         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20092         __fstatat64 macros.
20093         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20094         * dirent/rewinddir.c: Add libc_hidden_def.
20095         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20096         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20097
20098         * include/dirent.h (__alloc_dir): Add flags parameter.
20099         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20100         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20101         __alloc_dir.
20102         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20103         from fdopendir if O_CLOEXEC is already set.
20104
20105 2011-03-15  Alan Modra  <amodra@gmail.com>
20106
20107         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20108         l_tls_firstbyte_offset non-zero.  Save padding offset in
20109         l_tls_firstbyte_offset for later use.
20110         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20111         freeing static tls block.
20112
20113 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20114
20115         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20116         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20117         being defined by the kernel headers.
20118
20119 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20120
20121         [BZ #12734]
20122         * resolv/resolv.h: Define RES_NOTLDQUERY.
20123         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20124         no-tld-query and set RES_NOTLDQUERY.
20125         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20126         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20127         modern BIND to search name as TLD unless forbidden.
20128
20129 2011-05-07  Petr Baudis  <pasky@suse.cz>
20130             Ulrich Drepper  <drepper@gmail.com>
20131
20132         [BZ #12393]
20133         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20134         (is_trusted_path): ...to here.
20135         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20136         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20137         using is_trusted_path_normalize() in setuid scripts.
20138
20139 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20140
20141         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20142         __BEGIN/__END_DECLS.
20143
20144 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20145
20146         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20147         NSS_STATUS_NOTFOUND if no record was found.
20148
20149 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20150
20151         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20152         (headers-not-in-tirpc): Remove rpc/netdb.h
20153         * resolv/netdb.h: Revert last change.
20154
20155 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20156
20157         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20158         circular dependency between libgcc.a and libc.a.
20159
20160 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20161
20162         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20163         * nis/Makefile: Don't install rpcsvc/*.
20164         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20165         instead of <rpc/types.h>.
20166         (MAXHOSTNAMELEN): Define.
20167
20168 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20169
20170         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20171
20172 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20173
20174         [BZ #12714]
20175         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20176         gethostbyname4_r when IPv6 results are possible.
20177
20178 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20179
20180         [BZ #12723]
20181         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20182         _PC_PIPE_BUF handling.
20183
20184 2011-04-30  Bruno Haible  <bruno@clisp.org>
20185
20186         [BZ #12717]
20187         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20188         * resolv/netdb.h (getnameinfo): Change type of flags parameter
20189         to 'int'.
20190         * inet/getnameinfo.c (getnameinfo): Likewise.
20191
20192 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
20193
20194         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20195         to groups setting in database lookup.
20196         * nss/nsswitch.conf: Add initgroups entry.
20197
20198 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
20199
20200         [BZ #12685]
20201         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20202         mode string.
20203         Patch by Eric Blake <eblake@redhat.com>.
20204
20205 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20206
20207         * sunrpc/Makefile (need-export-routines): Add svc_run.
20208         (routines): Remove svc_run.
20209         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20210         * sunrpc/clnt_perr.c (clnt_perrno): Export.
20211         * sunrpc/svc_run.c (svc_run): Likewise.
20212         * sunrpc/svc_udp.c (svcudp_create): Likewise.
20213
20214 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
20215
20216         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20217         problem in reallocation in last patch.
20218
20219 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20220
20221         * sunrpc/Makefile: Move inclusion of Rules.
20222
20223 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20224
20225         * nss/nss_files/files-initgroups.c: New file.
20226         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20227         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20228         _nss_files_initgroups_dyn.
20229
20230 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20231
20232         * elf/elf.h (R_ARM_IRELATIVE): Define.
20233
20234 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20235
20236         * po/ru.po: Update from translation team.
20237
20238 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20239
20240         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20241         dependencies.
20242
20243 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20244
20245         [BZ #12653]
20246         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20247         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20248         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20249         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20250         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20251
20252 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20253
20254         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20255         differing bytes.
20256         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20257         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20258         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20259
20260 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20261
20262         [BZ #12420]
20263         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20264         storing it.
20265         * stdlib/bug-getcontext.c: New file.
20266         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20267
20268 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20269
20270         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20271         instructions into .machine "z9-109".
20272         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20273         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20274
20275 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20276
20277         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20278         between environment variables and auxiliary vector.
20279
20280 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20281
20282         * Makefile: Add rules to build linkobj/libc.so.
20283         * include/libc-symbols.h: Define libc_hidden_nolink.
20284         * include/rpc/auth.h: Mark functions which are to be hidden.
20285         * include/rpc/auth_des.h: Likewise.
20286         * include/rpc/auth_unix.h: Likewise.
20287         * include/rpc/clnt.h: Likewise.
20288         * include/rpc/des_crypt.h: Likewise.
20289         * include/rpc/key_prot.h: Likewise.
20290         * include/rpc/pmap_clnt.h: Likewise.
20291         * include/rpc/pmap_prot.h: Likewise.
20292         * include/rpc/pmap_rmt.h: Likewise.
20293         * include/rpc/rpc_msg.h: Likewise.
20294         * include/rpc/svc.h: Likewise.
20295         * include/rpc/svc_auth.h: Likewise.
20296         * include/rpc/xdr.h: Likewise.
20297         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20298         * nss/Makefile: Likewise.
20299         * sunrpc/Makefile: Don't install headers.  Build library with normal
20300         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20301         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20302         for the compat linking library.  Remove use of INTDEF/INTUSE.
20303         * sunrpc/auth_none.c: Likewise.
20304         * sunrpc/auth_unix.c: Likewise.
20305         * sunrpc/authdes_prot.c: Likewise.
20306         * sunrpc/authuxprot.c: Likewise.
20307         * sunrpc/clnt_gen.c: Likewise.
20308         * sunrpc/clnt_perr.c: Likewise.
20309         * sunrpc/clnt_raw.c: Likewise.
20310         * sunrpc/clnt_simp.c: Likewise.
20311         * sunrpc/clnt_tcp.c: Likewise.
20312         * sunrpc/clnt_udp.c: Likewise.
20313         * sunrpc/clnt_unix.c: Likewise.
20314         * sunrpc/des_crypt.c: Likewise.
20315         * sunrpc/des_soft.c: Likewise.
20316         * sunrpc/get_myaddr.c: Likewise.
20317         * sunrpc/key_call.c: Likewise.
20318         * sunrpc/key_prot.c: Likewise.
20319         * sunrpc/netname.c: Likewise.
20320         * sunrpc/pm_getmaps.c: Likewise.
20321         * sunrpc/pm_getport.c: Likewise.
20322         * sunrpc/pmap_clnt.c: Likewise.
20323         * sunrpc/pmap_prot.c: Likewise.
20324         * sunrpc/pmap_prot2.c: Likewise.
20325         * sunrpc/pmap_rmt.c: Likewise.
20326         * sunrpc/publickey.c: Likewise.
20327         * sunrpc/rpc_cmsg.c: Likewise.
20328         * sunrpc/rpc_common.c: Likewise.
20329         * sunrpc/rpc_dtable.c: Likewise.
20330         * sunrpc/rpc_prot.c: Likewise.
20331         * sunrpc/rpc_thread.c: Likewise.
20332         * sunrpc/rtime.c: Likewise.
20333         * sunrpc/svc.c: Likewise.
20334         * sunrpc/svc_auth.c: Likewise.
20335         * sunrpc/svc_authux.c: Likewise.
20336         * sunrpc/svc_raw.c: Likewise.
20337         * sunrpc/svc_run.c: Likewise.
20338         * sunrpc/svc_simple.c: Likewise.
20339         * sunrpc/svc_tcp.c: Likewise.
20340         * sunrpc/svc_udp.c: Likewise.
20341         * sunrpc/svc_unix.c: Likewise.
20342         * sunrpc/svcauth_des.c: Likewise.
20343         * sunrpc/xcrypt.c: Likewise.
20344         * sunrpc/xdr.c: Likewise.
20345         * sunrpc/xdr_array.c: Likewise.
20346         * sunrpc/xdr_float.c: Likewise.
20347         * sunrpc/xdr_intXX_t.c: Likewise.
20348         * sunrpc/xdr_mem.c: Likewise.
20349         * sunrpc/xdr_rec.c: Likewise.
20350         * sunrpc/xdr_ref.c: Likewise.
20351         * sunrpc/xdr_sizeof.c: Likewise.
20352         * sunrpc/xdr_stdio.c: Likewise.
20353
20354 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20355
20356         [BZ #12650]
20357         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20358         * sysdeps/ia64/dl-tls.h: Likewise.
20359         * sysdeps/powerpc/dl-tls.h: Likewise.
20360         * sysdeps/s390/dl-tls.h: Likewise.
20361         * sysdeps/sh/dl-tls.h: Likewise.
20362         * sysdeps/sparc/dl-tls.h: Likewise.
20363         * sysdeps/x86_64/dl-tls.h: Likewise.
20364         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20365
20366 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20367
20368         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20369         rpath element also skip the following colon.
20370         (expand_dynamic_string_token): Add is_path parameter and pass
20371         down to DL_DST_REQUIRED and _dl_dst_substitute.
20372         (decompose_rpath): Call expand_dynamic_string_token with
20373         non-zero is_path.  Ignore empty rpaths.
20374         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20375         with zero is_path.
20376
20377 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20378
20379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20380         Make cancelable.
20381
20382 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20383
20384         [BZ #12655]
20385         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20386         Patch by Filipe David Manana <fdmanana@apache.org>.
20387
20388 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20389
20390         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20391         Maintain aligned stack.
20392         (CHECK_RSP): Remove unused macro.
20393
20394 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20395
20396         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20397         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20398
20399 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20400
20401         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20402
20403         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20404
20405 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20406
20407         [BZ #12518]
20408         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20409         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20410         * sysdeps/x86_64/memmove.c: New file.
20411         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20412         (memcpy): Renamed to ...
20413         (__new_memcpy): This.
20414         (memcpy): Provide GLIBC_2_14 memcpy.
20415         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20416         (memcpy): Provide GLIBC_2_2_5 memcpy.
20417
20418 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20419
20420         [BZ #12631]
20421         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20422
20423 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20424
20425         * misc/syncfs.c: New file.
20426         * misc/Makefile (routines): Add syncfs.
20427         * posix/unistd.h: Declare syncfs.
20428         * sysdeps/unix/syscalls.list: Add syncfs.
20429
20430 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20431
20432         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20433         open_by_handle_at.
20434         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20435         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20436         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20437         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20438         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20439         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20440         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20441
20442 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20443
20444         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20445         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20446         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20447         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20448         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20449         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20450         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20451
20452         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20453         sync_file_range.c with -fexceptions.
20454         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20455         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20456         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20457         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20458         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20459         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20460         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20461         sync_file_range as cancellation point
20462         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20463         now a wrapper around __call_sync_file_range with cancellation handling.
20464         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20465         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20466         function name to __call_sync_file_range.
20467         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20468         Add call_sync_file_range.
20469
20470 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20471
20472         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20473         bits/timex.h.
20474
20475 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20476
20477         * iconv/iconv.h: Fix typo in comment.
20478         * io/fcntl.h: Likewise.
20479         * libio/stdio.h: Likewise.
20480         * posix/spawn.h: Likewise.
20481         * posix/unistd.h: Likewise.
20482         * stdlib/stdlib.h: Likewise.
20483         * time/time.h: Likewise.
20484         * wcsmbs/wchar.h: Likewise.
20485
20486         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20487         open_by_handle): Add.
20488         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20489         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20490         Augment a few comments.
20491         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20492         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20493         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20494         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20495         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20496         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20497         open_by_handle.
20498
20499         * io/fcntl.h (AT_EMPTY_PATH): Define.
20500
20501 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20502
20503         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20504         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20505         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20506         to...
20507         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20508         * Versions.def: Add GLIBC_2.14.
20509         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20510         Export.
20511
20512 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20513
20514         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20515         round counter.
20516         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20517
20518 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20519
20520         [BZ #12597]
20521         * string/test-strncmp.c (do_page_test): New function.
20522         (check2): Likewise.
20523         (test_main): Call check2.
20524         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20525
20526 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20527
20528         [BZ #12587]
20529         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20530         Handle cache information in CPU leaf 4.
20531         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20532
20533 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20534
20535         [BZ #12583]
20536         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20537         character representation.
20538         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20539
20540 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20541
20542         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20543         END(__isnan) to END(__isnanf) to match function entry point/label
20544         EALIGN(__isnanf,...).
20545
20546 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20547
20548         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20549
20550 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20551
20552         [BZ #12510]
20553         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20554         copy from the symbol referenced in the relocation to initialize the
20555         used variable.
20556         Patch by Piotr Bury <pbury@goahead.com>.
20557         * elf/Makefile: Add rules to build and tst-unique3.
20558         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20559         * elf/tst-unique3.cc: New file.
20560         * elf/tst-unique3.h: New file.
20561         * elf/tst-unique3lib.cc: New file.
20562         * elf/tst-unique3lib2.cc: New file.
20563
20564         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20565
20566 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20567
20568         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20569         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20570         to _start.
20571
20572 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20573
20574         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20575         to-be-loaded object along a path to loader is ld.so.
20576
20577 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20578             Ulrich Drepper  <drepper@gmail.com>
20579
20580         * sysdeps/x86_64/memset.S: After aligning destination, code
20581         branches to different locations depending on the value of
20582         misalignment, when multiarch is enabled. Fix this.
20583
20584 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20585
20586         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20587         Set _x86_64_preferred_memory_instruction for AMD processsors.
20588         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20589         Set bit_Prefer_SSE_for_memop for AMD processors.
20590
20591 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20592
20593         * libio/fmemopen.c (fmemopen): Optimize a bit.
20594
20595 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20596
20597         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20598
20599 2011-03-03  Roland McGrath  <roland@redhat.com>
20600
20601         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20602
20603 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20604
20605         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20606         __bzero_ultra1 instead of __memset_ultra1.
20607
20608 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20609             Ulrich Drepper  <drepper@gmail.com>
20610
20611         [BZ #12509]
20612         * include/link.h (struct link_map): Add l_orig_initfini.
20613         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20614         returning unsuccessfully.
20615         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20616         close of a file loaded at startup, restore the original l_initfini
20617         list.
20618         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20619         list, store the pointer.
20620         * elf/Makefile ($(objpfx)noload-mem): New rule.
20621         (noload-ENV): Define.
20622         (tests): Add $(objpfx)noload-mem.
20623         * elf/noload.c: Include <memcheck.h>.
20624         (main): Call mtrace.  Close all opened handles.
20625
20626 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20627
20628         [BZ #12454]
20629         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20630         dependencies are missing.
20631
20632 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20633
20634         Fix __if_freereq crash: Unlike the generic version which uses free,
20635         Hurd needs munmap.
20636         * sysdeps/mach/hurd/ifreq.h: New file.
20637
20638 2011-01-27  Petr Baudis  <pasky@suse.cz>
20639             Ulrich Drepper  <drepper@gmail.com>
20640
20641         [BZ 12445]#
20642         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20643         to extend_alloca().
20644         * stdio-common/bug23.c: New file.
20645         * stdio-common/Makefile (tests): Add bug23.
20646
20647 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20648             Ulrich Drepper  <drepper@gmail.com>
20649
20650         [BZ #12489]
20651         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20652         before performing relro protection.  At old place add assertion
20653         to make sure nothing changed.
20654
20655 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20656             Glauber de Oliveira Costa  <glommer@gmail.com>
20657
20658         * elf/elf.h: Add new ARM TLS relocs.
20659
20660 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20661
20662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20663         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20664         cast from r3.
20665         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20666         'tests' variable.
20667         * sysdeps/wordsize-64/tst-writev.c: New file.
20668
20669 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20670
20671         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20672         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20673         insns in _dl_start to prevent a TOC reference before relocs are
20674         resolved.
20675
20676 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20677
20678         [BZ #12469]
20679         * Makeconfig: Remove RANLIB definition.
20680         * Makerules: Don't use RANLIB.
20681         * aclocal.m4: Remove ranlib test.
20682         * configure.in: No need to check for ranlib.
20683         * elf/rtld-Rules: Don't use RANLIB.
20684
20685 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20686
20687         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20688         protection macro.
20689         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20690         inclusion protection macro.
20691
20692         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20693         SIGRTMIN and SIGRTMAX and print information in that case only when
20694         SIGRTMIN is defined.
20695
20696 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20697
20698         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20699         arginfo fn returning -1.
20700
20701         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20702         and thousands string is zero terminated.
20703
20704 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20705
20706         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20707         sysdeps/unix/sysv/linux/bits/socket.h.
20708
20709 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20710
20711         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20712         (__CPU_COUNT): Remove old macros.
20713         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20714         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20715         (__CPU_ALLOC, __CPU_FREE): Add macros.
20716         (__sched_cpualloc, __sched_cpufree): Add declarations.
20717
20718 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20719
20720         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20721         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20722         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20723         (readdhstai): Return value of addhstaiX call.
20724         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20725         (addgrbyX): Return value returned by cache_addgr.
20726         (readdgrbyname): Return value returned by addgrbyX.
20727         (readdgrbygid): Likewise.
20728         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20729         (addpwbyX): Return value returned by cache_addpw.
20730         (readdpwbyname): Return value returned by addhstbyX.
20731         (readdpwbyuid): Likewise.
20732         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20733         (addservbyX): Return value returned by cache_addserv.
20734         (readdservbyname): Return value returned by addservbyX:
20735         (readdservbyport): Likewise.
20736         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20737         (addhstbyX): Return value returned by cache_addhst.
20738         (readdhstbyname): Return value returned by addhstbyX.
20739         (readdhstbyaddr): Likewise.
20740         (readdhstbynamev6): Likewise.
20741         (readdhstbyaddrv6): Likewise.
20742         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20743         (readdinitgroups): Return value returned by addinitgroupsX.
20744         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20745         (prune_cache): Keep track of timeout value of re-added entries.
20746         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20747         * nscd/nscd.h: Adjust prototypes of readd* functions.
20748
20749 2011-02-04  Roland McGrath  <roland@redhat.com>
20750
20751         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20752         (nis_stats): Likewise.
20753         * nis/nis_modify.c (nis_modify): Likewise.
20754         * nis/nis_remove.c (nis_remove): Likewise.
20755         * nis/nis_add.c (nis_add): Likewise.
20756
20757         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20758
20759         * posix/fnmatch_loop.c: Add some consts.
20760
20761         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20762
20763 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20764
20765         [BZ #12460]
20766         * config.make.in (config-cflags-novzeroupper): Define.
20767         * configure.in: Substitute libc_cv_cc_novzeroupper.
20768         * elf/Makefile (AVX-CFLAGS): Define.
20769         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20770         (CFLAGS-tst-auditmod4a.c): Likewise.
20771         (CFLAGS-tst-auditmod4b.c): Likewise.
20772         (CFLAGS-tst-auditmod6b.c): Likewise.
20773         (CFLAGS-tst-auditmod6c.c): Likewise.
20774         (CFLAGS-tst-auditmod7b.c): Likewise.
20775         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20776
20777 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20778
20779         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20780         function to the callback.
20781         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20782
20783 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20784
20785         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20786         of errno.
20787
20788 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20789
20790         [BZ #11724]
20791         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20792         of constructors.
20793         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20794         of destructors.
20795         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20796
20797         [BZ #11724]
20798         * elf/Makefile: Add rules to build and run new test.
20799         * elf/tst-initorder.c: New file.
20800         * elf/tst-initorder.exp: New file.
20801         * elf/tst-initordera1.c: New file.
20802         * elf/tst-initordera2.c: New file.
20803         * elf/tst-initordera3.c: New file.
20804         * elf/tst-initordera4.c: New file.
20805         * elf/tst-initorderb1.c: New file.
20806         * elf/tst-initorderb2.c: New file.
20807         * elf/tst-order-a1.c: New file.
20808         * elf/tst-order-a2.c: New file.
20809         * elf/tst-order-a3.c: New file.
20810         * elf/tst-order-a4.c: New file.
20811         * elf/tst-order-b1.c: New file.
20812         * elf/tst-order-b2.c: New file.
20813         * elf/tst-order-main.c: New file.
20814         New test case by George Gensure <werkt0@gmail.com>.
20815
20816 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20817
20818         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20819         decoding ACE if AI_CANONIDN.
20820
20821 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20822
20823         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20824
20825 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20826
20827         * version.h (RELEASE): Bump for 2.13 release.
20828         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20829
20830         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20831
20832         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20833         MADV_NOHUGEPAGE.
20834         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20835         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20836         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20837         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20838         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20839         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20840
20841         * posix/getconf.c: Update copyright year.
20842         * catgets/gencat.c: Likewise.
20843         * csu/version.c: Likewise.
20844         * debug/catchsegv.sh: Likewise.
20845         * debug/xtrace.sh: Likewise.
20846         * elf/ldconfig.c: Likewise.
20847         * elf/ldd.bash.in: Likewise.
20848         * elf/sprof.c (print_version): Likewise.
20849         * iconv/iconv_prog.c: Likewise.
20850         * iconv/iconvconfig.c: Likewise.
20851         * locale/programs/locale.c: Likewise.
20852         * locale/programs/localedef.c: Likewise.
20853         * malloc/memusage.sh: Likewise.
20854         * malloc/mtrace.pl: Likewise.
20855         * nscd/nscd.c (print_version): Likewise.
20856         * nss/getent.c: Likewise.
20857
20858         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20859         PF_CAIF, and PF_ALG.
20860         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20861
20862 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20863
20864         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20865         (modules-names): Use them.
20866         (ifunc-test-modules, ifunc-pie-tests): Define.
20867         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20868         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20869         (test-extras): Likewise.
20870         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20871         $(compile-command.c).
20872         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20873         (all-built-dso): Define.
20874         (check-textrel.out, check-execstack.out): Depend on it.
20875
20876         * configure.in: Don't override --enable-multi-arch.
20877
20878 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20879
20880         [BZ #6812]
20881         * nscd/hstcache.c (tryagain): Define.
20882         (cache_addhst): Return tryagain not notfound for temporary errors.
20883         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20884         failed.
20885
20886 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20887
20888         [BZ #10563]
20889         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20890         to make the syscall.
20891         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20892
20893         [BZ #12378]
20894         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20895         and fall back to matching as normal character if the string ends before
20896         the matching ']' is found.  This is what POSIX requires.
20897         * posix/testfnm.c: Adjust test result.
20898         * posix/globtest.sh: Adjust test result.  Add new test.
20899         * posix/tst-fnmatch.input: Likewise.
20900         * posix/tst-fnmatch2.c: Add new test.
20901
20902 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20903
20904         * elf/Makefile (check-execstack): Revert last change.  Depend on
20905         check-execstack.h.
20906         (check-execstack.h): New target.
20907         (generated): Add check-execstack.h.
20908         * elf/check-execstack.c: Include "check-execstack.h".
20909         (main): Revert last change.
20910         (handle_file): Return zero if GNU_STACK is absent and
20911         DEFAULT_STACK_PERMS doesn't include PF_X.
20912
20913 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20914
20915         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20916         in child fails because the descriptor is already closed.
20917         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20918         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20919         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20920
20921         [BZ #12397]
20922         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20923         syscall.
20924
20925         [BZ #10484]
20926         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20927         temporary buffer used to handle multi lookups locally.
20928         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20929
20930 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20931
20932         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20933         loader is ld.so.
20934
20935 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20936
20937         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20938         alignment for SSE2.
20939
20940 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20941
20942         [BZ #12394]
20943         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20944         characters.  When rounding increased number of integer digits recompute
20945         number of groups.
20946         * stdio-common/tst-grouping.c: New file.
20947         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20948
20949 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20950
20951         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20952         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20953
20954         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20955         void.
20956         * bits/select.h: Likewise.
20957
20958 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20959
20960         * po/ja.po: Update from translation team.
20961
20962 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20963
20964         [BZ #11155]
20965         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20966         implementation just like for lxstat, fxstatat, et al.
20967
20968 2010-12-27  Jim Meyering  <meyering@redhat.com>
20969
20970         [BZ #12348]
20971         * posix/regexec.c (build_trtable): Return failure indication upon
20972         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20973
20974 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
20975
20976         [BZ #12201]
20977         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
20978         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
20979         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
20980         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
20981
20982         [BZ #12207]
20983         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
20984
20985         [BZ #12204]
20986         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
20987         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
20988
20989 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20990
20991         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
20992         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
20993         script has SORT_BY_INIT_PRIORITY.
20994         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
20995         NO_CTORS_DTORS_SECTIONS is defined.
20996         * elf/soinit.c: Likewise.
20997         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
20998         NO_CTORS_DTORS_SECTIONS is defined.
20999         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21000         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21001         * sysdeps/sh/init-first.c: Likewise.
21002         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21003
21004 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
21005
21006         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21007         always use the slow path.
21008
21009 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
21010
21011         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21012         similar rule which adds the sysdep directories to the header search in
21013         order to pick up the correct platform stackinfo.h.
21014         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21015         perform test if it is, otherwise return successfully without testing.
21016         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21017         DEFAULT_STACK_PERMS define in stackinfo.h.
21018         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21019         defined in stackinfo.h.
21020         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21021         DEFAULT_STACK_PERMS defined in stackinfo.h.
21022         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21023         * sysdeps/ia64/stackinfo.h: Likewise.
21024         * sysdeps/s390/stackinfo.h: Likewise.
21025         * sysdeps/sh/stackinfo.h: Likewise.
21026         * sysdeps/sparc/stackinfo.h: Likewise.
21027         * sysdeps/x86_64/stackinfo.h: Likewise.
21028         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21029         PF_X for powerpc64.  Retain PF_X for powerpc32.
21030
21031 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21032
21033         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21034         accurately.
21035         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21036         GETDENTS_64BIT_ALIGNED.
21037
21038 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21039
21040         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21041
21042 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21043
21044         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21045         _GNU_SOURCE.
21046
21047         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21048         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21049         Remove __restrict.
21050         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21051         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21052
21053 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21054
21055         [BZ #11655]
21056         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21057         are initialized.
21058
21059 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21060
21061         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21062
21063 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21064
21065         * po/it.po: Update from translation team.
21066
21067 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21068
21069         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21070         unused codes.
21071
21072 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21073
21074         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21075
21076 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21077
21078         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21079         specially.
21080         (gaih_getanswer_slice): Likewise.
21081
21082 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21083
21084         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21085
21086 2010-05-31  Petr Baudis  <pasky@suse.cz>
21087
21088         [BZ #11149]
21089         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21090         silently even in the chroot mode.
21091
21092 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21093
21094         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21095         last patch a bit.  Pretty printing
21096
21097 2010-05-31  Petr Baudis <pasky@suse.cz>
21098
21099         [BZ #10085]
21100         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21101         initialization of skip_initgroups_dyn.
21102
21103 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21104
21105         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21106         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21107
21108 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21109
21110         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21111
21112 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21113
21114         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21115         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21116         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21117         ($(objpfx)tst-fnmatch-mem): New rule.
21118         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21119         * posix/tst-fnmatch.c (main): Call mtrace.
21120
21121 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21122
21123         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21124         Support Intel processor model 6 and model 0x2c.
21125
21126 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21127
21128         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21129           signed comparison.
21130
21131 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21132
21133         [BZ #12205]
21134         * string/test-strncasecmp.c (check_result): New function.
21135         (do_one_test): Use it.
21136         (check1): New function.
21137         (test_main): Use it.
21138         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21139         Support strcasecmp and strncasecmp.
21140
21141 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21142
21143         [BZ #12194]
21144         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21145         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21146
21147 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21148
21149         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21150         IFUNC support.
21151         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21152         memset-x86-64.
21153         * sysdeps/x86_64/multiarch/bzero.S: New file.
21154         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21155         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21156         * sysdeps/x86_64/multiarch/memset.S: New file.
21157         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21158         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21159         Set bit_Prefer_SSE_for_memop for Intel processors.
21160         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21161         Define.
21162         (index_Prefer_SSE_for_memop): Define.
21163         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21164
21165 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21166
21167         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21168         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21169
21170 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21171
21172         [BZ #12191]
21173         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21174         (__x86_64_raw_data_cache_size_half): Likewise.
21175         (__x86_64_raw_shared_cache_size): Likewise.
21176         (__x86_64_raw_shared_cache_size_half): Likewise.
21177
21178         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21179         (__x86_64_raw_data_cache_size_half): Likewise.
21180         (__x86_64_raw_shared_cache_size): Likewise.
21181         (__x86_64_raw_shared_cache_size_half): Likewise.
21182         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21183         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21184         and __x86_64_raw_shared_cache_size_half.  Round
21185         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21186         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21187         to multiple of 256 bytes.
21188
21189 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
21190
21191         [BZ #12167]
21192         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21193         of inacessible symlinks.  Verify result of symlink before returning it.
21194         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21195         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21196
21197 2010-10-28  Erich Ritz  <erichritz@gmail.com>
21198
21199         * math/math.h (isinf): Fix typo in comment.
21200
21201 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
21202
21203         * po/da.po: Update from translation team.
21204
21205 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
21206
21207         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21208         is added to the list.
21209
21210 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21211             Ulrich Drepper  <drepper@gmail.com>
21212
21213         * elf/dl-object.c (_dl_new_object): Don't append the new object to
21214         the global list here.  Move code to...
21215         (_dl_add_to_namespace_list): ...here.  New function.
21216         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21217         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21218         * elf/dl-load.c (lose): Don't remove the element from the list.
21219         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21220         (_dl_map_object): Likewise.
21221
21222 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21223
21224         [BZ #12159]
21225         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21226         into all bytes of SSE register.
21227         Patch by Richard Li <richardpku@gmail.com>.
21228
21229 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21230
21231         [BZ #12140]
21232         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21233         perturbing.
21234
21235 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21236
21237         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21238         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21239         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21240         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21242         submachine.
21243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21244
21245 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21246
21247         * include/dlfcn.h (__RTLD_SECURE): Define.
21248         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21249         mode & __RTLD_SECURE instead.
21250         (open_path): Rename preloaded parameter to secure.
21251         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21252         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21253         * elf/dl-deps.c (openaux): Likewise.
21254         * elf/rtld.c (struct map_args): Remove is_preloaded.
21255         (map_doit): Don't use it.
21256         (dl_main): Likewise.
21257         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21258         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21259
21260 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21261
21262         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21263         (sysd-rules-targets): Remove duplicates.
21264         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21265         rtld-%.$o dependency.
21266
21267 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21268
21269         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21270         _dl_map_object do it.
21271
21272 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21273
21274         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21275         fast fma builtins, define the macros in the C99 standard.
21276         (FP_FAST_FMAF): Likewise.
21277         (FP_FAST_FMAL): Likewise.
21278         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21279
21280         * bits/mathdef.h: Update copyright year.
21281         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21282
21283 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21284
21285         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21286         builtins, define the macros in the C99 standard.
21287         (FP_FAST_FMAF): Likewise.
21288         (FP_FAST_FMAL): Likewise.
21289         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21290         multiply/add.
21291         (FP_FAST_FMAF): Likewise.
21292
21293 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21294
21295         [BZ #3268]
21296         * math/libm-test.inc (fma_test): Some new testcases.
21297         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21298         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21299         y and infinite z.  Do multiplication by C already in long double.
21300         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21301         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21302         y and infinite z.  Do bitwise or of inexact bit into u.d.
21303         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21304         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21305         * sysdeps/i386/fpu/s_fma.S: Removed.
21306         * sysdeps/i386/fpu/s_fmal.S: Removed.
21307
21308 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21309
21310         [BZ #3268]
21311         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21312         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21313         computation is not scheduled after fetestexcept.  Fix value
21314         of minimum denormal long double.
21315
21316 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21317
21318         [BZ #3268]
21319         * math/libm-test.inc (fma_test): Add some more tests.
21320         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21321         correctly.
21322
21323 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21324
21325         * scripts/data/localplt-s390-linux-gnu.data: New file.
21326         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21327
21328 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21329
21330         [BZ #3268]
21331         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21332         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21333         instead of dbl-64.
21334         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21335         inlines.
21336         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21337         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21338         if one of x and y is very large and the other is subnormal.
21339         * sysdeps/s390/fpu/s_fmaf.c: New file.
21340         * sysdeps/s390/fpu/s_fma.c: New file.
21341         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21342         * sysdeps/powerpc/fpu/s_fma.S: New file.
21343         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21344         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21345         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21346
21347 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21348
21349         [BZ #3268]
21350         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21351         fma tests.
21352         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21353         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21354         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21355         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21356         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21357         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21358         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21359
21360 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21361
21362         [BZ #12078]
21363         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21364         * posix/bug-regex31.input: Add test case.
21365
21366 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21367
21368         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21369         * posix/bug-regex31.input: New file.
21370
21371         [BZ #12078]
21372         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21373         (parse_sub_exp): Fix last change, use postorder.
21374
21375         * posix/bug-regex31.c: New file.
21376         * posix/Makefile: Add rules to build and run bug-regex31.
21377
21378         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21379
21380         [BZ #12078]
21381         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21382
21383         [BZ #12108]
21384         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21385         to have entries in sys_siglist.
21386
21387         [BZ #12093]
21388         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21389         be NULL.
21390
21391 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21392
21393         [BZ #3268]
21394         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21395         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21396         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21397         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21398         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21399         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21400         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21401         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21402         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21403         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21404         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21405         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21406         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21407         * math/ftestexcept.c (fetestexcept): Likewise.
21408         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21409         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21410         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21411         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21412         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21413         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21414         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21415
21416 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21417
21418         [BZ #12107]
21419         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21420         newline.
21421
21422 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21423
21424         * string/bug-strstr1.c: New file.
21425         * string/Makefile: Add rules to build and run bug-strstr1.
21426
21427 2010-10-05  Eric Blake  <eblake@redhat.com>
21428
21429         [BZ #12092]
21430         * string/str-two-way.h (two_way_long_needle): Always clear memory
21431         when skipping input due to the shift table.
21432
21433 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21434
21435         [BZ #12005]
21436         * malloc/mcheck.c: Handle large requests.
21437
21438         [BZ #12077]
21439         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21440         for strncmp and strncasecmp.
21441         * string/stratcliff.c: Add tests for strcmp and strncmp.
21442         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21443
21444 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21445
21446         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21447         __set_fpscr.
21448
21449 2010-09-30  Andreas Jaeger  <aj@suse.de>
21450
21451         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21452         (CGROUP_SUPER_MAGIC): Define.
21453         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21454         Handle btrfs and cgroup file systems.
21455         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21456         Likewise.
21457
21458 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21459
21460         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21461         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21462
21463 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21464
21465         [BZ #12067]
21466         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21467         trying to locate the ELF header.
21468
21469 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21470
21471         [BZ #11611]
21472         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21473         Mask out sign-bit copies when constructing f_fsid.
21474
21475 2010-09-24  Petr Baudis <pasky@suse.cz>
21476
21477         * debug/stack_chk_fail_local.c: Add missing licence exception.
21478         * debug/warning-nop.c: Likewise.
21479
21480 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21481
21482         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21483         implementing getdents64 using getdents syscall, set d_type if
21484         __ASSUME_GETDENTS32_D_TYPE.
21485
21486 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21487
21488         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21489         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21490
21491 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21492
21493         [BZ #12037]
21494         * posix/unistd.h: Undo change of feature selection for ftruncate from
21495         2010-01-11.
21496
21497 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21498
21499         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21500         detection.
21501
21502 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21503
21504         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21505         fanotify_mark.
21506         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21507
21508 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21509
21510         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21511         variables after CHECK_SP call.
21512         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21513
21514 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21515             Ulrich Drepper  <drepper@redhat.com>
21516
21517         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21518         re-relocationg ld.so.
21519         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21520         _dl_init_paths call.
21521         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21522         here anymore.
21523
21524 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21525
21526         * resolv/res_init.c (__res_vinit): Count the default server we added.
21527
21528 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21529             Ulrich Drepper  <drepper@redhat.com>
21530
21531         [BZ #11968]
21532         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21533         (____longjmp_chk): Use %ebx for saving value across system call.
21534         Add unwind info.
21535
21536 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21537
21538         * manual/Makefile: Don't mix pattern rules with normal rules.
21539
21540 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21541
21542         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21543         operation.
21544         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21545         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21546         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21547         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21548         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21549         Likewise.
21550
21551 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21552
21553         [BZ #11979]
21554         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21555         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21556
21557 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21558
21559         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21560         * sysdeps/x86_64/addmul_1.S: Likewise.
21561         * sysdeps/x86_64/lshift.S: Likewise.
21562         * sysdeps/x86_64/mul_1.S: Likewise.
21563         * sysdeps/x86_64/rshift.S: Likewise.
21564         * sysdeps/x86_64/sub_n.S: Likewise.
21565         * sysdeps/x86_64/submul_1.S: Likewise.
21566
21567 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21568
21569         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21570         Define __sched_param instead of SCHED_* and sched_param when
21571         <bits/sched.h> is included with __need_schedparam defined.
21572         * bits/sched.h [__need_schedparam]
21573         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21574         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21575         (__defined_schedparam): Define to 1.
21576         (__sched_param): New structure, identical to sched_param.
21577         (__need_schedparam): Undefine.
21578
21579 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21580
21581         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21582         (epoll_create1): Declare.
21583
21584         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21585
21586 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21587
21588         [BZ #7066]
21589         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21590         shifting retval into place.
21591
21592 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21593
21594         * nis/rpcsvc/nis.h: Update copyright notice.
21595         * nis/rpcsvc/nis.x: Likewise.
21596         * nis/rpcsvc/nis_callback.h: Likewise.
21597         * nis/rpcsvc/nis_callback.x: Likewise.
21598         * nis/rpcsvc/nis_object.x: Likewise.
21599         * nis/rpcsvc/nis_tags.h: Likewise.
21600         * nis/rpcsvc/yp.h: Likewise.
21601         * nis/rpcsvc/yp.x: Likewise.
21602         * nis/rpcsvc/ypupd.h: Likewise.
21603         * nis/yp_xdr.c: Likewise.
21604         * nis/ypupdate_xdr.c: Likewise.
21605
21606         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21607         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21608         (pmap_getport): Use __libc_rpc_getport.
21609         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21610         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21611         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21612
21613 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21614
21615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21616         fanotify_mark.
21617
21618 2010-08-27  Roland McGrath  <roland@redhat.com>
21619
21620         * sysdeps/i386/i686/multiarch/Makefile
21621         (CFLAGS-varshift.c): New variable.
21622
21623 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21624
21625         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21626         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21627
21628         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21629
21630         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21631
21632 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21633
21634         * sysdeps/x86_64/strlen.S: Unroll the loop.
21635         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21636         strlen-sse2 strlen-sse2-bsf.
21637         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21638         __strlen_no_bsf if bit_Slow_BSF is set.
21639         (__strlen_sse42): Removed.
21640         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21641         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21642
21643 2010-08-25  Roland McGrath  <roland@redhat.com>
21644
21645         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21646         * sysdeps/x86_64/multiarch/varshift.c: New file.
21647         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21648         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21649         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21650         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21651
21652 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21653
21654         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21655         strlen-sse2 strlen-sse2-bsf.
21656         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21657         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21658         (__strlen_sse2): Removed.
21659         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21660         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21661         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21662         bit_Slow_BSF for Atom.
21663         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21664         (index_Slow_BSF): Define.
21665         (HAS_SLOW_BSF): Define.
21666
21667 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21668
21669         [BZ #10851]
21670         * resolv/res_init.c (__res_vinit): When no server address at all
21671         is given default to loopback.
21672
21673 2010-08-24  Roland McGrath  <roland@redhat.com>
21674
21675         * configure.in: Remove config-name.h generation.
21676         * configure: Regenerated.
21677         * config-name.in: File removed.
21678         * scripts/config-uname.sh: New file.
21679         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21680         ($(objdir)config-name.h): New target.
21681
21682         * sunrpc/rpc_parse.h: Avoid nested comment.
21683
21684 2010-08-24  Richard Henderson  <rth@redhat.com>
21685             Ulrich Drepper  <drepper@redhat.com>
21686             H.J. Lu  <hongjiu.lu@intel.com>
21687
21688         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21689         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21690         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21691         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21692         _mm_alignr_epi8 with _mm_loadu_si128.
21693         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21694         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21695         (__m128i_shift_right): Removed.
21696         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21697         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21698         * sysdeps/x86_64/multiarch/varshift.h: New file.
21699         * sysdeps/x86_64/multiarch/varshift.S: New file.
21700
21701 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21702
21703         * configure.in: Move assembler checks to before sysdep dir checking.
21704
21705 2010-08-20  Petr Baudis  <pasky@suse.cz>
21706
21707         * LICENSES: Sync the sunrpc license.
21708
21709 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21710
21711         * sunrpc/auth_des.c: Update copyright notice once again.
21712         * sunrpc/auth_none.c: Likewise.
21713         * sunrpc/auth_unix.c: Likewise.
21714         * sunrpc/authdes_prot.c: Likewise.
21715         * sunrpc/authuxprot.c: Likewise.
21716         * sunrpc/bindrsvprt.c: Likewise.
21717         * sunrpc/clnt_gen.c: Likewise.
21718         * sunrpc/clnt_perr.c: Likewise.
21719         * sunrpc/clnt_raw.c: Likewise.
21720         * sunrpc/clnt_simp.c: Likewise.
21721         * sunrpc/clnt_tcp.c: Likewise.
21722         * sunrpc/clnt_udp.c: Likewise.
21723         * sunrpc/clnt_unix.c: Likewise.
21724         * sunrpc/des_crypt.c: Likewise.
21725         * sunrpc/des_soft.c: Likewise.
21726         * sunrpc/get_myaddr.c: Likewise.
21727         * sunrpc/getrpcport.c: Likewise.
21728         * sunrpc/key_call.c: Likewise.
21729         * sunrpc/key_prot.c: Likewise.
21730         * sunrpc/openchild.c: Likewise.
21731         * sunrpc/pm_getmaps.c: Likewise.
21732         * sunrpc/pm_getport.c: Likewise.
21733         * sunrpc/pmap_clnt.c: Likewise.
21734         * sunrpc/pmap_prot.c: Likewise.
21735         * sunrpc/pmap_prot2.c: Likewise.
21736         * sunrpc/pmap_rmt.c: Likewise.
21737         * sunrpc/rpc/auth.h: Likewise.
21738         * sunrpc/rpc/auth_unix.h: Likewise.
21739         * sunrpc/rpc/clnt.h: Likewise.
21740         * sunrpc/rpc/des_crypt.h: Likewise.
21741         * sunrpc/rpc/key_prot.h: Likewise.
21742         * sunrpc/rpc/netdb.h: Likewise.
21743         * sunrpc/rpc/pmap_clnt.h: Likewise.
21744         * sunrpc/rpc/pmap_prot.h: Likewise.
21745         * sunrpc/rpc/pmap_rmt.h: Likewise.
21746         * sunrpc/rpc/rpc.h: Likewise.
21747         * sunrpc/rpc/rpc_des.h: Likewise.
21748         * sunrpc/rpc/rpc_msg.h: Likewise.
21749         * sunrpc/rpc/svc.h: Likewise.
21750         * sunrpc/rpc/svc_auth.h: Likewise.
21751         * sunrpc/rpc/types.h: Likewise.
21752         * sunrpc/rpc/xdr.h: Likewise.
21753         * sunrpc/rpc_clntout.c: Likewise.
21754         * sunrpc/rpc_cmsg.c: Likewise.
21755         * sunrpc/rpc_common.c: Likewise.
21756         * sunrpc/rpc_cout.c: Likewise.
21757         * sunrpc/rpc_dtable.c: Likewise.
21758         * sunrpc/rpc_hout.c: Likewise.
21759         * sunrpc/rpc_main.c: Likewise.
21760         * sunrpc/rpc_parse.c: Likewise.
21761         * sunrpc/rpc_parse.h: Likewise.
21762         * sunrpc/rpc_prot.c: Likewise.
21763         * sunrpc/rpc_sample.c: Likewise.
21764         * sunrpc/rpc_scan.c: Likewise.
21765         * sunrpc/rpc_scan.h: Likewise.
21766         * sunrpc/rpc_svcout.c: Likewise.
21767         * sunrpc/rpc_tblout.c: Likewise.
21768         * sunrpc/rpc_util.c: Likewise.
21769         * sunrpc/rpc_util.h: Likewise.
21770         * sunrpc/rpcinfo.c: Likewise.
21771         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21772         * sunrpc/rpcsvc/key_prot.x: Likewise.
21773         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21774         * sunrpc/rpcsvc/mount.x: Likewise.
21775         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21776         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21777         * sunrpc/rpcsvc/rex.x: Likewise.
21778         * sunrpc/rpcsvc/rstat.x: Likewise.
21779         * sunrpc/rpcsvc/rusers.x: Likewise.
21780         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21781         * sunrpc/rpcsvc/spray.x: Likewise.
21782         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21783         * sunrpc/rtime.c: Likewise.
21784         * sunrpc/svc.c: Likewise.
21785         * sunrpc/svc_auth.c: Likewise.
21786         * sunrpc/svc_authux.c: Likewise.
21787         * sunrpc/svc_raw.c: Likewise.
21788         * sunrpc/svc_run.c: Likewise.
21789         * sunrpc/svc_simple.c: Likewise.
21790         * sunrpc/svc_tcp.c: Likewise.
21791         * sunrpc/svc_udp.c: Likewise.
21792         * sunrpc/svc_unix.c: Likewise.
21793         * sunrpc/svcauth_des.c: Likewise.
21794         * sunrpc/xcrypt.c: Likewise.
21795         * sunrpc/xdr.c: Likewise.
21796         * sunrpc/xdr_array.c: Likewise.
21797         * sunrpc/xdr_float.c: Likewise.
21798         * sunrpc/xdr_mem.c: Likewise.
21799         * sunrpc/xdr_rec.c: Likewise.
21800         * sunrpc/xdr_ref.c: Likewise.
21801         * sunrpc/xdr_sizeof.c: Likewise.
21802         * sunrpc/xdr_stdio.c: Likewise.
21803
21804         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21805         handling.
21806
21807 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21808
21809         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21810
21811 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21812
21813         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21814         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21815         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21816         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21817         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21818         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21819         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21820         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21821         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21822         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21823         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21824         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21825         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21826         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21827
21828 2010-07-26  Anton Blanchard  <anton@samba.org>
21829
21830         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21831         * malloc/arena.c (heap_trim): Likewise.
21832
21833 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21834
21835         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21836         here.  Not...
21837         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21838         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21839
21840 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21841
21842         * sysdeps/i386/elf/Makefile: New file.
21843
21844 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21845
21846         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21847         from fanotify_init.
21848         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21849         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21850
21851 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21852
21853         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21854         of strncasecmp_l.
21855         * sysdeps/multiarch/strcmp.S: Likewise.
21856
21857 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21858
21859         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21860         strncase_l-nonascii.
21861         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21862         Add strncase_l-ssse3.
21863         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21864         * sysdeps/x86_64/strcmp.S: Likewise.
21865         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21866         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21867         * sysdeps/x86_64/strncase.S: New file.
21868         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21869         * sysdeps/x86_64/strncase_l.S: New file.
21870         * string/Makefile (strop-tests): Add strncasecmp.
21871         * string/test-strncasecmp.c: New file.
21872
21873         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21874         warning.
21875
21876         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21877         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21878
21879 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21880
21881         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21882
21883 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21884
21885         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21886         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21887         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21888
21889 2010-05-01  Alan Modra  <amodra@gmail.com>
21890
21891         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21892         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21893         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21894         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21895         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21896         tidying.  Don't tail-call __sigjmp_save for static lib.
21897         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21898         save location.
21899         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21900         (CALL_MCOUNT): Add eh info, and nop after bl.
21901         (TAIL_CALL_SYSCALL_ERROR): New macro.
21902         (PSEUDO_RET): Use it.
21903         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21904         Correct save location of integer regs and cr.
21905         (_dl_profile_resolve): Correct cr save location.  Delete nops
21906         after bl when SHARED.  Reduce cfi size a little by better
21907         placement of cfi directives.
21908         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21909         make a stack frame.  Instead use parm save area as a temp.
21910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21911         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21913         Don't make a stack frame for parent, use parm save area.
21914         Increase child stack frame to 112 bytes.  Don't save unused reg,
21915         and adjust reg usage.  Set up cfi on error recovery and
21916         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21918         (__makecontext): Add dummy nop after jump to exit.
21919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21920         Use correct parm save area and cr save, reduce stack frame.
21921         Correct cfi for possible PSEUDO_RET frame setup.
21922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21923         Branch to local label emitted by PSEUDO_RET rather than
21924         __syscall_error.
21925
21926 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21927
21928         [BZ #11904]
21929         * locale/programs/locale.c (print_assignment): New function.
21930         (show_locale_vars): Use it.
21931
21932 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21933
21934         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21935         field.
21936         (struct statfs64): Likewise.
21937         (_STATFS_F_FLAGS): Define.
21938         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21939         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21940         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21941         (ST_VALID): Define locally.
21942         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21943         __statvfs_getflags, use the provided value.
21944         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21945         __ASSUME_STATFS_F_FLAGS.
21946
21947         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21948
21949         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21950         Add sys/fanotify.h.
21951         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21952         fanotify_mask for GLIBC_2.13.
21953         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21954         fanotify_init and fanotify_mark.
21955         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21956         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21957
21958         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21959         Add prlimit.
21960         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21961         prlimit64 for GLIBC_2.13.
21962         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21963         prlimit64.
21964         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21965         syscall.
21966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21967         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21968         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21969         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
21970         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
21971         add prlimit alias.
21972         * sysdeps/unix/sysv/linux/prlimit.c: New file.
21973
21974         [BZ #11903]
21975         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
21976         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
21977
21978         * nss/Makefile: Add rules to build and run tst-nss-test1.
21979         * shlib-versions: Add entry for libnss_test1.
21980         * nss/nss_test1.c: New file.
21981         * nss/tst-nss-test1.c: New file.
21982
21983         * nss/nsswitch.c (__nss_database_custom): Define new variable.
21984         (__nss_configure_lookup): Set appropriate entry in
21985         __nss_configure_lookup to true.
21986         * nss/nsswitch.h: Define enum with indeces of databases in
21987         databases and __nss_database_custom arrays.  Declare
21988         __nss_database_custom.
21989         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
21990         to avoid using nscd when custom rules are installed.
21991         * nss/getXXbyYY_r.c: Likewise.
21992         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21993
21994         * nss/nss_files/files-parse.c: Whitespace fixes.
21995
21996 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
21997
21998         [BZ #11883]
21999         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22000         * posix/fnmatch_loop.c: Likewise.
22001
22002 2010-07-17  Andi Kleen  <ak@linux.intel.com>
22003
22004         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22005         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22006         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22007         * Versions.def [GLIBC_2.13]: Add.
22008
22009 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
22010
22011         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22012         Also fail if tpwd after pwuid call is NULL.
22013
22014 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22015
22016         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22017         when converting to ms.
22018
22019 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22020
22021         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22022         EOPNOTSUPP errors with ENOTTY.
22023         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22024         EOPNOTSUPP errors with ENOTTY.
22025
22026 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22027
22028         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22029         Add strcasecmp_l-ssse3.
22030         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22031         strcasecmp.
22032         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22033         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22034         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22035
22036 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22037
22038         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22039
22040         * string/Makefile (strop-tests): Add strcasecmp.
22041         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22042         strcasecmp_l-nonascii.
22043         (gen-as-const-headers): Add locale-defines.sym.
22044         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22045         * sysdeps/x86_64/strcasecmp.S: New file.
22046         * sysdeps/x86_64/strcasecmp_l.S: New file.
22047         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22048         * sysdeps/x86_64/locale-defines.sym: New file.
22049         * string/test-strcasecmp.c: New file.
22050
22051         * string/test-strcasestr.c: Test both ends of the range of characters.
22052         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22053
22054 2010-07-29  Roland McGrath  <roland@redhat.com>
22055
22056         [BZ #11856]
22057         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22058
22059 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22060
22061         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22062         for ld.so.
22063
22064 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22065
22066         * manual/memory.texi (Malloc Tunable Parameters): Document
22067         M_PERTURB.
22068
22069 2010-07-26  Roland McGrath  <roland@redhat.com>
22070
22071         [BZ #11840]
22072         * configure.in (-fgnu89-inline check): Set and substitute
22073         gnu89_inline, not libc_cv_gnu89_inline.
22074         * configure: Regenerated.
22075         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22076
22077 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22078
22079         * string/test-strnlen.c: New file.
22080         * string/Makefile (strop-tests): Add strnlen.
22081         * string/tester.c (test_strnlen): Add a few more test cases.
22082         * string/tst-strlen.c: Better error reporting.
22083
22084         * sysdeps/x86_64/strnlen.S: New file.
22085
22086 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22087
22088         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22089         lower-latency instructions.
22090
22091 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22092
22093         * string/test-strcasestr.c: New file.
22094         * string/test-strstr.c: New file.
22095         * string/Makefile (strop-tests): Add strstr and strcasestr.
22096         * string/str-two-way.h: Don't undefine MAX.
22097         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22098
22099 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22100
22101         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22102         strcasestr-nonascii.
22103         (CFLAGS-strcasestr-nonascii.c): Define.
22104         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22105         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22106         Remove unused attribute.
22107
22108 2010-07-20  Roland McGrath  <roland@redhat.com>
22109
22110         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22111         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22112         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22113         like LD_HWCAP_MASK can disable hwcaps.
22114
22115 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22116
22117         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22118
22119 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22120
22121         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22122         call in strcasestr.
22123         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22124         __strcasestr_sse42_nonascii.
22125         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22126         strcasestr-nonascii.c.
22127         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22128
22129 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22130
22131         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22132         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22133         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22134         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22135
22136 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22137
22138         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22139         fcntl.
22140
22141 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22142
22143         [BZ #11577]
22144         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22145         dl_signal_cerror.
22146
22147 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22148
22149         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22150         _PC_PIPE_BUF using F_GETPIPE_SZ.
22151
22152 2010-07-05  Roland McGrath  <roland@redhat.com>
22153
22154         * manual/arith.texi (Rounding Functions): Fix rint description
22155         implicit in round description.
22156
22157 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22158
22159         * elf/Makefile: Fix linking for a few tests to make recent linker
22160         happy.
22161
22162 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22163
22164         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22165         $(common-objpfx)libc_nonshared.a.
22166
22167 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22168
22169         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22170         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22171         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22172         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22173         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22174         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22175         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22176         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22191         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22192         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22193         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22194         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22195         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22196         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22197         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22198         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22199         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22200         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22201         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22202         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22217
22218 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22219
22220         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22221         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22222         * string/memmove.c (memmove): Renamed to ...
22223         (MEMMOVE): ...this.  Default to memmove.
22224         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22225         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22226         (END_CHK): Define.
22227         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22228         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22229         mempcpy-ssse3-back memmove-ssse3-back.
22230         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22231         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22232         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22233         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22234         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22235         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22236         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22237         * sysdeps/x86_64/multiarch/memmove.c: New file.
22238         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22239         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22240         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22241         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22242         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22243         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22244         Define.
22245         (index_Fast_Copy_Backward): Define.
22246         (HAS_ARCH_FEATURE): Define.
22247         (HAS_FAST_REP_STRING): Define.
22248         (HAS_FAST_COPY_BACKWARD): Define.
22249
22250 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22251
22252         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22253         Restore proper fallback handling.
22254
22255 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22256
22257         [BZ #11701]
22258         * posix/group_member.c (__group_member): Correct checking loop.
22259
22260         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22261         OOM in getpwuid_r correctly.  Return error number when the caller
22262         should return, otherwise -1.
22263         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22264         call returning > 0 value.
22265         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22266
22267 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22268
22269         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22270         libc_nonshared.a from targets in modules-names.
22271
22272 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22273
22274         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22275         requires it.
22276
22277 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22278
22279         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22280         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22281         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22282         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22283
22284 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22285
22286         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22287
22288 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22289
22290         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22291         and F_GETPIPE_SZ.
22292         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22293         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22294         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22295         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22296         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22297         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22298
22299 2010-06-14  Roland McGrath  <roland@redhat.com>
22300
22301         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22302
22303 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22304
22305         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22306         __REDIRECT followed by __THROW.
22307         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22308         * posix/getopt.h (getopt): Likewise.
22309
22310 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22311
22312         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22313         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22314         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22315         in AT_FLAGS.
22316         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22317         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22318
22319 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22320
22321         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22322
22323 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22324
22325         [BZ #11640]
22326         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22327         Properly check family and model.
22328
22329 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22330
22331         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22332
22333 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22334
22335         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22336
22337 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22338
22339         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22340         symbol reference.
22341
22342 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22343
22344         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22345         symbol reference.
22346
22347 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22348
22349         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22350         and internal_recvmmsg.
22351         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22352         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22353         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22354         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22355
22356         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22357         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22358         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22359
22360 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22361
22362         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22363
22364 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22365
22366         POWER7 optimizations.
22367         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22368         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22369
22370 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22371
22372         * version.h: Update for 2.13 development version.
22373
22374 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22375
22376         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22377         exceptions.  Return 0.
22378
22379 2010-05-07  Roland McGrath  <roland@redhat.com>
22380
22381         * elf/ldconfig.c (main): Add a const.
22382
22383 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22384
22385         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22386         (args_options): Add no-idn option.
22387         (ahosts_keys_int): Add idn_flags to ai_flags.
22388         (parse_option): Handle 'i' option to clear idn_flags.
22389
22390         * malloc/malloc.c (_int_free): Possible race in the most recently
22391         added check.  Only act on the data if no current modification
22392         happened.
22393
22394 See ChangeLog.17 for earlier changes.