printf should return negative value on error
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         [BZ #11741]
4         * libio/fileops.c (_IO_new_file_write): Correctly return error.
5         (_IO_new_file_xsputn): Also return EOF if none of the input
6         data was written when overflow failed.
7         * libio/iopadn.c (_IO_padn): Likewise.
8         * libio/iowpadn.c (_IO_wpadn): Likewise.
9         * stdio-common/tst-put-error.c: Add copyright notice.
10         (do_test): Add case for printing padded string.
11         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
12         _IO_padn returned error.
13         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
14         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
15         return EOF.
16
17 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
18
19         * libio/libioP.h: Add comment note that the references to C++
20         bits are now obsolete.
21
22 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23
24         * math/libm-test.inc (check_complex): Use asprintf.
25
26 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
27
28         * debug/pcprofiledump.c (print_version): Update copyright year.
29         * malloc/memusagestat.c (print_version): Likewise.
30
31 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
32
33         [BZ #14831]
34         * elf/Makefile (tests): Add tst-audit8.
35         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
36         ($(objpfx)tst-audit8.out): New target.
37         (tst-audit8-ENV): New variable.
38         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
39         audit if l_reloc_result is NULL.
40         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
41         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
42         * elf/tst-audit8.c: New file.
43
44 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
45
46         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
47         * misc/Makefile (CFLAGS-select.c): Define.
48         * posix/Makefile (CFLAGS-pause.c): Define.
49
50 2012-11-13  David S. Miller  <davem@davemloft.net>
51
52         * crypt/Makefile: Move test targets after toplevel Rules
53         inclusion.  Grab any necessary sysdep routines when linking.
54         * crypt/md5.c (md5_process_block): Remove define, we will always
55         name it __md5_process_block.
56         (md5_finish_ctx): Update md5_process_block call.
57         (md5_stream): Likewise.
58         (md5_process_bytes): Likewise.
59         (md5_process_block): Rename to __md5_process_block and move to ...
60         * crypt/md5-block.c: ... here.
61         * crypt/sha256.c (sha256_process_block): Move to ...
62         * crypt/sha256-block.c: ... here.
63         * crypt/sha512.c (sha512_process_block): Move to ...
64         * crypt/sha512-block.c: ... here.
65         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
66         path.
67         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
68         * sysdeps/sparc/sparc64/multiarch/Makefile
69         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
70         crypt subdir.
71         (localedef-aux): Add md5 crypto assembler when in locale subdir.
72         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
73         multiarch changes.
74         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
75         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
76         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
77         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
78         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
79         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
80         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
81         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
82         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
83         file.
84         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
85         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
86         file.
87         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
88
89 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
90
91         * timezone/tzselect.ksh: Update from tzcode git revision
92         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
93         * timezone/zdump.c: Likewise.
94         * timezone/zic.c: Likewise.
95         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
96         in TZVERSION setting, not $(PKGVERSION).
97         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
98         REPORT_BUGS_TO settings.
99
100         [BZ #14838]
101         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
102         macro.
103
104 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
105
106         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
107         detection to immediately after _FP_ROUND().
108         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
109         bits are 0.
110
111 2012-11-11  David S. Miller  <davem@davemloft.net>
112
113         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
114         inttypes.h
115         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
116         __close rather than their public counterparts.
117
118 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
119
120         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
121         file.
122         [UNIX98] (sem_timedwait): Do not expect.
123         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
124         [XPG4 || UNIX98] (sockatmark): Do not expect.
125         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
126         (clock_getcpuclockid): Do not expect.
127         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
128         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
129         Do not expect.
130         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
131         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
132         [UNIX98] (vwscanf): Likewise.
133         [UNIX98] (vswscanf): Likewise.
134
135 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
136
137         * timezone/version.h: Remove file.
138         * timezone/README: Do not refer to version.h.
139         * timezone/Makefile ($(objpfx)zic.o): New dependency on
140         $(objpfx)version.h.
141         ($(objpfx)zdump.o): Likewise.
142         ($(objpfx)version.h): New target.
143
144         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
145         2012i.
146         * timezone/README: Don't mention modification to tzselect.ksh.
147         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
148         work on unmodified tzselect.ksh.  Substitute version numbers in
149         tzselect.ksh.
150
151         * Makefile (format-me): Remove.
152         (INSTALL): Adjust indentation.  Use commands directly instead of
153         using $(format-me).
154
155         * aclocal.m4 (ACX_PKGVERSION): New macro.
156         (ACX_BUGURL): Likewise.
157         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
158         (PKGVERSION): New AC_DEFINE_UNQUOTED.
159         (REPORT_BUGS_TO): Likewise.
160         * configure: Regenerated.
161         * config.h.in (PKGVERSION): New macro.
162         (REPORT_BUGS_TO): Likewise.
163         * config.make.in (PKGVERSION): New variable.
164         (PKGVERSION_TEXI): Likewise.
165         (REPORT_BUGS_TO): Likewise.
166         (REPORT_BUGS_TEXI): Likewise.
167         * Makefile (format-me): Use -I$(common-objpfx)manual.
168         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
169         ($(common-objpfx)manual/%): New target.
170         (manual/%): Remove target.
171         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
172         (print_version): Use PKGVERSION.
173         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
174         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
175         and REPORT_BUGS_TO.
176         ($(objpfx)xtrace): Likewise.
177         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
178         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
179         (print_version): Use PKGVERSION.
180         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
181         (do_version): Use PKGVERSION.
182         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
183         REPORT_BUGS_TO.
184         (common-ldd-rewrite): Likewise.
185         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
186         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
187         (print_version): Use PKGVERSION.
188         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
189         * elf/pldd.c (argp_program_bug_address): Remove variable.
190         (more_help): New function.
191         (argp): Use more_help.
192         (print_version): Use PKGVERSION.
193         * elf/sln.c (main): Use PKGVERSION.
194         (usage): Use REPORT_BUGS_TO.
195         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
196         (top level): Use PKGVERSION.
197         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
198         (print_version): Use PKGVERSION.
199         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
200         (print_version): Use PKGVERSION.
201         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
202         (print_version): Use PKGVERSION.
203         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
204         (print_version): Use PKGVERSION.
205         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
206         (print_version): Use PKGVERSION.
207         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
208         (print_version): Use PKGVERSION.
209         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
210         and BUGURL.
211         ($(objpfx)memusage): Likewise.
212         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
213         (do_version): Use PKGVERSION.
214         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
215         (print_version): Use PKGVERSION.
216         * malloc/mtrace.pl ($PACKAGE): Remove variable.
217         ($PKGVERSION): New variable.
218         ($REPORT_BUGS_TO): Likewise.
219         (usage): Use $REPORT_BUGS_TO.
220         (top level): Use $PKGVERSION.
221         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
222         ($(objpfx)pkgvers.texi): New rule.
223         ($(objpfx)stamp-pkgvers): Likewise.
224         * manual/install.texi: Include pkgvers.texi.
225         (--with-pkgversion): Document new configure option.
226         (--with-bugurl): Likewise.
227         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
228         than necessarily for this particular distribution.  Use
229         REPORT_BUGS_TO for where to report bugs.
230         * INSTALL: Regenerated.
231         * manual/libc.texinfo: Include pkgvers.texi.
232         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
233         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
234         (print_version): Use PKGVERSION.
235         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
236         (print_version): Use PKGVERSION.
237         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
238         (print_version): Use PKGVERSION.
239         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
240         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
241         macro.
242         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
243         (print_version): Use PKGVERSION.
244         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
245         (print_version): Use PKGVERSION.
246         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
247         and PKGVERSION.
248
249         * timezone/checktab.awk: Update from tzcode 2012i.
250         * timezone/ialloc.c: Likewise.
251         * timezone/private.h: Likewise.
252         * timezone/scheck.c: Likewise.
253         * timezone/tzfile.h: Likewise.
254         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
255         (TZVERSION): Hardcode tzcode version number.
256         * timezone/zdump.c: Update from tzcode 2012i.
257         * timezone/zic.c: Likewise.
258         * timezone/version.h: New file.
259         * timezone/README: Describe version.h.  Update upstream location.
260
261         [BZ #14824]
262         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
263         (mktemp): Enable declaration.
264         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
265         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
266         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
267         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
268         Likewise.
269         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
270         Likewise.
271         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
272         Likewise.
273         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
274         Likewise.
275         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
276         Likewise.
277         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
278         Likewise.
279
280         [BZ #14821]
281         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
282         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
283         for copies of such integer values.
284         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
285         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
286
287 2012-11-09  Andreas Jaeger  <aj@suse.de>
288
289         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
290         definitions and declarations that are provided by
291         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
292
293 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
294
295         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
296         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
297         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
298         definition.
299
300 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
301
302         * elf/elf.h: Update comment before AArch64 relocations.
303
304 2012-11-07  David S. Miller  <davem@davemloft.net>
305
306         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
307         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
308         (__start_context): Declare.
309         (__makecontext_ret): Delete.
310         (__makecontext): Hook up __start_context instead of
311         __makecontext_ret.
312         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
313         (sysdep_routines): Add __start_context when in stdlib.
314
315 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
316
317         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
318         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
319         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
320         hardcoded "nm".
321         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
322         (READELF): New variable.  Use it instead of hardcoded "readelf".
323
324 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
325
326         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
327         * sysdeps/x86/Makefile: Here.
328         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
329         * sysdeps/x86/tst-xmmymm.sh: This.
330
331 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
332
333         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
334         expectations.
335         [UNIX98] (pthread_barrier_t): Do not expect.
336         [UNIX98] (pthread_barrierattr_t): Likewise.
337         [UNIX98] (pthread_spinlock_t): Likewise.
338         [UNIX98] (pthread_barrier_destroy): Likewise.
339         [UNIX98] (pthread_barrier_init): Likewise.
340         [UNIX98] (pthread_barrier_wait): Likewise.
341         [UNIX98] (pthread_barrierattr_destroy): Likewise.
342         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
343         [UNIX98] (pthread_barrierattr_init): Likewise.
344         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
345         [UNIX98] (pthread_getcpuclockid): Likewise.
346         [UNIX98] (pthread_mutex_timedlock): Likewise.
347         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
348         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
349         [UNIX98] (pthread_sigmask): Likewise.
350         [UNIX98] (pthread_spin_destroy): Likewise.
351         [UNIX98] (pthread_spin_init): Likewise.
352         [UNIX98] (pthread_spin_lock): Likewise.
353         [UNIX98] (pthread_spin_trylock): Likewise.
354         [UNIX98] (pthread_spin_unlock): Likewise.
355         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
356         Do not expect.
357         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
358         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
359         [XPG3 || XPG4] (pthread_cond_t): Likewise.
360         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
361         [XPG3 || XPG4] (pthread_key_t): Likewise.
362         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
363         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
364         [XPG3 || XPG4] (pthread_once_t): Likewise.
365         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
366         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
367         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
368         [XPG3 || XPG4] (pthread_t): Likewise.
369
370         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
371         not expect.
372         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
373
374         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
375         Change function return type to int.
376
377         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
378         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
379         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
380         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
381         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
382         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
383         [!POSIX] (posix_madvise): Likewise.
384         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
385         && !UNIX98].
386         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
387         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
388         (mode_t): Likewise.
389         (posix_mem_offset): Likewise.
390         (posix_typed_mem_get_info): Likewise.
391         (posix_typed_mem_open): Likewise.
392
393         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
394         Change condition to [XOPEN2K8].
395
396         * conform/conformtest.pl: Preprocess allow-header data with -x c
397         instead of from stdin.
398         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
399         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
400         [C99-based standards] (cerfc): Likewise.
401         [C99-based standards] (cexp2): Likewise.
402         [C99-based standards] (cexpm1): Likewise.
403         [C99-based standards] (clog10): Likewise.
404         [C99-based standards] (clog1p): Likewise.
405         [C99-based standards] (clog2): Likewise.
406         [C99-based standards] (clgamma): Likewise.
407         [C99-based standards] (ctgamma): Likewise.
408         [C99-based standards] (cerff): Likewise.
409         [C99-based standards] (cerfcf): Likewise.
410         [C99-based standards] (cexp2f): Likewise.
411         [C99-based standards] (cexpm1f): Likewise.
412         [C99-based standards] (clog10f): Likewise.
413         [C99-based standards] (clog1pf): Likewise.
414         [C99-based standards] (clog2f): Likewise.
415         [C99-based standards] (clgammaf): Likewise.
416         [C99-based standards] (ctgammaf): Likewise.
417         [C99-based standards] (cerfl): Likewise.
418         [C99-based standards] (cerfcl): Likewise.
419         [C99-based standards] (cexp2l): Likewise.
420         [C99-based standards] (cexpm1l): Likewise.
421         [C99-based standards] (clog10l): Likewise.
422         [C99-based standards] (clog1pl): Likewise.
423         [C99-based standards] (clog2l): Likewise.
424         [C99-based standards] (clgammal): Likewise.
425         [C99-based standards] (ctgammal): Likewise.
426         * conform/data/inttypes.h-data [C99-based standards]: Include
427         stdint.h-data.  Remove all expectations for stdint.h contents.
428         [C99-based standards] (PRI*): Do not allow.
429         [C99-based standards] (SCN*): Likewise.
430         [C99-based standards] (*_t): Likewise.
431         [C99-based-standards] (PRId8): Expect macro.
432         [C99-based-standards] (PRIi8): Likewise.
433         [C99-based-standards] (PRIo8): Likewise.
434         [C99-based-standards] (PRIu8): Likewise.
435         [C99-based-standards] (PRIx8): Likewise.
436         [C99-based-standards] (PRIX8): Likewise.
437         [C99-based-standards] (SCNd8): Likewise.
438         [C99-based-standards] (SCNi8): Likewise.
439         [C99-based-standards] (SCNo8): Likewise.
440         [C99-based-standards] (SCNu8): Likewise.
441         [C99-based-standards] (SCNx8): Likewise.
442         [C99-based-standards] (PRIdLEAST8): Likewise.
443         [C99-based-standards] (PRIiLEAST8): Likewise.
444         [C99-based-standards] (PRIoLEAST8): Likewise.
445         [C99-based-standards] (PRIuLEAST8): Likewise.
446         [C99-based-standards] (PRIxLEAST8): Likewise.
447         [C99-based-standards] (PRIXLEAST8): Likewise.
448         [C99-based-standards] (SCNdLEAST8): Likewise.
449         [C99-based-standards] (SCNiLEAST8): Likewise.
450         [C99-based-standards] (SCNoLEAST8): Likewise.
451         [C99-based-standards] (SCNuLEAST8): Likewise.
452         [C99-based-standards] (SCNxLEAST8): Likewise.
453         [C99-based-standards] (PRIdFAST8): Likewise.
454         [C99-based-standards] (PRIiFAST8): Likewise.
455         [C99-based-standards] (PRIoFAST8): Likewise.
456         [C99-based-standards] (PRIuFAST8): Likewise.
457         [C99-based-standards] (PRIxFAST8): Likewise.
458         [C99-based-standards] (PRIXFAST8): Likewise.
459         [C99-based-standards] (SCNdFAST8): Likewise.
460         [C99-based-standards] (SCNiFAST8): Likewise.
461         [C99-based-standards] (SCNoFAST8): Likewise.
462         [C99-based-standards] (SCNuFAST8): Likewise.
463         [C99-based-standards] (SCNxFAST8): Likewise.
464         [C99-based-standards] (PRId16): Likewise.
465         [C99-based-standards] (PRIi16): Likewise.
466         [C99-based-standards] (PRIo16): Likewise.
467         [C99-based-standards] (PRIu16): Likewise.
468         [C99-based-standards] (PRIx16): Likewise.
469         [C99-based-standards] (PRIX16): Likewise.
470         [C99-based-standards] (SCNd16): Likewise.
471         [C99-based-standards] (SCNi16): Likewise.
472         [C99-based-standards] (SCNo16): Likewise.
473         [C99-based-standards] (SCNu16): Likewise.
474         [C99-based-standards] (SCNx16): Likewise.
475         [C99-based-standards] (PRIdLEAST16): Likewise.
476         [C99-based-standards] (PRIiLEAST16): Likewise.
477         [C99-based-standards] (PRIoLEAST16): Likewise.
478         [C99-based-standards] (PRIuLEAST16): Likewise.
479         [C99-based-standards] (PRIxLEAST16): Likewise.
480         [C99-based-standards] (PRIXLEAST16): Likewise.
481         [C99-based-standards] (SCNdLEAST16): Likewise.
482         [C99-based-standards] (SCNiLEAST16): Likewise.
483         [C99-based-standards] (SCNoLEAST16): Likewise.
484         [C99-based-standards] (SCNuLEAST16): Likewise.
485         [C99-based-standards] (SCNxLEAST16): Likewise.
486         [C99-based-standards] (PRIdFAST16): Likewise.
487         [C99-based-standards] (PRIiFAST16): Likewise.
488         [C99-based-standards] (PRIoFAST16): Likewise.
489         [C99-based-standards] (PRIuFAST16): Likewise.
490         [C99-based-standards] (PRIxFAST16): Likewise.
491         [C99-based-standards] (PRIXFAST16): Likewise.
492         [C99-based-standards] (SCNdFAST16): Likewise.
493         [C99-based-standards] (SCNiFAST16): Likewise.
494         [C99-based-standards] (SCNoFAST16): Likewise.
495         [C99-based-standards] (SCNuFAST16): Likewise.
496         [C99-based-standards] (SCNxFAST16): Likewise.
497         [C99-based-standards] (PRId32): Likewise.
498         [C99-based-standards] (PRIi32): Likewise.
499         [C99-based-standards] (PRIo32): Likewise.
500         [C99-based-standards] (PRIu32): Likewise.
501         [C99-based-standards] (PRIx32): Likewise.
502         [C99-based-standards] (PRIX32): Likewise.
503         [C99-based-standards] (SCNd32): Likewise.
504         [C99-based-standards] (SCNi32): Likewise.
505         [C99-based-standards] (SCNo32): Likewise.
506         [C99-based-standards] (SCNu32): Likewise.
507         [C99-based-standards] (SCNx32): Likewise.
508         [C99-based-standards] (PRIdLEAST32): Likewise.
509         [C99-based-standards] (PRIiLEAST32): Likewise.
510         [C99-based-standards] (PRIoLEAST32): Likewise.
511         [C99-based-standards] (PRIuLEAST32): Likewise.
512         [C99-based-standards] (PRIxLEAST32): Likewise.
513         [C99-based-standards] (PRIXLEAST32): Likewise.
514         [C99-based-standards] (SCNdLEAST32): Likewise.
515         [C99-based-standards] (SCNiLEAST32): Likewise.
516         [C99-based-standards] (SCNoLEAST32): Likewise.
517         [C99-based-standards] (SCNuLEAST32): Likewise.
518         [C99-based-standards] (SCNxLEAST32): Likewise.
519         [C99-based-standards] (PRIdFAST32): Likewise.
520         [C99-based-standards] (PRIiFAST32): Likewise.
521         [C99-based-standards] (PRIoFAST32): Likewise.
522         [C99-based-standards] (PRIuFAST32): Likewise.
523         [C99-based-standards] (PRIxFAST32): Likewise.
524         [C99-based-standards] (PRIXFAST32): Likewise.
525         [C99-based-standards] (SCNdFAST32): Likewise.
526         [C99-based-standards] (SCNiFAST32): Likewise.
527         [C99-based-standards] (SCNoFAST32): Likewise.
528         [C99-based-standards] (SCNuFAST32): Likewise.
529         [C99-based-standards] (SCNxFAST32): Likewise.
530         [C99-based-standards] (PRId64): Likewise.
531         [C99-based-standards] (PRIi64): Likewise.
532         [C99-based-standards] (PRIo64): Likewise.
533         [C99-based-standards] (PRIu64): Likewise.
534         [C99-based-standards] (PRIx64): Likewise.
535         [C99-based-standards] (PRIX64): Likewise.
536         [C99-based-standards] (SCNd64): Likewise.
537         [C99-based-standards] (SCNi64): Likewise.
538         [C99-based-standards] (SCNo64): Likewise.
539         [C99-based-standards] (SCNu64): Likewise.
540         [C99-based-standards] (SCNx64): Likewise.
541         [C99-based-standards] (PRIdLEAST64): Likewise.
542         [C99-based-standards] (PRIiLEAST64): Likewise.
543         [C99-based-standards] (PRIoLEAST64): Likewise.
544         [C99-based-standards] (PRIuLEAST64): Likewise.
545         [C99-based-standards] (PRIxLEAST64): Likewise.
546         [C99-based-standards] (PRIXLEAST64): Likewise.
547         [C99-based-standards] (SCNdLEAST64): Likewise.
548         [C99-based-standards] (SCNiLEAST64): Likewise.
549         [C99-based-standards] (SCNoLEAST64): Likewise.
550         [C99-based-standards] (SCNuLEAST64): Likewise.
551         [C99-based-standards] (SCNxLEAST64): Likewise.
552         [C99-based-standards] (PRIdFAST64): Likewise.
553         [C99-based-standards] (PRIiFAST64): Likewise.
554         [C99-based-standards] (PRIoFAST64): Likewise.
555         [C99-based-standards] (PRIuFAST64): Likewise.
556         [C99-based-standards] (PRIxFAST64): Likewise.
557         [C99-based-standards] (PRIXFAST64): Likewise.
558         [C99-based-standards] (SCNdFAST64): Likewise.
559         [C99-based-standards] (SCNiFAST64): Likewise.
560         [C99-based-standards] (SCNoFAST64): Likewise.
561         [C99-based-standards] (SCNuFAST64): Likewise.
562         [C99-based-standards] (SCNxFAST64): Likewise.
563         [C99-based-standards] (PRIdMAX): Likewise.
564         [C99-based-standards] (PRIiMAX): Likewise.
565         [C99-based-standards] (PRIoMAX): Likewise.
566         [C99-based-standards] (PRIuMAX): Likewise.
567         [C99-based-standards] (PRIxMAX): Likewise.
568         [C99-based-standards] (PRIXMAX): Likewise.
569         [C99-based-standards] (SCNdMAX): Likewise.
570         [C99-based-standards] (SCNiMAX): Likewise.
571         [C99-based-standards] (SCNoMAX): Likewise.
572         [C99-based-standards] (SCNuMAX): Likewise.
573         [C99-based-standards] (SCNxMAX): Likewise.
574         [C99-based-standards] (PRIdPTR): Likewise.
575         [C99-based-standards] (PRIiPTR): Likewise.
576         [C99-based-standards] (PRIoPTR): Likewise.
577         [C99-based-standards] (PRIuPTR): Likewise.
578         [C99-based-standards] (PRIxPTR): Likewise.
579         [C99-based-standards] (PRIXPTR): Likewise.
580         [C99-based-standards] (SCNdPTR): Likewise.
581         [C99-based-standards] (SCNiPTR): Likewise.
582         [C99-based-standards] (SCNoPTR): Likewise.
583         [C99-based-standards] (SCNuPTR): Likewise.
584         [C99-based-standards] (SCNxPTR): Likewise.
585         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
586         allow.
587         * conform/data/stdint.h-data: Update comments to clarify
588         requirements.
589         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
590         type.
591         [C99-based standards] (INT8_MAX): Likewise.
592         [C99-based standards] (INT16_MIN): Likewise.
593         [C99-based standards] (INT16_MAX): Likewise.
594         [C99-based standards] (INT32_MIN): Likewise.
595         [C99-based standards] (INT32_MAX): Likewise.
596         [C99-based standards] (INT64_MIN): Likewise.
597         [C99-based standards] (INT64_MAX): Likewise.
598         [C99-based standards] (UINT8_MAX): Likewise.
599         [C99-based standards] (UINT16_MAX): Likewise.
600         [C99-based standards] (UINT32_MAX): Likewise.
601         [C99-based standards] (UINT64_MAX): Likewise.
602         [C99-based standards] (INT_LEAST8_MIN): Likewise.
603         [C99-based standards] (INT_LEAST8_MAX): Likewise.
604         [C99-based standards] (INT_LEAST16_MIN): Likewise.
605         [C99-based standards] (INT_LEAST16_MAX): Likewise.
606         [C99-based standards] (INT_LEAST32_MIN): Likewise.
607         [C99-based standards] (INT_LEAST32_MAX): Likewise.
608         [C99-based standards] (INT_LEAST64_MIN): Likewise.
609         [C99-based standards] (INT_LEAST64_MAX): Likewise.
610         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
611         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
612         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
613         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
614         [C99-based standards] (INT_FAST8_MIN): Likewise.
615         [C99-based standards] (INT_FAST8_MAX): Likewise.
616         [C99-based standards] (INT_FAST16_MIN): Likewise.
617         [C99-based standards] (INT_FAST16_MAX): Likewise.
618         [C99-based standards] (INT_FAST32_MIN): Likewise.
619         [C99-based standards] (INT_FAST32_MAX): Likewise.
620         [C99-based standards] (INT_FAST64_MIN): Likewise.
621         [C99-based standards] (INT_FAST64_MAX): Likewise.
622         [C99-based standards] (UINT_FAST8_MAX): Likewise.
623         [C99-based standards] (UINT_FAST16_MAX): Likewise.
624         [C99-based standards] (UINT_FAST32_MAX): Likewise.
625         [C99-based standards] (UINT_FAST64_MAX): Likewise.
626         [C99-based standards] (INTPTR_MIN): Likewise.
627         [C99-based standards] (INTPTR_MAX): Likewise.
628         [C99-based standards] (UINTPTR_MAX): Likewise.
629         [C99-based standards] (INTMAX_MIN): Likewise.
630         [C99-based standards] (INTMAX_MAX): Likewise.
631         [C99-based standards] (UINTMAX_MAX): Likewise.
632         [C99-based standards] (PTRDIFF_MIN): Likewise.
633         [C99-based standards] (PTRDIFF_MAX): Likewise.
634         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
635         [C99-based standards] (SIZE_MAX): Likewise.
636         [C99-based standards] (WCHAR_MAX): Likewise.
637         [C99-based standards] (WINT_MAX): Likewise.
638         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
639         constraint on value.
640         [C99-based standards] (WCHAR_MIN): Likewise.
641         [C99-based standards] (WINT_MIN): Likewise.
642         [C99-based standards] (*_t): Allow.
643         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
644         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
645         Include math.h-data and complex.h-data.  Remove all expectations
646         of math.h and complex.h contents.
647         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
648         at end of line.
649         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
650         (struct tm): Expect tag.
651         [C99-based-standards] (wcstof): Expect function.
652         [C99-based-standards] (wcstold): Likewise.
653         [C99-based-standards] (wcstoll): Likewise.
654         [C99-based-standards] (wcstoull): Likewise.
655         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
656         macro-int-constant.  Specify type.
657         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
658         constraint on value.
659         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
660         Specify type.
661         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
662         Specify value.
663         [ISO C standards]: Do not allow headers.
664         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
665         wcs[abcdefghijklmnopqrstuvwxyz]*.
666         [ISO C standards] (*_t): Do not allow.
667         * conform/data/wctype.h-data [C99-based standards] (iswblank):
668         Expect function.
669         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
670         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
671         Specify type.
672         [ISO C standards]: Do not allow headers.
673         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
674         is[abcdefghijklmnopqrstuvwxyz]*.
675         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
676         to[abcdefghijklmnopqrstuvwxyz]*.
677         [ISO C standards] (*_t): Do not allow.
678         * conform/data/stdalign.h-data: New file.
679         * conform/data/stdbool.h-data: Likewise.
680         * conform/data/stdnoreturn.h-data: Likewise.
681
682 2012-11-07  Andreas Jaeger  <aj@suse.de>
683
684         [BZ #14809]
685         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
686         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
687         guards are changed.  Only define if not yet defined, #undef back
688         after including linux/sysctl.h if defined here.
689
690 2012-11-07  Roland McGrath  <roland@hack.frob.com>
691
692         [BZ #14815]
693         * manual/filesys.texi (Directory Entries): Typo fix.
694         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
695
696 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
697
698         * elf/elf.h (EM_AARCH64): New macro.
699         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
700         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
701         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
702         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
703         (R_AARCH64_TLSDESC): Likewise.
704         (NT_ARM_TLS): Likewise.
705         (NT_ARM_HW_BREAK): Likewise.
706         (NT_ARM_HW_WATCH): Likewise.
707
708 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
709
710         [BZ #14811]
711         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
712         (__ieee754_powl): Saturate nonzero exponents with absolute value
713         below 0x1p-79 to +/- 0x1p-79.
714         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
715         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
716         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
717         nonzero exponents with absolute value below 0x1p-32 to +/-
718         0x1p-32.
719         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
720         (__ieee754_powl): Saturate nonzero exponents with absolute value
721         below 0x1p-79 to +/- 0x1p-79.
722         * math/libm-test.inc (pow_test): Add more tests.
723
724 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
725
726         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
727         _dl_s390_cap_flags with kernel. Increase string length.
728         (_dl_s390_platforms): Add z196 and zEC12.
729
730 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
731
732         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
733         Change XOPEN21K to XOPEN2K.
734
735 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
736
737         * string/memmove.c: Use memcpy when possible.
738
739 2012-11-06  Andreas Jaeger  <aj@suse.de>
740
741         * po/eo.po: Update from translation team.
742
743 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
744
745         [BZ #14793]
746         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
747         exponent and small x and y exponents, scale x or y up.  Increase
748         by 2 the exponent used in scaling up.
749         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
750         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
751         * math/libm-test.inc (fma_test): Add more tests.
752         (fma_test_towardzero): Likewise.
753         (fma_test_downward): Likewise.
754         (fma_test_upward): Likewise.
755
756 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
757
758         [BZ #14805]
759         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
760         fenv_t *.
761
762         [BZ #14801]
763         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
764         namespace for names of struct fields.
765         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
766         fenv_t fields.
767         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
768         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
769
770 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
771
772         [BZ #3665]
773         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
774
775 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
776
777         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
778         PTR_DEMANGLE.
779
780         [BZ #5246]
781         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
782         PTR_DEMANGLE.
783
784 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
785
786         [BZ #14797]
787         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
788         definitely overflow as x * y not x * y + z.
789         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
790         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
791         * math/libm-test.inc (fma_test): Add more tests.
792         (fma_test_towardzero): Likewise.
793         (fma_test_downward): Likewise.
794         (fma_test_upward): Likewise.
795
796 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
797
798         [BZ #157]
799
800         * include/stub-tag.h: Remove file.
801         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
802         '#include' of it.
803         * manual/maint.texi (Porting): Don't reference it.
804         * Makerules ($(objpfx)stubs): Likewise.
805         * dirent/closedir.c: Don't include <stub-tag.h>.
806         * dirent/dirfd.c: Likewise.
807         * dirent/fdopendir.c: Likewise.
808         * dirent/getdents.c: Likewise.
809         * dirent/getdents64.c: Likewise.
810         * dirent/opendir.c: Likewise.
811         * dirent/readdir.c: Likewise.
812         * dirent/readdir64.c: Likewise.
813         * dirent/readdir64_r.c: Likewise.
814         * dirent/readdir_r.c: Likewise.
815         * dirent/rewinddir.c: Likewise.
816         * dirent/seekdir.c: Likewise.
817         * dirent/telldir.c: Likewise.
818         * gmon/profil.c: Likewise.
819         * grp/setgroups.c: Likewise.
820         * inet/if_index.c: Likewise.
821         * io/access.c: Likewise.
822         * io/chdir.c: Likewise.
823         * io/chmod.c: Likewise.
824         * io/chown.c: Likewise.
825         * io/close.c: Likewise.
826         * io/dup.c: Likewise.
827         * io/dup2.c: Likewise.
828         * io/dup3.c: Likewise.
829         * io/euidaccess.c: Likewise.
830         * io/faccessat.c: Likewise.
831         * io/fchdir.c: Likewise.
832         * io/fchmod.c: Likewise.
833         * io/fchmodat.c: Likewise.
834         * io/fchown.c: Likewise.
835         * io/fchownat.c: Likewise.
836         * io/fcntl.c: Likewise.
837         * io/flock.c: Likewise.
838         * io/fstatfs.c: Likewise.
839         * io/fstatfs64.c: Likewise.
840         * io/fstatvfs.c: Likewise.
841         * io/fstatvfs64.c: Likewise.
842         * io/futimens.c: Likewise.
843         * io/fxstat.c: Likewise.
844         * io/fxstat64.c: Likewise.
845         * io/fxstatat.c: Likewise.
846         * io/fxstatat64.c: Likewise.
847         * io/getcwd.c: Likewise.
848         * io/isatty.c: Likewise.
849         * io/lchmod.c: Likewise.
850         * io/lchown.c: Likewise.
851         * io/link.c: Likewise.
852         * io/linkat.c: Likewise.
853         * io/lseek.c: Likewise.
854         * io/lseek64.c: Likewise.
855         * io/lxstat64.c: Likewise.
856         * io/mkdir.c: Likewise.
857         * io/mkdirat.c: Likewise.
858         * io/mkfifo.c: Likewise.
859         * io/mkfifoat.c: Likewise.
860         * io/open.c: Likewise.
861         * io/open64.c: Likewise.
862         * io/openat.c: Likewise.
863         * io/openat64.c: Likewise.
864         * io/pipe.c: Likewise.
865         * io/pipe2.c: Likewise.
866         * io/poll.c: Likewise.
867         * io/posix_fadvise.c: Likewise.
868         * io/posix_fadvise64.c: Likewise.
869         * io/posix_fallocate.c: Likewise.
870         * io/posix_fallocate64.c: Likewise.
871         * io/read.c: Likewise.
872         * io/readlink.c: Likewise.
873         * io/readlinkat.c: Likewise.
874         * io/rmdir.c: Likewise.
875         * io/sendfile.c: Likewise.
876         * io/sendfile64.c: Likewise.
877         * io/statfs.c: Likewise.
878         * io/statfs64.c: Likewise.
879         * io/statvfs.c: Likewise.
880         * io/statvfs64.c: Likewise.
881         * io/symlink.c: Likewise.
882         * io/symlinkat.c: Likewise.
883         * io/ttyname.c: Likewise.
884         * io/ttyname_r.c: Likewise.
885         * io/umask.c: Likewise.
886         * io/unlink.c: Likewise.
887         * io/unlinkat.c: Likewise.
888         * io/utime.c: Likewise.
889         * io/utimensat.c: Likewise.
890         * io/write.c: Likewise.
891         * io/xmknod.c: Likewise.
892         * io/xmknodat.c: Likewise.
893         * io/xstat.c: Likewise.
894         * io/xstat64.c: Likewise.
895         * login/getpt.c: Likewise.
896         * login/grantpt.c: Likewise.
897         * login/unlockpt.c: Likewise.
898         * math/e_acoshl.c: Likewise.
899         * math/e_acosl.c: Likewise.
900         * math/e_asinl.c: Likewise.
901         * math/e_atan2l.c: Likewise.
902         * math/e_atanhl.c: Likewise.
903         * math/e_coshl.c: Likewise.
904         * math/e_expl.c: Likewise.
905         * math/e_fmodl.c: Likewise.
906         * math/e_gammal_r.c: Likewise.
907         * math/e_hypotl.c: Likewise.
908         * math/e_j0l.c: Likewise.
909         * math/e_j1l.c: Likewise.
910         * math/e_jnl.c: Likewise.
911         * math/e_lgammal_r.c: Likewise.
912         * math/e_log10l.c: Likewise.
913         * math/e_log2l.c: Likewise.
914         * math/e_logl.c: Likewise.
915         * math/e_powl.c: Likewise.
916         * math/e_rem_pio2l.c: Likewise.
917         * math/e_sinhl.c: Likewise.
918         * math/e_sqrtl.c: Likewise.
919         * math/fclrexcpt.c: Likewise.
920         * math/fedisblxcpt.c: Likewise.
921         * math/feenablxcpt.c: Likewise.
922         * math/fegetenv.c: Likewise.
923         * math/fegetexcept.c: Likewise.
924         * math/fegetround.c: Likewise.
925         * math/feholdexcpt.c: Likewise.
926         * math/fesetenv.c: Likewise.
927         * math/fesetround.c: Likewise.
928         * math/feupdateenv.c: Likewise.
929         * math/fgetexcptflg.c: Likewise.
930         * math/fraiseexcpt.c: Likewise.
931         * math/fsetexcptflg.c: Likewise.
932         * math/ftestexcept.c: Likewise.
933         * math/k_cosl.c: Likewise.
934         * math/k_rem_pio2l.c: Likewise.
935         * math/k_sinl.c: Likewise.
936         * math/k_tanl.c: Likewise.
937         * math/s_asinhl.c: Likewise.
938         * math/s_atanl.c: Likewise.
939         * math/s_cbrtl.c: Likewise.
940         * math/s_erfl.c: Likewise.
941         * math/s_expm1l.c: Likewise.
942         * math/s_log1pl.c: Likewise.
943         * math/s_tanhl.c: Likewise.
944         * misc/acct.c: Likewise.
945         * misc/brk.c: Likewise.
946         * misc/chflags.c: Likewise.
947         * misc/chroot.c: Likewise.
948         * misc/fchflags.c: Likewise.
949         * misc/fgetxattr.c: Likewise.
950         * misc/flistxattr.c: Likewise.
951         * misc/fremovexattr.c: Likewise.
952         * misc/fsetxattr.c: Likewise.
953         * misc/fsync.c: Likewise.
954         * misc/ftruncate.c: Likewise.
955         * misc/futimes.c: Likewise.
956         * misc/futimesat.c: Likewise.
957         * misc/getdomain.c: Likewise.
958         * misc/getdtsz.c: Likewise.
959         * misc/gethostid.c: Likewise.
960         * misc/gethostname.c: Likewise.
961         * misc/getloadavg.c: Likewise.
962         * misc/getpagesize.c: Likewise.
963         * misc/getsysstats.c: Likewise.
964         * misc/getxattr.c: Likewise.
965         * misc/gtty.c: Likewise.
966         * misc/ioctl.c: Likewise.
967         * misc/lgetxattr.c: Likewise.
968         * misc/listxattr.c: Likewise.
969         * misc/llistxattr.c: Likewise.
970         * misc/lremovexattr.c: Likewise.
971         * misc/lsetxattr.c: Likewise.
972         * misc/lutimes.c: Likewise.
973         * misc/madvise.c: Likewise.
974         * misc/mincore.c: Likewise.
975         * misc/mlock.c: Likewise.
976         * misc/mlockall.c: Likewise.
977         * misc/mmap.c: Likewise.
978         * misc/mprotect.c: Likewise.
979         * misc/msync.c: Likewise.
980         * misc/munlock.c: Likewise.
981         * misc/munlockall.c: Likewise.
982         * misc/munmap.c: Likewise.
983         * misc/preadv.c: Likewise.
984         * misc/preadv64.c: Likewise.
985         * misc/ptrace.c: Likewise.
986         * misc/pwritev.c: Likewise.
987         * misc/pwritev64.c: Likewise.
988         * misc/readv.c: Likewise.
989         * misc/reboot.c: Likewise.
990         * misc/remap_file_pages.c: Likewise.
991         * misc/removexattr.c: Likewise.
992         * misc/revoke.c: Likewise.
993         * misc/select.c: Likewise.
994         * misc/setdomain.c: Likewise.
995         * misc/setegid.c: Likewise.
996         * misc/seteuid.c: Likewise.
997         * misc/sethostid.c: Likewise.
998         * misc/sethostname.c: Likewise.
999         * misc/setregid.c: Likewise.
1000         * misc/setreuid.c: Likewise.
1001         * misc/setxattr.c: Likewise.
1002         * misc/sstk.c: Likewise.
1003         * misc/stty.c: Likewise.
1004         * misc/swapoff.c: Likewise.
1005         * misc/swapon.c: Likewise.
1006         * misc/sync.c: Likewise.
1007         * misc/syncfs.c: Likewise.
1008         * misc/syscall.c: Likewise.
1009         * misc/truncate.c: Likewise.
1010         * misc/ualarm.c: Likewise.
1011         * misc/usleep.c: Likewise.
1012         * misc/ustat.c: Likewise.
1013         * misc/utimes.c: Likewise.
1014         * misc/vhangup.c: Likewise.
1015         * misc/writev.c: Likewise.
1016         * posix/_exit.c: Likewise.
1017         * posix/alarm.c: Likewise.
1018         * posix/execve.c: Likewise.
1019         * posix/fexecve.c: Likewise.
1020         * posix/fork.c: Likewise.
1021         * posix/fpathconf.c: Likewise.
1022         * posix/getaddrinfo.c: Likewise.
1023         * posix/getegid.c: Likewise.
1024         * posix/geteuid.c: Likewise.
1025         * posix/getgid.c: Likewise.
1026         * posix/getgroups.c: Likewise.
1027         * posix/getlogin.c: Likewise.
1028         * posix/getlogin_r.c: Likewise.
1029         * posix/getpgid.c: Likewise.
1030         * posix/getpid.c: Likewise.
1031         * posix/getppid.c: Likewise.
1032         * posix/getresgid.c: Likewise.
1033         * posix/getresuid.c: Likewise.
1034         * posix/getsid.c: Likewise.
1035         * posix/getuid.c: Likewise.
1036         * posix/glob64.c: Likewise.
1037         * posix/nanosleep.c: Likewise.
1038         * posix/pathconf.c: Likewise.
1039         * posix/pause.c: Likewise.
1040         * posix/posix_madvise.c: Likewise.
1041         * posix/pread.c: Likewise.
1042         * posix/pread64.c: Likewise.
1043         * posix/pwrite.c: Likewise.
1044         * posix/pwrite64.c: Likewise.
1045         * posix/sched_getaffinity.c: Likewise.
1046         * posix/sched_getp.c: Likewise.
1047         * posix/sched_gets.c: Likewise.
1048         * posix/sched_primax.c: Likewise.
1049         * posix/sched_primin.c: Likewise.
1050         * posix/sched_rr_gi.c: Likewise.
1051         * posix/sched_setaffinity.c: Likewise.
1052         * posix/sched_setp.c: Likewise.
1053         * posix/sched_sets.c: Likewise.
1054         * posix/sched_yield.c: Likewise.
1055         * posix/setgid.c: Likewise.
1056         * posix/setlogin.c: Likewise.
1057         * posix/setpgid.c: Likewise.
1058         * posix/setresgid.c: Likewise.
1059         * posix/setresuid.c: Likewise.
1060         * posix/setsid.c: Likewise.
1061         * posix/setuid.c: Likewise.
1062         * posix/sleep.c: Likewise.
1063         * posix/spawni.c: Likewise.
1064         * posix/sysconf.c: Likewise.
1065         * posix/times.c: Likewise.
1066         * posix/wait.c: Likewise.
1067         * posix/wait3.c: Likewise.
1068         * posix/wait4.c: Likewise.
1069         * posix/waitpid.c: Likewise.
1070         * resolv/gai_sigqueue.c: Likewise.
1071         * resource/getpriority.c: Likewise.
1072         * resource/getrlimit.c: Likewise.
1073         * resource/getrusage.c: Likewise.
1074         * resource/nice.c: Likewise.
1075         * resource/setpriority.c: Likewise.
1076         * resource/setrlimit.c: Likewise.
1077         * resource/ulimit.c: Likewise.
1078         * rt/aio_cancel.c: Likewise.
1079         * rt/aio_fsync.c: Likewise.
1080         * rt/aio_read.c: Likewise.
1081         * rt/aio_sigqueue.c: Likewise.
1082         * rt/aio_suspend.c: Likewise.
1083         * rt/aio_write.c: Likewise.
1084         * rt/clock_getres.c: Likewise.
1085         * rt/clock_gettime.c: Likewise.
1086         * rt/clock_nanosleep.c: Likewise.
1087         * rt/clock_settime.c: Likewise.
1088         * rt/lio_listio.c: Likewise.
1089         * rt/mq_close.c: Likewise.
1090         * rt/mq_getattr.c: Likewise.
1091         * rt/mq_notify.c: Likewise.
1092         * rt/mq_open.c: Likewise.
1093         * rt/mq_receive.c: Likewise.
1094         * rt/mq_send.c: Likewise.
1095         * rt/mq_setattr.c: Likewise.
1096         * rt/mq_timedreceive.c: Likewise.
1097         * rt/mq_timedsend.c: Likewise.
1098         * rt/mq_unlink.c: Likewise.
1099         * rt/shm_open.c: Likewise.
1100         * rt/shm_unlink.c: Likewise.
1101         * rt/timer_create.c: Likewise.
1102         * rt/timer_delete.c: Likewise.
1103         * rt/timer_getoverr.c: Likewise.
1104         * rt/timer_gettime.c: Likewise.
1105         * rt/timer_settime.c: Likewise.
1106         * setjmp/__longjmp.c: Likewise.
1107         * setjmp/setjmp.c: Likewise.
1108         * signal/kill.c: Likewise.
1109         * signal/killpg.c: Likewise.
1110         * signal/raise.c: Likewise.
1111         * signal/sigaction.c: Likewise.
1112         * signal/sigaltstack.c: Likewise.
1113         * signal/sigblock.c: Likewise.
1114         * signal/sigignore.c: Likewise.
1115         * signal/sigintr.c: Likewise.
1116         * signal/signal.c: Likewise.
1117         * signal/sigpause.c: Likewise.
1118         * signal/sigpending.c: Likewise.
1119         * signal/sigqueue.c: Likewise.
1120         * signal/sigreturn.c: Likewise.
1121         * signal/sigset.c: Likewise.
1122         * signal/sigsetmask.c: Likewise.
1123         * signal/sigstack.c: Likewise.
1124         * signal/sigsuspend.c: Likewise.
1125         * signal/sigtimedwait.c: Likewise.
1126         * signal/sigvec.c: Likewise.
1127         * signal/sigwait.c: Likewise.
1128         * signal/sigwaitinfo.c: Likewise.
1129         * signal/sysv_signal.c: Likewise.
1130         * socket/accept.c: Likewise.
1131         * socket/accept4.c: Likewise.
1132         * socket/bind.c: Likewise.
1133         * socket/connect.c: Likewise.
1134         * socket/getpeername.c: Likewise.
1135         * socket/getsockname.c: Likewise.
1136         * socket/getsockopt.c: Likewise.
1137         * socket/isfdtype.c: Likewise.
1138         * socket/listen.c: Likewise.
1139         * socket/recv.c: Likewise.
1140         * socket/recvfrom.c: Likewise.
1141         * socket/recvmsg.c: Likewise.
1142         * socket/send.c: Likewise.
1143         * socket/sendmsg.c: Likewise.
1144         * socket/sendto.c: Likewise.
1145         * socket/setsockopt.c: Likewise.
1146         * socket/shutdown.c: Likewise.
1147         * socket/sockatmark.c: Likewise.
1148         * socket/socket.c: Likewise.
1149         * socket/socketpair.c: Likewise.
1150         * stdio-common/ctermid.c: Likewise.
1151         * stdio-common/cuserid.c: Likewise.
1152         * stdio-common/remove.c: Likewise.
1153         * stdio-common/rename.c: Likewise.
1154         * stdio-common/renameat.c: Likewise.
1155         * stdio-common/tempname.c: Likewise.
1156         * stdlib/getcontext.c: Likewise.
1157         * stdlib/makecontext.c: Likewise.
1158         * stdlib/setcontext.c: Likewise.
1159         * stdlib/swapcontext.c: Likewise.
1160         * stdlib/system.c: Likewise.
1161         * streams/fattach.c: Likewise.
1162         * streams/fdetach.c: Likewise.
1163         * streams/getmsg.c: Likewise.
1164         * streams/getpmsg.c: Likewise.
1165         * streams/putmsg.c: Likewise.
1166         * streams/putpmsg.c: Likewise.
1167         * sysdeps/unix/bsd/getpt.c: Likewise.
1168         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1169         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1170         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1172         Likewise.
1173         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1174         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1175         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1176         * sysvipc/msgctl.c: Likewise.
1177         * sysvipc/msgget.c: Likewise.
1178         * sysvipc/msgrcv.c: Likewise.
1179         * sysvipc/msgsnd.c: Likewise.
1180         * sysvipc/semctl.c: Likewise.
1181         * sysvipc/semget.c: Likewise.
1182         * sysvipc/semop.c: Likewise.
1183         * sysvipc/semtimedop.c: Likewise.
1184         * sysvipc/shmat.c: Likewise.
1185         * sysvipc/shmctl.c: Likewise.
1186         * sysvipc/shmdt.c: Likewise.
1187         * sysvipc/shmget.c: Likewise.
1188         * termios/tcdrain.c: Likewise.
1189         * termios/tcflow.c: Likewise.
1190         * termios/tcflush.c: Likewise.
1191         * termios/tcgetattr.c: Likewise.
1192         * termios/tcgetpgrp.c: Likewise.
1193         * termios/tcsendbrk.c: Likewise.
1194         * termios/tcsetattr.c: Likewise.
1195         * termios/tcsetpgrp.c: Likewise.
1196         * time/adjtime.c: Likewise.
1197         * time/clock.c: Likewise.
1198         * time/getitimer.c: Likewise.
1199         * time/gettimeofday.c: Likewise.
1200         * time/setitimer.c: Likewise.
1201         * time/settimeofday.c: Likewise.
1202         * time/stime.c: Likewise.
1203         * time/time.c: Likewise.
1204
1205 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1206
1207         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1208         /usr/old/bin.
1209
1210         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1211         instead of spaces.
1212         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1213
1214 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1215
1216         [BZ #14796]
1217         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1218         FE_TONEAREST before applying Dekker multiplication and Knuth
1219         addition.  Clear inexact exceptions and check for exact zero
1220         results afterwards.
1221         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1222         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1223         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1224         * math/libm-test.inc (fma_test): Add more tests.
1225         (fma_test_towardzero): Likewise.
1226         (fma_test_downward): Likewise.
1227         (fma_test_upward): Likewise.
1228         * sysdeps/generic/math_private.h (default_libc_fesetround): New
1229         function.
1230         (libc_fesetround): New macro.
1231         (libc_fesetroundf): Likewise.
1232         (libc_fesetroundl): Likewise.
1233         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1234         function.
1235         (libc_fesetround_387): Likewise.
1236         (libc_fesetroundf): New macro.
1237         (libc_fesetround): Likewise.
1238         (libc_fesetroundl): Likewise.
1239         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1240         function.
1241         (libc_fesetroundf): New macro.
1242         (libc_fesetround): Likewise.
1243         (libc_fesetroundl): Likewise.
1244         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1245         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1246         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1247         libm_hidden_ver.
1248         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1249         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1250         libm_hidden_def.
1251         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1252         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1253         libm_hidden_ver.
1254         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1255         libm_hidden_def.
1256
1257         [BZ #3439]
1258         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1259         integer constant usable in #if and use that to give value to enum
1260         constant.
1261         (FE_DIVBYZERO): Likewise.
1262         (FE_UNDERFLOW): Likewise.
1263         (FE_OVERFLOW): Likewise.
1264         (FE_INVALID): Likewise.
1265         (FE_INVALID_SNAN): Likewise.
1266         (FE_INVALID_ISI): Likewise.
1267         (FE_INVALID_IDI): Likewise.
1268         (FE_INVALID_ZDZ): Likewise.
1269         (FE_INVALID_IMZ): Likewise.
1270         (FE_INVALID_COMPARE): Likewise.
1271         (FE_INVALID_SOFTWARE): Likewise.
1272         (FE_INVALID_SQRT): Likewise.
1273         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1274         (FE_TONEAREST): Likewise.
1275         (FE_TOWARDZERO): Likewise.
1276         (FE_UPWARD): Likewise.
1277         (FE_DOWNWARD): Likewise.
1278         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1279         (FE_DIVBYZERO): Likewise.
1280         (FE_OVERFLOW): Likewise.
1281         (FE_UNDERFLOW): Likewise.
1282         (FE_INEXACT): Likewise.
1283         (FE_TONEAREST): Likewise.
1284         (FE_DOWNWARD): Likewise.
1285         (FE_UPWARD): Likewise.
1286         (FE_TOWARDZERO): Likewise.
1287         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1288         (FE_UNDERFLOW): Likewise.
1289         (FE_OVERFLOW): Likewise.
1290         (FE_DIVBYZERO): Likewise.
1291         (FE_INVALID): Likewise.
1292         (FE_TONEAREST): Likewise.
1293         (FE_TOWARDZERO): Likewise.
1294         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1295         (FE_OVERFLOW): Likewise.
1296         (FE_UNDERFLOW): Likewise.
1297         (FE_DIVBYZERO): Likewise.
1298         (FE_INEXACT): Likewise.
1299         (FE_TONEAREST): Likewise.
1300         (FE_TOWARDZERO): Likewise.
1301         (FE_UPWARD): Likewise.
1302         (FE_DOWNWARD): Likewise.
1303         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1304         (FE_DIVBYZERO): Likewise.
1305         (FE_OVERFLOW): Likewise.
1306         (FE_UNDERFLOW): Likewise.
1307         (FE_INEXACT): Likewise.
1308         (FE_TONEAREST): Likewise.
1309         (FE_DOWNWARD): Likewise.
1310         (FE_UPWARD): Likewise.
1311         (FE_TOWARDZERO): Likewise.
1312
1313 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1314
1315         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1316
1317 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1318
1319         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1320         commands.  Quote $PWD.
1321         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1322         -x" by "export".
1323         (remove_newlines): Remove.
1324
1325 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1326
1327         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1328         * stdlib/stdlib.h (atof): Moved to ...
1329         * include/bits/stdlib-float.h: Here.  New file.
1330         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1331         * stdlib/bits/stdlib-float.h: New file.
1332         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1333         -mno-sse -mno-mmx.
1334         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1335         <xmmintrin.h>.
1336
1337 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1338
1339         * conform/conformtest.pl (@headers): Add fenv.h.
1340         * conform/data/fenv.h-data: New file.
1341         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1342         include of <math/fenv.h>.
1343
1344         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1345         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1346         && !UNIX98].  Enables tests for XOPEN2K8.
1347         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1348         POSIX2008]: Likewise.
1349
1350         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1351         (struct rusage): Do not expect type or its members.
1352
1353         [BZ #3439]
1354         * math/math.h (FP_NAN): Define macro to integer constant usable in
1355         #if and use that to give value to enum constant.
1356         (FP_INFINITE): Likewise.
1357         (FP_ZERO): Likewise.
1358         (FP_SUBNORMAL): Likewise.
1359         (FP_NORMAL): Likewise.
1360
1361 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1362
1363         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1364         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1365         arguments.
1366
1367 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1368
1369         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1370         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1371         autoconf-time if not.
1372         * configure.in: Remove AC_PREREQ.
1373
1374 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1375
1376         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1377         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1378         of the internal implementation.
1379
1380 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1381
1382         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1383         except include of <misc/sys/syslog.h>.
1384
1385 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1386
1387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1388         function returns with a NULL context exit with zero.
1389
1390 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1391
1392         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1393
1394 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1395
1396         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1397         (run_program_cmd): This.
1398         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1399         (tst_langinfo): New variable.  Use it.
1400
1401 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1402
1403         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1404         floating point opcodes.
1405
1406 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1407
1408         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1409         variable.
1410
1411         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1412
1413         * sysdeps/mach/hurd/powerpc: Remove directory.
1414         * sysdeps/mach/powerpc: Likewise.
1415
1416 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1417
1418         * scripts/check-local-headers.sh: Ignore c++ headers.
1419
1420 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1421
1422         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1423         __libc_cleanup_region_start argument.
1424
1425 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1426
1427         [BZ #14784]
1428         [BZ #14785]
1429         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1430         x * y using scaling, not as x * y + z.
1431         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1432         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1433         * math/libm-test.inc (fma_test): Add more tests.
1434         (fma_test_towardzero): Likewise.
1435         (fma_test_downward): Likewise.
1436         (fma_test_upward): Likewise.
1437
1438 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1439
1440         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1441
1442 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1443
1444         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1445         New variable.
1446
1447 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1448
1449         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1450
1451 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1452
1453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1454         Fix sort order.
1455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1456         Likewise.
1457
1458 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1459
1460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1461         Fix the order of the list for glibc 2.17.
1462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1463         Likewise.
1464
1465 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1466
1467         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1468
1469 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1470
1471         [BZ #14610]
1472         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1473         for low part of x being zero before using __atanl (y).
1474         * math/libm-test.inc (atan2_test): Add another test.
1475
1476         * manual/install.texi (Configuring and compiling): Document
1477         general use of test-wrapper and test-wrapper-env.
1478         * INSTALL: Regenerated.
1479
1480         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1481         (__fma): Do not extract and scale down low bits on after-rounding
1482         systems when result rounded to normal precision would have normal
1483         exponent.
1484         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1485         (__fmal): Do not extract and scale down low bits on after-rounding
1486         systems when result rounded to normal precision would have normal
1487         exponent.
1488         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1489         (__fmal): Do not extract and scale down low bits on after-rounding
1490         systems when result rounded to normal precision would have normal
1491         exponent.
1492         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1493         macro.
1494         (fma_test): Add more tests.
1495         (fma_test_towardzero): Likewise.
1496         (fma_test_downward): Likewise.
1497         (fma_test_upward): Likewise.
1498
1499 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1500
1501         * sysdeps/i386/tininess.h: Renamed to ...
1502         * sysdeps/x86/tininess.h: This.
1503         * sysdeps/x86_64/tininess.h: Removed.
1504
1505 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1506
1507         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1508         input.  Use $(build-program-cmd).
1509         ($(objpfx)tst-array1-static.out): Likewise.
1510         ($(objpfx)tst-array2.out): Likewise.
1511         ($(objpfx)tst-array3.out): Likewise.
1512         ($(objpfx)tst-array4.out): Likewise.
1513         ($(objpfx)tst-array5.out): Likewise.
1514         ($(objpfx)tst-array5-static.out): Likewise.
1515
1516 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1517
1518         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1519         if defined.
1520
1521         * nss/nsswitch.h (nss_interface_function): Provide new
1522         macro for use with NSS functions.
1523         * grp/initgroups.c: Use new macro.
1524         * nss/getXXbyYY.c: Likewise.
1525         * nss/getXXbyYY_r.c: Likewise.
1526         * nss/getXXent.c: Likewise.
1527         * nss/getXXent_r.c: Likewise.
1528         * sysdeps/posix/getaddrinfo.c: Likewise.
1529
1530 2012-10-30  Andreas Jaeger  <aj@suse.de>
1531
1532         * po/ru.po: Update Russion translation from translation project.
1533
1534 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1535
1536         [BZ #14152]
1537         [BZ #14783]
1538         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1539         result and shift together with sticky bit instead of replicating
1540         round-to-nearest rounding.
1541         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1542         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1543         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1544         missing underflow exceptions.
1545         (fma_test_towardzero): Add more tests.
1546         (fma_test_downward): Likewise.
1547         (fma_test_upward): Likewise.
1548
1549         [BZ #14047]
1550         * sysdeps/generic/tininess.h: New file.
1551         * sysdeps/i386/tininess.h: Likewise.
1552         * sysdeps/sh/tininess.h: Likewise.
1553         * sysdeps/x86_64/tininess.h: Likewise.
1554         * stdlib/tst-strtod-underflow.c: Likewise.
1555         * stdlib/tst-tininess.c: Likewise.
1556         * stdlib/strtod_l.c: Include <tininess.h>.
1557         (round_and_return): Do not set errno for exact underflow cases.
1558         Force an underflow exception when setting errno for underflow.
1559         Determine underflow based on rounding to normal precision if
1560         TININESS_AFTER_ROUNDING.
1561         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1562         ERANGE for exact underflow cases.
1563         * stdlib/Makefile (tests): Add tst-tininess and
1564         tst-strtod-underflow.
1565         ($(objpfx)tst-tininess): Use $(link-libm).
1566         ($(objpfx)tst-strtod-underflow): Likewise.
1567
1568 2012-10-30  Andreas Jaeger  <aj@suse.de>
1569
1570         [BZ#14767]
1571         * elf/Makefile (tests): Remove conditional for have-initfini-array
1572         since this is now always required and the variable does not exist
1573         anymore.
1574         (tests-static): Likewise.
1575         (modules-names): Likewise.
1576
1577         * po/eo.po: Add Esperanto translation from translation project.
1578
1579         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1580         merged with constructor/destructor.
1581         (init_array): Likewise.
1582         * elf/tst-array2dep.c (fini_array): Likewise.
1583         (init_array): Likewise.
1584
1585 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1586
1587         * manual/message.texi: Delete @cartouche tags.
1588
1589 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1590
1591         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1592         EOPNOTSUPP.
1593         * sysdeps/mach/hurd/fsync.c: Likewise.
1594
1595         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1596         [_POSIX_REALTIME_SIGNALS]: Change condition to
1597         [_POSIX_REALTIME_SIGNALS > 0].
1598
1599 2012-10-27  Andreas Jaeger  <aj@suse.de>
1600
1601         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1602         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1603         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1604         [__WORDSIZE != 64]: Likewise.
1605
1606 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1607
1608         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1609         *  iconvdata/tst-tables.sh: Likewise.
1610
1611 2012-10-25  David S. Miller  <davem@davemloft.net>
1612
1613         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1614         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1615         of strtoull.
1616
1617         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1618         ifunc-impl-list.c
1619         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1620         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1621         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1622         file.
1623
1624 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1625
1626         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1627         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1628         __getdirentries.
1629
1630 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1631             Jim Blandy  <jimb@codesourcery.com>
1632
1633         * scripts/cross-test-ssh.sh: New file.
1634         * manual/install.texi (Configuring and compiling): Document use of
1635         cross-test-ssh.sh.
1636         * INSTALL: Regenerated.
1637
1638 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1639
1640         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1641         EOPNOTSUPP.
1642
1643 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1644
1645         * Makeconfig (run-program-prefix): Fix comment.
1646
1647 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1648             Jim Blandy  <jimb@codesourcery.com>
1649
1650         * Makeconfig (test-wrapper): New variable,
1651         (test-wrapper-env): Likewise.
1652         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1653         (run-built-tests): Define to yes.
1654         (run-program-prefix): Use $(test-wrapper).
1655         (built-program-cmd): Likewise.
1656         * Rules (make-test-out): Use $(test-wrapper-env) and
1657         $(host-built-program-cmd).
1658         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1659         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1660         tst-pathopt.sh.
1661         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1662         $(test-wrapper-env) to tst-rtld-load-self.sh.
1663         ($(objpfx)order2.out): Use $(test-wrapper).
1664         ($(objpfx)tst-initorder.out): Likewise.
1665         ($(objpfx)tst-initorder2.out): Likewise.
1666         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1667         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1668         (test_wrapper_env): New variable.  Use it to run ld.so.
1669         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1670         Use it to run ld.so.
1671         (test_wrapper_env): Likewise.
1672         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1673         $(test-wrapper) to run-iconv-test.sh.
1674         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1675         (ICONV): Use $test_wrapper.
1676         * posix/Makefile ($(objpfx)globtest.out): Pass
1677         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1678         globtest.sh, not $(run-program-prefix).
1679         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1680         (test_wrapper): Likewise.
1681         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1682         set together with run_via_rtld_prefix.
1683         (run_program_prefix): Define in terms of test_wrapper and
1684         run_via_rtld_prefix.
1685
1686 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1687
1688         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1689         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1690         Targets removed.
1691
1692         [BZ #14743]
1693         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1694         Declare __clock_getres, __clock_gettime, __clock_settime,
1695         __clock_nanosleep, and __clock_getcpuclockid.
1696         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1697         Remove librt_hidden_def (clock_gettime).
1698         * sysdeps/unix/clock_gettime.c: Likewise.
1699         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1700         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1701         * rt/clock_getres.c: Define __clock_getres as an alias.
1702         * sysdeps/posix/clock_getres.c: Likewise.
1703         * rt/clock_settime.c: Define __clock_settime as an alias.
1704         * sysdeps/unix/clock_settime.c: Likewise.
1705         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1706         * sysdeps/unix/clock_nanosleep.c: Likewise.
1707         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1708         * rt/clock-compat.c: New file.
1709         * rt/Makefile (librt-routines): Add clock-compat and move
1710         $(clock-routines) to ...
1711         (routines): ... here, new variable.
1712         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1713         Don't add get_clockfreq here.
1714         * rt/Versions (libc: GLIBC_2.17): New version set.
1715         Add clock_* symbols here.
1716         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1717         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1718         (GLIBC_2.17): Add clock_* symbols.
1719         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1720         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1721         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1723         Likewise.
1724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1725         Likewise.
1726         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1727         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1729         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1730         * NEWS: Mention the move.
1731
1732         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1733         Use __open, __read, __close rather than their public counterparts.
1734         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1735         (__get_clockfreq_via_cpuinfo): Likewise.
1736         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1737         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1738
1739         * config.h.in (HAVE_IFUNC): New #undef.
1740         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1741         was successful.
1742         * configure: Regenerated.
1743
1744 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1745
1746         * configure.in: Move READELF check to start of file.
1747         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1748         libc_cv_asm_gnu_indirect_function in the process.
1749         * configure: Regenerated.
1750
1751 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1752
1753         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1754         send the output to /dev/null.
1755         (libc_cv_cc_with_libunwind): Likewise.
1756         (libc_cv_as_noexecstack): Likewise.
1757         * configure: Regenerate.
1758
1759 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1760
1761         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1762
1763         * posix/globtest.sh (TMPDIR): Do not set.
1764         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1765         (testout): Likewise.
1766
1767 2012-10-24  Andreas Jaeger  <aj@suse.de>
1768
1769         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1770         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1771         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1772         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1773         posix_fadvise64, posix_fallocate64.
1774
1775         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1776         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1777         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1778         Likewise.
1779         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1780         Likewise.
1781         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1782
1783         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1784         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1785         <bits/fcntl-linux.h>.
1786         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1787
1788         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1789         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1790         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1791         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1792         [__WORDSIZE != 64]: Likewise.
1793
1794 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1795
1796         * Makeconfig (run-built-tests): New variable.
1797         * Rules [$(cross-compiling) = yes]: Change condition to
1798         [$(run-built-tests) = no].
1799         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1800         to [$(run-built-tests) = yes].
1801         * elf/Makefile [$(cross-compiling) = no]: Likewise
1802         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1803         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1804         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1805         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1806         * io/Makefile [$(cross-compiling) = no]: Likewise.
1807         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1808         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1809         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1810         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1811         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1812         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1813         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1814         * string/Makefile [$(cross-compiling) = no]: Likewise.
1815
1816         * posix/Makefile ($(objpfx)globtest.out): Pass
1817         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1818         $(rtld-installed-name).
1819         * posix/globtest.sh (elf_objpfx): Remove variable.
1820         (rtld_installed_name): Likewise.
1821         (library_path): Likewise.
1822         (run_program_prefix): New variable.  Use for running globtest
1823         binary.
1824
1825 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1826             Joseph Myers  <joseph@codesourcery.com>
1827
1828         * Makeconfig (host-built-program-cmd): New variable.
1829         * elf/Makefile (tst-stackguard1-ARGS): Use
1830         $(host-built-program-cmd).
1831         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1832         (tst-spawn-ARGS): Likewise.
1833         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1834
1835 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1836             Jim Blandy  <jimb@codesourcery.com>
1837
1838         * Makeconfig (run-via-rtld-prefix): New variable.
1839         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1840         (built-program-cmd): Likewise.
1841
1842 2012-10-22  Andreas Jaeger  <aj@suse.de>
1843
1844         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1845         __O_RSYNC if it exists, otherwise to O_SYNC.
1846
1847 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1848             Joseph Myers  <joseph@codesourcery.com>
1849
1850         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1851         /dev/null.
1852         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1853         from /dev/null
1854         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1855         /dev/null.
1856
1857 2012-10-22  Andreas Jaeger  <aj@suse.de>
1858
1859         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1860         Define always.
1861         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1862
1863         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1864         bits/fcntl-linux.h.
1865
1866         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1867         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1868
1869         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1870         to __O_LARGEFILE.
1871         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1872         to __O_LARGEFILE.
1873
1874 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1875             Joseph Myers  <joseph@codesourcery.com>
1876
1877         * config.make.in (NM): New variable.
1878
1879 2012-10-21  Andreas Jaeger  <aj@suse.de>
1880
1881         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1882         definitions and declarations that are provided by
1883         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1884
1885 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1886
1887         [BZ #14683]
1888         * elf/Makefile (tests-static): Add tst-leaks1-static.
1889         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1890         ($(objpfx)tst-leaks1-static): New rule.
1891         ($(objpfx)tst-leaks1-static-mem): Likewise.
1892         (tst-leaks1-static-ENV): New macro.
1893         * elf/dl-open.c (dl_open_worker): Check the main application
1894         only if SHARED is defined.
1895         * elf/tst-leaks1-static.c: New file.
1896
1897 2012-10-20  Andreas Jaeger  <aj@suse.de>
1898
1899         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1900         generic values for Linux.
1901         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1902         and declarations that are provided by <bits/fcntl-linux.h> and
1903         include <bits/fcntl-linux.h>.
1904         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1905         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1906
1907 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1908
1909         * io/fcntl.h: Move include of <bits/types.h> to the top and
1910         include it unconditionally.
1911
1912 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1913
1914         * wcsmbs/Makefile (tests-ifunc): New variable.
1915         (tests): Add $(tests-ifunc).
1916         * wcsmbs/test-wcschr-ifunc.c: New file.
1917         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1918         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1919         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1920         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1921         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1922
1923         * string/Makefile (tests-ifunc): New variable.
1924         (tests): Add $(tests-ifunc).
1925         * string/test-memccpy.c (TEST_NAME): New macro.
1926         * string/test-memchr.c (TEST_NAME): Likewise.
1927         * string/test-memcmp.c (TEST_NAME): Likewise.
1928         * string/test-memcpy.c (TEST_NAME): Likewise.
1929         * string/test-memmem.c (TEST_NAME): Likewise.
1930         * string/test-memmove.c (TEST_NAME): Likewise.
1931         * string/test-memset.c (TEST_NAME): Likewise.
1932         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1933         * string/test-stpcpy.c (TEST_NAME): Likewise.
1934         * string/test-stpncpy.c (TEST_NAME): Likewise.
1935         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1936         * string/test-strcasestr.c (TEST_NAME): Likewise.
1937         * string/test-strcat.c (TEST_NAME): Likewise.
1938         * string/test-strchr.c (TEST_NAME): Likewise.
1939         * string/test-strcmp.c(TEST_NAME): Likewise.
1940         * string/test-strcpy.c (TEST_NAME): Likewise.
1941         * string/test-strcspn.c (TEST_NAME): Likewise.
1942         * string/test-strlen.c (TEST_NAME): Likewise.
1943         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1944         * string/test-strncmp.c (TEST_NAME): Likewise.
1945         * string/test-strncpy.c (TEST_NAME): Likewise.
1946         * string/test-strnlen.c (TEST_NAME): Likewise.
1947         * string/test-strpbrk.c (TEST_NAME): Likewise.
1948         * string/test-strrchr.c (TEST_NAME): Likewise.
1949         * string/test-strspn.c (TEST_NAME): Likewise.
1950         * string/test-strstr.c (TEST_NAME): Likewise.
1951         * string/test-bcopy-ifunc.c: New file.
1952         * string/test-bzero-ifunc.c: Likewise.
1953         * string/test-memccpy-ifunc.c: Likewise.
1954         * string/test-memchr-ifunc.c: Likewise.
1955         * string/test-memcmp-ifunc.c: Likewise.
1956         * string/test-memcpy-ifunc.c: Likewise.
1957         * string/test-memmem-ifunc.c: Likewise.
1958         * string/test-memmove-ifunc.c: Likewise.
1959         * string/test-mempcpy-ifunc.c: Likewise.
1960         * string/test-memset-ifunc.c: Likewise.
1961         * string/test-rawmemchr-ifunc.c: Likewise.
1962         * string/test-stpcpy-ifunc.c: Likewise.
1963         * string/test-stpncpy-ifunc.c: Likewise.
1964         * string/test-strcasecmp-ifunc.c: Likewise.
1965         * string/test-strcasestr-ifunc.c: Likewise.
1966         * string/test-strcat-ifunc.c: Likewise.
1967         * string/test-strchr-ifunc.c: Likewise.
1968         * string/test-strchrnul-ifunc.c: Likewise.
1969         * string/test-strcmp-ifunc.c: Likewise.
1970         * string/test-strcpy-ifunc.c: Likewise.
1971         * string/test-strcspn-ifunc.c: Likewise.
1972         * string/test-strlen-ifunc.c: Likewise.
1973         * string/test-strncasecmp-ifunc.c: Likewise.
1974         * string/test-strncat-ifunc.c: Likewise.
1975         * string/test-strncmp-ifunc.c: Likewise.
1976         * string/test-strncpy-ifunc.c: Likewise.
1977         * string/test-strnlen-ifunc.c: Likewise.
1978         * string/test-strpbrk-ifunc.c: Likewise.
1979         * string/test-strrchr-ifunc.c: Likewise.
1980         * string/test-strspn-ifunc.c: Likewise.
1981         * string/test-strstr-ifunc.c: Likewise.
1982
1983         * debug/Makefile (tests-ifunc): New variable.
1984         (tests): Add $(tests-ifunc).
1985         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
1986         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
1987         * debug/test-stpcpy_chk-ifunc.c: New file.
1988         * debug/test-strcpy_chk-ifunc.c: Likewise.
1989
1990 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1991
1992         [BZ #13601]
1993         * elf/dl-load.c (open_verify): Retry read if the entire ELF
1994         header is not read in.
1995
1996 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
1997
1998         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
1999         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
2000         directly.  Pass built executable to script as
2001         $(built-program-cmd).
2002         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
2003         $testprogram without using LD_LIBRARY_PATH and $ldso.
2004
2005         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
2006         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
2007         $(rtld-installed-name).
2008         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
2009         (rtld_installed_name): Likewise.
2010         (library_path): Likewise.
2011         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
2012         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
2013         $(run-program-prefix) to tst-tables.sh.
2014         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
2015         it to run tst-table-from and tst-table-to.
2016         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
2017         Pass it to tst-table.sh.
2018         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
2019         $(run-program-prefix) to tst-gettext.sh.
2020         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
2021         tst-translit.sh.
2022         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
2023         tst-gettext2.sh.
2024         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
2025         to run tst-gettext.
2026         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
2027         to run tst-gettext2.
2028         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
2029         to run tst-translit.
2030         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2031         $(run-program-prefix) to tst-mtrace.sh.
2032         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
2033         to run tst-mtrace.
2034         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2035         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2036         $(rtld-installed-name).
2037         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2038         (rtld_installed_name): Likewise.
2039         (run_program_prefix): New variable.  Use it to run wordexp-test.
2040
2041         * Makeconfig (ARCH): Remove all definitions.
2042         (machine): Likewise.
2043         [ARCH]: Remove conditional code.
2044         [!objdir]: Give error.
2045         [!objdir] (objpfx): Remove.
2046         [!objdir] (common-objpfx): Likewise.
2047         [!objdir] (common-objdir): Likewise.
2048         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2049         AC_CONFIG_FILES call.
2050         * configure: Regenerated.
2051
2052         [BZ #13888]
2053         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2054         or TMPDIR.
2055         (testout): Likewise.
2056
2057         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2058         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2059         $(rtld-installed-name).
2060         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2061         (rtld_installed_name): Likwise.
2062         (runit): Remove function.
2063         (run_getconf): New variable,  Use it for running getconf binary.
2064
2065 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2066
2067         [BZ #14716]
2068         * string/test-memmem.c (check_result): New function.
2069         (do_one_test): Use it.
2070         (check1): New function.
2071         (test_main): Use it.
2072
2073 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2074
2075         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2076
2077 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2078
2079         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2080         (_G_LSEEK64): Likewise.
2081         (_G_MMAP64): Likewise.
2082         (_G_FSTAT64): Likewise.
2083         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2084         (_G_LSEEK64): Likewise.
2085         (_G_MMAP64): Likewise.
2086         (_G_FSTAT64): Likewise.
2087         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2088         unconditional.  Call __mmap64 directly.
2089         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2090         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2091         __lseek64 directly.
2092         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2093         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2094         __mmap64 directly.
2095         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2096         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2097         __lseek64 directly.
2098         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2099         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2100         __lseek64 directly.
2101         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2102         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2103         __lseek64 directly.
2104         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2105         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2106         __fxstat64 directly.
2107         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2108         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2109         unconditional.
2110         (freopen64) [!_G_OPEN64]: Remove conditional code.
2111         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2112         unconditional.
2113         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2114         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2115         unconditional.
2116         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2117         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2118         unconditional.
2119         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2120         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2121         unconditional.
2122         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2123         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2124         unconditional.
2125         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2126         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2127         unconditional.
2128         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2129         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2130         unconditional.
2131         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2132
2133 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2134
2135         [BZ #12140]
2136         * manual/memory.texi (Malloc Tunable Parameters): Add note
2137         about free list pointers overwriting some perturb bytes.
2138         Wording suggested by Roland McGrath.
2139
2140 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2141
2142         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2143         (lgamma_test): Likewise.
2144         (tgamma_test): Likewise.
2145
2146 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2147
2148         [BZ #14700]
2149         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2150         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2151
2152 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2153
2154         * NEWS: Mention BZ #14716.
2155         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2156         when removing AVAILABLE1_USES_J macro.
2157
2158 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2159
2160         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2161         (__bswap_64): __uint64_t for unsigned 64-bit int.
2162
2163 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2164
2165         * include/string.h (memmem): Declare libc hidden alias.
2166         * string/memmem.c (memmem): Define libc hidden alias.
2167         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2168         __read, __close instead of open, read, close.
2169
2170 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2171
2172         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2173         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2174         global and hidden.
2175         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2176         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2177         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2178         Likewise.
2179         (__rawmemchr_sse2): Likewise.
2180         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2181         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2182         (__strchr_sse2): Likewise.
2183         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2184         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2185         (__strcasecmp_sse2): Likewise.
2186         (__strncasecmp_sse2): Likewise.
2187         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2188         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2189         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2190         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2191         (__strrchr_sse2): Likewise.
2192         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2193         ifunc-impl-list.c.
2194         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2195         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2196         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2197         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2198         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2199         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2200         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2201         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2202         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2203         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2204         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2205         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2206         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2207         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2208         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2209         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2210         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2211         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2212         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2213         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2214         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2215         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2216         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2217         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2218         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2219         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2220         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2221         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2222         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2223         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2224
2225         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2226         global and hidden.
2227         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2228         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2229         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2230         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2231         Likewise.
2232         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2233         Likewise.
2234         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2235         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2236         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2237         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2238         ifunc-impl-list.c.
2239         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2240         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2241         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2242         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2243         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2244         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2245         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2246         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2247         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2248         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2249         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2250         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2251         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2252         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2253         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2254         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2255         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2256         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2257         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2258         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2259         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2260         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2261         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2262         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2263         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2264         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2265         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2266         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2267         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2268         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2269         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2270         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2271         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2272         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2273         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2274         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2275         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2276         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2277         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2278         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2279         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2280
2281         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2282         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2283         * include/ifunc-impl-list.h: New file.
2284         * misc/ifunc-impl-list.c: Likewise.
2285         * misc/Makefile (routines): Add ifunc-impl-list.
2286         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2287         * string/test-string.h: Include <ifunc-impl-list.h>.
2288         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2289         impl_array): New variables.
2290         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2291         are defined.
2292         (test_init): Call __libc_ifunc_impl_list to initialize
2293         func_list if TEST_IFUNC and TEST_NAME are defined.
2294
2295         * string/Makefile (strop-tests): Add bcopy and bzero.
2296         * string/test-bcopy.c: New file.
2297         * string/test-bzero.c: Likewise.
2298         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2299         defined.
2300         * string/test-memset.c: Support bzero test if TEST_BZERO is
2301         defined.
2302         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2303         __libc_memmove.
2304         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2305         __libc_memset.
2306         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2307         of memset.
2308
2309 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2310
2311         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2312         * configure: Regenerated.
2313
2314         * Makeconfig (+link-static-before-libc): Don't include
2315         $(link-static-libc).
2316
2317         * libio/libio.h (_IO_pos_t): Remove.
2318
2319 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2320
2321         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2322         McGrath.
2323
2324 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2325
2326         * crypt/crypt-entry.c: Include fips-private.h.
2327         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2328         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2329         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2330         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2331
2332 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2333
2334         * crypt/crypt-private.h: Include stdbool.h.
2335         (_ufc_setup_salt_r): Return bool.
2336         * crypt/crypt-entry.c: Include errno.h.
2337         (__crypt_r): Return NULL with EINVAL for bad salt.
2338         * crypt/crypt_util.c (bad_for_salt): New.
2339         (_ufc_setup_salt_r): Check that salt is long enough and within
2340         the specified alphabet.
2341         * crypt/badsalttest.c: New file.
2342         * crypt/Makefile (tests): Add it.
2343         ($(objpfx)badsalttest): New.
2344
2345 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2346
2347         * NEWS: Add entry for BZ #14602.
2348
2349 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2350
2351         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2352         type-generic.
2353         * math/libm-test.inc: Update comment listing what functions and
2354         macros are tested.
2355         (isgreater_test): New function.
2356         (isgreaterequal_test): Likewise.
2357         (isless_test): Likewise.
2358         (islessequal_test): Likewise.
2359         (islessgreater_test): Likewise.
2360         (isunordered_test): Likewise.
2361         (main): Call the new functions.
2362
2363 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2364
2365         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2366         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2367         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2368         * sysdeps/i386/configure: Regenerated.
2369         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2370         * sysdeps/mach/configure: Regenerated.
2371         * sysdeps/mach/hurd/configure: Regenerated.
2372         * sysdeps/powerpc/configure: Regenerated.
2373         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2374         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2375         * sysdeps/s390/s390-32/configure: Regenerated.
2376         * sysdeps/s390/s390-64/configure: Regenerated.
2377         * sysdeps/sh/configure: Regenerated.
2378         * sysdeps/sparc/configure: Regenerated.
2379         * sysdeps/unix/sysv/linux/configure: Regenerated.
2380         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2381         * sysdeps/x86_64/configure: Regenerated.
2382
2383         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2384         defined.  Don't check if MAP is NULL.
2385
2386 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2387
2388         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2389         (_G_stat64): Likewise.
2390         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2391         (_G_stat64): Likewise.
2392         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2393         instead of struct _G_stat64.
2394         * libio/fileops.c (mmap_remap_check): Likewise.
2395         (decide_maybe_mmap): Likewise.
2396         (_IO_new_file_seekoff): Likewise.
2397         (_IO_file_stat): Likewise.
2398         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2399         _G_off64_t.
2400         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2401         instead of struct _G_stat64.
2402         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2403
2404 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2405
2406         [BZ #14602]
2407         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2408         Replace with ...
2409         (CHECK_EOL): New macro.
2410         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2411         CHECK_EOL.
2412         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2413         Replace with CHECK_EOL.
2414         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2415         Replace with CHECK_EOL.
2416
2417 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2418
2419         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2420         type-generic.
2421         * math/libm-test.inc: Update comment listing what functions and
2422         macros are tested.
2423         (finite_test): New function.
2424         (isinf_test): Likewise.
2425         (isnan_test): Likewise.
2426         (fpclassify_test): Test subnormal input.
2427         (isfinite_test): Likewise.
2428         (isnormal_test): Likewise.
2429         (main): Call the new functions.
2430
2431 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2432
2433         [BZ #14660]
2434         * Makerules (%.dynsym): Force C locale when running
2435         $(OBJDUMP) --dynamic-syms.
2436
2437 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2438
2439         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2440         <stdint.h>.
2441
2442 2012-10-06  David S. Miller  <davem@davemloft.net>
2443
2444         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2445         upper 32-bits of the length value in %o2 since we use branch-on-register
2446         tests which consider the entire 64-bit register.
2447
2448 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2449
2450         * string/test-strstr.c (check2): Add a test for page boundary.
2451
2452 2012-10-05  David S. Miller  <davem@davemloft.net>
2453
2454         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2455         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2456         file.
2457         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2458         sysdep_routines.
2459         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2460         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2461         and bzero when HWCAP_SPARC_CRYPTO is present.
2462
2463 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2464
2465         [BZ #14602]
2466         * string/test-strstr.c (check2): New function.
2467         (test_main): Call check2.
2468
2469         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2470         and bug-strchr1.
2471         * string/bug-strcasestr1.c (do_test): Moved to ...
2472         * string/test-strcasestr.c (check1): Here.  New function.
2473         (do_one_test): Break out result checking code into ...
2474         (check_result): This.  New function.
2475         (do_one_test): Call check_result.
2476         (test_main): Call check1.
2477         * string/bug-strchr1.c (do_test): Moved to ...
2478         * string/test-strchr.c (check1): Here.  New function.
2479         (do_one_test): Break out result checking code into ...
2480         (check_result): This.  New function.
2481         (do_one_test): Call check_result.
2482         (test_main): Call check1.
2483         * string/bug-strstr1.c (main): Moved to ...
2484         * string/test-strchr.c (check1): Here.  New function.
2485         (do_one_test): Break out result checking code into ...
2486         (check_result): This.  New function.
2487         (do_one_test): Call check_result.
2488         (test_main): Call check1.
2489         * string/bug-strcasestr1.c: Removed.
2490         * string/bug-strchr1.c: Likewise.
2491         * string/bug-strstr1.c: Likewise.
2492
2493         * elf/Makefile (dl-routines): Add hwcaps.
2494         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2495         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2496         (_dl_important_hwcaps): Moved to ...
2497         * elf/dl-hwcaps.c: Here.  New file.
2498         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2499
2500         [BZ #14557]
2501         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2502         if IS_IN_rtld isn't defined.
2503
2504         * elf/dl-support.c (_dl_sysinfo_map): New.
2505         Include "get-dynamic-info.h" and "setup-vdso.h".
2506         (_dl_non_dynamic_init): Call setup_vdso.
2507         * elf/dynamic-link.h: Don't include <assert.h>.
2508         (elf_get_dynamic_info): Moved to ...
2509         * elf/get-dynamic-info.h: Here.  New file.
2510         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2511         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2512         * elf/setup-vdso.h: Here.  New file.
2513         * elf/rtld.c: Include "setup-vdso.h".
2514         (dl_main): Call setup_vdso.
2515
2516 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2517
2518         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2519         creal in comment listing functions tested.  List finite, isinf,
2520         isnan, isless, islessequal, isgreater, isgreaterequal,
2521         islessgreater, isunordered, lgamma_r and pow10 as functions and
2522         macros not tested.  Mention which functions not tested are aliases
2523         for other functions.  Fix typo.  Note that signs of NaNs are not
2524         tested.
2525
2526         * scripts/config.guess: Update from config.git.
2527         * scripts/config.sub: Likewise.
2528
2529 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2530
2531         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2532         * misc/madvise.c (madvise): Renamed to __madvise.
2533         Make madvise a weak alias.
2534         * include/sys/mman.h: Declare __madvise.
2535         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2536         * sysdeps/unix/syscalls.list
2537         (madvise): Make __madvise the strong name, and madvise a weak alias.
2538         * sysdeps/unix/sysv/linux/syscalls.list
2539         (madvise, mmap): Remove redundant entries.
2540         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2541         * malloc/malloc.c (mtrim): Likewise.
2542         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2543
2544 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2545
2546         * sysdeps/mach/hurd/dl-cache.c: File removed.
2547         * config.h.in (USE_LDCONFIG): New #undef.
2548         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2549         * configure: Regenerated.
2550         * elf/Makefile (dl-routines): Add dl-cache only under
2551         [$(use-ldconfig) = yes].
2552         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2553         cache on [USE_LDCONFIG].
2554         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2555         [USE_LDCONFIG].
2556         * elf/rtld.c (dl_main): Likewise.
2557
2558 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2559
2560         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2561         _SC_LEVEL4_CACHE_LINESIZE.
2562
2563 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2564
2565         * sysdeps/unix/bsd/confstr.h: File removed.
2566
2567 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2568
2569         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2570         sys/sdt-config.h.
2571
2572 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2573
2574         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2575         Make 'mapoff' field ElfW(Off) rather than off_t.
2576
2577 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2578
2579         * nscd/Makefile: Remove nscd-cflags and all its users.
2580         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2581         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2582
2583         [BZ #10631]
2584         * malloc.c (malloc_printerr): Clarify error message.
2585
2586 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2587
2588         [BZ #14648]
2589         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2590         Set bit_FMA_Usable if FMA is supported.
2591         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2592         macro.
2593         (bit_FMA4_Usable): Updated.
2594         (index_FMA_Usable): New macro.
2595         (CPUID_FMA): Likewise
2596         (HAS_FMA): Defined with bit_FMA_Usable.
2597
2598 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2599
2600         * bits/types.h (__swblk_t): Type removed.
2601         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2602         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2603         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2604         (__SWBLK_T_TYPE): Likewise.
2605         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2606         (__SWBLK_T_TYPE): Likewise.
2607         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2608         (__SWBLK_T_TYPE): Likewise.
2609         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2610         (__SWBLK_T_TYPE): Likewise.
2611
2612 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2613             Honza Horak <hhorak@redhat.com>
2614
2615         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2616         (xdr_mapname): Use YPMAXMAP as maxsize.
2617         (xdr_peername): Use YPMAXPEER as maxsize.
2618         (xdr_keydat): Use YPAXRECORD as maxsize.
2619         (xdr_valdat): Use YPMAXRECORD as maxsize.
2620
2621 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2622
2623         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2624
2625         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2626         * csu/init-first.c: ... here.
2627         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2628         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2629         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2630         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2631         * sysdeps/i386/init-first.c: File removed.
2632         * sysdeps/sh/init-first.c: File removed.
2633
2634 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2635
2636         [BZ #14645]
2637         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2638         if x * y might underflow to zero and z is zero.
2639         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2640         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2641         * math/libm-test.inc (min_subnorm_value): New variable.
2642         (fma_test): Add more tests.
2643         (fma_test_towardzero): Likewise.
2644         (fma_test_downward): Likewise
2645         (fma_test_upward): Likewise.
2646         (initialize): Set min_subnorm_value.
2647
2648 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2649
2650         [BZ #14638]
2651         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2652         0 + 0.
2653         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2654         mode for addition resulting in exact zero.
2655         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2656         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2657         exact 0 + 0.
2658         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2659         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2660         * math/libm-test.inc (fma_test): Add more tests.
2661         (fma_test_towardzero): New function.
2662         (fma_test_downward): Likewise.
2663         (fma_test_upward): Likewise.
2664         (main): Call the new functions.
2665
2666 2012-09-28  David S. Miller  <davem@davemloft.net>
2667
2668         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2669
2670 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2671
2672         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2673         instead of SIGALRM.
2674
2675         * sysdeps/gnu/_G_config.h: Moved to ...
2676         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2677         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2678         * sysdeps/generic/_G_config.h: ... here.
2679
2680         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2681
2682         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2683
2684         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2685         Conditionalize target on [libnss_test1.so-version].
2686
2687         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2688
2689         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2690         (elfobjdir): Move out of conditionals.
2691
2692         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2693         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2694         (__nss_lookup_function): Conditionalize label remove_from_tree on
2695         [!DO_STATIC_NSS || SHARED], matching its only use.
2696
2697 2012-09-28  David S. Miller  <davem@davemloft.net>
2698
2699         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2700         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2701         file.
2702         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2703         sysdep_routines.
2704         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2705         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2706         when HWCAP_SPARC_CRYPTO is present.
2707
2708 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2709
2710         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2711
2712 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2713
2714         [BZ #6530]
2715         * stdio-common/vfprintf.c (process_string_arg): Revert
2716         2000-07-22 change.
2717
2718 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2719
2720         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2721         for testcase.
2722         * stdio-common/tst-sprintf.c: Include <locale.h>
2723         (main): Test sprintf's handling of incomplete multibyte
2724         characters.
2725
2726 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2727
2728         * elf/dl-runtime.c (VERSYMIDX): Removed.
2729         * elf/dl-version.c (VERSYMIDX): Likewise.
2730         * elf/do-rel.h (VERSYMIDX): Likewise.
2731         (VALIDX): Likewise.
2732         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2733         * elf/rtld.c (VALIDX): Likewise.
2734         (ADDRIDX): Likewise.
2735         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2736         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2737         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2738         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2739         (VALIDX): Likewise.
2740         (ADDRIDX): Likewise.
2741
2742 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2743
2744         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2745
2746 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2747
2748         [BZ #11438]
2749         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2750         to global scope.
2751         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2752         addresses are in the same scope as 192.0.2/24.
2753         * posix/gai.conf: Document new scope table defaults.
2754
2755 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2756
2757         [BZ #5298]
2758         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2759         for ftell.  Compute offsets from write pointers instead.
2760         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2761
2762 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2763
2764         [BZ #14543]
2765         * libio/Makefile (tests): New test case tst-fseek.
2766         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2767         combination works in wide mode.
2768         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2769         state when the external buffer state changes.
2770
2771 2012-09-27  David S. Miller  <davem@davemloft.net>
2772
2773         [BZ #14376]
2774         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2775         pass reloc->r_addend in as the 'high' argument to
2776         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2777
2778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2779
2780 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2781
2782         * rt/tst-aio2.c: Include <pthread.h>.
2783         * rt/tst-aio3.c: Likewise.
2784
2785 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2786
2787         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2788
2789 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2790
2791         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2792         contents on [SHARED].
2793
2794 2012-09-26  Marek Polacek  <polacek@redhat.com>
2795
2796         [BZ #14530]
2797         [BZ #13741]
2798         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2799         for C++ and GCC <4.3 as well as for non GCC compilers.
2800
2801 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2802
2803         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2804
2805 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2806
2807         * Makefile.in (all, install): Declare with .PHONY.
2808         Reported by Michael Hope <michael.hope@linaro.org>.
2809
2810 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2811
2812         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2813         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2814         system header.
2815         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2816         Likewise.
2817         (sydep_routines): Add the new and the internal functions.
2818         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2819         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2821         (GLIBC_2.17): Add the new function.
2822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2823         (GLIBC_2.17): Likewise.
2824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2825         (GLIBC_2.17): Likewise.
2826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2827         (GLIBC_2.17): Likewise.
2828         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2829
2830 2012-09-25  Alan Modra  <amodra@gmail.com>
2831
2832         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2833         Add release barrier before setting once_control to say
2834         initialisation is done.  Add hints on lwarx.  Use macro in
2835         place of isync.
2836         (clear_once_control): Add release barrier.
2837
2838 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2839
2840         [BZ #13629]
2841         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2842         specially.
2843         * math/s_clog10.c (__clog10): Likewise.
2844         * math/s_clog10f.c (__clog10f): Likewise.
2845         * math/s_clog10l.c (__clog10l): Likewise.
2846         * math/s_clogf.c (__clogf): Likewise.
2847         * math/s_clogl.c (__clogl): Likewise.
2848         * math/Makefile (libm-calls): Add x2y2m1.
2849         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2850         (__x2y2m1): Likewise.
2851         (__x2y2m1l): Likewise.
2852         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2853         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2854         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2855         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2856         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2857         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2858         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2859         * sysdeps/i386/fpu/libm-test-ulps: Update.
2860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2861
2862         [BZ #14621]
2863         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2864         int as type of variable DEPTH.
2865         (glob): Use size_t instead of int as type of variables NEWCOUNT
2866         and OLD_PATHC.
2867
2868 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2869
2870         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2871         Add s_sincosf-sse2.
2872         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2873         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2874         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2875         macros for using routine as __sincosf_ia32.
2876         Use macro for function declaration and weak_alias.
2877         * sysdeps/i386/fpu/libm-test-ulps: Update.
2878
2879         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2880         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2881
2882         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2883         subnormal argument.
2884         * math/s_cexpf.c (__cexpf): Likewise.
2885         * math/s_csinf.c (__csinf): Likewise.
2886         * math/s_csinhf.c (__csinhf): Likewise.
2887         * math/s_ctanf.c (__ctanf): Likewise.
2888         * math/s_ctanhf.c (__ctanhf): Likewise.
2889         * math/s_ccosh.c (__ccoshf): Likewise.
2890         * math/s_cexp.c (__cexpl): Likewise.
2891         * math/s_csin.c (__csin): Likewise.
2892         * math/s_csinh.c (__csinh): Likewise.
2893         * math/s_ctan.c (__ctan): Likewise.
2894         * math/s_ctanh.c (ctanh): Likewise.
2895         * math/s_ccoshl.c (__ccoshl): Likewise.
2896         * math/s_cexpl.c (__cexpl): Likewise.
2897         * math/s_csinl.c (__csinl): Likewise.
2898         * math/s_csinhl.c (__csinhl): Likewise.
2899         * math/s_ctanl.c (__ctanl): Likewise.
2900         * math/s_ctanhl.c (__ctanhl): Likewise.
2901
2902 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2903
2904         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2905         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2906         (_IO_off_t): Define to __off_t, not _G_off_t.
2907         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2908         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2909         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2910         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2911         type of __dummy and __dummy2 fields.
2912         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2913         (_G_ssize_t): Likewise.
2914         (_G_off_t): Likewise.
2915         (_G_pid_t): Likewise.
2916         (_G_uid_t): Likewise.
2917         (_G_wchar_t): Likewise.
2918         (_G_wint_t): Likewise.
2919         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2920         (_G_ssize_t): Likewise.
2921         (_G_off_t): Likewise.
2922         (_G_pid_t): Likewise.
2923         (_G_uid_t): Likewise.
2924         (_G_wchar_t): Likewise.
2925         (_G_wint_t): Likewise.
2926         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2927         (_G_ssize_t): Likewise.
2928         (_G_off_t): Likewise.
2929         (_G_pid_t): Likewise.
2930         (_G_uid_t): Likewise.
2931         (_G_wchar_t): Likewise.
2932         (_G_wint_t): Likewise.
2933
2934 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2935
2936         * malloc/arena.c: Include malloc-sysdep.h.
2937         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2938         is sufficient to shrink the heap or an unmap is needed.
2939         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2940         new function check_may_shrink_heap.
2941         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2942         new function check_may_shrink_heap.
2943
2944 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2945
2946         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2947         comments.
2948
2949 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2950
2951         * catgets/test-gencat.sh: Add "set -e".
2952         * elf/tst-pathopt.sh: Likewise.
2953         * grp/tst_fgetgrent.sh: Likewise.
2954         * iconvdata/run-iconv-test.sh: Likewise.
2955         * intl/tst-gettext.sh: Likewise.
2956         * intl/tst-gettext2.sh: Likewise.
2957         * intl/tst-gettext4.sh: Likewise.
2958         * intl/tst-gettext6.sh: Likewise.
2959         * intl/tst-translit.sh: Likewise.
2960         * io/ftwtest-sh: Likewise.
2961         * libio/test-freopen.sh: Likewise.
2962         * malloc/tst-mtrace.sh: Likewise.
2963         * posix/globtest.sh: Likewise.
2964         * posix/tst-getconf.sh: Likewise.
2965         * posix/wordexp-tst.sh: Likewise.
2966         * stdio-common/tst-printf.sh: Likewise.
2967         * stdio-common/tst-unbputc.sh: Likewise.
2968         * stdlib/tst-fmtmsg.sh: Likewise.
2969         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2970         * catgets/Makefile: Do not specify -e option when running
2971         testsuite shell scripts.
2972         * elf/Makefile: Likewise.
2973         * grp/Makefile: Likewise.
2974         * iconvdata/Makefile: Likewise.
2975         * intl/Makefile: Likewise.
2976         * io/Makefile: Likewise.
2977         * libio/Makefile: Likewise.
2978         * malloc/Makefile: Likewise.
2979         * posix/Makefile: Likewise.
2980         * stdio-common/Makefile: Likewise.
2981         * stdlib/Makefile: Likewise.
2982         * sysdeps/x86_64/Makefile: Likewise.
2983
2984         * io/ftwtest-sh: Add copyright header.
2985         * posix/globtest.sh: Likewise.
2986         * posix/tst-getconf.sh: Likewise.
2987         * posix/wordexp-tst.sh: Likewise.
2988         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
2989
2990 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2991
2992         [BZ #13679]
2993         * Makeconfig (+link): Defined as $(+link-static) if
2994         $(build-shared) isn't yes.
2995         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
2996         isn't yes.
2997         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
2998
2999         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
3000
3001         [BZ #14562]
3002         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
3003         new chunk size with MALLOC_ALIGN_MASK.
3004
3005 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
3006
3007         [BZ #5044]
3008         * stdio-common/printf_fphex.c: Include <stdbool.h> and
3009         <rounding-mode.h>.
3010         (__printf_fphex): Determine rounding using get_rounding_mode and
3011         round_away.
3012         * stdio-common/tst-printf-round.c (struct hex_test): New
3013         structure.
3014         (hex_tests): New variable.
3015         (test_hex_in_one_mode): New function.
3016         (do_test): Also run tests for hex float output.
3017
3018 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
3019
3020         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3021         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3022         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
3023         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3024         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3025         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
3026         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3027         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3028
3029 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
3030
3031         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3032         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3033         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3034         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3035
3036 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
3037
3038         [BZ #14579]
3039         * elf/rtld.c (dl_main): Limit the check for self loading to normal
3040         mode only.
3041         * elf/tst-rtld-load-self.sh: New test.
3042         * elf/Makefile: Run it.
3043
3044 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3045
3046         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3047         (tst-writev-ENV): Remove.
3048         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3049
3050 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3051
3052         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3053
3054 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3055
3056         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3057         unconditional.
3058         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3059         Likewise.
3060         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3061         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3062         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3063         Likewise.
3064
3065 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3066
3067         [BZ #14587]
3068         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3069         * config.make.in (have-cpp-asm-debuginfo): Removed.
3070         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3071         * configure: Regenerated.
3072
3073 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3074
3075         [BZ #5044]
3076         * stdio-common/printf_fp.c: Include <stdbool.h> and
3077         <rounding-mode.h>.
3078         (___printf_fp): Determine rounding using get_rounding_mode and
3079         round_away.
3080         * stdio-common/tst-printf-round.c: New file.
3081         * stdio-common/Makefile (tests): Add tst-printf-round.
3082         (link-libm): New variable.
3083         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3084
3085 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3086
3087         [BZ #14576]
3088         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3089         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3090         Likewise.
3091         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3092         Likewise.
3093
3094 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3095
3096         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3097         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3098         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3099         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3100
3101 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3102
3103         [BZ #14518]
3104         * include/rounding-mode.h: New file.
3105         * sysdeps/generic/get-rounding-mode.h: Likewise.
3106         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3107         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3108         (MAX_VALUE): New macro.
3109         (MIN_VALUE): Likewise.
3110         (overflow_value): New function.
3111         (underflow_value): Likewise.
3112         (round_and_return): Use overflow_value and underflow_value to
3113         determine return values in overflow and underflow cases.  Use
3114         round_away to determine rounding depending on rounding mode.
3115         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3116         determine return values in overflow and underflow cases.
3117         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3118         (struct test_results): New structure.
3119         (struct test): Use struct test_results to store expected results
3120         for all rounding modes.
3121         (TEST): Include expected results for all rounding modes.
3122         (test_in_one_mode): New function.
3123         (do_test): Use test_in_one_mode to compute and check results.
3124         Check results for all rounding modes.
3125         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3126         $(link-libm).
3127
3128 2012-12-09  Allan McRae  <allan@archlinux.org>
3129
3130         * sysdeps/i386/fpu/libm-test-ulps: Update
3131
3132 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3133
3134         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3135         (_G_int32_t): Likewise.
3136         (_G_uint16_t): Likewise.
3137         (_G_uint32_t): Likewise.
3138         (_G_HAVE_BOOL): Likewise.
3139         (_G_HAVE_ATEXIT): Likewise.
3140         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3141         (_G_HAVE_IO_FILE_OPEN): Likewise.
3142         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3143         (_G_int32_t): Likewise.
3144         (_G_uint16_t): Likewise.
3145         (_G_uint32_t): Likewise.
3146         (_G_HAVE_BOOL): Likewise.
3147         (_G_HAVE_ATEXIT): Likewise.
3148         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3149         (_G_HAVE_IO_FILE_OPEN): Likewise.
3150         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3151         (_G_int32_t): Likewise.
3152         (_G_uint16_t): Likewise.
3153         (_G_uint32_t): Likewise.
3154         (_G_HAVE_BOOL): Likewise.
3155         (_G_HAVE_ATEXIT): Likewise.
3156         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3157         (_G_HAVE_IO_FILE_OPEN): Likewise.
3158
3159 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3160
3161         * csu/libc-tls.c: Update copyright years.
3162
3163 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3164
3165         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3166         [!_G_USING_THUNKS]: Remove conditional code.
3167         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3168         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3169
3170         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3171         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3172         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3173         (_G_VTABLE_LABEL_PREFIX): Likewise.
3174         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3175         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3176         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3177         (_G_VTABLE_LABEL_PREFIX): Likewise.
3178         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3179         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3180         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3181         (_G_VTABLE_LABEL_PREFIX): Likewise.
3182         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3183
3184 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3185
3186         * libio/Makefile: Include ../Makeconfig before tests.
3187         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3188         only if $(build-shared) is yes.
3189
3190         * iconv/gconv_db.c: Update copyright years.
3191
3192 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3193
3194         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3195         unwind info if defined PIC. Fix special cases description.
3196         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3197
3198         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3199         DP_HI_MASK entry.
3200         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3201
3202 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3203
3204         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3205
3206         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3207         is NULL.
3208
3209         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3210         (LDLIBS-tst-chk4): This.
3211         (LDFLAGS-tst-chk5): Renamed to ...
3212         (LDLIBS-tst-chk5): This.
3213         (LDFLAGS-tst-chk6): Renamed to ...
3214         (LDLIBS-tst-chk6): This.
3215         (LDFLAGS-tst-lfschk4): Renamed to ...
3216         (LDLIBS-tst-lfschk4): This.
3217         (LDFLAGS-tst-lfschk5): Renamed to ...
3218         (LDLIBS-tst-lfschk5): This.
3219         (LDFLAGS-tst-lfschk6): Renamed to ...
3220         (LDLIBS-tst-lfschk6): This.
3221
3222         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3223         on $(common-objpfx)soversions.mk.
3224
3225 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
3226
3227         [BZ #10014]
3228         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3229         example host name.
3230
3231 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3232
3233         * malloc/arena.c (arena_get_retry): New function that gets
3234         another arena for the caller to try its request on.
3235         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3236         current arena cannot fulfill the request.
3237         (__libc_memalign): Likewise.
3238         (__libc_memalign): Likewise.
3239         (__libc_pvalloc): Likewise.
3240         (__libc_calloc): Likewise.
3241
3242 2012-09-05  John Tobey  <john.tobey@gmail.com>
3243
3244         [BZ #13542]
3245         * manual/arith.texi (Operations on Complex): Fix description
3246         of carg branch cut.
3247
3248 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3249
3250         [BZ #10014]
3251         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3252         host name.
3253
3254         [BZ #10038]
3255         * manual/memory.texi (Memory): Make order of menu items match
3256         order of sections.
3257
3258 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3259
3260         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3261         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3262         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3263
3264 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3265
3266         * csu/libc-tls.c (static_dtv): Renamed to ...
3267         (_dl_static_dtv): This.  Make it global.
3268         (_dl_initial_dtv): Removed.
3269         (__libc_setup_tls): Updated.
3270         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3271         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3272         DL_INITIAL_DTV.
3273
3274 2012-09-06  Petr Machata  <pmachata@redhat.com>
3275
3276         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3277         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3278         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3279         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3280
3281 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3282
3283         [BZ #14545]
3284         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3285         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3286         freeing dtv[-1].
3287
3288 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3289
3290         [BZ #14544]
3291         * Makeconfig (link-static-before-libc): Replace $(+prector)
3292         with $(+prectorT).
3293         (link-static-after-libc): Replace $(+postctor) with
3294         $(+postctorT).
3295         (link-bounded): Replace $(+prector)/$(+postctor) with
3296         $(+prectorT)/$(+postctorT).
3297         (+prectorT): New macro.
3298         (+postctorT): Likewise.
3299
3300 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3301
3302         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3303         (round_str): Handle values above the maximum for IBM long double
3304         as inexact.
3305         * stdlib/tst-strtod-round.c (tests): Regenerated.
3306
3307 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3308
3309         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3310         assembler flag.
3311         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3312         zarch_nohighgprs around the zarch optimized routines.
3313         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3314         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3315         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3316         for zarch.
3317
3318 2012-09-05  David S. Miller  <davem@davemloft.net>
3319
3320         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3321
3322         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3323         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3324         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3325         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3326         entries.
3327
3328 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3329
3330         * malloc/arena.c: Fold copyright years.
3331         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3332
3333 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3334
3335         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3336
3337 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3338
3339         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3340
3341 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3342
3343         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3344         change internal state upon failure.
3345
3346 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3347
3348         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3349         * malloc/memusage.c (mmap): Likewise.
3350         (mmap64, mremap): Likewise.  Adjust name in comment.
3351
3352 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3353
3354         * libio/fileops.c: Fix typos in comments.
3355         * libio/oldfileops.c: Likewise.
3356         * libio/wfileops.c: Likewise.
3357
3358 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3359
3360         [BZ #1349]
3361         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3362         (tst-malloc-usable-ENV): Set environment for test case.
3363         * malloc/hooks.c (malloc_check_get_size): New function to get
3364         requested size.
3365         * malloc/malloc.c (musable): Use malloc_check_get_size.
3366         * malloc/tst-malloc-usable.c: New test case.
3367
3368 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3369
3370         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3371
3372 2012-09-05  Allan McRae  <allan@archlinux.org>
3373
3374         [BZ #13966]
3375         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3376         determine header location.
3377         * configure: Regenerated.
3378
3379 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3380
3381         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3382         float format.
3383         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3384         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3385         format.
3386         (test): Regenerate.
3387
3388 2012-09-04  David S. Miller  <davem@davemloft.net>
3389
3390         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3391         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3392         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3393
3394 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3395
3396         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3397         failures.
3398
3399         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3400
3401 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3402
3403         [BZ #9914]
3404         * libio/iogetdelim.c: Include <limits.h>.
3405         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3406         + len + 1 would overflow.
3407
3408 2012-09-03  Andreas Jaeger  <aj@suse.de>
3409
3410         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3411         * sysdeps/i386/fpu/libm-test-ulps: Update.
3412
3413 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3414
3415         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3416         Add s_sinf-sse2, s_conf-sse2.
3417
3418         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3419         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3420         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3421         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3422
3423         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3424         for using routine as __sinf_ia32.
3425         Use macro for function declaration and weak_alias.
3426         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3427         for using routine as __cosf_ia32.
3428         Use macro for function declaration and weak_alias.
3429
3430         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3431         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3432
3433         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3434         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3435         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3436
3437         * math/libm-test.inc (cos_test): Add more test cases.
3438         (sin_test): Likewise.
3439         (sincos_test): Likewise.
3440
3441 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3442
3443         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3444         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3445         hidden.
3446         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3447
3448 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3449
3450         [BZ #14538]
3451         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3452         first element of the GOT.
3453         (elf_machine_load_address): Return the difference between
3454         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3455
3456 2012-09-01  Allan McRae  <allan@archlinux.org>
3457
3458         [BZ #13412]
3459         * configure.in (AWK): Require gawk version 3.0 or later.
3460         * configure: Regenerated.
3461
3462 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3463
3464         * sysdeps/unix/sysv/linux/kernel-features.h
3465         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3466         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3467         [__NR_clock_getres]: Make code unconditional.
3468         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3469         (clock_getcpuclockid): Remove code left unreachable by removal of
3470         conditionals.
3471         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3472         code unconditional.
3473         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3474         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3475         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3476         Make code unconditional.
3477         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3478         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3479         * sysdeps/unix/sysv/linux/clock_settime.c
3480         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3481         conditional code.
3482         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3483         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3484
3485 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3486
3487         [BZ #14476]
3488         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3489         scripts/test-installation.pl.
3490
3491         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3492         and $ld_so_version if it is set.
3493
3494 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3495
3496         [BZ #14516]
3497         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3498         failure if reading from procfs failed.
3499         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3500
3501 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3502
3503         * sysdeps/unix/sysv/linux/kernel-features.h
3504         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3505         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3506         Remove conditional code.
3507         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3508         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3509         Remove conditional code.
3510         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3511         * sysdeps/unix/sysv/linux/i386/fxstat.c
3512         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3513         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3514         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3515         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3516         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3517         * sysdeps/unix/sysv/linux/i386/lxstat.c
3518         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3519         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3520         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3521         Remove conditional code.
3522         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3523         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3524         Remove conditional code.
3525         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3526         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3527         <kernel-features.h>.
3528         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3529         Remove.
3530         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3531         Remove conditional code.
3532         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3533         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3534         Remove conditional.
3535
3536 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3537
3538         [BZ #5400]
3539         * NEWS: Add fixed bug number.
3540
3541 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3542
3543         [BZ #14519]
3544         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3545         underflowing exponent in case of negative sign.
3546         * stdlib/tst-strtod-round-data: Add more tests.
3547         * stdlib/tst-strtod-round.c (tests): Regenerated.
3548
3549         [BZ #3479]
3550         * stdlib/strtod_l.c (NDIG): Remove.
3551         (HEXNDIG): Likewise.
3552         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3553         smallest representable value.
3554         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3555         lie within an exact representation of 1/2 ulp of the result.
3556         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3557         unconditionally.
3558         (TENS_P9_IDX): Define unconditionally.
3559         (TENS_P9_SIZE): Likewise.
3560         (TENS_P10_IDX): Likewise.
3561         (TENS_P10_SIZE): Likewise.
3562         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3563         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3564         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3565         entries for 10^2^13 and 10^2^14.
3566         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3567         (TENS_P13_IDX): Define.
3568         (TENS_P13_SIZE): Likewise.
3569         (TENS_P14_IDX): Likewise.
3570         (TENS_P14_SIZE): Likewise.
3571         (_fpioconst_pow10): Change array size to
3572         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3573         unconditional.
3574         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3575         1024]: Add entries for 10^2^13 and 10^2^14.
3576         [LAST_POW10 > _LAST_POW10]: Remove #error.
3577         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3578         (_fpioconst_pow10): Change array size to
3579         FPIOCONST_POW10_ARRAY_SIZE.
3580         * stdlib/gen-fpioconst.c: New file.
3581         * stdlib/gen-tst-strtod-round.c: Likewise.
3582         * stdlib/tst-strtod-round-data: Likewise.
3583         * stdlib/tst-strtod-round.c: Likewise.
3584         * stdlib/Makefile (tests): Add tst-strtod-round.
3585
3586         [BZ #14459]
3587         * stdlib/strtod_l.c: Include <stdint.h>.
3588         (NDEBUG): Do not define.
3589         (round_and_return): Change EXPONENT parameter to type intmax_t.
3590         Rearrange calculations to avoid internal overflow possibilities.
3591         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3592         Rearrange calculations to avoid internal overflow possibilities.
3593         Assert that number fits inside MPNSIZE limbs.
3594         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3595         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3596         calculations and add assertions to avoid internal overflow
3597         possibilities.  Add casts to avoid signed/unsigned operations.
3598         * stdlib/tst-strtod-overflow.c: New file.
3599         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3600
3601 2012-08-25  Marek Polacek  <polacek@redhat.com>
3602
3603         * time/time.h: Fix some typos in comments.
3604
3605 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3606
3607         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3608         * posix/tst-rfc3484-2.c: Likewise.
3609         * posix/tst-rfc3484-3.c: Likewise.
3610
3611 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3612
3613         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3614         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3615
3616 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3617
3618         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3619         #include of fxstatat64.c.
3620
3621 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3622
3623         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3624         * shadow/getspent_r.c: Likewise.
3625         * shadow/getspnam.c: Likewise.
3626         * shadow/getspnam_r.c: Likewise.
3627         * gshadow/getsgent.c: Likewise.
3628         * gshadow/getsgent_r.c: Likewise.
3629         * gshadow/getsgnam.c: Likewise.
3630         * gshadow/getsgnam_r.c: Likewise.
3631         * inet/getnetbyad.c: Likewise.
3632         * inet/getnetbyad_r.c: Likewise.
3633         * inet/getnetbynm.c: Likewise.
3634         * inet/getnetbynm_r.c: Likewise.
3635         * inet/getnetent.c: Likewise.
3636         * inet/getnetent_r.c: Likewise.
3637         * inet/getproto.c: Likewise.
3638         * inet/getproto_r.c: Likewise.
3639         * inet/getprtent.c: Likewise.
3640         * inet/getprtent_r.c: Likewise.
3641         * inet/getprtname.c: Likewise.
3642         * inet/getprtname_r.c: Likewise.
3643         * inet/getrpcbyname.c: Likewise.
3644         * inet/getrpcbyname_r.c: Likewise.
3645         * inet/getrpcbynumber.c: Likewise.
3646         * inet/getrpcbynumber_r.c: Likewise.
3647         * inet/getrpcent.c: Likewise.
3648         * inet/getrpcent_r.c: Likewise.
3649         * inet/getaliasent.c: Likewise.
3650         * inet/getaliasent_r.c: Likewise.
3651         * inet/getaliasname.c: Likewise.
3652         * inet/getaliasname_r.c: Likewise.
3653         * nscd/getgrgid_r.c: Likewise.
3654         * nscd/getgrnam_r.c: Likewise.
3655         * nscd/gethstbyad_r.c: Likewise.
3656         * nscd/gethstbynm3_r.c: Likewise.
3657         * nscd/getpwnam_r.c: Likewise.
3658         * nscd/getpwuid_r.c: Likewise.
3659         * nscd/getsrvbynm_r.c: Likewise.
3660         * nscd/getsrvbypt_r.c: Likewise.
3661         * nscd/gai.c: Likewise.
3662
3663         * configure.in (build_nscd): New substituted variable, set
3664         by --disable-build-nscd and defaults to $use_nscd.
3665         * configure: Regenerated.
3666         * config.make.in (build-nscd): New substituted variable.
3667         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3668         Change conditional to require [$(build-nscd) = yes] as well.
3669         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3670
3671         [BZ# 13696]
3672         * configure.in (use_nscd): New substituted variable, set by
3673         --disable-nscd.  If enabled, define USE_NSCD.
3674         * configure: Regenerated.
3675         * config.h.in: Add USE_NSCD.
3676         * config.make.in (use-nscd): New substituted variable.
3677         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3678         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3679         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3680         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3681         (CFLAGS-getgrnam_r.c): Likewise.
3682         (CFLAGS-initgroups.c): Likewise.
3683         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3684         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3685         Variables removed.
3686         * inet/getnetgrent_r.c
3687         (nscd_setnetgrent): New function, broken out of ...
3688         (setnetgrent): ... here.  Call it.
3689         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3690         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3691         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3692         * nscd/Makefile (routines, aux): Move definitions after include of
3693         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3694         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3695         Conditionalize on [USE_NSCD].
3696         (is_nscd, nscd_init_cb): Likewise.
3697         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3698         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3699         * nss/nss_db/db-init.c: Likewise.
3700         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3701         [USE_NSCD].
3702         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3703         (make_request): Use it.
3704         (cache_valid_p): New function.
3705         (__check_pf): Use it.
3706         * NEWS: Add item for --disable-nscd.
3707
3708 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3709
3710         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3711         to support sed >= 4.2.1-20-ga9bf076.
3712         * configure: Regenerated.
3713
3714 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3715
3716         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3717         Conditionalize whole body on [IREL].
3718
3719 2012-08-22  Jeff Law <law@redhat.com>
3720
3721         [BZ #14505]
3722         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3723         if the family is PF_UNSPEC.
3724
3725 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3726
3727         * Makerules (lib-version): Rename from V.
3728         (install-lib-nosubdir): Change V to lib-version.
3729
3730 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3731
3732         [BZ #14252]
3733         * powerpc32/power6/wcschr.c: New file.
3734         * powerpc32/power6/wcscpy.c: New file.
3735         * powerpc32/power6/wcsrchr.c: New file.
3736         * powerpc64/power6/wcschr.c: New file.
3737         * powerpc64/power6/wcscpy.c: New file.
3738         * powerpc64/power6/wcsrchr.c: New file.
3739
3740 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3741
3742         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3743         (two_way_short_needle): Use it.
3744         * string/strstr.c (AVAILABLE1_USES_J): Define.
3745         * string/strcasestr.c: Likewise.
3746
3747         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3748         array references.
3749         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3750
3751         [BZ #11607]
3752         * NEWS: Add an entry.
3753         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3754         define their defaults.
3755         (two_way_short_needle): Detect end-of-string on-the-fly.
3756         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3757         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3758         * string/bug-strcasestr1.c: New test.
3759         * string/Makefile: Run it.
3760
3761 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3762
3763         [BZ #11607]
3764         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3765         the first character.
3766
3767 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3768
3769         * csu/elf-init.c (__libc_csu_irel): Function removed.
3770         * csu/libc-start.c (apply_irel): New function.
3771         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3772
3773 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3774
3775         * sysdeps/unix/sysv/linux/kernel-features.h
3776         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3777         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3778         <kernel-features.h>.
3779         [__NR_fadvise64_64]: Make code unconditional.
3780         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3781         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3782         !__NR_fadvise64_64)]: Likewise.
3783         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3784         !__NR_fadvise64_64))]: Likewise.
3785         [__NR_fadvise64]: Make code unconditional.
3786         [!__NR_fadvise64]: Remove conditional code.
3787         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3788         <kernel-features.h>.
3789         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3790         unconditional.
3791         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3792         conditional code.
3793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3794         not include <kernel-features.h>.
3795         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3796         unconditional.
3797         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3798         conditional code.
3799         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3800         include <kernel-features.h>.
3801         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3802         unconditional.
3803         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3804         conditional code.
3805
3806 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3807
3808         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3809         slight instruction rearrangements per scrollpipe analysis.
3810         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3811
3812 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3813
3814         * manual/syslog.texi (syslog; vsyslog, closelog):
3815         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3816         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3817
3818         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3819         DSOCAPS to match condition on defining it.
3820
3821 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3822
3823         * sysdeps/unix/sysv/linux/kernel-features.h
3824         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3826         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3827         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3829         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3830         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3832         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3833         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3834
3835         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3836         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3837
3838         * sysdeps/unix/sysv/linux/kernel-features.h
3839         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3840         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3841         unconditional.
3842         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3843         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3844         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3845         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3846         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3847         Make code unconditional.
3848         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3849         (__mmap64) [!__NR_mmap2]: Likewise.
3850         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3851         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3852         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3853         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3854         [__NR_mmap2]: Make code unconditional.
3855         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3856         (__mmap64) [!__NR_mmap2]: Likewise.
3857
3858 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3859
3860         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3861
3862 2012-08-18  Andreas Jaeger  <aj@suse.de>
3863
3864         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3865
3866 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3867
3868         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3869         * include/unistd.h (__have_sock_cloexec): Likewise.
3870         (__have_pipe2): Likewise.
3871         (__have_dup3): Likewise.
3872
3873 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3874
3875         [BZ #9685]
3876         * include/unistd.h (__have_pipe2): Change define into an extern int.
3877         (__have_dup3): Likewise.
3878         * socket/have_sock_cloexec.c: Include fcntl.h.
3879         (__have_pipe2): New variable.
3880         (__have_dup3): Likewise.
3881
3882 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3883
3884         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3885
3886 2012-08-17  Marek Polacek  <polacek@redhat.com>
3887
3888         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3889         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3890
3891 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3892
3893         * configure.in: Add AC_SUBST for sysheaders.
3894         * configure: Regenerated.
3895         * config.make.in (sysheaders): New substituted variable.
3896
3897         * sysdeps/unix/mkfifo.c: Moved ...
3898         * sysdeps/posix/mkfifo.c: ... here.
3899         * sysdeps/unix/mkfifoat.c: Moved ...
3900         * sysdeps/posix/mkfifoat.c: ... here.
3901
3902         * sysdeps/unix/utime.c: Moved ...
3903         * sysdeps/posix/utime.c: ... here.
3904
3905         * sysdeps/unix/time.c: Moved ...
3906         * sysdeps/posix/time.c: ... here.
3907         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3908         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3909
3910         * sysdeps/unix/nice.c: Moved ...
3911         * sysdeps/posix/nice.c: ... here.
3912
3913         * sysdeps/unix/alarm.c: Moved ...
3914         * sysdeps/posix/alarm.c: ... here.
3915
3916         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3917
3918 2012-08-17  Jeff Law <law@redhat.com>
3919
3920         * intl/Makefile (codeset_mo): New variable.
3921         ($(codeset_mo)): New target.
3922         (tst-codeset.out): Depend on that.  Remove explicit rule.
3923         (tst-gettext3.out, tst-gettext5.out): Likewise.
3924         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3925         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3926         * intl/tst-codeset.sh: Remove.
3927         * intl/tst-gettext3.sh: Likewise.
3928         * intl/tst-gettext5.sh: Likewise.
3929
3930 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3931
3932         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3933         * sysdeps/unix/syscalls.list: ... here.
3934
3935         * sysdeps/posix/getaddrinfo.c
3936         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3937         (gaiconf_init, gaiconf_reload): Use them.
3938         [!_STATBUF_ST_NSEC]
3939         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3940         Define using time_t rather than struct timespec.
3941
3942         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3943         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3944         Macros removed.
3945         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3946         [!NO_THREADS].
3947         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3948         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3949         Likewise.
3950
3951         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3952         __libc_cleanup_push argument.
3953
3954         * bits/param.h: New file.
3955         * misc/sys/param.h: New file.
3956         * include/sys/param.h: New file.
3957         * misc/Makefile (headers): Add bits/param.h.
3958         * sysdeps/generic/sys/param.h: File removed.
3959         * sysdeps/unix/sysv/linux/bits/param.h: New file.
3960         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
3961         * sysdeps/mach/hurd/bits/param.h: New file.
3962         * sysdeps/mach/hurd/sys/param.h: File removed.
3963
3964         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
3965         last change.
3966
3967         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
3968         [_IO_MTSAFE_IO].
3969         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
3970         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
3971         New macros.
3972
3973         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
3974         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
3975         rather than -D_IO_MTSAFE_IO conditionally.
3976         * stdio-common/Makefile (CPPFLAGS): Likewise.
3977         * wcsmbs/Makefile (CPPFLAGS): Likewise.
3978         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
3979         Use $(libio-mtsafe).
3980         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
3981         of -D_IO_MTSAFE_IO.
3982         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
3983         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
3984         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
3985         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
3986         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
3987         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
3988         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
3989         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
3990         (CFLAGS-fread_u_chk.c): Likewise.
3991         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
3992         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
3993         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
3994         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
3995         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
3996         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
3997         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
3998         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
3999         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
4000
4001         * libio/Makefile: Test [$(libc-reentrant) = yes]
4002         instead of [$(filter %REENTRANT, $(defines)) nonempty].
4003
4004         * Makeconfig
4005         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
4006         * sysdeps/pthread/configure: File removed.
4007         * sysdeps/pthread/Makeconfig: New file.
4008         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
4009         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
4010
4011 2012-08-16  Gary Benson  <gbenson@redhat.com>
4012
4013         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
4014         unmapping the first object in a namespace.
4015
4016 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4017
4018         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
4019         (__internal_setnetgrent): ... this.  Add internal_function to
4020         definition.  Add libc_hidden_def.
4021         (setnetgrent): Update caller.
4022         (internal_endnetgrent): Renamed to ...
4023         (__internal_endnetgrent): ... this.  Add internal_function to
4024         definition.  Add libc_hidden_def.
4025         (endnetgrent): Update caller.
4026         (internal_getnetgrent_r): Renamed to ...
4027         (__internal_getnetgrent_r): ... this.  Add internal_function to
4028         definition.  Add libc_hidden_def.
4029         (__getnetgrent_r): Update caller.
4030         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
4031
4032 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4033
4034         * stdlib/longlong.h: Update from GCC.
4035
4036 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4037
4038         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4039         on _QL, which is set by umul_ppmm but never used.
4040         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4041         variables, which are set by GMP macros but never used.
4042         * stdio-common/_itowa.c (_itowa): Likewise.
4043         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4044         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4045
4046 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4047
4048         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4049         struct La_sh_regs is not constant.
4050         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4051         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4052         and struct La_sparc64_regs are not constant.
4053
4054 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4055
4056         * sysdeps/unix/sysv/linux/kernel-features.h
4057         (__ASSUME_POSIX_TIMERS): Remove.
4058         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4059         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4060         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4061         Make code unconditional.
4062         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4063         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4064         Make code unconditional.
4065         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4066         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4067         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4068         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4069         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4070         Make code unconditional.
4071         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4072         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4073         (__libc_missing_posix_timers): Remove.
4074
4075 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4076
4077         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4078         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4079
4080         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4081
4082         * elf/dl-sym.c: Include <stdlib.h>.
4083
4084         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4085         constants, which avoids warnings in 32-bit builds.
4086
4087         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4088         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4089
4090         * misc/lseek.c: File moved to ...
4091         * io/lseek.c: ... here.
4092
4093         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4094
4095         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4096         shifting LEN more than 31 bits at once.
4097
4098 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4099
4100         [BZ #14195]
4101         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4102         segmentation fault for a case of two empty input strings.
4103         * string/test-strncasecmp.c (check1): Renamed to...
4104         (bz12205): ...this.
4105         (bz14195): Add new testcase for two empty input strings and N > 0.
4106         (test_main): Call new testcase, adapt for renamed function.
4107
4108 2012-08-15  Andreas Jaeger  <aj@suse.de>
4109
4110         [BZ #14090]
4111         * crypt/md5test2.c: New test, based on test supplied by Serge
4112         Belyshev <belyshev@depni.sinp.msu.ru>.
4113         * crypt/Makefile (xtests): Add md5test-giant..
4114         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4115
4116 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4117
4118         [BZ #14090]
4119         * crypt/md5.c (md5_process_block): Don't assume the buffer
4120         length is less than 2**32.
4121         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4122         length is less than 2**64.
4123
4124 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4125
4126         * string/str-two-way.h: Include <sys/param.h>.
4127         (MAX): Macro removed.
4128
4129         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4130         Move #define and #undef of memmove to just before and after
4131         including <string.h>.
4132
4133         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4134         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4135         and after including <string.h>.  Move declarations of
4136         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4137         to before #include "string/memmove.c".
4138
4139         * include/dirent.h: Declare __getdirentries.
4140
4141         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4142         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4143
4144 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4145
4146         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4147         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4148         * sysdeps/i386/configure: Regenerated.
4149         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4150         STABS_CURRENT_FILE, and STABS_FUN.
4151         (END): Remove call to STABS_FUN_END.
4152         (STABS_CURRENT_FILE1): Delete.
4153         (STABS_CURRENT_FILE): Likewise.
4154         (STABS_FUN): Likewise.
4155         (STABS_FUN_END): Likewise.
4156         (STABS_FUN2): Likewise.
4157         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4158         * sysdeps/x86_64/configure: Regenerated.
4159
4160 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4161
4162         * elf/dl-open.c: Include <atomic.h>.
4163         * elf/dl-lookup.c: Likewise.
4164
4165 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4166
4167         * sysdeps/unix/sysv/linux/kernel-features.h
4168         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4169         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4170         unconditionally.
4171         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4172         unconditionally.
4173         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4174         condition on __ASSUME_CLONE_THREAD_FLAGS.
4175
4176 2012-08-14  Andreas Jaeger  <aj@suse.de>
4177
4178         * sysdeps/i386/fpu/libm-test-ulps: Update.
4179
4180 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4181
4182         * include/atomic.h (atomic_exchange_and_add): Split into ...
4183         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4184         New atomic macros.
4185
4186 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4187
4188         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4189
4190 2012-08-13  Jeff Law <law@redhat.com>
4191
4192         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4193         null byte in the output string.
4194
4195 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4196
4197         * sysdeps/unix/sysv/linux/kernel-features.h
4198         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4199         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4200         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4201         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4202         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4203         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4204         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4205
4206 2012-08-09  Jeff Law <law@redhat.com>
4207
4208         [BZ #13939]
4209         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4210         When avoid_arena is set, don't retry in the that arena.  Pick the
4211         next one, whatever it might be.
4212         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4213         (arena_lock): Pass in new parameter to arena_get2.
4214         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4215         arena_get2.
4216         (__libc_malloc): Unify retrying after main arena failure with
4217         __libc_memalign version.
4218         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4219
4220 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4221
4222         [BZ #14166]
4223         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4224         to __redirect_strstr.
4225         (__strstr_sse42): Use typeof __redirect_strstr.
4226         (__strstr_ia32): Likewise.
4227         (__libc_strstr): New prototype.
4228         (strstr): Renamed to ...
4229         (__libc_strstr): This.
4230         (strstr): New strong alias of __libc_strstr.
4231         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4232         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4233         __redirect_time.
4234         Include <time.h>.
4235         (__libc_time): New prototype.
4236         (time_ifunc): Replace time with __libc_time.
4237         (time): New strong alias and hidden definition of __libc_time.
4238         (__GI_time): Remove strong alias.
4239         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4240         Include <stddef.h>.
4241         (memmove): Redefined to __redirect_memmove.
4242         (__memmove_sse2): Use typeof __redirect_memmove.
4243         (__memmove_ssse3): Likewise.
4244         (__memmove_ssse3_back): Likewise.
4245         (__libc_memmove): New prototype.
4246         (memmove): Renamed to ...
4247         (__libc_memmove): This.
4248         (memmove): New strong alias of __libc_memmove.
4249
4250 2012-08-08  Mark Salter  <msalter@redhat.com>
4251
4252         * elf/elf.h
4253         (R_MN10300_TLS_GD): Define.
4254         (R_MN10300_TLS_LD): Likewise.
4255         (R_MN10300_TLS_LDO): Likewise.
4256         (R_MN10300_TLS_GOTIE): Likewise.
4257         (R_MN10300_TLS_IE): Likewise.
4258         (R_MN10300_TLS_LE): Likewise.
4259         (R_MN10300_TLS_DTPMOD): Likewise.
4260         (R_MN10300_TLS_DTPOFF): Likewise.
4261         (R_MN10300_TLS_TPOFF): Likewise.
4262         (R_MN10300_SYM_DIFF): Likewise.
4263         (R_MN10300_ALIGN): Likewise.
4264         (R_MN10300_NUM): Update.
4265
4266 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4267
4268         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4269         Remove.
4270
4271 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4272
4273         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4274
4275         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4276         sysdeps/unix -> sysdeps/posix move.
4277         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4278
4279 2012-08-07      Allan McRae     <allan@archlinux.org>
4280
4281         [BZ #14303]
4282         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4283         (SUNOS_CPP): Likewise.
4284         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4285         not found.
4286         (open_input): Call CPP using execvp.
4287
4288 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4289
4290         * sysdeps/unix/sysv/linux/kernel-features.h
4291         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4292         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4293         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4294         (__ASSUME_WAITID_SYSCALL): Likewise.
4295         * sysdeps/unix/sysv/linux/dl-execstack.c
4296         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4297         code unconditional.
4298         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4299         conditional code.
4300         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4301         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4302         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4303         code.
4304         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4305         unconditional.
4306         [__ASSUME_WAITID_SYSCALL]: Likewise.
4307         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4308
4309 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4310
4311         * sysdeps/unix/closedir.c: Renamed to ...
4312         * sysdeps/posix/closedir.c: ... here.
4313         * sysdeps/unix/dirfd.c: Renamed to ...
4314         * sysdeps/posix/dirfd.c: ... here.
4315         * sysdeps/unix/dirstream.h: Renamed to ...
4316         * sysdeps/posix/dirstream.h: ... here.
4317         * sysdeps/unix/fdopendir.c: Renamed to ...
4318         * sysdeps/posix/fdopendir.c: ... here.
4319         * sysdeps/unix/opendir.c: Renamed to ...
4320         * sysdeps/posix/opendir.c: ... here.
4321         * sysdeps/unix/readdir.c: Renamed to ...
4322         * sysdeps/posix/readdir.c: ... here.
4323         * sysdeps/unix/readdir_r.c: Renamed to ...
4324         * sysdeps/posix/readdir_r.c: ... here.
4325         * sysdeps/unix/rewinddir.c: Renamed to ...
4326         * sysdeps/posix/rewinddir.c: ... here.
4327         * sysdeps/unix/seekdir.c: Renamed to ...
4328         * sysdeps/posix/seekdir.c: ... here.
4329         * sysdeps/unix/telldir.c: Renamed to ...
4330         * sysdeps/posix/telldir.c: ... here.
4331         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4332         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4333         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4334         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4335
4336         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4337         * bits/fcntl.h: ... here.
4338
4339         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4340         not 0.
4341         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4342         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4343         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4344         (struct flock): Move l_start, l_len to the beginning.
4345         Use __pid_t for l_pid.
4346         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4347         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4348         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4349         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4350         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4351         [__USE_LARGEFILE64] (struct flock64): New type.
4352         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4353
4354         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4355         * bits/dirent.h: ... here.
4356
4357         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4358         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4359
4360 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4361
4362         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4363         Change from 2.6.0 to 2.6.16.
4364         * sysdeps/unix/sysv/linux/configure: Regenerated.
4365         * sysdeps/unix/sysv/linux/kernel-features.h
4366         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4367         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4368         version.
4369         (__ASSUME_UTIMES): Likewise.
4370         (__ASSUME_CLONE_STOPPED): Remove.
4371         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4372         architectures, not kernel version.
4373         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4374         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4375         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4376         (__ASSUME_WAITID_SYSCALL): Likewise.
4377         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4378         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4379         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4380         refer to older versions.
4381
4382 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4383
4384         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4385         Define alphasort64 as an alias.
4386         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4387         Define versionsort64 as an alias.
4388         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4389         Define scandir64 as an alias.
4390         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4391         Define scandirat64 as an alias.
4392         * dirent/alphasort64.c (alphasort64):
4393         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4394         * dirent/versionsort64.c: Likewise.
4395         * dirent/scandir64.c: Likewise.
4396         * dirent/scandirat64.c: Likewise.
4397         * sysdeps/wordsize-64/alphasort.c: File removed.
4398         * sysdeps/wordsize-64/alphasort64.c: File removed.
4399         * sysdeps/wordsize-64/scandir.c: File removed.
4400         * sysdeps/wordsize-64/scandir64.c: File removed.
4401         * sysdeps/wordsize-64/scandirat.c: File removed.
4402         * sysdeps/wordsize-64/scandirat64.c: File removed.
4403         * sysdeps/wordsize-64/versionsort.c: File removed.
4404         * sysdeps/wordsize-64/versionsort64.c: File removed.
4405         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4406         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4407         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4408         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4409         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4410         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4411         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4412         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4413
4414         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4415         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4416         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4417         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4418         [defined __arch64__ || defined __sparcv9]
4419         (__INO_T_MATCHES_INO64_T): New macro.
4420         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4421         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4422         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4423         * sysdeps/unix/sysv/linux/bits/dirent.h
4424         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4425         (_DIRENT_MATCHES_DIRENT64): New macro.
4426
4427         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4428         Define lockf64 as an alias.
4429         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4430         Define fseeko64 as an alias.
4431         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4432         Define ftello64 as an alias.
4433         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4434         Define _IO_fgetpos64 and fgetpos64 as aliases.
4435         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4436         Define _IO_fsetpos64 and fsetpos64 as aliases.
4437         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4438         Conditionalize body on this.
4439         * libio/fseeko64.c: Likewise.
4440         * libio/ftello64.c: Likewise.
4441         * libio/iofgetpos64.c: Likewise.
4442         * libio/iofsetpos64.c: Likewise.
4443         * sysdeps/wordsize-64/lockf.c: File removed.
4444         * sysdeps/wordsize-64/lockf64.c: File removed.
4445         * sysdeps/wordsize-64/fseeko.c: File removed.
4446         * sysdeps/wordsize-64/fseeko64.c: File removed.
4447         * sysdeps/wordsize-64/ftello.c: File removed.
4448         * sysdeps/wordsize-64/ftello64.c: File removed.
4449         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4450         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4451         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4452         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4453         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4454         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4455         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4456         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4457         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4458         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4459         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4460         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4461         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4462         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4463
4464         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4465         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4466         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4467         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4468         [defined __arch64__ || defined __sparcv9]
4469         (__OFF_T_MATCHES_OFF64_T): New macro.
4470         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4471         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4472         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4473         (__OFF_T_MATCHES_OFF64_T): New macro.
4474
4475 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4476
4477         * stdlib/secure-getenv.c (__secure_getenv): Replace
4478         GLIBC_2_16 with GLIBC_2_17.
4479
4480 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4481
4482         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4483         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4484
4485 2012-08-03  David S. Miller  <davem@davemloft.net>
4486
4487         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4488
4489 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4490
4491         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4492         Remove.
4493         (__ASSUME_CORRECT_SI_PID): Likewise.
4494         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4495         (__ASSUME_TMPFS_NAME): Likewise.
4496         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4497         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4498         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4499         (HAVE_AUX_SECURE): Make definition unconditional.
4500         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4501         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4502
4503 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4504
4505         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4506         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4507         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4508         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4509         __eloop_threshold instead of SYMLOOP_MAX.
4510
4511         * sysdeps/generic/eloop-threshold.h: New file.
4512         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4513         of MAXSYMLINKS.
4514         * elf/chroot_canon.c (chroot_canon): Likewise.
4515
4516 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4517
4518         [BZ #13717]
4519         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4520         Change to 2.6.0 everywhere.
4521         * sysdeps/unix/sysv/linux/configure: Regenerated.
4522         * sysdeps/unix/sysv/linux/kernel-features.h
4523         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4524         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4525         kernel versions.
4526         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4527         (__ASSUME_FUTEX_REQUEUE): Remove.
4528         (__ASSUME_STATFS64): Define unconditionally.
4529         (__ASSUME_AT_SECURE): Likewise.
4530         (__ASSUME_CORRECT_SI_PID): Likewise.
4531         (__ASSUME_TGKILL): Define without depending on kernel version for
4532         i386.
4533         (__ASSUME_UTIMES): Likewise.
4534         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4535         kernel version.
4536         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4537         (__ASSUME_TMPFS_NAME): Likewise.
4538         * README: Update reference to Linux kernel versions.
4539
4540 2012-08-02  Marek Polacek  <polacek@redhat.com>
4541
4542         [BZ# 14150]
4543         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4544         libc_cv_asm_type_prefix with %.
4545         * configure: Regenerated.
4546         * include/libc-symbols.h: Remove comment about
4547         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4548         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4549         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4550         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4551         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4552         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4553         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4554         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4555         * elf/tst-unique2mod1.c: Likewise.
4556         * elf/tst-unique1mod2.c: Likewise.
4557         * elf/tst-unique1mod1.c: Likewise.
4558         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4559         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4560         Replace ASM_TYPE_DIRECTIVE with .type.
4561         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4562         * sysdeps/i386/sysdep.h: Likewise.
4563         * sysdeps/x86_64/sysdep.h: Likewise.
4564         * sysdeps/sh/sysdep.h: Likewise.
4565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4566         Do not define ASM_TYPE_DIRECTIVE.
4567         * sysdeps/powerpc/sysdep.h: Likewise.
4568         * sysdeps/powerpc/powerpc32/sysdep.h:
4569         Replace ASM_TYPE_DIRECTIVE with .type.
4570         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4571         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4572         * sysdeps/i386/fpu/e_powf.S: Likewise.
4573         * sysdeps/i386/fpu/e_expl.S: Likewise.
4574         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4575         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4576         * sysdeps/i386/fpu/e_pow.S: Likewise.
4577         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4578         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4579         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4580         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4581         * sysdeps/i386/fpu/e_log2.S: Likewise.
4582         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4583         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4584         * sysdeps/i386/fpu/e_powl.S: Likewise.
4585         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4586         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4587         * sysdeps/i386/fpu/e_logl.S: Likewise.
4588         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4589         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4590         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4591         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4592         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4593         * sysdeps/i386/fpu/e_log.S: Likewise.
4594         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4595         * sysdeps/i386/fpu/e_logf.S: Likewise.
4596         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4597         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4598         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4599         * sysdeps/i386/fpu/e_log10.S: Likewise.
4600         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4601         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4602         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4603         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4604         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4605         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4606         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4607         * sysdeps/i386/i686/strtok.S: Likewise.
4608         * sysdeps/i386/i386-mcount.S: Likewise.
4609         * sysdeps/i386/strtok.S: Likewise.
4610         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4611         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4612         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4613         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4614         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4615         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4616         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4617         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4618         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4619         * sysdeps/x86_64/_mcount.S: Likewise.
4620         * sysdeps/x86_64/strtok.S: Likewise.
4621         * sysdeps/sh/_mcount.S: Likewise.
4622
4623 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4624
4625         * libio/iofopen.c: Include <fcntl.h>.
4626         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4627         (_IO_fopen64, fopen64): Define as aliases.
4628         * libio/iofopen64.c: Include <fcntl.h>.
4629         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4630         Conditionalize body on this.
4631         * sysdeps/wordsize-64/iofopen.c: File removed.
4632         * sysdeps/wordsize-64/iofopen64.c: File removed.
4633
4634 2012-08-01  Marek Polacek  <polacek@redhat.com>
4635
4636         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4637         Use dlfcn directly instead of a variable.
4638         (binfmt-subdir): Do not define.
4639         (dlfcn): Likewise.
4640
4641 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4642
4643         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4644         Remove all definitions.
4645         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4646         <kernel-features.h>.
4647         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4648         (miss_F_GETOWN_EX): Remove all definitions.
4649         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4650         macro definition.
4651         [!__ASSUME_FCNTL64]: Remove conditional code.
4652         [__ASSUME_FCNTL64]: Make code unconditional.
4653         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4654         <kernel-features.h>.
4655         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4656         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4657         (lockf64) [__NR_fcntl64]: Make code unconditional.
4658         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4659
4660         * sysdeps/unix/sysv/linux/kernel-features.h
4661         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4662         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4663         Make code unconditional.
4664         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4665         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4666         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4667         [__NR_vfork]: Make code unconditional.
4668         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4669         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4671         [__NR_vfork]: Make code unconditional.
4672         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4673         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4674
4675 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4676
4677         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4678         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4679
4680         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4681         Define mkstemp64 as an alias.
4682         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4683         Define mkstemps64 as an alias.
4684         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4685         Define mkostemp64 as an alias.
4686         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4687         Define mkostemps64 as an alias.
4688         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4689         Conditionalize body on this.
4690         * misc/mkostemp64.c: Likewise.
4691         * misc/mkostemps64.c: Likewise.
4692         * misc/mkstemps64.c: Likewise.
4693         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4694         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4695         * sysdeps/wordsize-64/mkostemp.c: File removed.
4696         * sysdeps/wordsize-64/mkstemp.c: File removed.
4697         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4698         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4699         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4700         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4701
4702         [BZ #14138]
4703         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4704         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4705         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4706         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4707
4708         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4709         compat_symbol macros from <shlib-compat.h> rather than the underlying
4710         default_symbol_version and symbol_version macros, so that DEFAULT
4711         lines in shlib-versions are respected.
4712         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4713
4714 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4715
4716         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4717         Declare with warn_unused_result.
4718         (setgid, setregid, setegid, setresgid): Likewise.
4719         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4720         Likewise.
4721         * WUR-REPORT: Remove set*id functions.
4722
4723 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4724
4725         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4726
4727 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4728
4729         * include/sys/socket.h (__libc_accept, __libc_accept4):
4730         Add attribute_hidden.
4731         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4732
4733         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4734         use of PTR_MANGLE.
4735         * inet/getnetgrent_r.c (setup): Likewise.
4736
4737         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4738
4739 2012-07-31  David S. Miller  <davem@davemloft.net>
4740
4741         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4742
4743 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4744
4745         [BZ #13629]
4746         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4747         value between 1.0 and 2.0 and smaller part has absolute value less
4748         than 1.0.
4749         * math/s_clog10.c (__clog10): Likewise.
4750         * math/s_clog10f.c (__clog10f): Likewise.
4751         * math/s_clog10l.c (__clog10l): Likewise.
4752         * math/s_clogf.c (__clogf): Likewise.
4753         * math/s_clogl.c (__clogl): Likewise.
4754         * math/libm-test.inc (clog_test): Add more tests.
4755         (clog10_test): Likewise.
4756         * sysdeps/i386/fpu/libm-test-ulps: Update.
4757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4758
4759 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4760
4761         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4762         Exit with zero in case no suitable GID is found, and write a
4763         message to standard error.
4764
4765 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4766
4767         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4768         rather than to 1.
4769         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4770         (MAXPATHLEN): Removed.
4771         (NOGROUP, NODEV): New macros.
4772         (setbit, clrbit, isset, isclr): New macros.
4773         (howmany, roundup, powerof2): New macros.
4774         (DEV_BSIZE): New macro.
4775
4776         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4777         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4778
4779         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4780         definition on [!__NO_LONG_DOUBLE_MATH].
4781
4782         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4783         PTR_MANGLE and PTR_DEMANGLE.
4784
4785         * socket/accept4.c (accept4): Rename to __libc_accept4.
4786         Define accept4 as a weak alias.
4787
4788         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4789         on [_DIRENT_HAVE_D_TYPE].
4790         * io/ftw.c (ftw_dir): Likewise.
4791
4792         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4793
4794         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4795
4796         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4797         Use the BSD numbers rather than the arbitrary ones we had.
4798         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4799         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4800         (SIGXCPU, SIGXFSZ): New macros.
4801         (_NSIG): Now 32.
4802
4803         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4804         initializer on [_LIBC_REENTRANT].
4805
4806         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4807         definitions inside [_POSIX_MAPPED_FILES].
4808
4809         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4810
4811         * dirent/opendir.c: Include <fcntl.h>.
4812
4813         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4814         (__libc_getspecific): Likewise.
4815         (__libc_key_create): Likewise.
4816
4817         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4818         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4819         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4820         (tmpfile64): Define as alias.
4821         * sysdeps/wordsize-64/tmpfile.c: File removed.
4822         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4823         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4824         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4825
4826         * stdio-common/vfscanf.c: Include <stdbool.h>.
4827         * nss/makedb.c: Likewise.
4828         * stdio-common/_i18n_number.h: Likewise.
4829         * argp/argp-help.c: Likewise.
4830         * posix/wordexp.c: Likewise.
4831         * sysdeps/posix/spawni.c: Likewise.
4832         * nss/nss_files/files-initgroups.c: Likewise.
4833         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4834         * nss/nss_files/files-initgroups.c: Likewise.
4835         * nss/nss_db/db-netgrp.c: Likewise.
4836         * nss/nss_db/db-initgroups.c: Likewise.
4837         * io/fchmodat.c: Include <sys/stat.h>.
4838
4839         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4840         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4841
4842         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4843         [HAVE_MMAP].
4844
4845         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4846         Add multiple inclusion protection.
4847
4848 2012-07-27  David S. Miller  <davem@davemloft.net>
4849
4850         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4851
4852 2012-07-27  Gary Benson  <gbenson@redhat.com>
4853
4854         [BZ #14298]
4855         * elf/rtld.c: Include <stap-probe.h>.
4856         (dl_main): Added static probes "init_start" and "init_complete".
4857         * elf/dl-load.c: Include <stap-probe.h>.
4858         (lose): Take new parameter "nsid".
4859         Added static probe "map_failed".
4860         (_dl_map_object_from_fd): Pass namespace id to lose.
4861         Added static probe "map_start".
4862         (open_verify): Pass namespace id to lose.
4863         * elf/dl-open.c: Include <stap-probe.h>.
4864         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4865         and "reloc_complete".
4866         * elf/dl-close.c: Include <stap-probe.h>.
4867         (_dl_close_worker): Added static probes "unmap_start" and
4868         "unmap_complete".
4869         * elf/rtld-debugger-interface.txt: New file documenting the above.
4870
4871 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4872
4873         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4874         rather than a string variable.
4875         * sunrpc/rpc_main.c (h_output): Likewise.
4876         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4877
4878 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4879
4880         * inet/check_native.c: New file.
4881
4882 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4883
4884         [BZ #13629]
4885         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4886         if larger part has absolute value 1.0.
4887         * math/s_clog10.c (__clog10): Likewise.
4888         * math/s_clog10f.c (__clog10f): Likewise.
4889         * math/s_clog10l.c (__clog10l): Likewise.
4890         * math/s_clogf.c (__clogf): Likewise.
4891         * math/s_clogl.c (__clogl): Likewise.
4892         * math/libm-test.inc (clog_test): Add more tests.
4893         (clog10_test): Likewise.
4894         * sysdeps/i386/fpu/libm-test-ulps: Update.
4895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4896
4897         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4898         (pltexit): Likewise.
4899         (La_regs): Likewise.
4900         (La_retval): Likewise.
4901         (int_retval): Likewise.
4902         Update #error for removed macros to refer only to definitions in
4903         tst-audit.h.
4904         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4905         macro.
4906         (pltexit): Likewise.
4907         (La_regs): Likewise.
4908         (La_retval): Likewise.
4909         (int_retval): Likewise.
4910         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4911         macro.
4912         (pltexit): Likewise.
4913         (La_regs): Likewise.
4914         (La_retval): Likewise.
4915         (int_retval): Likewise.
4916         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4917         macro.
4918         (pltexit): Likewise.
4919         (La_regs): Likewise.
4920         (La_retval): Likewise.
4921         (int_retval): Likewise.
4922         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4923         macro.
4924         (pltexit): Likewise.
4925         (La_regs): Likewise.
4926         (La_retval): Likewise.
4927         (int_retval): Likewise.
4928         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4929         macro.
4930         (pltexit): Likewise.
4931         (La_regs): Likewise.
4932         (La_retval): Likewise.
4933         (int_retval): Likewise.
4934         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4935         macro.
4936         (pltexit): Likewise.
4937         (La_regs): Likewise.
4938         (La_retval): Likewise.
4939         (int_retval): Likewise.
4940         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4941         macro definitions in tst-audit.h.
4942         * sysdeps/i386/tst-audit.h: New file.
4943         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4944         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4945         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4946         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4947         * sysdeps/sh/tst-audit.h: Likewise.
4948         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4949         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4950         * sysdeps/x86_64/tst-audit.h: Likewise.
4951
4952 2012-07-26  Andreas Jaeger  <aj@suse.de>
4953
4954         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4955         ptrace.
4956
4957         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
4958         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
4959         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
4960         PTRACE_O_MASK.
4961         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
4962         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
4963         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
4964
4965         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
4966         value.
4967
4968         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
4969         _sigsys.
4970         (si_call_addr, si_syscall, si_arch): Define new macro.
4971         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
4972         _sigsys.
4973         (si_call_addr, si_syscall, si_arch): Define new marcro.
4974         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
4975         _sigsys.
4976         (si_call_addr, si_syscall, si_arch): Define new macro.
4977         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
4978         _sigsys.
4979         (si_call_addr, si_syscall, si_arch): Define new macro.
4980
4981 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
4982
4983         [BZ #13717]
4984         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4985         Change to 2.4.21 where previously 2.4.1.
4986         * sysdeps/unix/sysv/linux/configure: Regenerated.
4987         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
4988         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
4989         Linux kernel version.
4990         (__ASSUME_STD_AUXV): Remove.
4991         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
4992         kernel version.
4993         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
4994         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
4995         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
4996         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
4997         (__ASSUME_NETLINK_SUPPORT): Likewise.
4998         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
4999         (__no_netlink_support): Remove conditional definition.
5000         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
5001         Remove.
5002         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5003         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
5004         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
5005         (if_nameindex_ioctl): Remove.
5006         (if_nameindex_netlink): Do not handle __no_netlink_support.
5007         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5008         code.
5009         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
5010         Remove conditional code.
5011         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5012         code.
5013         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
5014         unconditional.
5015         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5016         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
5017         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
5018         Remove.
5019         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5020         [!__ASSUME_STD_AUXV]: Remove conditional code.
5021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
5022         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
5023         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
5024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
5025         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
5026         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5027         code.
5028         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5030         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5031         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5032         conditional code.
5033         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5035         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5036         code.
5037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5038         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5039         conditional code.
5040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5041         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5042         code unconditional.
5043         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5044         conditional code.
5045         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5046         unconditional.
5047         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5048         conditional code.
5049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5050         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5051         unconditional.
5052         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5053         conditional code.
5054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5055         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5056         code unconditional.
5057         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5058         conditional code.
5059         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5060         unconditional.
5061         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5062         conditional code.
5063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5064         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5065         code unconditional.
5066         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5067         conditional code.
5068         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5069         unconditional.
5070         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5071         conditional code.
5072
5073 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5074
5075         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5076         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5077         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5078         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5079         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5080         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5081         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5082         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5083         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5084         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5085         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5086         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5087         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5088         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5089         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5090         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5091         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5092         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5093         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5094         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5095         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5096         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5097         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5098
5099 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5100
5101         * Versions.def: Add GLIBC_2.17.
5102         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5103         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5104         Introduce __libc_secure_getenv.
5105         * stdlib/Versions (2.17): Add secure_getenv
5106         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5107         * stdlib/secure-getenv.c: Rename __secure_getenv to
5108         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5109         symbol __secure_getenv for GLIBC_2.0.
5110         * stdlib/tst-secure-getenv.c: New.
5111         * stdlib/Makefile (tests): Add testcase.
5112         * manual/startup.texi (Environment Access): Document
5113         secure_getenv.
5114         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5115         __libc_secure_getenv.
5116         * inet/ruserpass.c (ruserpass): Likewise.
5117         * malloc/mtrace.c (mtrace): Likewise.
5118         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5119         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5120         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5121         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5122         HAVE_SECURE_GETENV.
5123         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5124         __secure_getenv to __libc_secure_getenv.
5125         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5127         Likewise.
5128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5129         Likewise.
5130         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5131         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5132         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5133         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5134         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5135         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5136         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5137
5138 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5139
5140         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5141         (struct La_i86_retval): Likewise.
5142         (struct La_x86_64_regs): Likewise.
5143         (struct La_x86_64_retval): Likewise.
5144         (struct La_x32_regs): Likewise.
5145         (struct La_x32_retval): Likewise.
5146         (struct La_ppc32_regs): Likewise.
5147         (struct La_ppc32_retval): Likewise.
5148         (struct La_ppc64_regs): Likewise.
5149         (struct La_ppc64_retval): Likewise.
5150         (struct La_sh_regs): Likewise.
5151         (struct La_sh_retval): Likewise.
5152         (struct La_s390_32_regs): Likewise.
5153         (struct La_s390_32_retval): Likewise.
5154         (struct La_s390_64_regs): Likewise.
5155         (struct La_s390_64_retval): Likewise.
5156         (struct La_sparc32_regs): Likewise.
5157         (struct La_sparc32_retval): Likewise.
5158         (struct La_sparc64_regs): Likewise.
5159         (struct La_sparc64_retval): Likewise.
5160         (struct audit_ifaces): Remove architecture-specific pltenter and
5161         pltexit members.
5162         * sysdeps/i386/ldsodefs.h: New file.
5163         * sysdeps/powerpc/ldsodefs.h: Likewise.
5164         * sysdeps/s390/ldsodefs.h: Likewise.
5165         * sysdeps/sh/ldsodefs.h: Likewise.
5166         * sysdeps/sparc/ldsodefs.h: Likewise.
5167         * sysdeps/x86_64/ldsodefs.h: Likewise.
5168
5169 2012-07-25  Marek Polacek  <polacek@redhat.com>
5170
5171         [BZ #6808]
5172         * math/libm-test.inc (yn_test): Add another test.
5173         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5174         to ERANGE when the result is +-Inf.
5175         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5176         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5177         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5178         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5179
5180 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5181
5182         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5183         equal to 0.
5184         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5185         clock_t.
5186         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5187
5188 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5189
5190         * configure.in <sysdeps resolving>: Correct printing
5191         Implies_before.
5192         * configure: Regenerate.
5193
5194 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5195
5196         * math/w_ilogb.c: Include <limits.h>.
5197         * math/w_ilogbl.c: Likewise.
5198
5199 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5200
5201         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5202         va_copy.  Document allowing for unavailable va_copy only as
5203         pre-C99 compatibility.
5204         * manual/string.texi (Copying and Concatenation): Use va_copy
5205         instead of __va_copy in concat example.
5206
5207 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5208
5209         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5210         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5211         it if not null.
5212
5213         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5214         with O_NOLINK passed to __file_name_lookup.
5215
5216         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5217         with O_NOLINK passed to __file_name_lookup.
5218
5219         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5220         negative N or less than NGIDS.
5221
5222         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5223         type to string_t.  Set ERANGE as errno and return it if NAME is not big
5224         enough.  Use memcpy instead of strncpy.
5225
5226 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5227
5228         * elf/Makefile (check-data): Remove.
5229         (localplt.data): New vpath directive.
5230         ($(objpfx)check-localplt.out): Use localplt.data from vpath
5231         instead of $(check-data).
5232         * scripts/data/localplt-generic.data: Move to ...
5233         * sysdeps/generic/localplt.data: ... here.
5234         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5235         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5236         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5238         ... here.
5239         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5241         ... here.
5242         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5243         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5244         ... here.
5245         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5246         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5247         ... here.
5248         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5249         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5250         ... here.
5251         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5252         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5253         ... here.
5254
5255 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5256
5257         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5258         PPC32 and PPC64 files.
5259         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5260         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5261
5262 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5263
5264         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5265         __makecontext_ret to ...
5266         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5267         ... here and call exit if uc_link is NULL.  New file.
5268         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5269         __makecontext_ret.S.
5270         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5271         __makecontext_ret to ...
5272         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5273         ... here and call exit if uc_link is NULL.  New file.
5274         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5275         __makecontext_ret.S.
5276
5277 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5278
5279         * elf/elf.h (R_390_IRELATIVE): New definition.
5280         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5281         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5282         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5283         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5284         (elf_machine_lazy_rel): Likewise.
5285         * sysdeps/s390/dl-irel.h: New file.
5286         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5287         * sysdeps/s390/s390-64/memset.S: New asm code.
5288         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5289         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5290         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5291         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5292         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5293         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5294         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5295         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5296         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5297         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5298         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5299         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5300         * sysdeps/s390/s390-32/memset.S: New asm code.
5301         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5302
5303 2012-07-17  Marek Polacek  <polacek@redhat.com>
5304
5305         [BZ #14349]
5306         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5307         * sysdeps/s390/s390-64/configure.in: Likewise.
5308         * sysdeps/sparc/configure.in: Likewise.
5309         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5310         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5311         * sysdeps/i386/configure.in: Likewise.
5312         * sysdeps/x86_64/configure.in: Likewise.
5313         * sysdeps/sh/configure.in: Likewise.
5314         * sysdeps/s390/s390-32/configure: Regenerated.
5315         * sysdeps/s390/s390-64/configure: Likewise.
5316         * sysdeps/x86_64/configure: Likewise.
5317         * sysdeps/sh/configure: Likewise.
5318         * sysdeps/powerpc/powerpc64/configure: Likewise.
5319         * sysdeps/powerpc/powerpc32/configure: Likewise.
5320         * sysdeps/sparc/configure: Likwise.
5321         * sysdeps/i386/configure: Likewise.
5322
5323         * elf/dl-open.c: Comment fixes.
5324
5325 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5326
5327         * Makefile [CXX] (check-data): Remove.
5328         [CXX] (c++-types.data): New vpath directive.
5329         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5330         vpath.  Do not allow for C++ type data being missing.
5331         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5332         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5333         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5334         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5335         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5336         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5337         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5339         ... here.
5340         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5342         ... here.
5343         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5344         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5345         ... here.
5346         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5347         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5348         ... here.
5349         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5350         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5351         ... here.
5352         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5353         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5354         ... here.
5355         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5356         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5357         ... here.
5358         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5359         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5360
5361         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5362         definitions to architecture-specific files.
5363         (TLS_IE): Likewise.
5364         (TLS_LD): Likewise.
5365         (TLS_GD): Likewise.
5366         * sysdeps/i386/tls-macros.h: New file.
5367         * sysdeps/powerpc/tls-macros.h: Likewise.
5368         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5369         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5370         * sysdeps/sh/tls-macros.h: Likewise.
5371         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5372         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5373         * sysdeps/x86_64/tls-macros.h: Likewise.
5374
5375 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5376
5377         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5378         zero value for regular exit case.
5379
5380         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5381         (__start_context): Preserve zero value for regular exit case.
5382
5383 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5384             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5385
5386         * manual/setjmp.texi (setcontext): Clarify normal process
5387         termination when uc_link is the null pointer.
5388         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5389         exit call.
5390
5391 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5392
5393         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5394         preprocessor.  Test for each exception mask separately.
5395
5396 2012-07-16  Andreas Jaeger  <aj@suse.de>
5397
5398         * po/ru.po: Update from translation team.
5399
5400 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5401
5402         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5403         equal to 0.
5404         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5405         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5406         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5407         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5408         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5409
5410 2012-07-13  Andreas Jaeger  <aj@suse.de>
5411
5412         * po/fr.po: Update from translation team.
5413
5414 2012-07-12  Marek Polacek  <polacek@redhat.com>
5415
5416         [BZ #14173]
5417         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5418         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5419         loop condition.
5420
5421 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5422
5423         [BZ #13717]
5424         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5425         Change to 2.4.1 where previously 2.4.0.
5426         * sysdeps/unix/sysv/linux/configure: Regenerated.
5427         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5428         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5429         version.
5430         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5431         (__ASSUME_AT_CLKTCK): Remove.
5432         (__ASSUME_AT_PAGESIZE): Likewise.
5433         (__ASSUME_AT_XID): Likewise.
5434         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5435         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5436         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5437         unconditionally.
5438         (HAVE_AUX_PAGESIZE): Likewise.
5439         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5440         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5441         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5442
5443 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5444
5445         [BZ #14307]
5446         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5447         the temporary buffer used to invoke __gethostbyname2_r,
5448         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5449         host_data / struct gaih_addrtuple.
5450         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5451         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5452         header file nss/nsswitch.h.
5453         * nss/nsswitch.h (global scope): Add definition of implementation
5454         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5455         resolv/nss_dns/dns-host.c).
5456
5457 2012-07-11  Andreas Jaeger  <aj@suse.de>
5458
5459         * po/fr.po: Update from translation team.
5460
5461         * po/sv.po: Update from translation team
5462         * po/fr.po: Another update from translation team.
5463
5464 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5465
5466         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5467         for subnormals or multiply small sinh result by itself.
5468         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5469         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5470
5471 2012-07-11  David S. Miller  <davem@davemloft.net>
5472
5473         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5474
5475 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5476
5477         [BZ #14347]
5478         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5479         (INTERNAL_MARK): Shift it here.
5480
5481 2012-07-10  Marek Polacek  <polacek@redhat.com>
5482
5483         [BZ #14151]
5484         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5485         libc_cv_asm_global_directive with .globl.
5486         * configure: Regenerated.
5487         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5488         with .globl.
5489         * sysdeps/i386/configure: Regenerated.
5490         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5491         with .globl.
5492         * sysdeps/x86_64/configure: Regenerated.
5493         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5494         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5495         * elf/tst-unique2mod2.c: Likewise.
5496         * elf/tst-unique2mod1.c: Likewise.
5497         * elf/tst-unique1mod2.c: Likewise.
5498         * elf/tst-unique1mod1.c: Likewise.
5499         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5500         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5501         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5502         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5503         * sysdeps/mach/sysdep.h: Likewise.
5504         * sysdeps/i386/sysdep.h: Likewise.
5505         * sysdeps/i386/i386-mcount.S: Likewise.
5506         * sysdeps/x86_64/_mcount.S: Likewise.
5507         * sysdeps/x86_64/sysdep.h: Likewise.
5508         * sysdeps/sh/_mcount.S: Likewise.
5509         * sysdeps/sh/sysdep.h: Likewise.
5510         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5511         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5512         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5513         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5514         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5515         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5516         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5517         * locale/localeinfo.h: Likewise.
5518         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5519         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5520
5521 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5522
5523         [BZ #14336]
5524         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5525         system".
5526         * manual/message.texi (The Uniforum approach): Likewise.
5527         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5528         (glibc iconv Implementation): Likewise.
5529
5530 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5531
5532         [BZ #14337]
5533         * math/s_clog.c (__clog): Avoid scaling a value down where that
5534         could result in underflow.
5535         * math/s_clog10.c (__clog10): Likewise.
5536         * math/s_clog10f.c (__clog10f): Likewise.
5537         * math/s_clog10l.c (__clog10l): Likewise.
5538         * math/s_clogf.c (__clogf): Likewise.
5539         * math/s_clogl.c (__clogl): Likewise.
5540         * math/libm-test.inc (clog_test): Add more tests.
5541         (clog10_test): Likewise.
5542         * sysdeps/i386/fpu/libm-test-ulps: Update.
5543         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5544
5545 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5546
5547         [BZ #14283]
5548         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5549         by 7 not 8 to examine high bit of fractional part.
5550
5551         [BZ #14042]
5552         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5553         for call to __mcount_internal.
5554         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5555         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5556         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5557
5558 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5559
5560         [BZ #14154]
5561         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5562         approximation for values within 0x1p-13f of an odd multiple of
5563         pi/4.
5564         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5565         exception.  Add more tests.
5566         * sysdeps/i386/fpu/libm-test-ulps: Update.
5567
5568         [BZ #6778]
5569         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5570         inputs and return -1 for them.  Do not check for +Inf in case not
5571         reachable for +Inf.
5572         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5573         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5574         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5575         and return -1 for them.  Do not check for +Inf in case not
5576         reachable for +Inf.
5577         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5578         define.
5579         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5580         and return -1 for them.  Do not check for +Inf in case not
5581         reachable for +Inf.
5582         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5583         spurious underflow.
5584         * sysdeps/i386/fpu/libm-test-ulps: Update.
5585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5586
5587 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5588
5589         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5590
5591 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5592
5593         [BZ #14157]
5594         [BZ #14331]
5595         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5596         could result in spurious underflow.  Scale down values above
5597         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5598         * math/s_csqrtf.c (__csqrtf): Likewise.
5599         * math/s_csqrtl.c (__csqrtl): Likewise.
5600         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5601         spurious underflow.
5602         * sysdeps/i386/fpu/libm-test-ulps: Update.
5603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5604
5605 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5606
5607         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5608         xopen-msg.sed.
5609         * catgets/xopen-msg.awk: New file.
5610         * catgets/xopen-msg.sed: Removed.
5611
5612         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5613         po2text.sed.
5614         * intl/po2test.awk: New file.
5615         * intl/po2test.sed: Removed.
5616
5617 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5618
5619         [BZ #14328]
5620         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5621         or multiply small sinh result by itself.
5622         * math/s_ctanf.c (__ctanf): Likewise.
5623         * math/s_ctanh.c (__ctanh): Likewise.
5624         * math/s_ctanhf.c (__ctanhf): Likewise.
5625         * math/s_ctanhl.c (__ctanhl): Likewise.
5626         * math/s_ctanl.c (__ctanl): Likewise.
5627         * math/libm-test.inc (ctan_test_tonearest): New function.
5628         (ctan_test_towardzero): Likewise.
5629         (ctan_test_downward): Likewise.
5630         (ctan_test_upward): Likewise.
5631         (ctanh_test_tonearest): Likewise.
5632         (ctanh_test_towardzero): Likewise.
5633         (ctanh_test_downward): Likewise.
5634         (ctanh_test_upward): Likewise.
5635         (main): Call these new functions.
5636         * sysdeps/i386/fpu/libm-test-ulps: Update.
5637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5638
5639 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5640
5641         * .gitignore: Delete /ports entry.
5642
5643 2012-07-03  Andreas Jaeger  <aj@suse.de>
5644
5645         * po/bg.po: Update from translation team.
5646         * po/cs.po: Likewise.
5647         * po/de.po: Likewise.
5648         * po/hr.po: Likewise.
5649         * po/nl.pl: Likewise.
5650         * po/pl.po: Likewise.
5651         * po/vi.po: Likewise.
5652
5653 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5654
5655         * Makeconfig [!+link] (+link-before-libc): New variable.
5656         [!+link] (+link-after-libc): Likewise.
5657         [!+link] (+link-tests): Likewise.
5658         [!+link] (+link): Define in terms of $(+link-before-libc) and
5659         $(+link-after-libc).
5660         [!+link-static] (+link-static-before-libc): New variable.
5661         [!+link-static] (+link-static-after-libc): Likewise.
5662         [!+link-static] (+link-static-tests): Likewise.
5663         [!+link-static] (+link-static): Define in terms of
5664         $(+link-static-before-libc) and $(+link-static-after-libc).
5665         [build-shared] (link-libc-before-gnulib): New variable.
5666         [build-shared] (link-libc-tests): Likewise.
5667         [build-shared] (link-libc): Define in terms of
5668         $(link-libc-before-gnulib).
5669         [!build-shared] (link-libc-tests): New variable.
5670         (link-libc-static-tests): New variable.
5671         [!gnulib] (gnulib-arch): New variable.
5672         [!gnulib] (gnulib-tests): Likewise.
5673         [!gnulib] (static-gnulib-arch): Likewise.
5674         [!gnulib] (static-gnulib-tests): Likewise.
5675         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5676         Define with "=" instead of ":=".
5677         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5678         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5679         * Rules (binaries-all-notests): New variable.
5680         (binaries-all-tests): Likewise.
5681         (binaries-static-notests): Likewise.
5682         (binaries-static-tests): Likewise.
5683         (binaries-all): Define using $(binaries-all-notests) and
5684         $(binaries-all-tests).
5685         (binaries-static): Define using $(binaries-static-notests) and
5686         $(binaries-static-tests).
5687         (binaries-shared-tests): New variable.
5688         (binaries-shared-notests): Likewise.
5689         (binaries-shared): Remove variable.
5690         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5691         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5692         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5693         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5694         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5695         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5696         * elf/Makefile (sln-modules): New variable.
5697         (extra-objs): Add $(sln-modules:=.o).
5698         (ldconfig-modules): Add static-stubs.
5699         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5700         * elf/static-stubs.c: New file.
5701
5702         [BZ #14283]
5703         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5704         by 7 not 8 to examine high bit of fractional part.  Use volatile
5705         variables when splitting into final array of floats if
5706         __FLT_EVAL_METHOD__ != 0.
5707         * math/libm-test.inc (cos_test): Add another test.
5708         (sin_test): Likewise.
5709         * sysdeps/i386/fpu/libm-test-ulps: Update.
5710
5711         [BZ #14273]
5712         * math/libm-test.inc (cosh_test): Add more tests.
5713
5714         * version.h (RELEASE): Set to "development".
5715         (VERSION): Set to "2.16.90".
5716
5717 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5718
5719         * NEWS: Update copyright. Remove last-updated date.
5720         Mention math library bug fixes and timezone data changes.
5721         * README: Mention GNU/Hurd, x32, and HPPA support status.
5722
5723 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5724
5725         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5726
5727 2012-06-27  Andreas Jaeger  <aj@suse.de>
5728
5729         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5730
5731 2012-06-25  Andreas Jaeger  <aj@suse.de>
5732
5733         * sysdeps/s390/fpu/libm-test-ulps: Update.
5734
5735 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5736             Thomas Schwinge  <thomas@codesourcery.com>
5737
5738         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5739         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5740         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5741         fanotify_mark.
5742
5743 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5744
5745         * sysdeps/mach/start.c: Remove file.
5746         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5747         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5748         * sysdeps/sh/init-first.c: Likewise.
5749
5750         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5751         registers for frame unwinding purposes, add CFI directives.
5752         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5753         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5754         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5755         Likewise.
5756
5757         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5758         __fortify_fail returning.
5759         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5760
5761         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5762         sysdeps/sh/____longjmp_chk.S.
5763         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5764         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5765         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5766         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5767
5768         * sysdeps/sh/abort-instr.h: New file.
5769         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5770         process in case exit returns.
5771
5772         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5773         initialize the GOT register before use.
5774
5775         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5776         calculation of ARGC > 4.
5777
5778         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5779         meaningful names to some local labels.
5780
5781 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5782             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5783
5784         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5785         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5786         (__arch_compare_and_exchange_val_16_acq): Likewise.
5787         (__arch_compare_and_exchange_val_32_acq): Likewise.
5788         (atomic_exchange_and_add): Fix gUSA sequence.
5789         (atomic_add): Likewise.
5790         (atomic_add_negative): Likewise.
5791         (atomic_add_zero): Likewise.
5792         (atomic_bit_test_set): Likewise.
5793
5794 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5795
5796         [BZ #13579]
5797         * include/link.h (struct link_map): Add l_free_initfini.
5798         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5799         l_initfini.
5800         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5801         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5802         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5803         set.
5804
5805 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5806
5807         * configure.in: Use AC_LANG_SOURCE.
5808         * configure: Regenerate.
5809
5810 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5811
5812         * configure.in (libc_cv_localstatedir): New substituted variable.
5813         * configure: Regenerated.
5814         * config.make.in (localstatedir): New variable, substituted from
5815         libc_cv_localstatedir.
5816         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5817         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5818         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5819         * sysdeps/gnu/configure: Regenerated.
5820
5821 2012-06-21  Jeff Law  <law@redhat.com>
5822
5823         [BZ #14277]
5824         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5825         free.  Simplify list management for _LIBC case.
5826
5827 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5828
5829         [BZ #14273]
5830         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5831         Clear sign bit of 64-bit integer value before comparing against
5832         overflow value.
5833
5834         * sysdeps/mach/configure: Regenerated.
5835
5836 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5837
5838         [BZ #14278]
5839         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5840
5841 2012-06-21  Jeff Law  <law@redhat.com>
5842
5843         [BZ #13882]
5844         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5845         uint16_t for elements in the "seen" array to avoid char overflows.
5846         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5847         * elf/dl-open.c (dl_open_worker): Likewise.
5848
5849 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5850
5851         * scripts/list-sources.sh: Scan PORTS for translations.
5852         * po/libc.pot: Regenerated.
5853
5854 2012-06-21  Andreas Jaeger  <aj@suse.de>
5855
5856         [BZ #12194]
5857         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5858         warning.
5859         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5860         * bits/byteswap-16.h (__bswap_16): Likewise.
5861         * bits/byteswap.h (__bswap_constant_16): Likewise.
5862
5863 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5864
5865         [BZ #14117]
5866         * sysdeps/i386/fpu_control.h: Removed.
5867         * sysdeps/x86_64/fpu_control.h: Moved to ...
5868         * sysdeps/x86/fpu_control.h: Here.
5869
5870         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5871         (_FPU_SETCW): Likewise.
5872
5873 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5874
5875         [BZ #14117]
5876         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5877         * sysdeps/x86/fpu/bits/mathinline.h: This.
5878         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5879
5880         [BZ #14050]
5881         [BZ #14117]
5882         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5883         functions if __x86_64__ is defined.
5884
5885 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5886
5887         * string/endian.h: Add !__ASSEMBLER__ condition for including
5888         conversion interfaces.
5889
5890 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5891
5892         [BZ #14241]
5893         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5894         of ABS(x) in calculating zero to negative powers other than odd
5895         integers.
5896         * math/libm-test.inc (pow_test): Add more tests.
5897
5898 2012-06-15  Andreas Jaeger  <aj@suse.de>
5899
5900         * manual/contrib.texi (Contributors): Update entry of Liubov
5901         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5902         Machado Filho.
5903
5904 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5905
5906         * string/string.h: Add __wur to GNU version of strerror_r.
5907
5908 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5909
5910         [BZ #14229]
5911         * string/Makefile (tests): Add tst-strtok_r.
5912         * string/tst-strtok_r.c: New file.
5913         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5914         RAX_LP/RDX_LP on SAVE_PTR.
5915
5916 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5917
5918         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5919
5920 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5921
5922         * libm_test.inc (csqrt_test): Allow more spurious underflow
5923         exceptions.
5924         (j0_test): Likewise.
5925         (j1_test): Likewise.
5926         (y0_test): Likewise.
5927         (y1_test): Likewise.
5928
5929 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5930
5931         * po/Makefile (libc.pot): Use UTF-8 charset.
5932
5933 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5934
5935         [BZ #14210]
5936         Suppress sign-conversion warning from FD_SET.
5937         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5938         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5939         not unsigned long int.
5940         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5941
5942 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5943
5944         [BZ #14050]
5945         [BZ #14117]
5946         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5947         __extern_always_inline instead of __extern_inline.
5948         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5949         (__signbit): Likewise.
5950         (__signbitl): Support C++ namespace.
5951         (lrintf): New inline function.
5952         (lrint): Likewise.
5953         (llrintf): Likewise.
5954         (llrint): Likewise.
5955         (fmaxf): Likewise.
5956         (fmax): Likewise.
5957         (fminf): Likewise.
5958         (fmin): Likewise.
5959         (rint): Likewise.
5960         (rintf): Likewise.
5961         (ceil): Likewise.
5962         (ceilf): Likewise.
5963         (floor): Likewise.
5964         (floorf): Likewise.
5965         (nearbyint): Likewise.
5966         (nearbyintf): Likewise.
5967
5968 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
5969
5970         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
5971         non-default versions.
5972
5973 2012-06-11  Roland McGrath  <roland@hack.frob.com>
5974
5975         [BZ #14218]
5976         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5977
5978 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
5979
5980         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
5981         (FE_UPWARD, FE_DOWNWARD): Don't define.
5982         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
5983         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5984
5985         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
5986         reading it.
5987         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5988         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5989
5990 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5991
5992         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
5993         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
5994         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
5995         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
5996
5997 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
5998
5999         [BZ #14117]
6000         * sysdeps/i386/fpu/bits/fenv.h: Removed.
6001         * sysdeps/i386/fpu/Implies: New file.
6002         * sysdeps/x86_64/fpu/Implies: Likewise.
6003         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
6004         * sysdeps/x86/fpu/bits/fenv.h: This.
6005
6006         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
6007         __SSE_MATH__.
6008
6009 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6010
6011         [BZ #14134]
6012         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
6013         character 0xffff that matches the last element of the
6014         conversion table.
6015
6016 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6017
6018         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
6019         fmodl commit.
6020
6021 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6022
6023         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
6024         values higher than 25.6283.
6025
6026 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6027
6028         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
6029         subnormal exponent extraction and add some __builtin_expect.
6030         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6031         Fix for subnormal mantissa calculation.
6032
6033 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
6034
6035         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6036         cpu2 is -1 and errno is not ENOSYS.
6037
6038 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6039
6040         [BZ #14117]
6041         * sysdeps/i386/i486/bits/string.h: Renamed to ...
6042         * sysdeps/x86/bits/string.h: This.
6043         * sysdeps/x86_64/bits/string.h: Removed.
6044
6045         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6046         if not compiling for x86-64, but compiling for >= i486.
6047
6048         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6049         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6050
6051         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6052         New macro from Linux kernel 3.4.0.
6053         (FP_XSTATE_MAGIC2): Likewise.
6054         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6055         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6056         (struct _fpx_sw_bytes): New struct.
6057         (struct _xsave_hdr): Likewise.
6058         (struct _ymmh_state): Likewise.
6059         (struct _xstate): Likewise.
6060
6061         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6062         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6063         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6064         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6065         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6066         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6067
6068         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6069         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6070         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6071         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6072         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6073         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6074
6075 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6076
6077         [BZ #13743]
6078         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6079         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6080         (sysdep_headers): Include sys/platform/ppc.h.
6081         * sysdeps/powerpc/test-gettimebase.c: Test for
6082         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6083         * manual/Makefile (appendices): Include platform.texi.
6084         * manual/contrib.texi (Contributors): Update @node pointers.
6085         * manual/maint.texi (Maintenance): Likewise.
6086         (Platform): New node.
6087         * manual/platform.texi: New file.  Document the new features.
6088
6089 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6090             Jakub Jelinek  <jakub@redhat.com>
6091
6092         [BZ #14188]
6093         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6094         where __builtin_expect is unavailable.
6095
6096 2012-06-03  David S. Miller  <davem@davemloft.net>
6097
6098         * stdlib/longlong.h: Updated from GCC.
6099
6100 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6101
6102         [BZ #14042]
6103         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6104         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6105         __mcount_internal.
6106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6107         (GLIBC_2.16): Likewise.
6108
6109 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6110
6111         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6112
6113 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6114
6115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6116         (default-abi): New variable.
6117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6118         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6119         variable.
6120         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6121         Likewise.
6122         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6123         Likewise.
6124         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6125         Likewise.
6126
6127         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6128         definition.  Document in comment.
6129
6130 2012-06-01  David S. Miller  <davem@davemloft.net>
6131
6132         * stdlib/longlong.h: Updated from GCC.
6133
6134 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6135
6136         [BZ #14117]
6137         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6138         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6139         sys/debugreg.h sys/io.h here.
6140         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6141         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6142         sys/io.h.
6143         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6144         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6145         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6146         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6147         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6148         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6149
6150         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6151         Define only if __x86_64__ is defined.
6152
6153 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6154
6155         [BZ #14048]
6156         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6157         Use int64_t for variable i.
6158         * math/libm-test.inc (fmod_test): Add more tests.
6159
6160         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6161         z computation is not scheduled after fetestexcept.
6162         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6163         Use math_force_eval instead of asm to ensure calculation scheduled
6164         before exception test.
6165         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6166         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6167
6168 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6169
6170         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6171         computation is not scheduled after fetestexcept.
6172
6173 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6174
6175         [BZ #14117]
6176         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6177         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6178
6179 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6180
6181         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6182         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6183
6184 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6185
6186         [BZ #14117]
6187         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6188         <bits/wordsize.h>.
6189         (__WCHAR_MIN): Support __WORDSIZE == 64.
6190         (__WCHAR_MAX): Likewise.
6191
6192         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6193         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6194
6195         [BZ #14183]
6196         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6197         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6198
6199         [BZ #14117]
6200         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6201         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6202
6203         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6204         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6205
6206         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6207         Defined to 1 if __x86_64__ isn't defined.
6208         (_STAT_VER_LINUX_OLD): New.
6209         (st_atime): Remove duplicate.
6210         (st_mtime): Likewise.
6211         (st_ctime): Likewise.
6212
6213 2012-05-31  David S. Miller  <davem@davemloft.net>
6214
6215         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6216         entries.
6217
6218 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6219
6220         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6221         gen-libm-test.pl.
6222
6223         [BZ #14132]
6224         * elf/dl-reloc.c: Include <_itoa.h>.
6225         (_dl_reloc_bad_type): Remove use of INTUSE.
6226         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6227         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6228         * stdio-common/psiginfo.c (psiginfo): Likewise.
6229         * stdio-common/psignal.c (psignal): Likewise.
6230         * string/strsignal.c (strsignal): Likewise.
6231         * include/signal.h (_sys_siglist): Declare hidden proto.
6232         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
6233         INTVARDEF with libc_hidden_data_def.
6234         * stdio-common/itoa-udigits.c: Likewise.
6235         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6236         (_itoa_lower_digits_internal): Remove declaration.
6237         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6238         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6239         (_sys_sigabbrev_internal): Remove aliases.
6240         (_sys_siglist): Define hidden alias.
6241
6242 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6243
6244         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6245         bits/sysctl.h.
6246
6247 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6248
6249         [BZ #14117]
6250         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6251         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6252
6253         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6254         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6255         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6256         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6257         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6258         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6259
6260         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6261         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6262         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6263
6264         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6265         with __addr.
6266         (insw): Likewise.
6267         (insl): Likewise.
6268         (outsb): Likewise.
6269         (outsw): Likewise.
6270         (outsl): Likewise.
6271
6272         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6273         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6274         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6275
6276         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6277         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6278         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6279         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6280         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6281         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6282
6283         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6284         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6285
6286         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6287         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6288
6289         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6290         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6291         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6292
6293         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6294         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6295         to ...
6296         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6297
6298         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6299         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6300         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6301
6302         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6303         for x86-64.
6304         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6305
6306 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6307
6308         * math/math.h (M_El): Use two more decimal places.
6309         (M_LOG2El): Likewise.
6310         (M_LOG10El): Likewise.
6311         (M_LN2l): Likewise.
6312         (M_LN10l): Likewise.
6313         (M_PIl): Likewise.
6314         (M_PI_2l): Likewise.
6315         (M_PI_4l): Likewise.
6316         (M_1_PIl): Likewise.
6317         (M_2_PIl): Likewise.
6318         (M_2_SQRTPIl): Likewise.
6319         (M_SQRT2l): Likewise.
6320         (M_SQRT1_2l): Likewise.
6321
6322 2012-05-31  David S. Miller  <davem@davemloft.net>
6323
6324         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6325         values between float registers.
6326         * sysdeps/sparc/sparc64/memset.S: Likewise.
6327         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6328
6329 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6330
6331         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6332         -D_FORTIFY_SOURCE=1.
6333         (CPPFLAGS-tst-longjmp_chk.c): Define.
6334         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6335         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6336         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6337         CFLAGS-tst-wchar-h.c.
6338
6339 2012-05-31  Marek Polacek  <polacek@redhat.com>
6340
6341         [BZ #14132]
6342         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6343         __endmntent_internal): Remove declaration.
6344         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6345         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6346         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6347
6348 2012-05-30  David S. Miller  <davem@davemloft.net>
6349
6350         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6351         (___Q_simulate_exceptions): Use real FP ops rather than writing
6352         into the %fsr.
6353         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6354         Likewise.
6355
6356 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6357
6358         [BZ #14117]
6359         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6360         * sysdeps/x86/bits/xtitypes.h: This.
6361
6362         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6363         * sysdeps/x86/bits/wordsize.h: This.
6364
6365         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6366         * sysdeps/x86/bits/huge_vall.h: This.
6367
6368         * sysdeps/i386/bits/select.h: Removed.
6369         * sysdeps/x86_64/bits/select.h: Renamed to ...
6370         * sysdeps/x86/bits/select.h: This.
6371
6372         * sysdeps/i386/bits/setjmp.h: Removed.
6373         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6374         * sysdeps/x86/bits/setjmp.h: This.
6375
6376         * sysdeps/i386/bits/mathdef.h: Removed.
6377         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6378         * sysdeps/x86/bits/mathdef.h: This.
6379
6380 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6381
6382         [BZ #14132]
6383         * include/sys/socket.h (__connect_internal)
6384         (__libc_sa_len_internal): Remove declaration.
6385         (__connect, __libc_sa_len): Declare hidden_proto.
6386         (SA_LEN): Remove use of INTUSE.
6387         * socket/connect.c: Add libc_hidden_def.
6388         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6389         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6390         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6391         alias.
6392         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6393         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6394         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6395         of adding _internal alias.
6396
6397 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6398
6399         [BZ #14117]
6400         * sysdeps/i386/bits/link.h: Removed.
6401         * sysdeps/i386/bits/linkmap.h: Likewise.
6402         * sysdeps/x86_64/bits/link.h: Renamed to ...
6403         * sysdeps/x86/bits/link.h: This.
6404         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6405         * sysdeps/x86/bits/linkmap.h: This.
6406
6407         * sysdeps/i386/bits/endian.h: Removed.
6408         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6409         * sysdeps/x86/bits/endian.h: This.
6410
6411         * sysdeps/i386/bits/byteswap.h: Removed.
6412         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6413         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6414         * sysdeps/x86/bits/byteswap.h: This.
6415         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6416         * sysdeps/x86/bits/byteswap-16.h: This.
6417         * sysdeps/i386/Implies: Add x86.
6418         * sysdeps/x86_64/Implies: Likewise.
6419
6420 2012-05-30  David S. Miller  <davem@davemloft.net>
6421
6422         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6423         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6424         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6425         (FP_TRAPPING_EXCEPTIONS): Define.
6426         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6427         (FP_TRAPPING_EXCEPTIONS): Define.
6428         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6429         subnormals only when inexact has been signalled or underflow
6430         exceptions are enabled.
6431         (_FP_PACK_CANONICAL): Likewise.
6432
6433 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6434
6435         [BZ #14183]
6436         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6437         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6438
6439 2012-05-30  Richard Henderson  <rth@twiddle.net>
6440
6441         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6442         with #ifndef NOT_IN_libc.
6443
6444         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6445         marked to avoid plt entry.
6446
6447 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6448
6449         [BZ #14112]
6450         * Makeconfig (default-abi): New macro.
6451         (abi-includes): Likewise.
6452         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6453         $(abi-$(default-abi)-lib-soname) for soname if defined.
6454         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6455         abi-variants.
6456         * Makefile (installed-stubs): Likewise.
6457         * include/stubs-biarch.h: Removed.
6458         * scripts/lib-names.awk: Only handle one library at a time.
6459         * scripts/soversions.awk: Remove WORDSIZE support.
6460         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6461         entries.
6462         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6463         Removed.
6464         (syscall-list-default-condition): Likewise.
6465         (syscall-list-default-condition): Likewise.
6466         (syscall-list-includes): Likewise.
6467         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6468         syscall-list-* with abi-*.  Handle undefined abi-variants.
6469         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6470         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6471         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6472         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6473         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6474         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6475         Removed.
6476         (syscall-list-32-options): Likewise.
6477         (syscall-list-32-condition): Likewise.
6478         (syscall-list-64-options): Likewise.
6479         (syscall-list-64-condition): Likewise.
6480         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6481         macro.
6482         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6483         Renamed to ...
6484         (abi-*): This.
6485         (abi-64-ld-soname): New macro.
6486         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6487         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6488         Renamed to ...
6489         (abi-*): This.
6490         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6491         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6492
6493 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6494
6495         * sysdeps/unix/sysv/linux/kernel-features.h
6496         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6497         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6498         include <kernel-features.h>.
6499         [!__NR_ftruncate64]: Remove conditional code.
6500         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6501         [__NR_ftruncate64]: Make code unconditional.
6502         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6503         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6504         include <kernel-features.h>.
6505         [!__NR_ftruncate64]: Remove conditional code.
6506         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6507         [__NR_ftruncate64]: Make code unconditional.
6508         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6510         include <kernel-features.h>.
6511         [!__NR_ftruncate64]: Remove conditional code.
6512         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6513         [__NR_ftruncate64]: Make code unconditional.
6514         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6515         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6516         include <kernel-features.h>.
6517         [!__NR_ftruncate64]: Remove conditional code.
6518         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6519         [__NR_ftruncate64]: Make code unconditional.
6520         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6521
6522         * configure.in (libc_cv_fpie): Weaken to a compile test using
6523         LIBC_TRY_CC_OPTION.
6524         * configure: Regenerated.
6525
6526 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6527
6528         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6529         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6530         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6531         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6532         Refreshed.
6533         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6534         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6535         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6536         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6537         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6538         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6539         Refreshed.
6540
6541 2012-05-27  David S. Miller  <davem@davemloft.net>
6542
6543         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6544         (___Q_zero): New.
6545         (__Q_simulate_exceptions): Return void.  Change to simulate
6546         exceptions by writing into the %fsr.
6547         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6548         (__Qp_handle_exceptions): Likewise.
6549         (numbers): Delete.
6550         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6551         __Qp_handle_exceptions.
6552         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6553         __Qp_handle_exceptions.
6554         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6555         as unused and give dummy FP_RND_NEAREST initializer.
6556         (FP_INHIBIT_RESULTS): Define.
6557         (___Q_simulate_exceptions): Update declaration.
6558         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6559         formatting.
6560         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6561         as unused and give dummy FP_RND_NEAREST initializer.
6562         (__Qp_handle_exceptions): Update declaration.
6563         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6564         formatting.
6565
6566 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6567
6568         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6569         the temporary FPU control word.
6570         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6571         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6572         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6573         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6574         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6575         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6576         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6577         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6578         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6579         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6580         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6581
6582 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6583
6584         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6585         fields.
6586
6587 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6588
6589         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6590         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6591         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6592         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6593         Likewise.
6594         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6595         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6596         Likewise.
6597
6598 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6599
6600         * po/h.po: Update from translation team.
6601
6602 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6603
6604         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6605
6606         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6607         handling of denormals.
6608         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6609         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6610         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6611         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6612         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6613         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6614         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6615         Likewise.
6616
6617 2012-05-26  Marek Polacek  <polacek@redhat.com>
6618
6619         [BZ #14152]
6620         * math/libm-test.inc (fma_test): Don't always expect underflow
6621         exception.
6622
6623 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6624
6625         [BZ #12416]
6626         * elf/tst-execstack.c: Include stackinfo.h.
6627         (do_test): Adjust test case to ensure that pthread_getattr_np
6628         behaviour remains the same after marking stack executable.
6629
6630 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6631
6632         * sysdeps/unix/sysv/linux/kernel-features.h
6633         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6634         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6635         kernel-features.h.
6636         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6637         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6638         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6639         kernel-features.h.
6640         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6641         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6642
6643 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6644
6645         * configure.in: Define the default includes to being none.
6646         * configure: Regenerated.
6647
6648 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6649
6650         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6651         * sysdeps/x86_64/setjmp.S: Likewise.
6652         * sysdeps/i386/bsd-setjmp.S: Likewise.
6653         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6654         * sysdeps/i386/setjmp.S: Likewise.
6655         * sysdeps/i386/__longjmp.S: Likewise.
6656         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6657         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6658
6659         * include/stap-probe.h: New file.
6660         * configure.in: Handle --enable-systemtap.
6661         * configure: Regenerated.
6662         * config.h.in (USE_STAP_PROBE): New #undef.
6663         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6664         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6665         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6666
6667 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6668
6669         [BZ #13717]
6670         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6671         to 2.4.0 where earlier.
6672         * sysdeps/unix/sysv/linux/configure: Regenerated.
6673         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6674         <kernel-features.h>.
6675         [__ASSUME_32BITUIDS]: Make code unconditional.
6676         [!__ASSUME_32BITUIDS]: Remove conditional code.
6677         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6678         <kernel-features.h>.
6679         [__ASSUME_32BITUIDS]: Make code unconditional.
6680         [!__ASSUME_32BITUIDS]: Remove conditional code.
6681         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6682         [__ASSUME_32BITUIDS]: Make code unconditional.
6683         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6684         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6685         <kernel-features.h>.
6686         [__ASSUME_32BITUIDS]: Make code unconditional.
6687         [!__ASSUME_32BITUIDS]: Remove conditional code.
6688         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6689         <kernel-features.h>.
6690         [__ASSUME_32BITUIDS]: Make code unconditional.
6691         [!__ASSUME_32BITUIDS]: Remove conditional code.
6692         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6693         <kernel-features.h>.
6694         [__ASSUME_32BITUIDS]: Make code unconditional.
6695         [!__ASSUME_32BITUIDS]: Remove conditional code.
6696         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6697         <kernel-features.h>.
6698         [__ASSUME_32BITUIDS]: Make code unconditional.
6699         [!__ASSUME_32BITUIDS]: Remove conditional code.
6700         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6701         <kernel-features.h>.
6702         [__ASSUME_32BITUIDS]: Make code unconditional.
6703         [!__ASSUME_32BITUIDS]: Remove conditional code.
6704         * sysdeps/unix/sysv/linux/i386/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.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/setegid.c: Do not include
6725         <kernel-features.h>.
6726         [__NR_setresgid] (__setresgid): Do not declare.
6727         [__ASSUME_32BITUIDS]: Make code unconditional.
6728         [!__ASSUME_32BITUIDS]: Remove conditional code.
6729         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6730         <kernel-features.h>.
6731         [__NR_setresuid] (__setresuid): Do not declare.
6732         [__ASSUME_32BITUIDS]: Make code unconditional.
6733         [!__ASSUME_32BITUIDS]: Remove conditional code.
6734         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6735         <kernel-features.h>.
6736         [__ASSUME_32BITUIDS]: Make code unconditional.
6737         [!__ASSUME_32BITUIDS]: Remove conditional code.
6738         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6739         <kernel-features.h>.
6740         [__ASSUME_32BITUIDS]: Make code unconditional.
6741         [!__ASSUME_32BITUIDS]: Remove conditional code.
6742         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6743         <kernel-features.h>.
6744         [__ASSUME_32BITUIDS]: Make code unconditional.
6745         [!__ASSUME_32BITUIDS]: Remove conditional code.
6746         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6747         <kernel-features.h>.
6748         [__ASSUME_32BITUIDS]: Make code unconditional.
6749         [!__ASSUME_32BITUIDS]: Remove conditional code.
6750         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6751         <kernel-features.h>.
6752         [__ASSUME_32BITUIDS]: Make code unconditional.
6753         [!__ASSUME_32BITUIDS]: Remove conditional code.
6754         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6755         <kernel-features.h>.
6756         [__ASSUME_32BITUIDS]: Make code unconditional.
6757         [!__ASSUME_32BITUIDS]: Remove conditional code.
6758         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6759         <kernel-features.h>.
6760         [__ASSUME_32BITUIDS]: Make code unconditional.
6761         [!__ASSUME_32BITUIDS]: Remove conditional code.
6762         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6763         <kernel-features.h>.
6764         [__ASSUME_32BITUIDS]: Make code unconditional.
6765         [!__ASSUME_32BITUIDS]: Remove conditional code.
6766         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6767         <kernel-features.h>.
6768         [__ASSUME_32BITUIDS]: Make code unconditional.
6769         [!__ASSUME_32BITUIDS]: Remove conditional code.
6770         * sysdeps/unix/sysv/linux/i386/shmctl.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/kernel-features.h
6775         (__ASSUME_SETRESUID_SYSCALL): Remove.
6776         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6777         (__ASSUME_32BITUIDS): Likewise.
6778         (__ASSUME_LDT_WORKS): Likewise.
6779         (__ASSUME_O_DIRECTORY): Likewise.
6780         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6781         architecture but not kernel version.
6782         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6783         (__ASSUME_MMAP2_SYSCALL): Likewise.
6784         (__ASSUME_STAT64_SYSCALL): Likewise.
6785         (__ASSUME_IPC64): Likewise.
6786         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6787         <kernel-features.h>.
6788         [__ASSUME_32BITUIDS]: Make code unconditional.
6789         [!__ASSUME_32BITUIDS]: Remove conditional code.
6790         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6791         <kernel-features.h>.
6792         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6793         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6794         132096]: Remove conditional code.
6795         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6796         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6797         <kernel-features.h>.
6798         [__ASSUME_32BITUIDS]: Make code unconditional.
6799         [!__ASSUME_32BITUIDS]: Remove conditional code.
6800         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6801         <kernel-features.h>.
6802         [__ASSUME_32BITUIDS]: Make code unconditional.
6803         [!__ASSUME_32BITUIDS]: Remove conditional code.
6804         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6805         <kernel-features.h>.
6806         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6807         unconditional.
6808         (__setresgid): Do not declare.
6809         [__ASSUME_32BITUIDS]: Make code unconditional.
6810         [!__ASSUME_32BITUIDS]: Remove conditional code.
6811         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6812         <kernel-features.h>.
6813         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6814         unconditional.
6815         (__setresuid): Do not declare.
6816         [__ASSUME_32BITUIDS]: Make code unconditional.
6817         [!__ASSUME_32BITUIDS]: Remove conditional code.
6818         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6819         <kernel-features.h>.
6820         [__ASSUME_32BITUIDS]: Make code unconditional.
6821         [!__ASSUME_32BITUIDS]: Remove conditional code.
6822         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6823         <kernel-features.h>.
6824         [__ASSUME_32BITUIDS]: Make code unconditional.
6825         [!__ASSUME_32BITUIDS]: Remove conditional code.
6826
6827 2012-05-25  Richard Henderson  <rth@twiddle.net>
6828
6829         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6830         dl_hwcap to ifunc resolver.
6831         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6832         elf_ifunc_invoke.
6833         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6834         dl_hwcap to ifunc resolver.
6835         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6836
6837 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6838
6839         [BZ #14153]
6840         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6841         for |x| <= 2**-26, not 2**-57.
6842         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6843         exception.
6844
6845 2012-05-24  Jeff Law  <law@redhat.com>
6846
6847         * stdio-common/Makefile (tests): Add bug25.
6848         * stdio-common/bug25.c: New test.
6849
6850 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6851
6852         [BZ #13576]
6853         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6854         multiple of MALLOC_ALIGNMENT in size.
6855         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6856
6857 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6858
6859         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6860         Require >= 256.
6861         (FILENAME_MAX): Use macro-int-constant.
6862         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6863         (_IOFBF): Use macro-int-constant.
6864         (_IOLBF): Likewise.
6865         (_IONBF): Likewise.
6866         (SEEK_CUR): Likewise.
6867         (SEEK_END): Likewise.
6868         (SEEK_SET): Likewise.
6869         (TMP_MAX): Likewise.
6870         (EOF): Use macro-int-constant.  Require < 0.
6871         (NULL): Use macro-constant.  Require == 0.
6872         (stdin): Require type to be FILE *.
6873         (stdout): Likewise.
6874         (stderr): Likewise.
6875         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6876         macro-int-constant.
6877         (EXIT_SUCCESS): Likewise.
6878         (NULL): Use macro-constant.  Require == 0.
6879         (RAND_MAX): Use macro-int-constant.
6880         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6881         [C99-based standards] (strtof): Require function.
6882         [C99-based standards] (strtold): Likewise.
6883         [C99-based standards] (strtoll): Likewise.
6884         [C99-based standards] (strtoull): Likewise.
6885         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6886         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6887         [ISO || ISO99 || ISO11] (math.h): Likewise.
6888         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6889         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6890         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6891
6892 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6893
6894         [BZ #14132]
6895         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6896         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6897         * intl/dgettext.c (DCGETTEXT): Likewise.
6898         * intl/gettext.c (DCGETTEXT): Likewise.
6899         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6900         * posix/regex_internal.h (gettext): Likewise.
6901         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6902         Remove declaration.
6903         * include/argz.h (__argz_count_internal)
6904         (__argz_stringify_internal): Remove declaration.
6905         (__argz_count, __argz_stringify): Declare hidden proto.
6906         * intl/dcgettext.c: Remove use of INTDEF.
6907         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6908         * string/argz-stringify.c: Likewise.
6909         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6910         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6911         Declare hidden proto.
6912         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6913         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6914         Declare hidden proto.
6915         * include/stdio.h (__asprintf_internal): Don't declare.
6916         (__asprintf): Don't define as macro.  Declare hidden proto.
6917         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6918         (__fsetlocking): Declare hidden proto.
6919         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6920         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6921         hidden proto.
6922         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6923         (_IO_setlinebuf): Remove use of INTUSE.
6924         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6925         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6926         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6927         Remove declaration.
6928         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6929         (_IO_do_flush): Remove use of INTUSE.
6930         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6931         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6932         (_IO_adjust_column, _IO_least_wmarker)
6933         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6934         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6935         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6936         (_IO_default_doallocate, _IO_wdefault_doallocate)
6937         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6938         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6939         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6940         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6941         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6942         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6943         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6944         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6945         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6946         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6947         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6948         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6949         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6950         proto.
6951         (_IO_flush_all_internal, _IO_adjust_column_internal)
6952         (_IO_default_uflow_internal, _IO_default_finish_internal)
6953         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6954         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6955         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
6956         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
6957         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
6958         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
6959         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
6960         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
6961         (_IO_file_close_internal, _IO_file_close_it_internal)
6962         (_IO_file_underflow_internal, _IO_file_overflow_internal)
6963         (_IO_file_init_internal, _IO_file_attach_internal)
6964         (_IO_file_fopen_internal, _IO_file_read_internal)
6965         (_IO_file_sync_internal, _IO_file_seek_internal)
6966         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
6967         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
6968         (_IO_str_underflow_internal, _IO_str_overflow_internal)
6969         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
6970         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
6971         (_IO_list_all_internal, _IO_link_in_internal)
6972         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
6973         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
6974         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
6975         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
6976         (_IO_do_write_internal, _IO_padn_internal)
6977         (_IO_getline_info_internal, _IO_getline_internal)
6978         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
6979         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
6980         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
6981         (_IO_vfscanf_internal, _IO_vfprintf_internal)
6982         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
6983         (_IO_init_internal, _IO_un_link_internal): Don't declare.
6984         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
6985         with libc_hidden_ver, remove use of INTUSE.
6986         * libio/genops.c: Likewise.
6987         * libio/freopen.c: Likewise.
6988         * libio/freopen64.c: Likewise.
6989         * libio/iofclose.c: Likewise.
6990         * libio/iofdopen.c: Likewise.
6991         * libio/iofflush.c: Likewise.
6992         * libio/iofflush_u.c: Likewise.
6993         * libio/iofgets.c: Likewise.
6994         * libio/iofgets_u.c: Likewise.
6995         * libio/iofopen.c: Likewise.
6996         * libio/iofopncook.c: Likewise.
6997         * libio/iofread.c: Likewise.
6998         * libio/iofread_u.c: Likewise.
6999         * libio/ioftell.c: Likewise.
7000         * libio/iofwrite.c: Likewise.
7001         * libio/iogetline.c: Likewise.
7002         * libio/iogets.c: Likewise.
7003         * libio/iogetwline.c: Likewise.
7004         * libio/iopadn.c: Likewise.
7005         * libio/iopopen.c: Likewise.
7006         * libio/ioseekoff.c: Likewise.
7007         * libio/ioseekpos.c: Likewise.
7008         * libio/iosetbuffer.c: Likewise.
7009         * libio/iosetvbuf.c: Likewise.
7010         * libio/ioungetc.c: Likewise.
7011         * libio/ioungetwc.c: Likewise.
7012         * libio/iovdprintf.c: Likewise.
7013         * libio/iovsprintf.c: Likewise.
7014         * libio/iovsscanf.c: Likewise.
7015         * libio/memstream.c: Likewise.
7016         * libio/obprintf.c: Likewise.
7017         * libio/oldfileops.c: Likewise.
7018         * libio/oldiofclose.c: Likewise.
7019         * libio/oldiofdopen.c: Likewise.
7020         * libio/oldiofopen.c: Likewise.
7021         * libio/oldiopopen.c: Likewise.
7022         * libio/oldstdfiles.c: Likewise.
7023         * libio/putc.c: Likewise.
7024         * libio/setbuf.c: Likewise.
7025         * libio/setlinebuf.c: Likewise.
7026         * libio/stdfiles.c: Likewise.
7027         * libio/strops.c: Likewise.
7028         * libio/vasprintf.c: Likewise.
7029         * libio/vscanf.c: Likewise.
7030         * libio/vsnprintf.c: Likewise.
7031         * libio/vswprintf.c: Likewise.
7032         * libio/wfiledoalloc.c: Likewise.
7033         * libio/wfileops.c: Likewise.
7034         * libio/wgenops.c: Likewise.
7035         * libio/wmemstream.c: Likewise.
7036         * libio/wstrops.c: Likewise.
7037         * libio/__fpurge.c: Likewise.
7038         * libio/__fsetlocking.c: Likewise.
7039         * assert/assert.c: Likewise.
7040         * debug/fgets_chk.c: Likewise.
7041         * debug/fgets_u_chk.c: Likewise.
7042         * debug/fread_chk.c: Likewise.
7043         * debug/fread_u_chk.c: Likewise.
7044         * debug/gets_chk.c: Likewise.
7045         * debug/obprintf_chk.c: Likewise.
7046         * debug/vasprintf_chk.c: Likewise.
7047         * debug/vdprintf_chk.c: Likewise.
7048         * debug/vsnprintf_chk.c: Likewise.
7049         * debug/vsprintf_chk.c: Likewise.
7050         * malloc/mtrace.c: Likewise.
7051         * misc/error.c: Likewise.
7052         * misc/syslog.c: Likewise.
7053         * stdio-common/asprintf.c: Likewise.
7054         * stdio-common/fxprintf.c: Likewise.
7055         * stdio-common/getw.c: Likewise.
7056         * stdio-common/isoc99_fscanf.c: Likewise.
7057         * stdio-common/isoc99_scanf.c: Likewise.
7058         * stdio-common/isoc99_vfscanf.c: Likewise.
7059         * stdio-common/isoc99_vscanf.c: Likewise.
7060         * stdio-common/isoc99_vsscanf.c: Likewise.
7061         * stdio-common/printf-prs.c: Likewise.
7062         * stdio-common/printf_fp.c: Likewise.
7063         * stdio-common/printf_fphex.c: Likewise.
7064         * stdio-common/printf_size.c: Likewise.
7065         * stdio-common/putw.c: Likewise.
7066         * stdio-common/scanf.c: Likewise.
7067         * stdio-common/sprintf.c: Likewise.
7068         * stdio-common/tmpfile.c: Likewise.
7069         * stdio-common/vfprintf.c: Likewise.
7070         * stdio-common/vfscanf.c: Likewise.
7071         * stdlib/strfmon_l.c: Likewise.
7072         * sunrpc/openchild.c: Likewise.
7073         * sunrpc/xdr_stdio.c: Likewise.
7074         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7075         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7076
7077 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7078
7079         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7080
7081         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7082         in the third column, to generate for the shared library an IFUNC
7083         that uses _dl_vdso_vsym.
7084         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7085         * Makeconfig (object-suffixes-noshared): New variable.
7086
7087         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7088         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7089         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7090         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7091
7092         [BZ #14132]
7093         * include/sys/time.h (__gettimeofday): Remove macro.
7094         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7095         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7096         Remove INTDEF.
7097         (__gettimeofday): Add libc_hidden_def.
7098         (gettimeofday): Add libc_hidden_weak.
7099         * sysdeps/mach/gettimeofday.c: Likewise.
7100         * sysdeps/posix/gettimeofday.c: Likewise.
7101         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7102         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7103         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7104         (__gettimeofday_internal): Remove strong_alias.
7105         (__gettimeofday): Add libc_hidden_def.
7106         (gettimeofday): Add libc_hidden_weak.
7107         * sysdeps/unix/syscalls.list (gettimeofday):
7108         Remove __gettimeofday_internal alias.
7109
7110 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7111             H.J. Lu  <hongjiu.lu@intel.com>
7112
7113         [BZ #12495]
7114         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7115         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7116         (largebin_index_32_big): New.
7117         (largebin_index): Use it for 16-byte alignment.
7118         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7119         correction with front_misalign.
7120
7121 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7122
7123         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7124         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7125         Likewise.
7126         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7127         Likewise.
7128         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7129         Likewise.
7130         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7131         Likewise.
7132         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7133         Likewise.
7134         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7135         Likewise.
7136         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7137         Likewise.
7138         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7139         Likewise.
7140         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7141         Likewise.
7142         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7143         Likewise.
7144         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7145         Likewise.
7146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7147         Likewise.
7148
7149         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7150         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7151
7152 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7153
7154         [BZ #10846]
7155         [BZ #14036]
7156         * math/libm-test.inc (exp_test): Add test from bug 14036.
7157         (pow_test): Add test from bug 10846.
7158
7159         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7160         and other flags.
7161         (special_function): Do not include flags in test name.
7162         (parse_args): Likewise.
7163         * sysdeps/i386/fpu/libm-test-ulps: Update.
7164         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7165         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7166         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7168
7169         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7170         exceptions.
7171         * math/libm-test.inc ("Philosophy"): Update comment about
7172         exception testing.
7173         (UNDERFLOW_EXCEPTION): New macro.
7174         (UNDERFLOW_EXCEPTION_OK): Likewise.
7175         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7176         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7177         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7178         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7179         (INVALID_EXCEPTION_OK): Update value.
7180         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7181         (OVERFLOW_EXCEPTION_OK): Likewise.
7182         (IGNORE_ZERO_INF_SIGN): Likewise.
7183         (test_exceptions): Handle underflow exceptions.
7184         (acos_test): Update for underflow exception expectations.
7185         (cexp_test): Likewise.
7186         (clog_test): Likewise.
7187         (clog10_test): Likewise.
7188         (csqrt_test): Likewise.
7189         (ctan_test): Likewise.
7190         (ctanh_test): Likewise.
7191         (exp_test): Likewise.
7192         (exp10_test): Likewise.
7193         (exp2_test): Likewise.
7194         (expm1_test): Likewise.
7195         (fma_test): Likewise.
7196         (j0_test): Likewise.
7197         (jn_test): Likewise.
7198         (nexttoward_test): Likewise.
7199         (pow_test): Likewise.
7200         (scalbn_test): Likewise.
7201         (scalbln_test): Likewise.
7202         (tan_test): Likewise.
7203         (y1_test): Likewise.
7204         * sysdeps/i386/fpu/libm-test-ulps: Update.
7205         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7206
7207 2012-05-23  David S. Miller  <davem@davemloft.net>
7208
7209         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7210         (__libc_sigaction): Remove unused local variables.
7211
7212 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7213
7214         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7215
7216 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7217
7218         mktime: avoid signed integer overflow
7219         * time/mktime.c (__mktime_internal): Do not mishandle the case
7220         where diff == INT_MIN.
7221
7222         mktime: simplify computation of average
7223         * time/mktime.c (ranged_convert): Use new time_t_avg function
7224         instead of rolling our own (probably-slower) code.
7225
7226         mktime: do not assume signed right shift propagates sign bit
7227         * time/mktime.c (isdst_differ): New static function.
7228         (__mktime_internal): No need to normalize tm_isdst now.
7229         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7230         tm_isdst values.
7231
7232         mktime: merge another wrapv change from gnulib
7233         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7234         from some compilers.
7235
7236         mktime: remove incorrect attempt at unusual arithmetics
7237         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7238         The code didn't really work on such machines anyway.
7239         (TYPE_MINIMUM): Assume two's complement.
7240         (twos_complement_arithmetic): Verify that long_int and time_t
7241         are two's complement (or unsigned, in the latter case).
7242
7243         mktime: check signed shifts on long_int and time_t, too
7244         * time/mktime.c (SHR): Check that shifts work as desired
7245         on the types long_int and time_t too, as SHR is used on
7246         such types.
7247
7248         mktime: do not assume 'long' is wide enough
7249         * time/mktime.c (verify): Move decl up.
7250         (long_int): New type.
7251         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7252         to remove assumption in the code that 'long' is wide enough to
7253         store year values.  This assumption is not true on x32 and on
7254         some non-glibc platforms.
7255
7256         mktime: merge wrapv change from gnulib
7257         * time/mktime.c (WRAPV): New macro.
7258         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7259         (guess_time_tm, __mktime_internal): Do not assume that signed
7260         integer overflow wraps around; modern compilers generate code
7261         where this assumption is no longer valid.
7262
7263 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7264
7265         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7266         Replace "jmp L(pseudo_end)" with "ret".
7267         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7268         Likewise.
7269
7270 2012-05-23  Andreas Jaeger  <aj@suse.de>
7271
7272         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7273         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7274
7275 2012-05-23  Andreas Jaeger  <aj@suse.de>
7276             Maximilian Attems  <max@stro.at>
7277
7278         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7279         New macros.
7280
7281 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7282
7283         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7284         code so that pseudo_end is just ret and the stack pointer is
7285         correct also for static library in error case.
7286
7287 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7288
7289         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7290         move to syscalls.list.
7291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7295
7296         * manual/install.texi (Running make install): Do not mention Linux
7297         kernel version for which pt_chown is not needed.
7298         (Linux): Do not mention problems with nscd with 2.0 kernels.
7299         * INSTALL: Regenerated.
7300
7301 2012-05-23  Andreas Jaeger  <aj@suse.de>
7302
7303         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7304         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7305         macro.
7306         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7307         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7308         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7309         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7310         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7311         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7312         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7313         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7314         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7315         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7316         * sysdeps/unix/sysv/linux/bits/in.h
7317         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7318
7319 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7320
7321         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7322         (PREPARE_VERSION): Just use assert instead, it will be elided
7323         under [NDEBUG] anyway.
7324
7325 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7326
7327         * sysdeps/unix/sysv/linux/Makefile: Include
7328         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7329         (sysdep_routines): Remove sysctl.
7330         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7331         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7332         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7333         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7334         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7335
7336 2012-05-22  Andreas Jaeger  <aj@suse.de>
7337
7338         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7339         that pseudo_end is just ret and the stack pointer is correct also
7340         for static library in error case.
7341
7342 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7343
7344         [BZ #14122]
7345         * nss/nsswitch.c (defconfig_entries): New variable.
7346         (__nss_database_lookup): Don't leak defconfig entries.
7347         (nss_parse_service_list): Don't leak on error paths.
7348         (free_database_entries): New function.
7349         (free_defconfig): New function.
7350         (free_mem): Move common code to free_database_entries.
7351
7352 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7353
7354         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7355         Add arch_prctl.
7356         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7357
7358         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7359         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7360         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7361         New macro.
7362         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7363         (INTERNAL_SYSCALL_TYPES): Likewise.
7364         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7365         (LOAD_REGS_TYPES_[1-6]): Likewise.
7366         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7367         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7368
7369 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7370
7371         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7372         copysignl for GLIBC_2_0.
7373         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7374         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7375         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7376         logbl for GLIBC_2_0.
7377         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7378         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7379
7380 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7381
7382         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7383         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7384
7385         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7386         Use "neg %eax".
7387
7388         * time/mktime.c: Update copyright years.
7389
7390 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7391
7392         mktime: merge comment-quoting-style change from gnulib
7393         * time/mktime.c: Quote 'like this' in comments.
7394         The GNU coding standards suggest that we no longer quote `like this',
7395         as "`" and "'" are typically rendered asymmetrically nowadays.
7396         The typical gnulib style is to quote 'like this' when quoting
7397         code, and "like this" when quoting English.
7398
7399         * time/mktime.c (compile-command): Add "-I.".
7400
7401         mktime: merge mktime-internal.h change from gnulib
7402         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7403
7404         mktime: merge time_r change from gnulib
7405         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7406
7407         mktime: merge DEBUG change from gnulib
7408         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7409         case system <time.h> has a #define.
7410
7411         mktime: merge <sys/types.h> change from gnulib
7412         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7413         since <time.t> is now guaranteed to define time_t.
7414
7415         mktime: merge HAVE_CONFIG_H change from gnulib
7416         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7417
7418 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7419
7420         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7421         Use "neg %eax".
7422
7423         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7424         __rlim_t cast.
7425         (struct rusage): Use anonymous union to pad each field to
7426         __syscall_slong_t.
7427
7428 2012-05-21  David S. Miller  <davem@davemloft.net>
7429
7430         * Makefules (o-iterator): Remove .s cases.
7431         (compile-command.s): Delete.
7432         (COMPILE.s): Delete.
7433         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7434
7435 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7436
7437         * configure.in (libc_cv_predef_stack_protector): Only consider
7438         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7439         * configure: Regenerated.
7440
7441 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7442
7443         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7444         New macro.  Use R*LP on int and pointer.
7445         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7446         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7447         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7448         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7449
7450         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7451         [__WORDSIZE_TIME64_COMPAT32] instead of
7452         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7453         (struct utmp): Likewise.
7454         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7455         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7456         Renamed to ...
7457         (__WORDSIZE_TIME64_COMPAT32): This.
7458         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7459         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7460         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7461         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7462         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7463         (__WORDSIZE_TIME64_COMPAT32): New macro.
7464
7465 2012-05-21  Andreas Jaeger  <aj@suse.de>
7466
7467         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7468         only if [SHARED]. Add prototype for __wcschr_ia32.
7469
7470 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7471
7472         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7473         of %rbp unmolested in the jmp_buf while mangling the low bits.
7474         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7475         unmolested high bits of %rbp while demangling the low bits.
7476         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7477
7478 2012-05-21  Andreas Jaeger  <aj@suse.de>
7479
7480         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7481         * sunrpc/svc_simple.c: Use it for registerrpc.
7482         * sunrpc/xcrypt.c: Use it for passwd2des.
7483
7484         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7485
7486 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7487
7488         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7489         Don't define if [__SYSCALL_WORDSIZE != 32].
7490         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7491         New macro.
7492
7493 2012-05-21  Bruno Haible  <bruno@clisp.org>
7494             Andreas Jaeger  <aj@suse.de>
7495
7496         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7497         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7498         inptr and inend for must_buffer_ch.
7499         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7500         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7501         * stdio-common/Makefile (tests): Remove bug15.
7502         (bug15-ENV): Remove macro.
7503         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7504         anymore.
7505
7506 2012-05-19  Andreas Jaeger  <aj@suse.de>
7507             Roland McGrath  <roland@hack.frob.com>
7508
7509         * manual/contrib.texi: Completely rewritten. It contains now an
7510         alphabetical list of contributors and their contributions.
7511
7512 2012-05-21  Richard Henderson  <rth@twiddle.net>
7513
7514         * misc/getauxval.c (__getauxval): Use unsigned long int.
7515         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7516         (getauxval): Use unsigned long int.
7517
7518 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7519
7520         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7521
7522 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7523
7524         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7525         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7526         __alignof__ (long double).
7527
7528 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7529
7530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7531
7532 2012-05-20  Richard Henderson  <rth@twiddle.net>
7533
7534         * misc/getauxval.c: New file.
7535         * misc/sys/auxv.h: New file.
7536         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7537         (routines): Add getauxval.
7538         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7539         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7540         * elf/dl-sysdep.c (_dl_auxv): Remove.
7541         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7542         * elf/dl-support.c (_dl_auxv): New variable.
7543         (_dl_aux_init): Initialize it.
7544         * manual/startup.texi (Auxiliary Vector): New node.
7545         * sysdeps/generic/bits/hwcap.h: New file.
7546         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7547         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7548         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7549         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7550         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7551         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7553         Update.
7554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7555         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7556         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7557         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7558         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7559         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7560         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7561         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7562
7563 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7564
7565         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7566
7567 2012-05-19  David S. Miller  <davem@davemloft.net>
7568
7569         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7570
7571 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7572
7573         [BZ #14123]
7574         * math/s_ccosh.c: Include <float.h>
7575         (__ccosh): Avoid internal overflow calculating sinh and cosh
7576         values before multiplying by sin and cos values.
7577         * math/s_ccoshf.c: Likewise.
7578         * math/s_ccoshl.c: Likewise.
7579         * math/s_csin.c: Likewise.
7580         * math/s_csinf.c: Likewise.
7581         * math/s_csinl.c: Likewise.
7582         * math/s_csinh.c: Likewise.
7583         * math/s_csinhf.c: Likewise.
7584         * math/s_csinhl.c: Likewise.
7585         * math/libm-test.inc (ccos_test): Add more tests.
7586         (ccosh_test): Likewise.
7587         (csin_test): Likewise.
7588         (csinh_test): Likewise.
7589         * sysdeps/i386/fpu/libm-test-ulps: Update.
7590         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7591
7592 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7593
7594         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7595         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7596
7597         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7598
7599 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7600
7601         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7602         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7603         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7604         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7605         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7606         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7607         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7608         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7609         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7610         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7611         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7612         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7613         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7614         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7615         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7616         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7617         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7618         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7619         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7620         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7621         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7622         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7623         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7624         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7625         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7626         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7627         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7628         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7629         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7630         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7631         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7632
7633 2012-05-18  Andreas Jaeger  <aj@suse.de>
7634
7635         * csu/.gitignore: Delete.
7636
7637 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7638
7639         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7640         (timex): Use __syscall_slong_t.
7641
7642 2012-05-18  Andreas Jaeger  <aj@suse.de>
7643             Carlos O'Donell  <carlos_odonell@mentor.com>
7644
7645         * manual/install.texi (Configuring and compiling): Update
7646         description about files modified in the source directory.
7647         * INSTALL: Regenerated.
7648
7649 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7650
7651         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7652         value.  Use "or" to set return value to -1.
7653         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7654         negate return value.
7655
7656 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7657
7658         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7659         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7660         failure if the compiler has Graphite support disabled.
7661         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7662         Likewise.
7663         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7664         CFLAGS-memmove.c): Likewise.
7665         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7666         Likewise.
7667
7668 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7669
7670         * sysdeps/x86_64/x32/_itoa.h: New file.
7671
7672         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7673         getdents system call only if kernel and user dirents have the
7674         same d_ino and d_off.
7675
7676         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7677         LLONG_MAX != LONG_MAX.
7678         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7679         (_fitoa_word): Likewise.
7680
7681         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7682         years.
7683         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7684         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7685         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7686
7687         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7688         include <bits/wordsize.h>.  Check __x86_64__ instead of
7689         __WORDSIZE.
7690         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7691         if __x86_64__ is defined.  Use anonymous union on fpstate.
7692
7693         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7694         anonymous union.
7695
7696 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7697
7698         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7699         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7700         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7701         Refer to _rtld_local_ro instead of _rtld_global_ro.
7702         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7703         Likewise.
7704         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7705         Likewise.
7706         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7707         Likewise.
7708         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7709         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7710         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7711
7712         * sysdeps/powerpc/powerpc32/dl-machine.c
7713         (__elf_machine_runtime_setup) [PROF]: Don't reference
7714         _dl_prof_resolve.
7715
7716 2012-05-18  Andreas Jaeger  <aj@suse.de>
7717
7718         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7719         function only available for GCCs before 3.4 since GCC 3.4
7720         introduced a builtin.
7721         (lrint): Likewise.
7722         (llrintf): Likewise.
7723         (llrint): Likewise.
7724         (fmaxf): Likewise.
7725         (fmax): Likewise.
7726         (fminf): Likewise.
7727         (fmin): Likewise.
7728         (rint): Likewise.
7729         (rintf): Likewise.
7730         (nearbyint): Likewise.
7731         (nearbyintf): Likewise.
7732         (ceil): Likewise.
7733         (ceilf): Likewise.
7734         (floor): Likewise.
7735         (floorf): Likewise.
7736
7737 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7738
7739         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7740         on both fields and cast pointer to __syscall_ulong_t.
7741
7742         * bits/types.h (__fsword_t): New type.
7743         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7744         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7745         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7746         (__FSWORD_T_TYPE): Likewise.
7747         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7748         (__FSWORD_T_TYPE): Likewise.
7749         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7750         (__FSWORD_T_TYPE): Likewise.
7751         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7752         (__FSWORD_T_TYPE): Likewise.
7753         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7754         __SWORD_TYPE with __fsword_t.
7755         (statfs64): Likewise.
7756
7757 2012-05-17  David S. Miller  <davem@davemloft.net>
7758
7759         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7760
7761 2012-05-17  Andreas Jaeger  <aj@suse.de>
7762
7763         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7764         warning.
7765
7766 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7767
7768         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7769
7770 2012-05-17  Andreas Jaeger  <aj@suse.de>
7771
7772         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7773         when it is used.
7774
7775 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7776
7777         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7778
7779 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7780
7781         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7782         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7783
7784 2012-05-17  Andreas Jaeger  <aj@suse.de>
7785             Carlos O'Donell  <carlos_odonell@mentor.com>
7786
7787         [BZ #14059]
7788         * sysdeps/x86_64/multiarch/init-arch.h
7789         (bit_YMM_Usable): Rename to...
7790         (bit_AVX_Usable): ... this.
7791         (bit_FMA4_Usable): New macro.
7792         (bit_XMM_state): New macro.
7793         (bit_YMM_state): New macro.
7794         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7795         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7796         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7797         (CPUID_OSXSAVE): New macro.
7798         (CPUID_AVX): New macro.
7799         (CPUID_FMA4): New macro.
7800         (index_YMM_Usable): Rename to...
7801         (index_AVX_Usable): ... this.
7802         (HAS_AVX): Use HAS_ARCH_FEATURE.
7803         (HAS_FMA4): Likewise.
7804         (HAS_YMM_USABLE): Remove.
7805         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7806         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7807         are present.
7808         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7809         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7810         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7811         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7812         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7813
7814 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7815
7816         * math/libm-test.c: Support platforms without multiple rounding modes.
7817         * math/bug-nextafter.c: Support platforms without FP exceptions.
7818         * math/bug-nexttoward.c: Likewise.
7819         * math/test-fenv.c: Likewise.
7820         * math/test-misc.c: Likewise.
7821         * stdlib/bug-getcontext.c: Likewise.
7822
7823 2012-05-17  Andreas Jaeger  <aj@suse.de>
7824
7825         * manual/examples/search.c (critter_cmp): Change signature to
7826         avoid warnings.
7827         * manual/string.texi (Collation Functions): Likewise.
7828
7829 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7830
7831         * bits/types.h: Fold copyright years.
7832         * bits/typesizes.h: Likewise.
7833         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7834         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7835         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7836         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7837         * time/time.h: Likewise.
7838
7839 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7840
7841         [BZ #208]
7842         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7843         in instead of returning them.  Return void.
7844         (__libc_mallinfo): Accumulate over all arenas.
7845         (__malloc_stats): Adjust for change in int_mallinfo interface.
7846
7847 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7848
7849         [BZ #10375]
7850         * configure.in (NM): Add AC_CHECK_TOOL for it.
7851         (libc_extra_cflags): New substituted variable.
7852         Check for -fstack-protector being used implicitly.
7853         * configure: Regenerated.
7854         * config.make.in (config-extra-cflags): New variable,
7855         gets @libc_extra_cflags@.
7856         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7857
7858         [BZ #10375]
7859         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7860         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7861         * configure: Regenerated.
7862         * config.make.in (CPPUNDEFS): New substituted variable.
7863         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7864         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7865         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7866
7867 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7868
7869         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7870         (mq_attr): Use __syscall_slong_t.
7871
7872 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7873
7874         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7875         Check __x86_64__ instead of __WORDSIZE.
7876         (_STAT_VER_LINUX): Likewise.
7877         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7878         __syscall_ulong_t and __syscall_slong_t.
7879         (stat64): Likewise.
7880
7881 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7882
7883         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7884
7885 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7886
7887         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7888
7889 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7890
7891         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7892         __syscall_ulong_t.
7893
7894         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7895         include <bits/wordsize.h>.  Check __x86_64__ instead of
7896         __WORDSIZE.
7897         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7898         defined.
7899         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7900
7901         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7902         include <bits/wordsize.h>.  Check __x86_64__ instead of
7903         __WORDSIZE.
7904         (user_regs_struct): Use "__extension__ unsigned long long"
7905         instead of "unsigned long" if __x86_64__ is defined.
7906         (user): Likewise.  Pad after pointer field if __ILP32__ is
7907         defined.
7908
7909 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7910
7911         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7912         versions 5 to 9.
7913         * configure: Regenerated.
7914         * manual/install.texi (texinfo): Increase version requirement to
7915         4.5 or later.
7916         * INSTALL: Regenerated.
7917
7918         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7919
7920 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7921
7922         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7923
7924         * sysdeps/x86_64/x32/ffs.c: New file.
7925
7926         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7927         __syscall_ulong_t.
7928         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7929         defined.  Use __syscall_ulong_t.
7930         (shminfo): Use __syscall_ulong_t.
7931         (shm_info): Likewise.
7932
7933         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7934         __syscall_ulong_t.
7935
7936         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7937         <bits/wordsize.h>.
7938         (msgqnum_t): Use __syscall_ulong_t.
7939         (msglen_t): Likewise.
7940         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7941         __syscall_ulong_t.
7942
7943         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7944         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7945
7946         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7947
7948         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7949         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7950
7951         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7952         __syscall_slong_t.
7953
7954         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7955         include <bits/wordsize.h>.  Check __x86_64__ instead of
7956         __WORDSIZE.
7957
7958         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
7959         "unsigned long long int" if __x86_64__ is defined.
7960         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
7961
7962         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
7963         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7964         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
7965
7966         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
7967         <stdint.h>.
7968         (GET_PC): Cast to uintptr_t first.
7969         (GET_FRAME): Likewise.
7970         (GET_STACK): Likewise.
7971
7972         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
7973         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
7974         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
7975         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
7976         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
7977         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
7978         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
7979         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
7980         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
7981         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
7982         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
7983         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
7984         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
7985         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
7986         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
7987         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
7988         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
7989         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
7990         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
7991         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
7992         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
7993         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
7994         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
7995         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
7996         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
7997         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
7998         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
7999         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
8000         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
8001
8002 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
8003
8004         * Makerules (+depfiles): Also collect depfiles from .oS in
8005         $(extra-objs).
8006         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
8007         .oS, $(libnldbl-routines)).
8008
8009         * Makerules (native-compile-mkdep-flags): Define.
8010         * sunrpc/Makefile (extra-objs): Add $(addprefix
8011         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
8012         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
8013         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
8014         calling $(make-target-directory).
8015
8016 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8017
8018         * bits/types.h (__snseconds_t): Removed.
8019         * time/time.h (struct timespec): Replace __snseconds_t with
8020         __syscall_slong_t.
8021         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
8022         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
8023         Likewise.
8024         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8025         (__SNSECONDS_T_TYPE): Likewise.
8026         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8027         (__SNSECONDS_T_TYPE): Likewise.
8028         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8029         (__SNSECONDS_T_TYPE): Likewise.
8030
8031 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8032
8033         * sysdeps/mach/hurd/bits/typesizes.h
8034         (__SYSCALL_SLONG_TYPE): New macro.
8035         (__SYSCALL_ULONG_TYPE): Likewise.
8036
8037 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8038
8039         * bits/types.h (__syscall_slong_t): New type.
8040         (__syscall_ulong_t): Likewise.
8041
8042         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8043         (__SYSCALL_ULONG_TYPE): Likewise.
8044         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8045         (__SYSCALL_SLONG_TYPE): Likewise.
8046         (__SYSCALL_ULONG_TYPE): Likewise.
8047         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8048         (__SYSCALL_SLONG_TYPE): Likewise.
8049         (__SYSCALL_ULONG_TYPE): Likewise.
8050         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8051         (__SYSCALL_SLONG_TYPE): Likewise.
8052         (__SYSCALL_ULONG_TYPE): Likewise.
8053
8054 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8055
8056         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8057         Add sigaltstack-offsets.sym.
8058         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8059         <sigaltstack-offsets.h>.
8060         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8061         longjmp_msg pointer.
8062         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8063         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8064         signal stack.
8065         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8066
8067 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8068
8069         * elf/stackguard-macros.h: Remove file.
8070         * sysdeps/generic/stackguard-macros.h: New file.
8071         * sysdeps/i386/stackguard-macros.h: Likewise.
8072         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8073         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8074         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8075         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8076         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8077         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8078         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8079         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8080         <elf/stackguard-macros.h>.
8081
8082         [BZ #14109]
8083         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8084         __aligned__ in attribute.
8085         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8086         (gregset_t): Likewise.
8087
8088 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8089
8090         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8091         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8092         * sysdeps/x86_64/x32/Implies-after: New file.
8093
8094 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8095
8096         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8097         and access return value for _dl_profile_fixup.  Use R10_LP to
8098         load frame size.
8099
8100 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8101
8102         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8103
8104 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8105
8106         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8107         * sysdeps/x86_64/x32/sysdep.h: New file.
8108
8109 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8110
8111         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8112         * sysdeps/x86_64/setjmp.S: Likewise.
8113
8114 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8115
8116         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8117         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8118         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8119         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8120         remove unused global constant.
8121
8122 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8123
8124         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8125         include of <not-cancel.h>.
8126
8127 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8128
8129         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8130
8131 2012-05-15  Jeff Law  <law@redhat.com>
8132             Andreas Jaeger  <aj@suse.de>
8133
8134         [BZ #13594]
8135         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8136         out from...
8137         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8138         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8139         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8140         code changing __hst_map_handle.map.
8141
8142 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8143
8144         * configure.in (sysnames): Look for Implies-before and Implies-after
8145         files.
8146         * configure: Regenerated.
8147
8148 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8149
8150         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8151         8-byte data alignment with LP_SIZE alignment.
8152
8153 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8154
8155         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8156         into R10_LP.
8157
8158 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8159
8160         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8161
8162 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8163
8164         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8165         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8166         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8167         Likewise.
8168         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8169
8170 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8171
8172         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8173         (stackinfo_sub_sp): Likewise.
8174
8175 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8176
8177         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8178         RAX_LP.
8179
8180 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8181
8182         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8183         into R*_LP.
8184
8185 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8186
8187         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8188         sizes into R*_LP.
8189
8190 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8191
8192         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8193
8194 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8195
8196         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8197         into R11_LP and load __x86_64_shared_cache_size_half into
8198         R8_LP.
8199
8200 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8201
8202         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8203         R8_LP.
8204
8205 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8206
8207         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8208         logb for POWER7.
8209         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8210         logbf for POWER7.
8211         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8212         logbl for POWER7.
8213         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8214         powerpc32/power7/fpu/s_logb.c via #include.
8215         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8216         powerpc32/power7/fpu/s_logbf.c via #include.
8217         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8218         powerpc32/power7/fpu/s_logbl.c via #include.
8219
8220 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8221
8222         * README.libm: Remove file.
8223
8224 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8225
8226         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8227         count for x32.  Use R*_LP and omit operand-size suffix.
8228
8229 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8230
8231         * shlib-versions: Move x86_64-.*-linux.* entries to ...
8232         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
8233         * sysdeps/x86_64/x32/shlib-versions: New file.
8234
8235 2012-05-14  Roland McGrath  <roland@hack.frob.com>
8236
8237         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8238         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8239         Use _dl_fatal_printf instead.
8240
8241 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8242
8243         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8244         set if not set by the user.  Do not allow for being unset.
8245         * sysdeps/unix/sysv/linux/configure: Regenerated.
8246
8247 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8248
8249         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8250         the `q' suffix from lea and replace .quad with ASM_ADDR.
8251
8252 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8253
8254         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8255         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8256         instead of $17.
8257         (PTR_DEMANGLE): Likewise.
8258
8259 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8260
8261         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8262         (LP_OP): Likewise.
8263         (ASM_ADDR): Likewise.
8264         (RAX_LP): Likewise.
8265         (RBP_LP): Likewise.
8266         (RBX_LP): Likewise.
8267         (RCX_LP): Likewise.
8268         (RDI_LP): Likewise.
8269         (RSI_LP): Likewise.
8270         (RSP_LP): Likewise.
8271         (R8_LP): Likewise.
8272         (R9_LP): Likewise.
8273         (R10_LP): Likewise.
8274         (R10_LP): Likewise.
8275         (R11_LP): Likewise.
8276         (R12_LP): Likewise.
8277         (R13_LP): Likewise.
8278         (R14_LP): Likewise.
8279         (R15_LP): Likewise.
8280
8281 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8282
8283         * sysdeps/x86_64/x32/dl-machine.h: New file.
8284
8285 2012-05-14  Andreas Jaeger  <aj@suse.de>
8286
8287         * manual/Makefile (subdir): Remove export of subdir.
8288         (all): Remove target.
8289         (.PHONY): Remove all from list.
8290         (mkinstalldirs): Remove.
8291         (.PHONY): Remove installdirs from list.
8292         ($(inst_infodir)/libc.info): Use make-target-directory.
8293         (installdirs): Remove.
8294         (subdir_%): Remove.
8295         (glibc-targets): Remove.
8296         (lib): Remove.
8297         (stubs): Remove.
8298         ($(objpfx)stubs ../po/manual.pot): Remove.
8299         ($(objpfx)stamp%): Remove.
8300         (make-target-directory): Remove.
8301         (subdir_install): Remove.
8302         (routines): Remove.
8303         (aux): Remove.
8304         (sources): Remove.
8305         (objects): Remove.
8306         (headers): Remove.
8307
8308         [BZ #13750]
8309         * manual/.gitignore: Remove, it's not needed anymore.
8310         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8311         all files in it.
8312         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8313         directory.
8314         (texis): Renamed to $(objpfx)texis.
8315         (texis-path): New, contains path to generated files.
8316         (chapters.%): Use texis-path for complete path, add extra argument
8317         libc-texinfo.sh.
8318         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8319         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8320         (summary,texi, stamp-summary): Use complete path of
8321         files. Generate files in build dir.
8322         (dir-add.texi): Build in build dir.
8323         (libm-err.texi,stamp-libm-err): Likewise.
8324         (version.texi, stamp-version): Likewise.
8325         (.%c.texi): Likewise.
8326         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8327         (mostlyclean): Remove target.
8328         (realclean): Remove target.
8329         (generated): Add new variable with contents from mostlyclean and
8330         realclean, remove entries duplicated in common-mostlyclean, add
8331         stamp-libm-err and stamp-version.
8332         (generated-dirs): Add libc directory.
8333         ($(inst_infodir)/libc.info): Install files from build dir.
8334
8335         * manual/install.texi (Configuring and compiling): Adjust since
8336         the info files are not part of the tar ball anymore.
8337
8338 2012-05-14  Andreas Jaeger  <aj@suse.de>
8339
8340         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8341         variable.
8342
8343 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8344
8345         [BZ #13717]
8346         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8347         to 2.2.0 where earlier.
8348         * sysdeps/unix/sysv/linux/configure: Regenerated.
8349         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8350         Remove conditional code.
8351         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8352         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8353         Remove conditional code.
8354         [!__NR_lchown]: Likewise.
8355         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8356         [__NR_lchown]: Likewise.
8357         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8358         comment referencing __ASSUME_LCHOWN_SYSCALL.
8359         * sysdeps/unix/sysv/linux/i386/sigaction.c
8360         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8361         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8362         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8363         Remove conditional code.
8364         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8365         (__protocol_available): Remove #if 0 code.
8366         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8367         conditional code.
8368         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8369         * sysdeps/unix/sysv/linux/kernel-features.h
8370         (__ASSUME_GETCWD_SYSCALL): Don't define.
8371         (__ASSUME_REALTIME_SIGNALS): Likewise.
8372         (__ASSUME_PREAD_SYSCALL): Likewise.
8373         (__ASSUME_PWRITE_SYSCALL): Likewise.
8374         (__ASSUME_POLL_SYSCALL): Likewise.
8375         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8376         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8377         non-SPARC.
8378         (__ASSUME_SIOCGIFNAME): Don't define.
8379         (__ASSUME_MSG_NOSIGNAL): Likewise.
8380         (__ASSUME_SENDFILE): Define unconditionally.
8381         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8382         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8383         conditional code.
8384         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8385         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8386         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8387         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8388         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8389         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8390         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8392         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8393         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8395         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8396         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8398         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8399         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8401         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8402         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8404         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8405         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8407         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8408         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8410         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8411         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8413         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8414         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8415         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8416         Remove conditional code.
8417         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8418         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8419         Remove conditional code.
8420         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8421         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8422         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8423         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8424         Remove conditional code.
8425         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8426         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8427         Remove conditional code.
8428         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8429         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8430         Remove conditional code.
8431         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8432         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8433         Remove conditional code.
8434         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8435         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8436         Remove conditional code.
8437         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8438         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8439         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8440         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8441         * sysdeps/unix/sysv/linux/sigaction.c
8442         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8443         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8444         * sysdeps/unix/sysv/linux/sigpending.c
8445         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8446         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8447         * sysdeps/unix/sysv/linux/sigprocmask.c
8448         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8449         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8450         * sysdeps/unix/sysv/linux/sigsuspend.c
8451         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8452         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8453         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8454         (__libc_missing_rt_sigs): Remove.
8455         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8456         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8457         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8458         Remove conditional code.
8459         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8460         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8461         return 1.
8462         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8463         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8464         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8465         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8466
8467 2012-05-14  Andreas Jaeger  <aj@suse.de>
8468
8469         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8470         it's not used in glibc.
8471         (__coshm1): Likewise.
8472         (__acosh1p): Likewise.
8473         (__sgn): Likewise.
8474
8475         * manual/string.texi (Copying and Concatenation): Add missing
8476         variable in concat example.
8477         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8478
8479 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8480
8481         [BZ #14103]
8482         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8483         __builtin_clzl with __builtin_clzll.
8484
8485 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8486
8487         [BZ #14104]
8488         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8489         libc_freeres_ptr.
8490
8491 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8492
8493         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8494         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8495         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8496         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8497
8498 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8499
8500         * NEWS: Update ia64 info.
8501
8502 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8503
8504         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8505         used as bcopy.
8506
8507 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8508
8509         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8510         * sysdeps/unix/syscalls.list (dup3): Likewise.
8511         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8512         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8513
8514 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8515
8516         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8517         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8518
8519 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8520
8521         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8522         thread pointer.
8523         (TLS_IE): Use mov/add instead of movq/addq to load thread
8524         pointer.
8525         (TLS_GD_PREFIX): New.
8526         (TLS_GD): Use it.
8527
8528 2012-05-11  David S. Miller  <davem@davemloft.net>
8529
8530         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8531         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8532         (_FPU_SETCW): Likewise.
8533
8534 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8535
8536         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8537         is 32-byte aligned.
8538
8539 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8540
8541         [BZ #11837]
8542         * iconvdata/gb18030.c: Update tables.
8543         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8544         characters specially.
8545         (BODY for TO_LOOP): Add encoding of missing ranges.
8546
8547 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8548
8549         [BZ #13673]
8550         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8551         * sysdeps/mach/hurd/dup3.c: Likewise.
8552         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8553         * sysdeps/powerpc/memmove.c:: Likewise.
8554
8555 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8556
8557         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8558         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8559
8560 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8561
8562         * elf/elf.h (R_X86_64_RELATIVE64): New.
8563         (R_X86_64_NUM): Updated.
8564         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8565         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8566         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8567         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8568         tst-quad1pie tst-quad2pie
8569         (modules-names): Add tst-quadmod1 tst-quadmod2.
8570         ($(objpfx)tst-quad1): New dependency.
8571         ($(objpfx)tst-quad2): Likewise.
8572         ($(objpfx)tst-quad1pie): Likewise.
8573         ($(objpfx)tst-quad2pie): Likewise.
8574         * sysdeps/x86_64/tst-quad1.c: New file.
8575         * sysdeps/x86_64/tst-quad1pie.c: New file.
8576         * sysdeps/x86_64/tst-quad2.c: Likewise.
8577         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8578         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8579         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8580         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8581         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8582
8583 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8584
8585         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8586         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8587         * streams/stropts.h (t_scalar_t): Define type.
8588
8589         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8590         (_PATH_PRESERVE): Set to "/var/lib".
8591         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8592
8593         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8594         instead of int.
8595
8596         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8597         if __dir_mkfile succeeded.
8598
8599         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8600         checking for _hurd_dtablesize.  Unlock it right after having
8601         finished _hurd_dtable allocation.
8602
8603 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8604
8605         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8606         * sysdeps/mach/hurd/configure: Regenerated.
8607         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8608         special-casing to...
8609         * sysdeps/gnu/configure.in: ... this new file.
8610         * sysdeps/unix/sysv/linux/configure: Regenerated.
8611         * sysdeps/gnu/configure: New generated file.
8612
8613         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8614         for Linux: use nsec instead of usec, as well as:
8615         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8616         members of type struct timespec.
8617         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8618         New macros.
8619         (struct stat64): Likewise.
8620         (_STATBUF_ST_NSEC): New macro.
8621         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8622
8623         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8624         __strtoul_internal rather than strtoul.
8625
8626 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8627
8628         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8629         and reject them.
8630
8631 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8632
8633         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8634         which preserves existing values.
8635         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8636
8637 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8638
8639         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8640         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8641         greater than FD_SETSIZE.
8642
8643 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8644
8645         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8646         allocated, call __vm_protect to finish enabling the existing space, and
8647         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8648         allocate the remainder.
8649
8650 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8651
8652         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8653         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8654
8655 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8656
8657         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8658         sysdeps/mach/hurd/readlink.c.
8659
8660         * posix/tst-sysconf.c (posix_options): Only use
8661         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8662         _POSIX_SYNCHRONIZED_IO when they are defined
8663         * sysdeps/mach/hurd/bits/posix_opt.h:
8664         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8665         (_XOPEN_REALTIME): Undefine macro.
8666         (_XOPEN_REALTIME_THREADS): Undefine macro.
8667         (_XOPEN_SHM): Undefine macro.
8668         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8669         macro to -1.
8670         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8671         macro to -1.
8672         (_POSIX_ASYNC_IO): Undefine macro.
8673         (_POSIX_PRIORITIZED_IO): Undefine macro.
8674         (_POSIX_SPIN_LOCKS): Define macro to -1.
8675
8676         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8677         SA_NODEFER, SA_RESETHAND.
8678         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8679         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8680         F_DUPFD_CLOEXEC.
8681
8682 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8683
8684         * elf/Makefile (pldd-modules): Define unconditionally.
8685
8686 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8687
8688         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8689
8690 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8691
8692         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8693         Return ENOENT when name is empty.
8694         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8695
8696 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8697
8698         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8699
8700         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8701
8702 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8703
8704         Fix mlock in all cases except non-readable pages.
8705         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8706         instead of VM_PROT_ALL as parameter to __vm_wire function.
8707
8708         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8709         (__mkdir): When path is `/', just fail with EEXIST.
8710         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8711
8712 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8713
8714         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8715         <sys/uio.h> (for writev).
8716         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8717         and <sys/param.h> (for MIN).
8718
8719 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8720
8721         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8722         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8723         if interrupted.
8724
8725 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8726
8727         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8728         Depend on against $(link-rpcuserlibs).
8729
8730 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8731
8732         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8733         (__libc_stack_end): Do not use attribute_relro.
8734         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8735         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8736         to libthread-provided value.
8737         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8738         attribute_relro.
8739
8740 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8741
8742         [BZ #3748]
8743         * bits/libc-lock.h (__libc_once_get): New macro.
8744         * sysdeps/mach/bits/libc-lock.h: Likewise.
8745         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8746         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8747         instead of using implementation details.
8748
8749         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8750         * libio/freopen.c: Likewise.
8751         * libio/freopen64.c: Likewise.
8752         * misc/syslog.c: Likewise.
8753         * nscd/connections.c: Likewise.
8754         * nscd/netgroupcache.c: Likewise.
8755         * sysdeps/posix/getcwd.c: Likewise.
8756
8757 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8758
8759         * math/w_ilogbf.c: Add #include <limits.h>.
8760
8761 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8762
8763         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8764         path instead of returning without unlocking.
8765
8766         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8767         immediate-write ioctls.
8768         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8769
8770 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8771
8772         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8773         __builtin_frame_address instead of making assumptions about the
8774         location of the return address relative to DATA.  Force early load of
8775         the return address.
8776         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8777         __builtin_frame_address.
8778
8779         dup3 for GNU Hurd.
8780         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8781         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8782         implement dup3 and do some further code clean-ups.
8783         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8784         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8785
8786 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8787
8788         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8789
8790         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8791         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8792         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8793         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8794         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8795         d->port.lock.
8796
8797         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8798         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8799         when handler == SIG_ERR, not when handler != SIG_ERR.
8800
8801 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8802
8803         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8804         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8805         definitions.
8806
8807         accept4 for GNU Hurd.
8808         * include/sys/socket.h (__libc_accept4): New prototype.
8809         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8810         to implement __libc_accept4.
8811         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8812         __libc_accept4.
8813         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8814
8815         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8816         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8817         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8818         signal-defines.sym.
8819
8820 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8821
8822         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8823
8824 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8825
8826         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8827         assertion on O_CLOEXEC flag.
8828         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8829         * hurd/intern-fd.c: Likewise.
8830         * hurd/port2fd.c: Likewise.
8831
8832 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8833
8834         [BZ #3906]
8835         * bits/in.h (IPV6_PKTINFO): Define new macro.
8836         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8837
8838 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8839
8840         [BZ #13954]
8841         [BZ #13955]
8842         [BZ #13956]
8843         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8844         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8845         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8846         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8847         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8848         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8849         * math/libm-test.inc (logb_test) : Additional logb tests.
8850
8851 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8852             Andreas Jaeger  <aj@suse.de>
8853
8854         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8855         * configure: Regenerated.
8856         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8857         * config.make.in (link-obsolete-rpc): New substituted variable.
8858         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8859         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8860         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8861         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8862         so that libc.a contains the symbols.
8863         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8864         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8865         * sunrpc/auth_none.c: Likewise.
8866         * sunrpc/auth_unix.c: Likewise.
8867         * sunrpc/authdes_prot.c: Likewise.
8868         * sunrpc/authuxprot.c: Likewise.
8869         * sunrpc/clnt_gen.c: Likewise.
8870         * sunrpc/clnt_perr.c: Likewise.
8871         * sunrpc/clnt_raw.c: Likewise.
8872         * sunrpc/clnt_simp.c: Likewise.
8873         * sunrpc/clnt_tcp.c: Likewise.
8874         * sunrpc/clnt_udp.c: Likewise.
8875         * sunrpc/clnt_unix.c: Likewise.
8876         * sunrpc/des_crypt.c: Likewise.
8877         * sunrpc/des_soft.c: Likewise.
8878         * sunrpc/get_myaddr.c: Likewise.
8879         * sunrpc/key_call.c: Likewise.
8880         * sunrpc/key_prot.c: Likewise.
8881         * sunrpc/netname.c: Likewise.
8882         * sunrpc/pm_getmaps.c: Likewise.
8883         * sunrpc/pm_getport.c: Likewise.
8884         * sunrpc/pmap_clnt.c: Likewise.
8885         * sunrpc/pmap_prot.c: Likewise.
8886         * sunrpc/pmap_prot2.c: Likewise.
8887         * sunrpc/pmap_rmt.c: Likewise.
8888         * sunrpc/publickey.c: Likewise.
8889         * sunrpc/rpc_cmsg.c: Likewise.
8890         * sunrpc/rpc_common.c: Likewise.
8891         * sunrpc/rpc_dtable.c: Likewise.
8892         * sunrpc/rpc_prot.c: Likewise.
8893         * sunrpc/rpc_thread.c: Likewise.
8894         * sunrpc/rtime.c: Likewise.
8895         * sunrpc/svc.c: Likewise.
8896         * sunrpc/svc_auth.c: Likewise.
8897         * sunrpc/svc_raw.c: Likewise.
8898         * sunrpc/svc_run.c: Likewise.
8899         * sunrpc/svc_tcp.c: Likewise.
8900         * sunrpc/svc_udp.c: Likewise.
8901         * sunrpc/svc_unix.c: Likewise.
8902         * sunrpc/svcauth_des.c: Likewise.
8903         * sunrpc/xcrypt.c: Likewise.
8904         * sunrpc/xdr.c: Likewise.
8905         * sunrpc/xdr_array.c: Likewise.
8906         * sunrpc/xdr_float.c: Likewise.
8907         * sunrpc/xdr_intXX_t.c: Likewise.
8908         * sunrpc/xdr_mem.c: Likewise.
8909         * sunrpc/xdr_rec.c: Likewise.
8910         * sunrpc/xdr_ref.c: Likewise.
8911         * sunrpc/xdr_sizeof.c: Likewise.
8912         * sunrpc/xdr_stdio.c: Likewise.
8913
8914 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8915
8916         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8917         change.  Update copyright years.
8918
8919 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8920
8921         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8922
8923 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8924             Joseph Myers  <joseph@codesourcery.com>
8925             Paul Pluzhnikov  <ppluzhnikov@google.com>
8926
8927         [BZ #14012]
8928         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8929         requiring rpcgen.
8930         [cross-compiling] (extra-libs): Likewise.
8931         [cross-compiling] (extra-libs-others): Likewise.
8932         [cross-compiling] (librpcsvc-routines): Likewise.
8933         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8934         [cross-compiling] (omit-deps): Likewise.
8935         (sunrpc-CPPFLAGS): New variable.
8936         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8937         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8938         (cross-rpcgen-objs): New variable.
8939         (extra-objs): Append $(cross-rpcgen-objs).
8940         ($(cross-rpcgen-objs)): New rule.
8941         ($(objpfx)cross-rpcgen): Likewise.
8942         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8943         comment.
8944         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8945         ($(objpfx)x%.stmp): Likewise.
8946         * sunrpc/proto.h [IS_IN_build] (_): Define.
8947         [IS_IN_build] (_libc_intl_domainname): Likewise.
8948
8949 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8950
8951         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8952         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8953         and R_X86_64_TPOFF64.
8954
8955 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8956
8957         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
8958         sysdeps/unix/sysv/syscalls.list.
8959         (stime): Likewise.
8960         (utime): Likewise.
8961         * sysdeps/unix/sysv/syscalls.list: Remove file.
8962
8963 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8964
8965         [BZ #3440]
8966         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
8967         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
8968         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
8969         (__LC_IDENTIFICATION): Make these macros useful in #if
8970         expressions, as required by C99.
8971
8972 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
8973
8974         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
8975         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
8976         after this.
8977
8978 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8979
8980         * stdlib/longlong.h: Updated from GCC.
8981
8982 2012-05-09  Andreas Jaeger  <aj@suse.de>
8983
8984         * nscd/nscd.c (run_modes): Make named enum, reorder so that
8985         default is first entry.
8986         (run_mode): Set type.
8987         (main): Remove informal message about syslog.
8988         (options): Fix typo.
8989
8990         [BZ #14053]
8991         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
8992         to asm.
8993         (lrint): Likewise.
8994         (llrintf): Likewise.
8995         (llrint): Likewise.
8996         (rint): Likewise.
8997         (rintf): Likewise.
8998         (nearbyint): Likewise.
8999         (nearbyintf): Likewise.
9000
9001 2012-05-09  Andreas Jaeger  <aj@suse.de>
9002             Pedro Alves  <palves@redhat.com>
9003
9004         * nscd/nscd.c (run_mode): Use enum.
9005         (main): Cleanup coding style issue.
9006
9007 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
9008             Andreas Jaeger  <aj@suse.de>
9009
9010         * nscd/nscd.c (go_background): Replaced with...
9011         (run_mode): ... this.
9012         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
9013         (options): Add -F --foreground.
9014         (main): Implement it.
9015         (parse_opt): Parse it.
9016
9017 2012-05-09  Andreas Jaeger  <aj@suse.de>
9018
9019         [BZ #14083]
9020         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
9021         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
9022         -Wconversion warning.
9023         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
9024         Likewise.
9025
9026 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
9027
9028         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
9029         == 0.
9030         (LC_ALL): Use macro-int-constant.
9031         (LC_COLLATE): Likewise.
9032         (LC_CTYPE): Likewise.
9033         (LC_MESSAGES): Likewise.
9034         (LC_MONETARY): Likewise.
9035         (LC_NUMERIC): Likewise.
9036         (LC_TIME): Likewise.
9037         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9038         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9039         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9040         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9041         Specify type.
9042         [C99-based standards] (float_t): Expect type.
9043         [C99-based standards] (double_t): Expect type.
9044         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9045         type.
9046         [C99-based standards] (HUGE_VALL): Likewise.
9047         [C99-based standards] (INFINITY): Likewise.
9048         [C99-based standards] (NAN): Likewise.
9049         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9050         [C99-based standards] (FP_NAN): Likewise.
9051         [C99-based standards] (FP_NORMAL): Likewise.
9052         [C99-based standards] (FP_SUBNORMAL): Likewise.
9053         [C99-based standards] (FP_ZERO): Likewise.
9054         [C99-based standards] (FP_FAST_FMA): Use
9055         optional-macro-int-constant.  Specify type.  Require == 1.
9056         [C99-based standards] (FP_FAST_FMAF): Likewise.
9057         [C99-based standards] (FP_FAST_FMAL): Likewise.
9058         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9059         [C99-based standards] (FP_ILOGBNAN): Likewise.
9060         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9061         Specify type.
9062         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9063         [C99-based standards] (math_errhandling): Specify type.
9064         [ISO99 || ISO11] (signgam): Do not allow.
9065         [non-C99-based standards] (copysignf): Do not allow.
9066         [non-C99-based standards] (exp2f): Likewise.
9067         [non-C99-based standards] (log2f): Likewise.
9068         [non-C99-based standards] (modff): Allow.
9069         [non-C99-based standards] (erff): Do not allow.
9070         [non-C99-based standards] (erfcf): Likewise.
9071         [non-C99-based standards] (gammaf): Likewise.
9072         [non-C99-based standards] (hypotf): Likewise.
9073         [non-C99-based standards] (j0f): Likewise.
9074         [non-C99-based standards] (j1f): Likewise.
9075         [non-C99-based standards] (jnf): Likewise.
9076         [non-C99-based standards] (lgammaf): Likewise.
9077         [non-C99-based standards] (tgammaf): Likewise.
9078         [non-C99-based standards] (y0f): Likewise.
9079         [non-C99-based standards] (y1f): Likewise.
9080         [non-C99-based standards] (ynf): Likewise.
9081         [non-C99-based standards] (isnanf): Likewise.
9082         [non-C99-based standards] (acoshf): Likewise.
9083         [non-C99-based standards] (asinhf): Likewise.
9084         [non-C99-based standards] (atanhf): Likewise.
9085         [non-C99-based standards] (cbrtf): Likewise.
9086         [non-C99-based standards] (expm1f): Likewise.
9087         [non-C99-based standards] (ilogbf): Likewise.
9088         [non-C99-based standards] (log1pf): Likewise.
9089         [non-C99-based standards] (logbf): Likewise.
9090         [non-C99-based standards] (nextafterf): Likewise.
9091         [non-C99-based standards] (remainderf): Likewise.
9092         [non-C99-based standards] (rintf): Likewise.
9093         [non-C99-based standards] (scalbf): Likewise.
9094         [non-C99-based standards] (copysignl): Likewise.
9095         [non-C99-based standards] (exp2l): Likewise.
9096         [non-C99-based standards] (log2l): Likewise.
9097         [non-C99-based standards] (modfl): Allow.
9098         [non-C99-based standards] (erfl): Do not allow.
9099         [non-C99-based standards] (erfcl): Likewise.
9100         [non-C99-based standards] (gammal): Likewise.
9101         [non-C99-based standards] (hypotl): Likewise.
9102         [non-C99-based standards] (j0l): Likewise.
9103         [non-C99-based standards] (j1l): Likewise.
9104         [non-C99-based standards] (jnl): Likewise.
9105         [non-C99-based standards] (lgammal): Likewise.
9106         [non-C99-based standards] (tgammal): Likewise.
9107         [non-C99-based standards] (y0l): Likewise.
9108         [non-C99-based standards] (y1l): Likewise.
9109         [non-C99-based standards] (ynl): Likewise.
9110         [non-C99-based standards] (isnanl): Likewise.
9111         [non-C99-based standards] (acoshl): Likewise.
9112         [non-C99-based standards] (asinhl): Likewise.
9113         [non-C99-based standards] (atanhl): Likewise.
9114         [non-C99-based standards] (cbrtl): Likewise.
9115         [non-C99-based standards] (expm1l): Likewise.
9116         [non-C99-based standards] (ilogbl): Likewise.
9117         [non-C99-based standards] (log1pl): Likewise.
9118         [non-C99-based standards] (logbl): Likewise.
9119         [non-C99-based standards] (nextafterl): Likewise.
9120         [non-C99-based standards] (remainderl): Likewise.
9121         [non-C99-based standards] (rintl): Likewise.
9122         [non-C99-based standards] (scalbl): Likewise.
9123         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9124         [non-C99-based standards] (FP_*): Do not allow.
9125         [C99-based standards] (FP_*): Change to
9126         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9127         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9128         allow.
9129         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9130         (SIG_ERR): Likewise.
9131         [X/Open-based standards] (SIG_HOLD): Likewise.
9132         (SIG_IGN): Likewise.
9133         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9134         positive value.
9135         (SIGFPE): Likewise.
9136         (SIGILL): Likewise.
9137         (SIGINT): Likewise.
9138         (SIGSEGV): Likewise.
9139         (SIGTER): Likewise.
9140         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9141         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9142         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9143         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9144         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9145         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9146         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9147         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9148         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9149         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9150         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9151         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9152         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9153         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9154         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9155         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9156         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9157         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9158         [X/Open-based standards] (SIGTRAP): Likewise.
9159         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9160         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9161         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9162         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9163         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9164         allow.
9165
9166 2012-05-08  Ian Wienand  <ianw@vmware.com>
9167
9168         [BZ #14080]
9169         * time/tzset.c (__tzset_parse_tz): Update default rules for
9170         daylight time changes in the Energy Policy Act of 2005.
9171
9172 2012-05-09  Andreas Jaeger  <aj@suse.de>
9173
9174         [BZ #13983]
9175         * elf/ldconfig.c (parse_conf): Change string to make clear that
9176         ldconfig only issued a warning if ld.so.conf does not exist.
9177
9178 2012-05-08  David S. Miller  <davem@davemloft.net>
9179
9180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9181         movxtod instead of popping the value on the stack.
9182
9183         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9184
9185 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9186
9187         * config.h.in: Add HAVE_ARM_PCS_VFP.
9188
9189 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9190
9191         [BZ #13979]
9192         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9193         checking but the checks are disabled for any reason.
9194
9195 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9196
9197         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9198         and ELF64_R_TYPE with ELFW(R_TYPE).
9199
9200 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9201
9202         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9203         (ulimit): Likewise.
9204
9205         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9206         (settimeofday): Likewise.
9207
9208 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9209
9210         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9211         a struct th_u2 inside the union, and move tu_block/tu_code into
9212         a new th_u3 union of tu_block/tu_code inside of that.  Move
9213         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9214         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9215         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9216         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9217         (th_stuff): Change to th_u1.tu_stuff.
9218         (th_data): Define.
9219         (th_msg): Change to th_u1.th_u2.tu_data.
9220
9221 2012-05-07  David S. Miller  <davem@davemloft.net>
9222
9223         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9224
9225         [BZ #14074]
9226         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9227         (SETUP_PIC_REG): Use it.
9228         (SETUP_PIC_REG_LEAF): Use it.
9229
9230 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
9231
9232         [BZ #13885]
9233         [BZ #13923]
9234         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9235         USE_AS_EXPM1L.
9236         (EXPL_FINITE): Likewise.
9237         (FLDLOG): Likewise.
9238         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9239         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9240         e_expl.S.
9241         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9242         USE_AS_EXPM1L.
9243         (EXPL_FINITE): Likewise.
9244         (FLDLOG): Likewise.
9245         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9246         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9247         e_expl.S.
9248         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9249         test of -max_value argument for long double.
9250         * sysdeps/i386/fpu/libm-test-ulps: Update.
9251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9252
9253 2012-05-06  David S. Miller  <davem@davemloft.net>
9254
9255         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9256         quad soft-float symbols whose references which are compiler
9257         generated.
9258         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9259
9260 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9261
9262         [BZ #13884]
9263         [BZ #13914]
9264         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9265         USE_AS_EXP10L.
9266         (EXPL_FINITE): Likewise.
9267         (FLDLOG): Likewise.
9268         (c0): Likewise.
9269         (c1): Likewise.
9270         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9271         Adjust comments for base varying.
9272         (__expl_finite): Change alias to EXPL_FINITE.
9273         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9274         e_expl.S.
9275         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9276         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9277         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9278         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9279         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9280         USE_AS_EXP10L.
9281         (EXPL_FINITE): Likewise.
9282         (FLDLOG): Likewise.
9283         (c0): Likewise.
9284         (c1): Likewise.
9285         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9286         Adjust comments for base varying.
9287         (__expl_finite): Change alias to EXPL_FINITE.
9288         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9289         tests for bugs.
9290         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9291
9292         [BZ #14064]
9293         * math/libm-test.inc (check_float_internal): Correct ulp
9294         calculation for subnormal expected results.
9295
9296 2012-05-06  Andreas Jaeger  <aj@suse.de>
9297
9298         * Makeconfig (+math-flags): New, set to -frounding-math.
9299         (+cflags): Add +math-flags so that all of glibc gets compiled with
9300         it.
9301
9302         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9303
9304 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9305
9306         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9307         Disable one test.
9308
9309         [BZ #13787]
9310         [BZ #13922]
9311         [BZ #14036]
9312         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9313         (__ieee754_expl): Allow for and saturate large arguments.
9314         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9315         (u_threshold): Likewise.
9316         (__exp): Call __ieee754_exp before checking for overflow and
9317         underflow.
9318         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9319         (u_threshold): Likewise.
9320         (__expf): Call __ieee754_expf before checking for overflow and
9321         underflow.
9322         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9323         (u_threshold): Likewise.
9324         (__expl): Call __ieee754_expl before checking for overflow and
9325         underflow.
9326         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9327         (__ieee754_expl): Allow for and saturate large arguments.
9328         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9329         missing overflow exception on overflow.
9330         (expm1_test): Do not allow missing overflow exception on overflow.
9331
9332         * sysdeps/i386/fpu/e_expl.c: Move to ...
9333         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9334         rather than using inline asm.
9335         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9336         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9337         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9338
9339         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9340         (nice): Likewise.
9341         (poll): Likewise.
9342         (signal): Likewise.
9343         (time): Likewise.
9344         (times): Likewise.
9345
9346 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9347
9348         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9349         sysdeps/unix/common/syscalls.list.
9350         (fchmod): Likewise.
9351         (fchown): Likewise.
9352         (ftruncate): Likewise.
9353         (getrusage): Likewise.
9354         (gettimeofday): Likewise.
9355         (setpgid): Likewise.
9356         (setregid): Likewise.
9357         (setreuid): Likewise.
9358         (sigaction): Likewise.
9359         (truncate): Likewise.
9360         (vhangup): Likewise.
9361         * sysdeps/unix/common/syscalls.list: Remove file.
9362         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9363         * sysdeps/unix/sysv/linux/Implies: Likewise.
9364
9365 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9366
9367         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9368         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9369         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9370         Moved to ...
9371         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9372         Here.
9373         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9374         to ...
9375         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9376         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9377         to ...
9378         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9379         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9380         to ...
9381         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9382         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9383         to ...
9384         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9385         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9386         to ...
9387         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9388         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9389         to ...
9390         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9391         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9392         to ...
9393         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9394         Here.
9395         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9396         to ...
9397         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9398         Here.
9399         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9400         to ...
9401         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9402         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9403         Moved to ...
9404         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9405         Here.
9406         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9407         to ...
9408         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9409
9410 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9411
9412         * sysdeps/unix/common/bits/dirent.h: Remove file.
9413         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9414
9415         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9416         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9417         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9418         * sysdeps/unix/bsd/isatty.c: Likewise.
9419         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9420         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9421         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9422
9423 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9424
9425         [BZ #13563]
9426         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9427         long double comparison inaccuracies.
9428         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9429         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9430
9431 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9432
9433         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9434         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9435
9436 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9437
9438         [BZ #14049]
9439         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9440         nonzero digits before rounding a hex value.
9441         * stdlib/tst-strtod.c (tests): Add another test.
9442
9443 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9444
9445         * sysdeps/s390/fpu/libm-test-ulps: Update.
9446
9447 2012-05-03  Andreas Jaeger  <aj@suse.de>
9448
9449         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9450         does not get optimized out.
9451         (malloc_opt_barrier): New.
9452
9453 2012-05-03  Andreas Jaeger  <aj@suse.de>
9454             Roland McGrath  <roland@hack.frob.com>
9455
9456         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9457         intermediate file deletion.
9458         (generated): Add .symlist files.
9459
9460 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9461
9462         [BZ #13775]
9463         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9464         Redirect under this condition.
9465         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9466         [__USE_GNU] (__dprintf_chk): Not under this condition.
9467         [__USE_GNU] (__vdprintf_chk): Likewise.
9468         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9469         under this condition.
9470         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9471         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9472         [__USE_XOPEN2K8] (vdprintf): Likewise.
9473         [__USE_GNU] (__dprintf_chk): Not under this condition.
9474         [__USE_GNU] (__vdprintf_chk): Likewise.
9475         [__USE_GNU] (dprintf): Likewise.
9476         [__USE_GNU] (vdprintf): Likewise.
9477
9478 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9479
9480         * elf/Makefile (common-generated): Set this instead of generated for
9481         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9482         $(all-built-dso)-derived lists.
9483
9484 2012-05-03  Andreas Jaeger  <aj@suse.de>
9485
9486         * sysdeps/i386/fpu/libm-test-ulps: Update.
9487
9488         * FAQ: Removed.
9489         * FAQ.in: Likewise.
9490         * scripts/gen-FAQ.pl: Likewise.
9491         * manual/install.texi (Installation): Point to online location of
9492         FAQ.
9493         * Makefile (files-for-dist): Remove FAQ.
9494         (FAQ): Remove.
9495
9496 2012-05-02  Allan McRae  <allan@archlinux.org>
9497
9498         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9499         (LDFLAGS-reldepmod5.so): Likewise.
9500         (LDFLAGS-reldep6mod1.so): Likewise.
9501         (LDFLAGS-reldep6mod4.so): Likewise.
9502         (LDFLAGS-reldep8mod3.so): Likewise.
9503         (LDFLAGS-unload4mod1.so): Likewise.
9504         (LDFLAGS-unload4mod2.so): Likewise.
9505         (LDFLAGS-tst-initorder): Likewise.
9506         (LDFLAGS-tst-initordera2.so): Likewise.
9507         (LDFLAGS-tst-initordera3.so): Likewise.
9508         (LDFLAGS-tst-initordera4.so): Likewise.
9509         (LDFLAGS-tst-initorderb2.so): Likewise.
9510         (LDFLAGS-noload): Likewise.
9511         (LDFLAGS-next): Likewise.
9512         (LDFLAGS-order2mod1.so): Likewise.
9513         (LDFLAGS-order2mod2.so): Likewise.
9514         (LDFLAGS-tst-initorder2): Likewise.
9515         (LDFLAGS-tst-initorder2a.so): Likewise.
9516         (LDFLAGS-tst-initorder2b.so): Likewise.
9517         (LDFLAGS-tst-initorder2c.so): Likewise.
9518         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9519
9520 2012-05-02  David S. Miller  <davem@davemloft.net>
9521
9522         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9523
9524 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9525
9526         [BZ #14055]
9527         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9528
9529 2012-05-02  Andreas Jaeger  <aj@suse.de>
9530
9531         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9532         since we manipulate rounding mode.
9533         (CPPFLAGS-test-idouble.c): Likewise.
9534         (CPPFLAGS-test-ifloat.c): Likewise.
9535         (CFLAGS-test-ldouble.c): Likewise.
9536         (CFLAGS-test-double.c): Likewise.
9537         (CFLAGS-test-float.c): Likewise.
9538         (CFLAGS-test-misc.c): Likewise.
9539         (CFLAGS-test-test-fenv.c): Likewise.
9540
9541 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9542
9543         [BZ #2550]
9544         [BZ #2570]
9545         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9546         comparisons to determine direction to adjust input.
9547
9548 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9549
9550         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9551         output to the target.
9552
9553         * scripts/localplt.awk: New file.
9554         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9555         (check-localplt-CFLAGS): Variable removed.
9556         ($(all-built-dso:=.jmprel)): New static pattern rule.
9557         (generated): Add those targets.
9558         (localplt-built-dso): New variable.
9559         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9560
9561         * elf/check-localplt.c: File removed.
9562
9563         * scripts/check-execstack.awk: New file.
9564         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9565         (check-execstack-CFLAGS): Variable removed.
9566         ($(objpfx)check-execstack.h): Target removed.
9567         ($(objpfx)execstack-default): New target.
9568         (generated): Add that instead of check-execstack.h.
9569         ($(all-built-dso:=.phdr)): New static pattern rule.
9570         (generated): Add those targets.
9571         * elf/check-execstack.c: File removed.
9572
9573         * scripts/check-textrel.awk: New file.
9574         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9575         (check-textrel-CFLAGS): Variable removed.
9576         (all-built-dso): Use := to define.o
9577         ($(all-built-dso:=.dyn)): New static pattern rule.
9578         (generated): Add those targets.
9579         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9580         * config.make.in (READELF): New substituted variable.
9581         * elf/check-textrel.c: File removed.
9582
9583 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9584
9585         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9586         allow.
9587         * conform/data/ctype.h-data [C99-based standards] (isblank):
9588         Expect function.
9589         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9590         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9591         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9592         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9593         Specify type.  Require positive value.
9594         (EILSEQ): Likewise.
9595         (ERANGE): Likewise.
9596         [ISO || POSIX] (EILSEQ): Do not expect.
9597         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9598         Specify type.  Require positive value.
9599         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9600         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9601         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9602         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9603         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9604         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9605         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9606         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9607         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9608         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9609         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9610         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9611         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9612         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9613         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9614         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9615         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9616         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9617         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9618         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9619         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9620         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9621         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9622         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9623         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9624         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9625         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9626         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9627         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9628         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9629         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9630         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9631         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9632         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9633         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9634         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9635         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9636         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9637         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9638         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9639         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9640         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9641         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9642         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9643         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9644         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9645         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9646         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9647         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9648         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9649         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9650         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9651         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9652         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9653         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9654         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9655         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9656         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9657         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9658         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9659         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9660         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9661         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9662         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9663         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9664         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9665         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9666         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9667         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9668         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9669         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9670         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9671         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9672         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9673         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9674         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9675         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9676         Require >= 2.
9677         (FLT_ROUNDS): Expect as macro, not constant.
9678         (FLT_MANT_DIG): Use macro-int-constant.
9679         (DBL_MANT_DIG): Likewise.
9680         (LDBL_MANT_DIG): Likewise.
9681         (FLT_DIG): Likewise.
9682         (DBL_DIG): Likewise.
9683         (LDBL_DIG): Likewise.
9684         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9685         (DBL_MIN_EXP): Likewise.
9686         (LDBL_MIN_EXP): Likewise.
9687         (FLT_MAX_EXP): Use macro-int-constant.
9688         (DBL_MAX_EXP): Likewise.
9689         (LDBL_MAX_EXP): Likewise.
9690         (FLT_MAX_10_EXP): Likewise.
9691         (DBL_MAX_10_EXP): Likewise.
9692         (LDBL_MAX_10_EXP): Likewise.
9693         (FLT_MAX): Use macro-constant.
9694         (DBL_MAX): Likewise.
9695         (LDBL_MAX): Likewise.
9696         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9697         (DBL_EPSILON): Likewise.
9698         (LDBL_EPSILON): Likewise.
9699         (FLT_MIN): Likewise.
9700         (DBL_MIN): Likewise.
9701         (LDBL_MIN): Likewise.
9702         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9703         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9704         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9705         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9706         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9707         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9708         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9709         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9710         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9711         [ISO11] (FLT_TRUE_MIN): Likewise.
9712         [ISO11] (LDBL_TRUE_MIN): Likewise.
9713         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9714         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9715         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9716         (SCHAR_MAX): Likewise.
9717         (UCHAR_MAX): Likewise.
9718         (CHAR_MIN): Likewise.
9719         (CHAR_MAX): Likewise.
9720         (MB_LEN_MAX): Use macro-int-constant.
9721         (SHRT_MIN): Use macro-int-constant.  Specify type.
9722         (SHRT_MAX): Likewise.
9723         (USHRT_MAX): Likewise.
9724         (INT_MAX): Likewise.
9725         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9726         bound negative.
9727         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9728         bound with "U".
9729         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9730         bound with "L".
9731         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9732         bound negative.  Suffix upper bound with "L".
9733         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9734         bound with "UL".
9735         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9736         Specify type.
9737         [C99-based standards] (LLONG_MAX): Likewise.
9738         [C99-based standards] (ULLONG_MAX): Likewise.
9739         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9740         == 0.
9741         [ISO11] (max_align_t): Require type.
9742         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9743
9744         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9745         from $CFLAGS, without defining away __attribute__ calls.
9746         (checknamespace): Use $CFLAGS_namespace.
9747
9748         * conform/conformtest.pl (@keywords): Only include C99 keywords
9749         for standards based on C99 or C11.
9750
9751         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9752         Disable tests.
9753         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9754         UNIX98]: Likewise.
9755
9756         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9757         usability of symbols in #if.
9758
9759         * conform/conformtest.pl: If macro or constant types start
9760         "promoted:", expect the symbol to be of the following type
9761         promoted by the integer promotions.
9762
9763         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9764         in one place.  Also handle "macro-constant".
9765
9766         * conform/conformtest.pl: Only accept expected macro values with
9767         "==".  Parse all "macro" lines in one place.
9768         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9769
9770         * conform/conformtest.pl: Handle braced types on "constant" lines
9771         instead of handling "typed-constant".
9772         * conform/data/signal.h-data: Use "constant" instead of
9773         "typed-constant".
9774
9775         * conform/conformtest.pl: Handle "optional-" at start of lines in
9776         one place rather than duplicating several cases.  Handle each
9777         format of "macro" line with initial "optional-".
9778
9779         * conform/conformtest.pl: Only accept expected constant or
9780         optional-constant values with "==".  Parse all "constant" lines in
9781         one place.  Parse all "optional-constant" lines in one place.
9782         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9783         * conform/data/fmtmsg.h-data: Likewise.
9784         * conform/data/netinet/in.h-data: Likewise.
9785         * conform/data/tar.h-data: Likewise.
9786         * conform/data/limits.h-data: Use "==" form on "constant" and
9787         "optional-constant" lines.
9788
9789         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9790         Use -std=c99 for XOPEN2K.
9791         (@knownproblems): Remove.
9792         (newtoken): Don't check %isknown.
9793
9794         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9795         Do not expect macro.
9796         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9797         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9798         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9799         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9800         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9801         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9802         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9803         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9804         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9805         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9806         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9807         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9808         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9809         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9810         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9811         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9812         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9813         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9814         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9815         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9816         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9817         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9818         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9819         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9820         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9821         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9822         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9823         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9824         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9825         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9826         [XPG3] (acosh): Likewise.
9827         [XPG3] (asinh): Likewise.
9828         [XPG3] (atanh): Likewise.
9829         [XPG3] (cbrt): Likewise.
9830         [XPG3] (expm1): Likewise.
9831         [XPG3] (ilogb): Likewise.
9832         [XPG3] (log1p): Likewise.
9833         [XPG3] (logb): Likewise.
9834         [XPG3] (nextafter): Likewise.
9835         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9836         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9837         [XPG3] (remainder): Likewise.
9838         [XPG3] (rint): Likewise.
9839         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9840         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9841         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9842         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9843         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9844         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9845         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9846         [UNIX98 || XOPEN2K] (scalb): Expect.
9847         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9848         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9849         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9850         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9851         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9852         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9853         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9854         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9855         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9856         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9857         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9858         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9859         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9860         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9861         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9862         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9863         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9864         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9865         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9866         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9867         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9868         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9869         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9870         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9871         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9872         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9873         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9874         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9875         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9876         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9877         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9878         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9879         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9880         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9881         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9882         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9883         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9884         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9885         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9886         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9887         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9888         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9889         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9890         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9891         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9892         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9893         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9894         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9895         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9896         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9897         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9898         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9899         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9900         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9901         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9902         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9903         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9904         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9905         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9906         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9907         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9908         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9909         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9910         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9911         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9912         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9913         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9914         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9915         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9916         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9917         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9918         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9919         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9920         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9921         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9922         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9923         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9924         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9925         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9926         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9927         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9928         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9929         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9930         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9931         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9932         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9933         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9934         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9935         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9936         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9937         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9938         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9939         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9940         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9941         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9942         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9943         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9944         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9945         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9946         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9947         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9948         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9949         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9950         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9951         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9952         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9953         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9954         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9955         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
9956         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
9957         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
9958         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
9959         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
9960         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
9961         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
9962         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
9963         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
9964         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
9965         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
9966         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
9967         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
9968         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
9969         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
9970         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
9971         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
9972         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
9973         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
9974         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
9975         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
9976         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
9977         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
9978         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
9979         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
9980         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
9981         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
9982         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
9983         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
9984
9985         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
9986         _XOPEN_SOURCE_EXTENDED for XPG4.
9987
9988         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
9989
9990         * Makeconfig (localtime): Remove variable.
9991         (inst_localtime-file): Likewise.
9992
9993 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9994
9995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
9996         Update.
9997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9998         Update.
9999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
10000         Update.
10001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
10002         Update.
10003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
10004         Update.
10005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
10006         Update.
10007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10008         Update.
10009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
10010         Update.
10011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10012         Update.
10013
10014 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10015
10016         [BZ #2550]
10017         [BZ #2570]
10018         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
10019         comparisons to determine direction to adjust input.
10020         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10021         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
10022         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10023         Likewise.
10024         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10025         Likewise.
10026         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10027         Likewise.
10028         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10029         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10030         Likewise.
10031         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10032         Likewise.
10033         * math/libm-test.inc (nexttoward_test): Add more tests.
10034
10035 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10036
10037         [BZ #14040]
10038         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10039         in version GLIBC_2.1, not GLIBC_2.0.
10040         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10041         Likewise.
10042
10043 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10044
10045         [BZ #13942]
10046         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10047         (1 - x) * (1 + x).
10048         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10049         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10050         * math/libm-test.inc (acos_test): Add more tests.
10051         (asin_test): Likewise.
10052         * sysdeps/i386/fpu/libm-test-ulps: Update.
10053         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10054
10055         [BZ #14034]
10056         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10057         of square root.
10058         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10059         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10060         * math/libm-test.inc (acos_test_tonearest): New function.
10061         (acos_test_towardzero): Likewise.
10062         (acos_test_downward): Likewise.
10063         (acos_test_upward): Likewise.
10064         (asin_test_tonearest): Likewise.
10065         (asin_test_towardzero): Likewise.
10066         (asin_test_downward): Likewise.
10067         (asin_test_upward): Likewise.
10068         (main): Call the new functions.
10069         * sysdeps/i386/fpu/libm-test-ulps: Update.
10070         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10071
10072         [BZ #13884]
10073         [BZ #13924]
10074         * math/e_exp10.c: Include <float.h>.
10075         (__ieee754_exp10): Handle underflow here rather than multiplying
10076         large negative argument by M_LN10.
10077         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10078         of __ieee754_expf.
10079         * math/e_exp10l.c: Include <float.h>.
10080         (__ieee754_exp10l): Handle underflow here rather than multiplying
10081         large negative argument by M_LN10l.
10082         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10083         spurious overflow exception on underflow.
10084
10085 2012-04-29  Marek Polacek  <polacek@redhat.com>
10086
10087         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10088         (__fortify_function): New macro.
10089         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10090         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10091         __extern_always_inline.
10092         * libio/bits/stdio2.h: Likewise.
10093         * libio/bits/stdio.h: Likewise.
10094         * string/string.h: Likewise.
10095         * string/bits/string3.h: Likewise.
10096         * include/stdio.h: Likewise.
10097         * stdlib/bits/stdlib.h: Likewise.
10098         * stdlib/stdlib.h: Likewise.
10099         * rt/bits/mqueue2.h: Likewise.
10100         * rt/mqueue.h: Likewise.
10101         * posix/bits/unistd.h: Likewise.
10102         * posix/unistd.h: Likewise.
10103         * io/bits/poll2.h: Likewise.
10104         * io/bits/fcntl2.h: Likewise.
10105         * io/fcntl.h: Likewise.
10106         * io/sys/poll.h: Likewise.
10107         * misc/bits/syslog.h: Likewise.
10108         * misc/bits/syslog-ldbl.h: Likewise.
10109         * misc/sys/syslog.h: Likewise.
10110         * socket/bits/socket2.h: Likewise.
10111         * socket/sys/socket.h: Likewise.
10112         * debug/tst-chk1.c: Likewise.
10113         * wcsmbs/bits/wchar2.h: Likewise.
10114         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10115         * wcsmbs/wchar.h: Likewise.
10116
10117 2012-04-29  Andreas Jaeger  <aj@suse.de>
10118
10119         * Makerules (tests): Remove enable-check-abi protection.
10120         (check-abi-warn): Remove.
10121         (check-abi-%): Remove check-abi-warn usage.
10122
10123         * configure.in: Remove check-abi configure option.
10124         * configure: Regenerated.
10125         * config.make.in (enable-check-abi): Remove.
10126
10127 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10128
10129         [BZ #14033]
10130         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10131         double functions to double *_finite functions.
10132
10133         [BZ #13941]
10134         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10135         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10136         LDBL_MIN_EXP.
10137         * stdio-common/Makefile (tests): Add tst-sprintf3.
10138         * stdio-common/tst-sprintf3.c: New file.
10139
10140         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10141         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10142
10143 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10144
10145         * conform/conformtest.pl: Remove duplicate typed-constant
10146         handling.
10147
10148 2012-04-28  David S. Miller  <davem@davemloft.net>
10149
10150         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10151         (check-abi-%): Remove AWK script prerequisite and explicit
10152         abilist directory.
10153         (check-abi): Rewrite to just diff the symlist with the abilist.
10154         (config-tls, config-abi-config): Delete, no longer used.
10155         (update-abi-%): Remove AWK script and explicit abilist directory.
10156         (update-abi): Rewrite to simply compare and conditionally copy the
10157         symlist and the sysdep abilist file.  Remove update-abi-config
10158         checks.
10159         * abilist/ld.abilist: Remove.
10160         * abilist/libBrokenLocale.abilist: Remove.
10161         * abilist/libanl.abilist: Remove.
10162         * abilist/libcrypt.abilist: Remove.
10163         * abilist/libdl.abilist: Remove.
10164         * abilist/librt.abilist: Remove.
10165         * abilist/libthread_db.abilist: Remove.
10166         * abilist/libutil.abilist: Remove.
10167         * scripts/extract-abilist.awk: Remove.
10168         * scripts/merge-abilist.awk: Remove.
10169         * sysdeps/generic/libcidn.abilist: New file.
10170         * sysdeps/generic/libnss_compat.abilist: New file.
10171         * sysdeps/generic/libnss_db.abilist: New file.
10172         * sysdeps/generic/libnss_dns.abilist: New file.
10173         * sysdeps/generic/libnss_files.abilist: New file.
10174         * sysdeps/generic/libnss_hesiod.abilist: New file.
10175         * sysdeps/generic/libnss_nis.abilist: New file.
10176         * sysdeps/generic/libnss_nisplus.abilist: New file.
10177         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10178         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10179         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10180         file.
10181         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10182         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10183         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10184         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10185         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10186         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10187         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10188         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10189         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10190         file.
10191         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10192         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10193         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10194         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10195         file.
10196         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10197         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10198         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10199         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10200         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10201         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10202         file.
10203         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10204         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10205         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10206         file.
10207         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10208         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10209         New file.
10210         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10211         New file.
10212         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10213         New file.
10214         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10215         New file.
10216         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10217         New file.
10218         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10219         New file.
10220         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10221         New file.
10222         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10223         New file.
10224         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10225         New file.
10226         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10227         New file.
10228         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10229         New file.
10230         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10231         New file.
10232         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10233         New file.
10234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10235         file.
10236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10237         New file.
10238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10239         New file.
10240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10241         file.
10242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10243         New file.
10244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10245         New file.
10246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10247         file.
10248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10249         New file.
10250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10251         New file.
10252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10253         New file.
10254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10255         New file.
10256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10257         New file.
10258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10259         New file.
10260         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10262         file.
10263         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10264         New file.
10265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10266         file.
10267         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10268         file.
10269         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10270         file.
10271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10272         file.
10273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10274         file.
10275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10276         New file.
10277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10278         file.
10279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10280         file.
10281         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10282         New file.
10283         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10284         file.
10285         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10286         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10287         file.
10288         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10289         New file.
10290         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10291         file.
10292         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10293         file.
10294         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10295         file.
10296         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10297         file.
10298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10299         file.
10300         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10301         New file.
10302         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10303         file.
10304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10305         file.
10306         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10307         New file.
10308         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10309         file.
10310         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10311         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10312         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10313         file.
10314         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10315         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10316         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10317         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10318         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10319         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10320         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10321         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10322         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10323         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10324         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10325         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10326         file.
10327         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10328         New file.
10329         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10330         file.
10331         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10332         file.
10333         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10334         file.
10335         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10336         file.
10337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10338         file.
10339         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10340         New file.
10341         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10342         New file.
10343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10344         file.
10345         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10346         New file.
10347         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10348         file.
10349         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10350         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10351         file.
10352         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10353         New file.
10354         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10355         file.
10356         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10357         file.
10358         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10359         file.
10360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10361         file.
10362         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10363         file.
10364         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10365         New file.
10366         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10367         New file.
10368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10369         file.
10370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10371         New file.
10372         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10373         file.
10374
10375 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10376
10377         * conform/conformtest.pl: Fix typo in handling typed-constant from
10378         allow-header.
10379
10380 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10381
10382         * README: Cut down references to pre-2.6 Linux kernels and
10383         Linuxthreads.  Update lists of configurations in libc and ports
10384         and sort alphabetically.  Say "or newer" with Linux kernel version
10385         requirements.
10386
10387         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10388
10389 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10390
10391         [BZ #887]
10392         * math/libm-test.inc (logb_test_downward): New test to expose
10393         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10394         rounding mode.
10395
10396 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10397
10398         [BZ #14027]
10399         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10400         to be done.
10401         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10402         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10403
10404 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10405
10406         * sysdeps/unix/i386/brk.S: Remove file.
10407         * sysdeps/unix/i386/dl-brk.S: Likewise.
10408         * sysdeps/unix/i386/pipe.S: Likewise.
10409         * sysdeps/unix/i386/sigreturn.S: Likewise.
10410         * sysdeps/unix/i386/syscall.S: Likewise.
10411         * sysdeps/unix/i386/vfork.S: Likewise.
10412         * sysdeps/unix/i386/wait.S: Likewise.
10413
10414         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10415         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10416
10417         * configure.in (arm*-none*): Do not allow without
10418         --enable-hacker-mode.
10419         (netbsd*): Remove case setting base_os.
10420         (386bsd*): Likewise.
10421         (freebsd*): Likewise.
10422         (bsdi*): Likewise.
10423         (osf*): Likewise.
10424         (sunos*): Likewise.
10425         (ultrix*): Likewise.
10426         (newsos*): Likewise.
10427         (dynix*): Likewise.
10428         (*bsd*): Likewise.
10429         (sysv*): Likewise.
10430         (isc*): Likewise.
10431         (esix*): Likewise.
10432         (sco*): Likewise.
10433         (minix*): Likewise.
10434         (irix4*): Likewise.
10435         (irix6*): Likewise.
10436         (solaris[2-9]*): Likewise.
10437         (none): Likewise.
10438         * configure: Regenerated.
10439
10440 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10441
10442         [BZ #11521]
10443         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10444         overflow or cancellation in calculating denominator.
10445         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10446         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10447         down expression to avoid unexpected rounding in newer GCCs.
10448         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10449
10450 2012-04-26  David S. Miller  <davem@davemloft.net>
10451
10452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10453         long-double compat symbols.
10454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10459         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10460         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10461         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10463         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10464         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10466         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10467
10468 2012-04-25  David S. Miller  <davem@davemloft.net>
10469
10470         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10471         HWCAP_* values only after the memory barriers have been defined.
10472         (atomic_full_barrier): Define.
10473         (atomic_read_barrier): Define.
10474         (atomic_write_barrier): Define.
10475
10476 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10477
10478         * shlib-versions: Add libgcc_s version information.
10479         * sysdeps/generic/libgcc_s.h: Remove.
10480         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10481         libgcc_s.h.
10482         * sysdeps/gnu/unwind-resume.c: Likewise.
10483         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10484
10485 2012-04-25  David S. Miller  <davem@davemloft.net>
10486
10487         * sysdeps/unix/sparc/brk.S: Delete.
10488         * sysdeps/unix/sparc/dl-brk.S: Delete.
10489         * sysdeps/unix/sparc/pipe.S: Delete.
10490         * sysdeps/unix/sparc/sysdep.S: Delete.
10491         * sysdeps/unix/sparc/sysdep.h: Delete.
10492         * sysdeps/unix/sparc/vfork.S: Delete.
10493         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10494         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10495         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10496         ret_ERRVAL, r0, r1, MOVE): Define.
10497         (JUMPTARGET): Remove.
10498         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10499         sysdeps/unix/sparc/sysdep.h
10500         (ENTRY, END): Remove.
10501         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10502
10503 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10504
10505         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10506         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10507         -DIS_IN_build.
10508
10509         * timezone/README: Update upstream location and email address for
10510         tzcode and tzdata.
10511         * timezone/zdump.c: Update from tzcode 2012b.
10512         * timezone/zic.c: Likewise.
10513
10514         * configure.in (libc_cv_as_needed): Remove test.
10515         * configure: Regenerated.
10516         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10517         conditional definition.
10518         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10519         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10520         * config.make.in (have-as-needed): Remove variable.
10521
10522 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10523             Paul Pluzhnikov  <ppluzhnikov@google.com>
10524
10525         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10526         strings correctly.
10527
10528 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10529
10530         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10531         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10532         * sysdeps/sh/strlen.S: Likewise.
10533
10534 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10535
10536         * sysdeps/unix/fork.S: Remove file.
10537         * sysdeps/unix/i386/fork.S: Likewise.
10538         * sysdeps/unix/sparc/fork.S: Likewise.
10539
10540         * sysdeps/unix/system.c: Remove file.
10541         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10542
10543         * sysdeps/unix/getegid.S: Remove file.
10544         * sysdeps/unix/geteuid.S: Likewise.
10545
10546 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10547
10548         * scripts/check-localplt.awk: New file.
10549         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10550         of diff.
10551         * scripts/data/localplt-generic.data: Add a comment.
10552
10553         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10554         NODE when __dir_mkfile failed.
10555         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10556         Reported by Ludovic Courtès <ludo@gnu.org>.
10557
10558 2012-04-24  Andreas Jaeger  <aj@suse.de>
10559
10560         * Makerules (common-clean): Also remove gen-as-const-headers
10561         files.
10562
10563 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10564
10565         * Makerules (native-compile): Do not change working directory for
10566         build.  Use $(OUTPUT_OPTION) in command.
10567         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10568
10569 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10570
10571         [BZ #13886]
10572         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10573         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10574         * math/libm-test.inc (floor_test): Add more tests.
10575         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10576
10577 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10578
10579         * sysdeps/unix/getdents.c: Remove file.
10580         * sysdeps/unix/sysv/getdents.c: Likewise.
10581         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10582
10583         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10584         sysdeps/unix/mman/syscalls.list.
10585         (mmap): Likewise.
10586         (mprotect): Likewise.
10587         (msync): Likewise.
10588         (munmap): Likewise.
10589         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10590         * sysdeps/unix/mman/syscalls.list: Remove.
10591         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10592
10593         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10594         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10595         * configure: Regenerated.
10596         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10597         $(libgcc_s_suffix).
10598         * config.make.in (libgcc_s_suffix): Remove variable.
10599
10600 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10601
10602         * sysdeps/unix/sysv/gethostname.c: Move to ...
10603         * sysdeps/posix/gethostname.c: ... here.
10604
10605         * sysdeps/unix/execve.S: Remove file.
10606
10607         * sysdeps/unix/_exit.S: Remove file.
10608
10609 2012-04-23  Andreas Jaeger  <aj@suse.de>
10610
10611         [BZ #13739]
10612         * manual/Makefile: Remove make dist support, there's no
10613         need for a stand-alone documentation tar ball.
10614         (TEXI2DVI): Define always, it's not in Makeconfig.
10615         (dist): Removed.
10616         (tar-it): Removed.
10617         (edition): Removed.
10618         (glibc-doc-$(edition).tar): Removed
10619         (%.Z): Removed.
10620         (%.gz): Removed.
10621         (%.uu): Removed.
10622         (ETAGS): Remove, it's in Makeconfig.
10623         (move-if-change): Remove, it's in Makeconfig.
10624
10625 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10626
10627         [BZ #13970]
10628         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10629         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10630         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10631         (strtod_l, strtof_l, strtold_l): Remove __wur.
10632         It is not necessarily an error to ignore strtol's return value.
10633         One can reliably look at the stored endptr to decide whether
10634         the number had valid syntax.
10635
10636 2012-04-21  Andreas Jaeger  <aj@suse.de>
10637
10638         [BZ #13739]
10639         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10640
10641 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10642
10643         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10644         * sysdeps/unix/sysv/Versions: Remove file.
10645
10646 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10647
10648         [BZ #13927]
10649         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10650
10651 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10652
10653         [BZ #7064]
10654         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10655         version from __vm86.
10656
10657 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10658
10659         * sysdeps/unix/common/lxstat.c: Remove file.
10660         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10661
10662         * sysdeps/unix/sysv/Makefile: Remove file.
10663
10664         * sysdeps/unix/sysv/direct.h: Remove file.
10665
10666         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10667         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10668         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10669         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10670         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10671         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10672         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10673
10674         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10675
10676         * sysdeps/unix/xmknod.c: Remove file.
10677         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10678
10679         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10680
10681         * sysdeps/unix/sysv/i386/time.S: Remove file.
10682
10683         * sysdeps/unix/fxstat.c: Remove file.
10684         * sysdeps/unix/xstat.c: Likewise.
10685         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10686
10687         * sysdeps/unix/sysv/sigaction.c: Remove file.
10688
10689         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10690         (sysdep_headers): Remove variable.
10691         [termio.h not in sysdep_headers] (generated): Likewise.
10692         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10693         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10694         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10695         * sysdeps/unix/sysv/tcflow.c: Likewise.
10696         * sysdeps/unix/sysv/tcflush.c: Likewise.
10697         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10698         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10699         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10700         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10701         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10702
10703         * sysdeps/unix/siglist.c: Remove file.
10704
10705         * sysdeps/unix/getppid.S: Remove file.
10706
10707         * sysdeps/unix/mkdir.c: Remove file.
10708         * sysdeps/unix/rmdir.c: Likewise.
10709
10710 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10711
10712         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10713         ERR_MAX value.
10714         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10715         errlist-compat value.
10716
10717 2012-04-18  David S. Miller  <davem@davemloft.net>
10718
10719         * sysdeps/generic/memcopy.h (reg_char): Delete.
10720         * debug/strcat_chk.c: Use char, not reg_char.
10721         * debug/strcpy_chk.c: Likewise.
10722         * debug/strncat_chk.c: Likewise.
10723         * debug/strncpy_chk.c: Likewise.
10724         * string/memchr.c: Likewise.
10725         * string/memrchr.c: Likewise.
10726         * string/rawmemchr.c: Likewise.
10727         * string/strcat.c: Likewise.
10728         * string/strchr.c: Likewise.
10729         * string/strchrnul.c: Likewise.
10730         * string/strcmp.c: Likewise.
10731         * string/strcpy.c: Likewise.
10732         * string/strncat.c: Likewise.
10733         * string/strncmp.c: Likewise.
10734         * string/strncpy.c: Likewise.
10735
10736 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10737
10738         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10739         __builtin_memcopy is called when src and dest ranges are known to not
10740         overlap.
10741
10742 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10743
10744         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10745         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10746         fwd_align_merge macro call.
10747         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10748         bwd_align_merge macro call.
10749         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10750
10751 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10752
10753         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10754         bwd_align_merge macros.
10755         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10756         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10757         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10758
10759 2012-04-18  David S. Miller  <davem@davemloft.net>
10760
10761         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10762
10763 2012-04-18  Andreas Jaeger  <aj@suse.de>
10764
10765         [BZ# 6794]
10766         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10767         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10768         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10769
10770         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10771         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10772         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10773
10774         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10775         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10776         Adjust for changed ldbl-128 files.
10777
10778         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10779         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10780         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10781
10782 2012-04-17  David S. Miller  <davem@davemloft.net>
10783
10784         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10785
10786 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10787
10788         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10789         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10790         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10791         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10792         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10793         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10794
10795 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10796
10797         [BZ #6794]
10798         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10799         * math/libm-test.inc: Add ilogb errno and exception tests.
10800         * math/w_ilogb.c: New file: ilogb wrapper.
10801         * math/w_ilogbf.c: New file: ilogbf wrapper.
10802         * math/w_ilogbl.c: New file: ilogbl wrapper.
10803         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10804         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10805         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10806         exception being thrown with 0.0 as argument.
10807         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10808         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10809         exception being thrown with 0.0 as argument.
10810         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10811         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10812         exception being thrown with 0.0 as argument.
10813         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10814         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10815         exception being thrown with 0.0 as argument.
10816         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10817         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10818         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10819         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10820         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10821         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10822         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10823         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10824         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10825
10826 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10827
10828         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10829         with altivec.
10830
10831 2012-04-16  Marek Polacek  <polacek@redhat.com>
10832
10833         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10834
10835 2012-04-16  Marek Polacek  <polacek@redhat.com>
10836
10837         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10838         operands of fdivp instruction.
10839
10840 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10841
10842         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10843         * elf/tst-auditmod3b.c: Likewise.
10844         * elf/tst-auditmod4b.c: Likewise.
10845         * elf/tst-auditmod5b.c: Likewise.
10846         * elf/tst-auditmod6b.c: Likewise.
10847         * elf/tst-auditmod6c.c: Likewise.
10848         * elf/tst-auditmod7b.c: Likewise.
10849         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10850         * sysdeps/x86_64/preconfigure.in: Likewise.
10851         * sysdeps/x86_64/preconfigure: Regenerated.
10852
10853 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10854
10855         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10856         __ILP32__.
10857
10858 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10859
10860         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10861         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10862
10863 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10864
10865         [BZ #13973]
10866         * locale/iso-639.def: Fix gl language name. Spotted by
10867         Yaron Shahrabani.
10868
10869 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10870
10871         [BZ #2074]
10872         * libio/libio.h (__io_write_fn): Update comment.
10873
10874 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10875
10876         [BZ #2074]
10877         * stdio.texi (Hook Functions): The user provided writer function
10878         is not allowed to return -1.
10879
10880 2012-04-11  David S. Miller  <davem@davemloft.net>
10881
10882         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10883
10884 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10885
10886         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10887         Add a leading slash to rtkaio.
10888
10889 2012-04-11  Jim Meyering  <meyering@redhat.com>
10890
10891         [BZ #11959]
10892         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10893         It is not necessarily an error to ignore fwrite's return
10894         value.  One can reliably use ferror to test for errors after
10895         the fact.
10896
10897 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10898
10899         * bits/types.h (__snseconds_t): New type.
10900         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10901
10902         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10903         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10904         (__SNSECONDS_T_TYPE): Likewise.
10905         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10906         (__SNSECONDS_T_TYPE): Likewise.
10907         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10908         (__SNSECONDS_T_TYPE): Likewise.
10909
10910 2012-04-10  Andreas Jaeger  <aj@suse.de>
10911
10912         [BZ #2636]
10913         * manual/time.texi (Processor Time): Return type of times is
10914         elapsed real time since an arbitrary point in the past.
10915         (CPU Time): Move CLK_TCK from here...
10916         (Processor Time): ...to here.  Correct description.
10917         * manual/conf.texi (Constants for Sysconf): Correct description of
10918         _SC_CLK_TCK.
10919
10920 2012-04-10  David S. Miller  <davem@davemloft.net>
10921
10922         [BZ #13967]
10923         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10924         where the is a gap between DT_REL(A) and DT_JMPREL.
10925
10926 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10927
10928         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10929         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10930         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10931
10932 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10933
10934         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10935         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10936         (dl_main): Handle --inhibit-cache.
10937         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10938         _dl_inhibit_cache.
10939         * elf/dl-load.c (_dl_map_object): Use it.
10940         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10941
10942 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10943
10944         [BZ #13872]
10945         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10946         (__ieee754_powl): Saturate large exponents rather than testing for
10947         overflow of y*log2(x).
10948         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10949         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10950         exceptions.
10951
10952         [BZ #11521]
10953         * math/s_ctan.c: Include <float.h>.
10954         (__ctan): Avoid internal overflow or cancellation in calculating
10955         denominator.
10956         * math/s_ctanf.c: Likewise.
10957         * math/s_ctanl.c: Likewise.
10958         * math/s_ctanh.c: Likewise.
10959         * math/s_ctanhf.c: Likewise.
10960         * math/s_ctanhl.c: Likewise.
10961         * math/libm-test.inc (ctan_test): Add more tests.
10962         (ctanh_test): Likewise.
10963         * sysdeps/i386/fpu/libm-test-ulps: Update.
10964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10965
10966 2012-04-09  Andreas Jaeger  <aj@suse.de>
10967
10968         [BZ #6894]
10969         * manual/filesys.texi (Directory Entries): Mention that d_namlen
10970         is an optional BSD extension.
10971
10972         [BZ #10254]
10973         * manual/stdio.texi (Opening Streams): Document additional fopen
10974         parameters.
10975
10976 2012-04-09  Roland McGrath  <roland@hack.frob.com>
10977
10978         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
10979         %eax without telling the compiler.
10980
10981 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
10982
10983         [BZ # 13963]
10984         * manual/install.texi: Use sourceware.org.
10985
10986 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10987
10988         [BZ #13873]
10989         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
10990         (__ieee754_pow): Generate overflow and underflow using huge*huge
10991         and tiny*tiny rather than just returning constant infinity or zero
10992         for large exponents.
10993         * math/libm-test.inc (pow_test): Require overflow exceptions for
10994         applicable cases of large exponents.
10995
10996         [BZ #706]
10997         * sysdeps/i386/fpu/e_pow.S (p10): New object.
10998         (__ieee754_pow): Use iterative multiplication algorithm only for
10999         integer exponents with absolute value below 1024.  Check for odd
11000         integer exponents when using algorithm for real exponents.
11001         * math/libm-test.inc (pow_test): Add more tests.
11002         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11003
11004 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
11005
11006         [BZ #13705]
11007         * math/libm-test.inc (exp_test): Do not allow overflow exception
11008         on underflow test.
11009
11010 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
11011
11012         [BZ #13705]
11013         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
11014         instead of __kernel_standard_f.
11015
11016 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
11017
11018         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
11019         * sysdeps/x86_64/memset_chk.S: Likewise.
11020
11021 2012-04-08  Andreas Jaeger  <aj@suse.de>
11022
11023         [BZ #10153]
11024         * manual/startup.texi (Environment Access): Describe return value
11025         for putenv and setenv.
11026
11027         [BZ #6895]
11028         * manual/filesys.texi (Directory Entries): Add description for
11029         DT_LNK.
11030
11031         [BZ #6890]
11032         * manual/filesys.texi (Directory Entries): Clarify that it's file
11033         system not operating system in the description of DT_UNKNOWN.
11034
11035         [BZ #6578]
11036         * manual/syslog.texi (closelog): Fix reference, it's openlog.
11037
11038 2012-04-08  Stephen Compall  <s11@member.fsf.org>
11039
11040         [BZ #6649]
11041         * manual/llio.texi (Opening and Closing Files): Add cross
11042         reference to explain mode argument.
11043
11044 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11045
11046         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11047         * sysdeps/x86_64/memset_chk.S: Likewise.
11048
11049 2012-04-07  David S. Miller  <davem@davemloft.net>
11050
11051         * elf/elf.h (R_SPARC_WDISP10): Define.
11052         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11053         R_SPARC_SIZE32.
11054         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11055         R_SPARC_SIZE64 and R_SPARC_H34.
11056
11057 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11058
11059         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11060         conditions and remove no longer applicable assertion.
11061
11062 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11063
11064         * bits/byteswap.h: Include <features.h>.
11065         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11066         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11067
11068 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11069
11070         * bits/byteswap.h (__bswap_16): Removed.
11071         Include <bits/byteswap-16.h> to get __bswap_16.
11072         * sysdeps/i386/bits/byteswap.h: Likewise.
11073         * sysdeps/s390/bits/byteswap.h: Likewise.
11074         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11075         * bits/byteswap-16.h: New file.
11076         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11077         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11078         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11079         * string/Makefile (headers): Add bits/byteswap-16.h.
11080
11081 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11082
11083         [BZ #13895]
11084         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11085         extra indirection.
11086         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11087         * nss/tst-nss-static.c: New.
11088
11089 2012-04-06  Robert Millan  <rmh@gnu.org>
11090
11091         [BZ #6486]
11092         * manual/llio.texi (File Position Primitive): lseek
11093         refers to WHENCE when it really means OFFSET.
11094
11095 2012-04-06  Andreas Jaeger  <aj@suse.de>
11096
11097         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11098         strncmp declarations.
11099
11100         * abilist/libc.abilist: Add __poll and __ppoll.
11101
11102 2012-04-05  David S. Miller  <davem@davemloft.net>
11103
11104         * scripts/check-local-headers.sh: Accept a host triplet in the
11105         path matched by the exclude regexp.
11106
11107         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11108         definition.
11109         * sysdeps/powerpc/powerpc32/dl-machine.h
11110         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11111         * sysdeps/s390/s390-32/dl-machine.h
11112         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11113         * sysdeps/sparc/sparc32/dl-machine.h
11114         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11115         * sysdeps/sparc/sparc64/dl-machine.h
11116         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11117
11118         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11119         lazy binding.
11120         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11121         undefined symbol errors.
11122
11123         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11124         DT_NEEDED entries.
11125
11126 2012-04-05  Michael Matz  <matz@suse.de>
11127
11128         [BZ #13592]
11129         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11130
11131 2012-04-05  Andreas Jaeger  <aj@suse.de>
11132
11133         [BZ #13908]
11134         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11135         comment.
11136
11137 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11138
11139         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11140         which ROUND is no valid rounding mode.
11141
11142 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11143
11144         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11145         read again.
11146         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11147
11148 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11149
11150         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11151         an exception using FPU order intentionally.
11152
11153 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11154
11155         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11156         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11157         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11158         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11159
11160 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11161
11162         [BZ #12340]
11163         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11164         EINVAL when BUFLEN is too smal.
11165
11166 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11167
11168         [BZ #13553]
11169         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11170         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11171
11172 2012-04-03  Andreas Jaeger  <aj@suse.de>
11173
11174         [BZ #13938]
11175         * manual/setjmp.texi (System V contexts): Fix sentence.
11176
11177         [BZ #13926]
11178         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11179         New macro for this case.
11180         [!__GNUC__] (__bswap_64): New inline function for this case.
11181         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11182         * bits/byteswap.h: Likewise.
11183         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11184         ull, guard with __GLIBC_HAVE_LONG_LONG.
11185
11186         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11187         __GLIBC_HAVE_LONG_LONG.
11188
11189         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11190         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11191
11192 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11193
11194         [BZ #13691]
11195         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11196         inptr and inend, rather than using last_ch.
11197
11198 2012-04-02  David S. Miller  <davem@davemloft.net>
11199
11200         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11201         * stdio-common/printf-parse.h (read_int): Change return type to
11202         'int', return -1 on INT_MAX overflow.
11203         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11204         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11205         overflows INT_MAX.  Check for overflow of in-format-string precision
11206         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11207         SIZE_MAX not INT_MAX for integer overflow test.
11208         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11209         skip the construct in the format string but do not record anything.
11210         * stdio-common/bug22.c: Adjust to test both width/prevision
11211         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11212         explicitly for proper errno values.
11213
11214 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11215
11216         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11217         CHAR_MAX.
11218         * string/test-strcmp.c [! WIDE]: Likewise.
11219         * time/tst-mktime2.c: Likewise for INT_MAX.
11220         * string/test-string.h: #include <sys/param.h> for MIN.
11221
11222         * csu/init-first.c (__libc_init_first): Call __ctype_init.
11223         * sysdeps/i386/init-first.c (init): Likewise.
11224         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11225         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11226         * sysdeps/sh/init-first.c (init): Likewise.
11227
11228 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
11229
11230         * po/ru.po: Update from translation team.
11231         * po/vi.po: Likewise.
11232
11233 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11234
11235         * resolv/nss_dns/dns-host.c: Merge copyright years.
11236
11237 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11238
11239         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11240         Optimize memcpy with prefetch if
11241         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
11242         src, dst pointers have unequal 16 byte alignments.
11243
11244 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11245
11246         [BZ #13928]
11247         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11248         from a CNAME entry and return the minimum ttl for the query.
11249         (gaih_getanswer_slice): Likewise.
11250
11251 2012-03-30  Jeff Law  <law@redhat.com>
11252
11253         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11254         due to long keys.
11255         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11256         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11257
11258         * resolv/nss_dns/dns-host.c: Update copyright year.
11259
11260 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11261
11262         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11263         requests to save a system call.  Fix check that all bytes are sent.
11264
11265         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11266         comments for sendmmsg.
11267
11268 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11269
11270         [BZ #13691]
11271         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11272         with only 1 character between 0x0041 and 0x01b0.
11273         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11274         * wcsmbs/tst-mbsnrtowcs.c: New file.
11275
11276 2012-03-29  David S. Miller  <davem@davemloft.net>
11277
11278         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11279         small copies by hand.
11280
11281 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11282
11283         [BZ #13761]
11284         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11285         _nss_compat_initgroups_dyn): Fall back to malloc/free
11286         for large group memberships.
11287
11288 2012-03-28  David S. Miller  <davem@davemloft.net>
11289
11290         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11291         that branches into memcpy.
11292         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11293         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11294         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11295         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11296         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11297         bits.
11298         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11299         implementation too.
11300         * sysdeps/sparc/mempcpy.S: New file.
11301
11302         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11303         the IFUNC routine in the libc case.
11304         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11305
11306         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11307         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11308         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11309         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11310         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11311         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11312         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11313         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11314
11315         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11316         loop to 256 bytes instead of 64 bytes and fix test signedness.
11317
11318         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11319         * sysdeps/sparc/sparc32/Makefile: rather than here...
11320         * sysdeps/sparc/sparc64/Makefile: and here.
11321
11322 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11323
11324         * malloc/mallocbug.c: Avoid warnings about unused variables.
11325
11326 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11327
11328         [BZ #13760]
11329         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11330         in the right place. Discard and retry query if response is
11331         larger than input buffer size.
11332
11333 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11334
11335         [BZ #369]
11336         [BZ #2678]
11337         [BZ #3866]
11338         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11339         x for large integer exponent.
11340         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11341         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11342         sign of result as needed afterwards.
11343         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11344         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11345         result for underflowing pow the same as for overflow.
11346         (__kernel_standard_l): Handle powl overflow and underflow here
11347         rather than calling __kernel_standard.
11348         * math/libm-test.inc (pow_test): Add more tests.
11349
11350         [BZ #3868]
11351         [BZ #13879]
11352         [BZ #13910]
11353         [BZ #13911]
11354         [BZ #13912]
11355         [BZ #13913]
11356         [BZ #13915]
11357         [BZ #13916]
11358         [BZ #13917]
11359         [BZ #13918]
11360         [BZ #13919]
11361         [BZ #13920]
11362         [BZ #13921]
11363         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11364         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11365         (__kernel_standard_l): New function.
11366         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11367         __kernel_standard.
11368         * math/w_acosl.c (__acosl): Likewise.
11369         * math/w_asinl.c (__asinl): Likewise.
11370         * math/w_atan2l.c (__atan2l): Likewise.
11371         * math/w_atanhl.c (__atanhl): Likewise.
11372         * math/w_coshl.c (__coshl): Likewise.
11373         * math/w_exp10l.c (__exp10l): Likewise.
11374         * math/w_exp2l.c (__exp2l): Likewise.
11375         * math/w_fmodl.c (__fmodl): Likewise.
11376         * math/w_hypotl.c (__hypotl): Likewise.
11377         * math/w_j0l.c (__j0l, __y0l): Likewise.
11378         * math/w_j1l.c (__j1l, __y1l): Likewise.
11379         * math/w_jnl.c (__jnl, __ynl): Likewise.
11380         * math/w_lgammal.c (__lgammal): Likewise.
11381         * math/w_log10l.c (__log10l): Likewise.
11382         * math/w_log2l.c (__log2l): Likewise.
11383         * math/w_logl.c (__logl): Likewise.
11384         * math/w_powl.c (__powl): Likewise.
11385         * math/w_remainderl.c (__remainderl): Likewise.
11386         * math/w_scalbl.c (sysv_scalbl): Likewise.
11387         * math/w_sinhl.c (__sinhl): Likewise.
11388         * math/w_sqrtl.c (__sqrtl): Likewise.
11389         * math/w_tgammal.c (__tgammal): Likewise.
11390         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11391         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11392         * math/libm-test.inc (acos_test): Add more tests.
11393         (acosh_test): Likewise.
11394         (asin_test): Likewise.
11395         (atanh_test): Likewise.
11396         (exp_test): Likewise.
11397         (exp10_test): Likewise.
11398         (exp2_test): Likewise.
11399         (expm1_test): Likewise.
11400         (lgamma_test): Likewise.
11401         (log_test): Likewise.
11402         (log10_test): Likewise.
11403         (log1p_test): Likewise.
11404         (log2_test): Likewise.
11405         (pow_test): Do not allow some spurious overflow exceptions.
11406         (sqrt_test): Add more tests.
11407         (tgamma_test): Likewise.
11408         (y0_test): Likewise.
11409         (y1_test): Likewise.
11410         (yn_test): Likewise.
11411
11412 2012-03-27  Anton Blanchard  <anton@samba.org>
11413
11414         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11415         MAP_HUGETLB.
11416         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11417         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11418         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11419
11420 2012-03-27  David S. Miller  <davem@davemloft.net>
11421
11422         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11423
11424         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11425         have-as-vis3 check.
11426
11427 2012-03-27  Andreas Jaeger  <aj@suse.de>
11428
11429         * sysdeps/x86_64/elf/configure.in: Moved to ...
11430         * sysdeps/x86_64/configure.in: ... here.
11431         * sysdeps/x86_64/elf/start.S: Moved to ...
11432         * sysdeps/x86_64/start.S: ... here.
11433         * sysdeps/x86_64/elf/configure: Delete.
11434
11435         * sysdeps/x86_64/configure.in: Merge contents from
11436         sysdeps/i386/configure.in (without i686 check).
11437
11438         * sysdeps/i386/elf/Versions: Merge into ...
11439         * sysdeps/i386/Versions: ... this.
11440         * sysdeps/i386/elf/Versions: Delete file.
11441         * sysdeps/i386/elf/start.S: Moved to ...
11442         * sysdeps/i386/start.S: ...here.
11443         * sysdeps/i386/elf/configure.in: Merge into...
11444         * sysdeps/i386/configure.in: ...here.
11445         * sysdeps/i386/elf/configure.in: Delete file.
11446         * sysdeps/i386/elf/configure: Delete file.
11447
11448         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11449         * debug/backtracesyms.c: ... here.
11450         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11451         * debug/backtracesymsfd.c: ... here.
11452         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11453         * sysdeps/generic/ifunc-sel.h: ... here.
11454
11455         * sysdeps/unix/i386/start.c: Delete file.
11456         * sysdeps/unix/sparc/start.c: Delete file.
11457         * sysdeps/unix/start.c: Delete file.
11458
11459         * sysdeps/sh/elf/configure.in: Moved to ...
11460         * sysdeps/sh/configure.in: ... here.
11461         * sysdeps/sh/elf/start.S: Moved to ...
11462         * sysdeps/sh/start.S: ... here.
11463         * sysdeps/sh/elf/configure: Delete file.
11464
11465         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11466         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11467         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11468         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11469         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11470         * sysdeps/powerpc/powerpc64/start.S: here.
11471         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11472         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11473         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11474         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11475         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11476
11477         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11478         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11479         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11480         * sysdeps/powerpc/powerpc32/start.S: ... here.
11481         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11482         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11483         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11484
11485         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11486         * sysdeps/powerpc/ifunc-sel.h: ... here.
11487         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11488         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11489
11490         * sysdeps/sparc/elf/configure.in: Moved to ...
11491         * sysdeps/sparc/configure.in: ... here.
11492         * sysdeps/sparc/elf/configure: Delete file.
11493         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11494         * sysdeps/sparc/sparc32/start.S: ... here.
11495         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11496         * sysdeps/sparc/sparc64/start.S: ... here.
11497         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11498         * sysdeps/sparc/sparc32/Makefile: ... this.
11499         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11500         * sysdeps/sparc/sparc64/Makefile: ... this.
11501
11502         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11503         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11504         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11505         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11506         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11507         * sysdeps/s390/s390-32/setjmp.S: ... here.
11508         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11509         * sysdeps/s390/s390-32/configure.in: ... here.
11510         * sysdeps/s390/s390-32/elf/configure: Delete file.
11511         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11512         * sysdeps/s390/s390-32/start.S: ... here.
11513
11514         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11515         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11516         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11517         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11518         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11519         * sysdeps/s390/s390-64/setjmp.S: ... here.
11520         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11521         * sysdeps/s390/s390-64/configure.in: ... here
11522         * sysdeps/s390/s390-64/elf/configure: Delete file.
11523         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11524         * sysdeps/s390/s390-64/start.S: ... here.
11525         * sysdeps/s390/s390-64/elf/configure: Delete.
11526
11527         * configure.in: Remove support for elf directories in sysdeps.
11528
11529         * configure: Regenerated.
11530         * sysdeps/i386/configure: Regenerated.
11531         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11532         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11533         * sysdeps/s390/s390-32/configure: Regenerated.
11534         * sysdeps/s390/s390-64/configure: Regenerated.
11535         * sysdeps/sh/configure: Regenerated.
11536         * sysdeps/sparc/configure: Regenerated.
11537         * sysdeps/x86_64/configure: Regenerated.
11538
11539 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11540
11541         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11542
11543         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11544         denormal result into account.
11545
11546 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11547
11548         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11549         Reported by Allan McRae <allan@archlinux.org>.
11550
11551 2012-03-23  Jeff Law  <law@redhat.com>
11552
11553         * nss/getnssent.c (__nss_getent): Fix typo.
11554
11555 2012-03-23  David S. Miller  <davem@davemloft.net>
11556
11557         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11558
11559 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11560
11561         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11562         to pad to uint64_t for each field.
11563         (dl_tls_index): Replace unsigned long with uint64_t.
11564
11565 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11566         Paul Pluzhnikov  <ppluzhnikov@google.com>
11567
11568         [BZ #6528]
11569         * grp/Makefile (otherlibs): Don't set it.
11570         * inet/Makefile (otherlibs): Likewise.
11571         * login/Makefile (otherlibs): Likewise.
11572         * nscd/Makefile (otherlibs): Likewise.
11573         * posix/Makefile (otherlibs): Likewise.
11574         * pwd/Makefile (otherlibs): Likewise.
11575         * rt/Makefile (otherlibs): Likewise.
11576         * sunrpc/Makefile (otherlibs): Likewise.
11577         * nss/Makefile (otherlibs): Likewise.
11578         Add libnss_files to routines and static-only-routines.
11579         ($(objpfx)getent): Remove rule.
11580         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11581         static-only-routines.
11582
11583 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11584
11585         [BZ #13892]
11586         * math/s_cexp.c: Include <float.h>.
11587         (__cexp): Handle exp result overflowing not necessarily
11588         overflowing both real and imaginary parts of result.
11589         * math/s_cexpf.c: Likewise.
11590         * math/s_cexpl.c: Likewise.
11591         * math/libm-test.inc (cexp_test): Add more tests.
11592         * sysdeps/i386/fpu/libm-test-ulps: Update.
11593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11594
11595 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11596
11597         * include/link.h (ELFW): New macro.
11598         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11599         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11600
11601 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11602
11603         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11604         with uint64_t.
11605
11606 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11607
11608         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11609         declaration.
11610         (struct La_x32_retval): Likewise.
11611
11612 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11613
11614         * sysdeps/x86_64/preconfigure.in: New file.
11615         * sysdeps/x86_64/preconfigure: New generated file.
11616
11617 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11618
11619         [BZ #13824]
11620         * math/e_exp2l.c: Include <float.h>.
11621         (__ieee754_exp2l): Handle overflow and underflow cases
11622         separately.  Only pass fractional part of argument to
11623         __ieee754_expl.
11624         * math/libm-test.inc (exp2_test): Add more tests.
11625
11626         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11627         negating x to take absolute value.
11628         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11629         Likewise.
11630         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11631         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11632         Likewise.
11633         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11634         computing low part if x was negated.
11635         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11636
11637 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11638
11639         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11640         la_x32_gnu_pltexit.
11641         (pltexit): Cast int_retval to ptrdiff_t.
11642         * elf/tst-auditmod3b.c: Likewise.
11643         * elf/tst-auditmod4b.c: Likewise.
11644         * elf/tst-auditmod5b.c: Likewise.
11645         * elf/tst-auditmod6b.c: Likewise.
11646         * elf/tst-auditmod6c.c: Likewise.
11647         * elf/tst-auditmod7b.c: Likewise.
11648
11649         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11650         and x32_gnu_pltexit.
11651
11652         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11653         __ELF_NATIVE_CLASS.
11654         (La_x32_regs): New macro.
11655         (La_x32_retval): Likewise.
11656         (la_x32_gnu_pltenter): New function prototype.
11657         (la_x32_gnu_pltexit): Likewise.
11658
11659 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11660
11661         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11662         exponent.
11663
11664         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11665
11666         * configure.in (libc_cv_cc_nofma): Check for option to disable
11667         generation of FMA instructions.
11668         * configure: Regenerate.
11669         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11670         * sysdeps/ieee754/dbl-64/Makefile: New file.
11671         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11672         Remove brandred-fma4.
11673         (CFLAGS-brandred-fma4.c): Remove.
11674         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11675         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11676         define.
11677         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11678         define.
11679
11680 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11681
11682         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11683         LLONG_MAX != LONG_MAX.
11684         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11685         (_fitoa_word): Likewise.
11686         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11687         LLONG_MAX != LONG_MAX.
11688         * stdio-common/_itowa.h: Include <_itoa.h>.
11689         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11690         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11691         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11692         only if not defined.
11693         (_ITOA_WORD_TYPE): Likewise.
11694         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11695         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11696
11697 2012-03-21  David S. Miller  <davem@davemloft.net>
11698
11699         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11700
11701 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11702
11703         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11704         of x86_64 when setting libc_cv_slibdir, libdir and
11705         libc_cv_localedir.
11706         * sysdeps/unix/sysv/linux/configure: Regenerated.
11707
11708 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11709
11710         * manual/lang.texi (Old Varargs): Remove section.
11711         (How Variadic): Update menu.
11712         (va_start): Do not mention varargs.h.
11713
11714 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11715             Joseph Myers  <joseph@codesourcery.com>
11716
11717         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11718         link test.
11719         * configure: Regenerated.
11720
11721 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11722
11723         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11724         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11725         conformtest.pl
11726
11727 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11728
11729         * NOTES: Remove.
11730         * Makefile (files-for-dist): Remove NOTES.
11731         (NOTES): Remove rule.
11732         * README: Don't refer to NOTES.
11733         * manual/creature.texi: Don't include macros.texi.
11734         * manual/intro.texi (creature.texi): Remove comment referring to
11735         NOTES.
11736
11737         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11738         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11739         * configure: Regenerated.
11740         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11741         LIBC_TRY_CC_OPTION.
11742         (libc_cv_as_i686): Likewise.
11743         (libc_cv_cc_avx): Likewise.
11744         (libc_cv_cc_sse2avx): Likewise.
11745         (libc_cv_cc_fma4): Likewise.
11746         (libc_cv_cc_novzeroupper): Likewise.
11747         * sysdeps/i386/configure: Regenerated.
11748
11749         [BZ #13883]
11750         * sysdeps/i386/fpu/s_cexp.S: Remove.
11751         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11752         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11753         * math/libm-test.inc (cexp_test): Add more tests.
11754         * sysdeps/i386/fpu/libm-test-ulps: Update.
11755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11756
11757 2012-03-21  Allan McRae  <allan@archlinux.org>
11758
11759         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11760
11761 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11762
11763         [BZ #13871]
11764         * math/w_exp2.c: Do not include <float.h>.
11765         (o_threshold, u_threshold): Remove.
11766         (__exp2): Calculate result before checking finiteness and calling
11767         __kernel_standard.
11768         * math/w_exp2f.c: Likewise.
11769         * math/w_exp2l.c: Likewise.
11770         * math/libm-test.inc (exp2_test): Require overflow exception for
11771         1e6 input.
11772
11773         [BZ #3866]
11774         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11775         range of signed 64-bit integers before using fistpll.  Remove
11776         checks for whether integers fit in mantissa bits.
11777         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11778         the range of signed 32-bit integers before using fistpl.  Remove
11779         checks for whether integers fit in mantissa bits.
11780         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11781         (__ieee754_powl): Test for y outside the range of signed 64-bit
11782         integers before using fistpll.  Reduce 64-bit values to 63-bit
11783         ones as needed.
11784         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11785         divide-by-zero is raised for zero to large negative powers.
11786         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11787         (__ieee754_powl): Test for y outside the range of signed 64-bit
11788         integers before using fistpll.  Reduce 64-bit values to 63-bit
11789         ones as needed.
11790         * math/libm-test.inc (pow_test): Add more tests.
11791
11792 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11793
11794         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11795         <stdio-common/_itoa.h>.
11796         * debug/segfault.c: Likewise.
11797         * elf/dl-cache.c: Likewise.
11798         * elf/dl-minimal.c: Likewise.
11799         * elf/dl-misc.c: Likewise.
11800         * elf/dl-sysdep.c: Likewise.
11801         * elf/dl-version.c: Likewise.
11802         * elf/rtld.c: Likewise.
11803         * hurd/hurdsock.c: Likewise.
11804         * hurd/lookup-retry.c: Likewise.
11805         * malloc/malloc.c: Likewise.
11806         * malloc/mtrace.c: Likewise.
11807         * nscd/nscd_getgr_r.c: Likewise.
11808         * nscd/nscd_getpw_r.c: Likewise.
11809         * nscd/nscd_getserv_r.c: Likewise.
11810         * posix/getopt_init.c: Likewise.
11811         * posix/wordexp.c: Likewise.
11812         * stdio-common/_itoa.c: Likewise.
11813         * stdio-common/printf_fphex.c: Likewise.
11814         * stdio-common/vfprintf.c: Likewise.
11815         * string/_strerror.c: Likewise.
11816         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11817         * sysdeps/i386/i686/hp-timing.h: Likewise.
11818         * sysdeps/mach/_strerror.c: Likewise.
11819         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11820         * sysdeps/mach/hurd/sethostid.c: Likewise.
11821         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11822         * sysdeps/mach/xpg-strerror.c: Likewise.
11823         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11824         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11825         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11826         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11827         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11828         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11829         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11830         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11831         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11832         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11833         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11834         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11835         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11836         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11837         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11838         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11839         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11840         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11841         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11842         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11843         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11844
11845         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11846
11847         * stdio-common/_itoa.h: Moved to ...
11848         * sysdeps/generic/_itoa.h: Here.
11849
11850         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11851
11852         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11853         instead of "_itoa.h" and "_itowa.h".
11854         * stdio-common/vfprintf.: Likewise.
11855
11856 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11857
11858         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11859         <bits/wordsize.h>.
11860         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11861         (__signbit): Likwise.
11862         (llrintf): Likwise.
11863         (llrint): Likwise.
11864
11865 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11866
11867         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11868         __WORDSIZE != 64.
11869
11870 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11871
11872         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11873         OVERFLOW_EXCEPTION_OK.
11874         * math/libm-test.inc ("Philosophy"): Update comment about
11875         exception testing.
11876         (OVERFLOW_EXCEPTION): Define.
11877         (OVERFLOW_EXCEPTION_OK): Likewise.
11878         (INVALID_EXCEPTION_OK): Renumber.
11879         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11880         (IGNORE_ZERO_INF_SIGN): Likewise.
11881         (test_exceptions): Handle FE_OVERFLOW.
11882         (exp10_test): Expect overflow exceptions.
11883         (exp2_test): Likewise.
11884         (expm1_test): Likewise.
11885         (nextafter_test): Likewise.
11886         (pow_test): Likewise.
11887         (scalbn_test): Likewise.
11888         (scalbln_test): Likewise.
11889
11890 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11891
11892         * sysdeps/x86_64/bits/atomic.h
11893         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11894         64bit integer.
11895         (atomic_exchange_acq): Likewise.
11896         (__arch_exchange_and_add_body): Likewise.
11897         (__arch_add_body): Likewise.
11898         (atomic_add_negative): Likewise.
11899         (atomic_add_zero): Likewise.
11900
11901 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11902
11903         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11904         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11905
11906 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11907
11908         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11909         Check __x86_64__ instead of __WORDSIZE.
11910
11911 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11912
11913         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11914
11915 2012-03-19  David S. Miller  <davem@davemloft.net>
11916
11917         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11918
11919         * sysdeps/sparc/fpu/fenv_private.h: New file.
11920         * sysdeps/sparc/fpu/math_private.h: Use it.
11921         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11922         Remove.
11923         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11924         (libc_feholdexcept_setroundl): Remove.
11925         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11926         Remove.
11927         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11928         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11929
11930 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11931
11932         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11933         int64_t instead of long int.
11934         (INSERT_WORDS64): Likwise.
11935
11936 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11937
11938         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11939         _Unwind_GetCFA return to _Unwind_Ptr first.
11940
11941 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11942
11943         [BZ #13629]
11944         * math/s_clog.c: Include <float.h>.
11945         (__clog): Scale large or subnormal inputs.
11946         * math/s_clogf.c: Likewise.
11947         * math/s_clogl.c: Likewise.
11948         * math/s_clog10.c: Include <float.h>.
11949         (M_LOG10_2): Define.
11950         (__clog10): Scale large or subnormal inputs.
11951         * math/s_clog10f.c: Likewise.
11952         * math/s_clog10l.c: Likewise.
11953         * math/libm-test.inc (clog_test): Add more tests.
11954         (clog10_test): Likewise.
11955         * sysdeps/i386/fpu/libm-test-ulps: Update.
11956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11957
11958         [BZ #11451]
11959         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
11960         x and y.
11961         * math/libm-test.inc (atan2_test): Add another test.
11962
11963         * Makerules (common-objdir-compile): Remove.
11964         * sysdeps/unix/Makefile (config-generated): Do not add
11965         $(unix-generated) to variable.
11966         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
11967         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
11968         Remove rule.
11969         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
11970         Likewise.
11971         [generic bits/local_lim.h] (before-compile): Do not append to
11972         variable.
11973         [generic bits/local_lim.h] (common-generated): Likewise.
11974         [generic sys/param.h] (before-compile): Do not append to variable.
11975         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
11976         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
11977         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
11978         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
11979         include.
11980         [generic sys/param.h] (sys/param.h-includes): Remove variable.
11981         [generic sys/param.h] (sys/param.h-includes): Remove rule.
11982         [generic sys/param.h] ($(addprefix
11983         $(common-objpfx),$(sys/param.h-includes))): Likewise.
11984         [generic sys/param.h] (common-generated): Do not append to
11985         variable.
11986         [generic sys/param.h] (sysdep_headers): Likewise.
11987         [generic bits/errno.h] (before-compile): Do not append to
11988         variable.
11989         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
11990         rule.
11991         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
11992         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
11993         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
11994         [generic bits/errno.h] (common-generated): Do not append to
11995         variable.
11996         [generic bits/ioctls.h] (before-compile): Do not append to
11997         variable.
11998         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
11999         rule.
12000         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
12001         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
12002         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
12003         rule.
12004         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
12005         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
12006         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
12007         [generic bits/ioctls.h] (common-generated): Do not append to
12008         variable.
12009         [generic sys/syscall.h] (syscall.h): Remove variable.
12010         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
12011         rule.
12012         [generic sys/syscall.h] (before-compile): Do not append to
12013         variable.
12014         [generic sys/syscall.h] (common-generated): Likewise.
12015         * sysdeps/unix/errnos-tmpl.c: Remove file.
12016         * sysdeps/unix/errnos.awk: Likewise.
12017         * sysdeps/unix/ioctls-tmpl.c: Likewise.
12018         * sysdeps/unix/ioctls.awk: Likewise.
12019         * sysdeps/unix/mk-local_lim.c: Likewise.
12020         * sysdeps/unix/snarf-ioctls: Likewise.
12021
12022 2012-03-19  Richard Henderson  <rth@twiddle.net>
12023
12024         * sysdeps/i386/fpu/fenv_private.h: New file.
12025         * sysdeps/i386/fpu/math_private.h: Use it.
12026         (math_opt_barrier, math_force_eval): Remove.
12027         (libc_feholdexcept_setround_53bit): Remove.
12028         (libc_feupdateenv_53bit): Remove.
12029         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12030         (math_opt_barrier, math_force_eval): Remove.
12031         (libc_feholdexcept): Remove.
12032         (libc_feholdexcept_setround): Remove.
12033         (libc_fetestexcept, libc_fesetenv): Remove.
12034         (libc_feupdateenv_test): Remove.
12035         (libc_feupdateenv, libc_feholdsetround): Remove.
12036         (libc_feresetround): Remove.
12037
12038         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12039         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12040
12041         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12042         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12043         (libc_feupdateenv_testl): New.
12044         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12045         (libc_feupdateenv_testf): New.
12046         (libc_feupdateenv): Use libc_feupdateenv_test.
12047         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12048         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12049
12050         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12051         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12052         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12053         (libc_feresetround_noex): New.
12054         (libc_feresetround_noexf): New.
12055         (libc_feresetround_noexl): New.
12056         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12057         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12058         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12059         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12060         SET_RESTORE_ROUND.
12061         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12062         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12063         (__cos): Likewise.
12064         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12065         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12066         SET_RESTORE_ROUND_NOEX.
12067         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12068         SET_RESTORE_ROUND_NOEXF.
12069         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12070         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12071         (libc_feholdsetroundf): New.
12072         (libc_feresetround, libc_feresetroundf): New.
12073
12074         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12075         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12076         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12077
12078         * sysdeps/generic/math_private.h: Include <fenv.h>.
12079         (default_libc_feholdexcept): New.
12080         (default_libc_feholdexcept_setround): New.
12081         (default_libc_fesetenv, default_libc_feupdateenv): New.
12082         (libc_feholdexcept): Only define if undefined.
12083         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12084         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12085         (libc_feholdexcept_setroundl): Likewise.
12086         (libc_feholdexcept_setround_53bit): Likewise.
12087         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12088         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12089         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12090         (libc_feupdateenv_53bit): Likewise.
12091         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12092         (libc_feholdexcept): Convert from macro to inline function.
12093         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12094         (libc_fesetenv, libc_feupdateenv): Likewise.
12095
12096         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12097         not previously defined.
12098         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12099         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12100         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12101         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12102         * sysdeps/ieee754/flt-32/math_private.h: New file.
12103         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12104         math_private.h below SET_FLOAT_WORD.
12105         (__isnan, __isinf_ns, __finite): Remove.
12106         (__isnanf, __isinf_nsf, __finitef): Remove.
12107
12108 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12109
12110         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12111
12112 2012-03-17  David S. Miller  <davem@davemloft.net>
12113
12114         [BZ #6471]
12115         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12116         for 2.16.
12117
12118 2012-03-16  David S. Miller  <davem@davemloft.net>
12119
12120         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12121         warnings.
12122
12123         [BZ #6471]
12124         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12125         properly.
12126         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12127         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12128         sysdep_routines when subdir is sysvipc.
12129         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12130         __getshmlba helper.
12131
12132         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12133
12134 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12135
12136         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12137         [__LP64__].
12138
12139 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12140
12141         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12142         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12143         (__lround): Renamed to ...
12144         (__llround): This.  Replace long int with long long int.
12145         Define lround functions as aliases of llround functions.
12146         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12147
12148 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12149
12150         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12151         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12152         adresses to uintptr_t.  Replace "long int" and "unsigned long
12153         int" with "greg_t" on va_arg.
12154
12155 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12156
12157         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12158         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12159
12160         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12161         Move e_machine check before EI_CLASS check.  Handle x32
12162         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12163         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12164         SKIP_EM_IA_64 and include
12165         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12166
12167         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12168         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12169         (add_system_dir): New macro.
12170
12171         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12172         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12173
12174 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12175
12176         [BZ #2551]
12177         [BZ #2552]
12178         [BZ #2553]
12179         [BZ #2554]
12180         [BZ #2562]
12181         [BZ #2563]
12182         [BZ #2565]
12183         [BZ #2566]
12184         [BZ #2576]
12185         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12186         (y0): Likewise.
12187         * math/w_j0f.c (j0f): Likewise.
12188         (y0f): Likewise.
12189         * math/w_j0l.c (__j0l): Likewise.
12190         (__y0l): Likewise.
12191         * math/w_j1.c (j1): Likewise.
12192         (y1): Likewise.
12193         * math/w_j1f.c (j1f): Likewise.
12194         (y1f): Likewise.
12195         * math/w_j1l.c (__j1l): Likewise.
12196         (__y1l): Likewise.
12197         * math/w_jn.c (jn): Likewise.
12198         (yn): Likewise.
12199         * math/w_jnf.c (jnf): Likewise.
12200         (ynf): Likewise.
12201         * math/w_jnl.c (__jnl): Likewise.
12202         (__ynl): Likewise.
12203         * math/libm-test.inc (j0_test): Add more tests.
12204         (j1_test): Likewise.
12205         (jn_test): Likewise.  Add trailing semicolon to existing test.
12206         (y0_test): Likewise.
12207         (y1_test): Likewise.
12208         * sysdeps/i386/fpu/libm-test-ulps: Update.
12209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12210
12211         [BZ #13851]
12212         [BZ #13854]
12213         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12214         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12215         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12216         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12217         (__tanl): Set errno for infinite argument.
12218         * sysdeps/i386/fpu/mptan.c: Remove.
12219         * sysdeps/i386/fpu/s_tan.S: Likewise.
12220         * sysdeps/i386/fpu/s_tanl.S: Likewise.
12221         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12222         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12223         * math/libm-test.inc (tan_test): Add more tests and enable more
12224         tests for double and long double.
12225         * sysdeps/i386/fpu/libm-test-ulps: Update.
12226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12227
12228 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12229
12230         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12231         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12232
12233 2012-03-16  Roland McGrath  <roland@hack.frob.com>
12234
12235         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12236         * configure.in: Use it for both main tree and add-ons.
12237         * configure: Regenerated.
12238
12239 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12240
12241         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12242
12243 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12244
12245         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12246         in comment.
12247
12248         [BZ #13851]
12249         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12250         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12251         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12252         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12253         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12254         infinite argument.
12255         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12256         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12257         != 0 for prec == 2.
12258         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12259         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12260         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12261         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12262         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12263         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12264         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12265         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12266         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12267         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12268         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12269         * math/libm-test.inc (cos_test): Add more tests and enable more
12270         tests for long double.
12271         (sin_test): Likewise.
12272         (sincos_test): Likewise.
12273         * sysdeps/i386/fpu/libm-test-ulps: Update.
12274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12275
12276 2012-03-16  David S. Miller  <davem@davemloft.net>
12277
12278         * sysdeps/sparc/fpu/math_private.h: New file.
12279
12280 2012-03-15  David S. Miller  <davem@davemloft.net>
12281
12282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12283         file.
12284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12286         file.
12287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12288         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12289         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12290         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12291         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12292         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12293         sysdep routines.
12294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12295
12296         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12297         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12298
12299         * sysdeps/sparc/sparc-ifunc.h: New file.
12300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12301         sparc-ifunc.h
12302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12304         Likewise.
12305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12306         Likewise.
12307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12311         Likewise.
12312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12317         Likewise.
12318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12319         Likewise.
12320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12324         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12325         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12326         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12327         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12328         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12329         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12330         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12331         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12332         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12333         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12334         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12335         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12336         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12337         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12338         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12339         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12340         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12341         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12342         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12343         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12344
12345 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12346
12347         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12348         scaling.
12349         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12350
12351 2012-03-15  Andreas Jaeger  <aj@suse.de>
12352
12353         [BZ #13852]
12354         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12355         ieee754/flt-32 implementation for sin, cos and sincos.
12356         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12357         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12358         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12359         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12360         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12361         ieee754/flt-32 implementation for tan.
12362
12363         * math/libm-test.inc (cos_test): Enable some large input tests for
12364         float as well
12365         (sin_test): Likewise.
12366         (sincos_test): Likewise.
12367         (tan_test): Add tests for large input.
12368
12369         * sysdeps/i386/fpu/libm-test-ulps: Update.
12370
12371 2012-03-15  Andreas Jaeger  <aj@suse.de>
12372
12373         [BZ #13658]
12374         * math/libm-test.inc (cos_test): Add more test cases.
12375         (sin_test): Likewise.
12376         (sincos_test): Likewise.
12377
12378 2012-03-15  Andreas Jaeger  <aj@suse.de>
12379
12380         [BZ #13837]
12381         * math/libm-test.inc (cos_test): Add a test case for large input
12382         value.
12383         (sin_test): Likewise.
12384         (sincos_test): Likewise.
12385
12386 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12387         Joseph Myers  <joseph@codesourcery.com>
12388
12389         [BZ #13658]
12390         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12391         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12392         * sysdeps/i386/fpu/branred.c: Likewise.
12393         * sysdeps/i386/fpu/dosincos.c: Likewise.
12394         * sysdeps/i386/fpu/mpa.c: Likewise.
12395         * sysdeps/i386/fpu/s_cos.S: Likewise.
12396         * sysdeps/i386/fpu/s_sin.S: Likewise.
12397         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12398         * sysdeps/i386/fpu/sincos32.c: Likewise.
12399
12400         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12401         Define.
12402         (libc_feupdateenv_53bit): Define.
12403         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12404         Define.
12405         (libc_feupdateenv_53bit): Define.
12406
12407         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12408         53 bit (without extend i386 double precision).
12409
12410         * math/libm-test.inc (sincos_test): Add tests for large input.
12411         (sin): Likewise.
12412         (cos): Likewise.
12413
12414         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12415
12416 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12417
12418         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12419
12420 2012-03-15  David S. Miller  <davem@davemloft.net>
12421
12422         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12423         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12424         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12425         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12426         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12427         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12428         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12429         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12430         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12431         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12432         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12433         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12434         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12435         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12436         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12438         file.
12439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12441         file.
12442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12444         file.
12445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12447         file.
12448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12449         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12450         fmin/fmax sysdep routines.
12451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12452
12453 2012-03-14  David S. Miller  <davem@davemloft.net>
12454
12455         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12456         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12457         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12458         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12459         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12460         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12461         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12462         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12463         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12464         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12465         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12466         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12467         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12468         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12469         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12470         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12471         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12472         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12473         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12474         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12475         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12476         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12477         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12478         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12479         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12480         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12481         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12482         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12483         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12484         routines.
12485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12486         file.
12487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12489         file.
12490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12492         file.
12493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12495         file.
12496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12497         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12498         file.
12499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12501         file.
12502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12503         file.
12504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12505         file.
12506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12507         file.
12508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12509         New file.
12510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12511         file.
12512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12513         file.
12514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12516         file.
12517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12519         file.
12520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12522         file.
12523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12525         VIS3 routines.
12526
12527         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12528         New file.
12529
12530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12531
12532         * sysdeps/sparc/configure.in: New file.
12533         * sysdeps/sparc/configure: Generate.
12534         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12535         * configure: Regenerate.
12536         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12537         * config.make.in (have-as-vis3): New.
12538         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12539         available use -Av9d instead of -Av9a.
12540         * sysdeps/sparc/sparc64/Makefile: Likewise.
12541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12543         New file.
12544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12545         file.
12546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12547         New file.
12548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12549         file.
12550         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12551         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12552         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12553         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12554         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12555
12556         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12557         fzeros/fnegs to load 0x80000000 into a float register instead of
12558         using the stack.
12559         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12560
12561 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12562
12563         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12564         bits/syscall.h.
12565         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12566         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12567         ($(inst_includedir)/bits/syscall.h): Remove rule.
12568         ($(objpfx)bits/syscall.d): Include instead of
12569         $(objpfx)syscall-list.d.
12570         (generated): Change syscall-list.h and syscall-list.d to
12571         bits/syscall.h and bits/syscall.d.
12572
12573 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12574
12575         [BZ #13846]
12576         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12577
12578 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12579
12580         [BZ #13841]
12581         * math/s_csqrt.c: Include <float.h>.
12582         (__csqrt): Scale large or subnormal inputs.
12583         * math/s_csqrtf.c: Likewise.
12584         * math/s_csqrtl.c: Likewise.
12585         * math/libm-test.inc (csqrt_test): Add more tests.
12586         * sysdeps/i386/fpu/libm-test-ulps: Update.
12587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12588
12589         [BZ #13840]
12590         * math/libm-test.inc (hypot_test): Add more tests.
12591
12592 2012-03-13  David S. Miller  <davem@davemloft.net>
12593
12594         [BZ #13840]
12595         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12596         double-precision for the calculation instead of scaling.
12597
12598 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12599
12600         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12601         manipulate bits before adding and subtracting TWO52[sx].
12602         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12603         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12604         Likewise.
12605         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12606
12607 2012-03-13  David S. Miller  <davem@davemloft.net>
12608
12609         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12610         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12611         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12612         rtld-global-offsets.h
12613         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12614
12615         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12616         large parameters.
12617
12618         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12619
12620         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12621         'err' in the ifdef scope in which it is actually used.
12622
12623         * nss/nss_db/db-init.c: Include string.h
12624
12625 2012-03-12  David S. Miller  <davem@davemloft.net>
12626
12627         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12628         masking out of the most significant byte of random value used.
12629         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12630         Fix coding style in previous change.
12631
12632         * sysdeps/unix/sysv/linux/kernel-features.h
12633         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12634         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12635         expression.
12636         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12637         later.
12638
12639 2012-03-11  David S. Miller  <davem@davemloft.net>
12640
12641         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12642         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12643         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12644         for 'resultvar' otherwise things get truncated on 64-bit.
12645
12646         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12647         Fix masking out of the most significant byte of random value used.
12648
12649         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12650
12651 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12652
12653         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12654
12655 2012-03-09  David S. Miller  <davem@davemloft.net>
12656
12657         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12658         variables with appropriate CPP guards.
12659         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12660         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12661         on resulting framesize and the management of the outregs buffer for pltexit.
12662         Preserve floating point return values across _dl_call_pltexit call.
12663         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12664         framesize and the management of the outregs buffer for pltexit.
12665         Preserve floating point return values across _dl_call_pltexit
12666         call.
12667         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12668         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12669         (print_exit): Fix format string for return register value.
12670
12671 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12672
12673         * sunrpc/Makefile (others): Add rpcgen.
12674         ($(objpfx)rpcgen): Remove special build rule and dependency on
12675         libc.
12676         * sunrpc/rpcgen.c: New file.
12677
12678 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12679
12680         [BZ #13673]
12681         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12682         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12683         * sysdeps/i386/crti.S: Likewise.
12684         * sysdeps/i386/crtn.S: Likewise.
12685         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12686         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12687         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12688         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12689         * sysdeps/sh/crti.S: Likewise.
12690         * sysdeps/sh/crtn.S: Likewise.
12691         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12692
12693         [BZ #13673]
12694         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12695         with URL.
12696         * locale/programs/locfile-kw.gperf: Likewise.
12697         * locale/programs/charmap-kw.h: Regenerated.
12698         * locale/programs/locfile-kw.h: Likewise.
12699
12700         [BZ #13673]
12701         * intl/plural.y: Replace FSF snail mail address with URL.
12702         * intl/plural.c: Regenerated.
12703
12704 2012-03-09  Richard Henderson  <rth@twiddle.net>
12705
12706         * include/math_private.h: Remove file.
12707         * math/math_private.h: Move file ...
12708         * sysdeps/generic/math_private.h: ... here.
12709
12710         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12711         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12712         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12713
12714         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12715         and <math_private.h>.
12716         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12717         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12718         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12719         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12720         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12721         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12722         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12723         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12724         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12725         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12726         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12727         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12728         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12729         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12730         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12731         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12732         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12733         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12734         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12735         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12736         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12737         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12738         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12739         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12740         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12741         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12742         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12743         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12744         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12745         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12746         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12747         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12748         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12749         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12750         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12751         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12752         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12753         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12754         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12755         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12756         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12757         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12758         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12759         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12760         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12761         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12762         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12763         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12764         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12765         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12766         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12767         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12768         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12769         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12770         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12771         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12772         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12773         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12774         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12775         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12776         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12777         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12778         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12779         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12780         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12781         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12782         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12783         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12784         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12785         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12786         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12787         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12788         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12789         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12790         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12791         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12792         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12793         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12794         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12795         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12796         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12797         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12798         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12799         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12800         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12801         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12802         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12803         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12804         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12805         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12806         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12807         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12808         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12809         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12810         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12811         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12812         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12813         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12814         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12815         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12816         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12817         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12818         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12819         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12820         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12821         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12822         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12823         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12824         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12825         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12826         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12827         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12828         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12829         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12830         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12831         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12832         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12833         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12834         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12835         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12836         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12837         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12838         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12839         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12840         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12841         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12842         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12843         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12844         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12845         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12846         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12847         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12848         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12849         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12850         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12851         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12852         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12853         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12854         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12855         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12856         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12857         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12858         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12859         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12860         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12861         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12862         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12863         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12864         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12865         * sysdeps/ieee754/k_standard.c: Likewise.
12866         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12867         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12868         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12869         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12870         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12871         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12872         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12873         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12874         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12875         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12876         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12877         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12878         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12879         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12880         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12881         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12882         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12883         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12884         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12885         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12886         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12887         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12888         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12889         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12890         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12891         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12892         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12893         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12894         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12895         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12896         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12897         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12898         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12899         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12900         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12901         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12902         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12903         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12904         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12905         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12906         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12907         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12908         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12909         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12910         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12911         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12912         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12913         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12914         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12915         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12916         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12917         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12918         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12919         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12920         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12921         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12922         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12923         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12924         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12925         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12926         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12927         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12928         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12929         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12930         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12931         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12932         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12933         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12934         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12935         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12936         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12937         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12938         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12939         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12940         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12941         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12942         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12943         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12944         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12945         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12946         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12947         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12948         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12949         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12950         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12951         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12952         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12953         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12954         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12955         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12956         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
12957         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
12958         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
12959         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
12960         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
12961         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
12962         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
12963         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
12964         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
12965         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
12966         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
12967         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
12968         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12969         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12970         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
12971         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
12972         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
12973         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
12974         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
12975         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
12976         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12977         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
12978         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
12979         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12980         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
12981         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12982         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
12983         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12984         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12985         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12986         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12987         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
12988         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12989         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12990         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12991         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12992         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12993         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12994         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
12995         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12996         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12997         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12998         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12999         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13000         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13001         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13002         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
13003         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13004         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13005         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13006         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13007         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13008         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13009         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13010         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13011         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13012         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13013         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13014         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13015         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
13016         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13017         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13018         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13019         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13020         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
13021         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
13022         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13023         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13024         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13025         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13026         * sysdeps/ieee754/s_lib_version.c: Likewise.
13027         * sysdeps/ieee754/s_matherr.c: Likewise.
13028         * sysdeps/ieee754/s_signgam.c: Likewise.
13029         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13030         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13031         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13032         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13033         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13034         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13035         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13036         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13037         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13038         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13039         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13040         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13041         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13042         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13043         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13044         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13045         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13046         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13047         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13048         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13049         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13050
13051 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13052
13053         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13054         * sunrpc/rpc_main.c: Likewise.
13055         * sunrpc/rpc_svcout.c: Likewise.
13056
13057 2012-03-09  David S. Miller  <davem@davemloft.net>
13058
13059         * include/math_private.h: New file.
13060
13061 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13062
13063         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13064         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13065         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13066         from <bits/socket_type.h>.
13067         (enum __socket_type): Don't define here.
13068         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13069         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13070         bits/socket_type.h.
13071
13072         [BZ #13566]
13073         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13074         checking __USE_GNU.
13075
13076         * Makerules ($(inst_includedir)/%.h): New rule.
13077         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13078         (install-others): Remove variable setting.
13079         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13080
13081 2012-03-08  Richard Henderson  <rth@twiddle.net>
13082
13083         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13084         from macro to inline function; merge with the
13085         !__LIBC_INTERNAL_MATH_INLINES version.
13086         (__ieee754_sqrtf): Likewise.
13087
13088         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13089         to inline function.
13090         (__rintf, __floor, __floorf): Likewise.
13091
13092         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13093         macro to inline function.
13094         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13095
13096         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13097         not <math/math_private.h>.
13098
13099 2012-03-08  David S. Miller  <davem@davemloft.net>
13100
13101         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13102         copyright year.
13103         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13104
13105 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13106
13107         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13108         normalization.
13109         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13110         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13111
13112 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13113
13114         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13115         be defined individually, they must be defined as a block.  Define
13116         S for printing a string instead of hidint the different by using a
13117         macro for adding the 'l'.
13118         * stdio-common/tst-fphex-wide.c: Adjust.
13119
13120 2012-03-07  Marek Polacek  <polacek@redhat.com>
13121
13122         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13123
13124 2012-03-08  Marek Polacek  <polacek@redhat.com>
13125
13126         [BZ #13806]
13127         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13128         * stdio-common/tst-fphex.c: Define a few macros to make the
13129         test reusable.  Use them.
13130         * stdio-common/tst-fphex-wide.c: New file.
13131
13132 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13133
13134         [BZ #6911]
13135         * manual/macros.texi (gnusystems): New macro.
13136         (nongnusystems): Likewise.
13137         (gnulinuxhurdsystems): Likewise.
13138         (gnuhurdsystems): Likewise..
13139         (gnulinuxsystems): Likewise.
13140         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13141         variants of the GNU system, not "GNU system".
13142         * manual/conf.texi: Likewise.
13143         * manual/errno.texi: Likewise.  Update example of errno macro
13144         expansion.
13145         * manual/filesys.texi: Likewise.
13146         (getumask): Document as specific to GNU/Hurd.
13147         * manual/install.texi: Likewise.  Reword some references to
13148         GNU/Linux.
13149         * manual/intro.texi: Likewise.
13150         * manual/io.texi: Likewise.
13151         (File Name Portability): Detail which constraints are inapplicable
13152         to all GNU systems and which are only inapplicable to GNU/Hurd.
13153         * manual/job.texi: Likewise.
13154         * manual/llio.texi: Likewise.
13155         (O_NOCTTY): Document as present on GNU/Linux.
13156         * manual/maint.texi: Likewise.
13157         * manual/memory.texi: Likewise.
13158         * manual/pattern.texi: Likewise.
13159         * manual/pipe.texi: Likewise.
13160         * manual/process.texi: Likewise.
13161         * manual/resource.texi: Likewise.
13162         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13163         child on GNU/Hurd.
13164         * manual/setjmp.texi: Likewise.
13165         * manual/signal.texi: Likewise.
13166         * manual/startup.texi: Likewise.
13167         * manual/stdio.texi: Likewise.
13168         * manual/terminal.texi: Likewise.
13169         (ONLCR): Document as POSIX.
13170         (OXTABS): Document availability on GNU/Linux as XTABS.
13171         (ONOEOT): Document availability separately from other bits.
13172         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13173         * manual/time.texi: Likewise.
13174         * manual/users.texi: Likewise.
13175         * INSTALL: Regenerated.
13176         * sysdeps/gnu/errlist.c: Regenerated.
13177
13178         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13179         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13180         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13181         puts.
13182         * configure: Regenerated.
13183
13184 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13185
13186         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13187         default includes instead of AC_HEADER_CHECK.
13188         * sysdeps/i386/configure: Regenerated.
13189
13190         [BZ #10716]
13191         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13192         * math/s_cacoshf.c (__cacoshf): Likewise.
13193         * math/s_cacoshl.c (__cacoshl): Likewise.
13194         * math/s_casinh.c (__casinh): Set signs of result from argument.
13195         * math/s_casinhf.c (__casinhf): Likewise.
13196         * math/s_casinhl.c (__casinhl): Likewise.
13197         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13198         (casinh_test): Add more tests.
13199         * sysdeps/i386/fpu/libm-test-ulps: Update.
13200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13201
13202 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13203
13204         * po/zh_TW.po: Update from translation team.
13205
13206         * login/Makefile (distribute): Remove variable.
13207         * catgets/Makefile: Likewise.
13208         * mach/Makefile: Likewise.
13209         * malloc/Makefile: Likewise.
13210         * misc/Makefile: Likewise.
13211         * iconv/Makefile: Likewise.
13212         * nscd/Makefile: Likewise.
13213         * hurd/Makefile: Likewise.
13214         * manual/Makefile: Likewise.
13215         * locale/Makefile: Likewise.
13216         * intl/Makefile: Likewise.
13217         * conform/Makefile: Likewise.
13218         * nss/Makefile: Likewise.
13219         * time/Makefile: Likewise.
13220         * soft-fp/Makefile: Likewise.
13221         * dirent/Makefile: Likewise.
13222         * gmon/Makefile: Likewise.
13223         * po/Makefile: Likewise.
13224         * rt/Makefile: Likewise.
13225         * socket/Makefile: Likewise.
13226         * math/Makefile: Likewise.
13227         * signal/Makefile: Likewise.
13228         * debug/Makefile: Likewise.
13229         * elf/Makefile: Likewise.
13230         * timezone/Makefile: Likewise.
13231         * stdlib/Makefile: Likewise.
13232         * iconvdata/Makefile: Likewise.
13233         * sunrpc/Makefile: Likewise.
13234         * io/Makefile: Likewise.
13235         * argp/Makefile: Likewise.
13236         * inet/Makefile: Likewise.
13237         * hesiod/Makefile: Likewise.
13238         * grp/Makefile: Likewise.
13239         * csu/Makefile: Likewise.
13240         * wctype/Makefile: Likewise.
13241         * crypt/Makefile: Likewise.
13242         * libio/Makefile: Likewise.
13243         * string/Makefile: Likewise.
13244         * nis/Makefile: Likewise.
13245         * resolv/Makefile: Likewise.
13246         * stdio-common/Makefile: Likewise.
13247         * wcsmbs/Makefile: Likewise.
13248         * dlfcn/Makefile: Likewise.
13249         * posix/Makefile: Likewise.
13250
13251         [BZ #6959]
13252         * timezone/Makefile: Don't install timezone files, just the programs
13253         and scripts.
13254
13255 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13256
13257         * nss/databases.def: Add missing gshadow entry.
13258
13259         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13260
13261 2012-03-06  Marek Polacek  <polacek@redhat.com>
13262
13263         [BZ #13726]
13264         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13265         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13266         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13267         * stdio-common/tst-long-dbl-fphex.c: New file.
13268
13269 2012-03-06  David S. Miller  <davem@davemloft.net>
13270
13271         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13272         (set_obp_int): New function.
13273         (get_obp_int): New function.
13274         (__get_clockfreq_via_dev_openprom): Likewise.
13275         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13276         Avoid unused variable warnings on 'val' and use builtin_expect.
13277         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13278         __builtin_expect.
13279         (INLINE_CLONE_SYSCALL): Likewise.
13280
13281 2012-03-05  David S. Miller  <davem@davemloft.net>
13282
13283         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13284
13285 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13286
13287         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13288
13289         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13290         only for |x| >= 40.
13291         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13292
13293 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13294
13295         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13296         Replace gettimeofday with __vdso_gettimeofday.
13297
13298         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13299         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13300         __vdso_clock_gettime and __vdso_getcpu.
13301
13302         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13303         time with __vdso_time.
13304
13305 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13306
13307         * manual/lang.texi (size_t): Note types to which size_t may be
13308         equivalent with the GNU C Library, but do not describe when
13309         differences between them are significant.
13310
13311 2012-03-05  Andreas Jaeger  <aj@suse.de>
13312
13313         * sysdeps/i386/fpu/libm-test-ulps: Update.
13314
13315 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13316
13317         [BZ #3976]
13318         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13319         (__ieee754_pow): Save and restore rounding mode and use
13320         round-to-nearest for main computations.
13321         * math/libm-test.inc (pow_test_tonearest): New function.
13322         (pow_test_towardzero): Likewise.
13323         (pow_test_downward): Likewise.
13324         (pow_test_upward): Likewise.
13325         (main): Call the new functions.
13326         * sysdeps/i386/fpu/libm-test-ulps: Update.
13327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13328
13329         [BZ #3976]
13330         * math/libm-test.inc (cosh_test_tonearest): New function.
13331         (cosh_test_towardzero): Likewise.
13332         (cosh_test_downward): Likewise.
13333         (cosh_test_upward): Likewise.
13334         (sinh_test_tonearest): Likewise.
13335         (sinh_test_towardzero): Likewise.
13336         (sinh_test_downward): Likewise.
13337         (sinh_test_upward): Likewise.
13338         (main): Call the new functions.
13339         * sysdeps/i386/fpu/libm-test-ulps: Update.
13340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13341
13342 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13343
13344         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13345         default stack guard is set in last bytes.
13346         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13347
13348 2012-03-05  Kees Cook  <keescook@chromium.org>
13349
13350         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13351
13352         [BZ #13656]
13353         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13354         possibly allocate from heap instead of stack.
13355         * stdio-common/bug-vfprintf-nargs.c: New file.
13356         * stdio-common/Makefile (tests): Add nargs overflow test.
13357
13358 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13359
13360         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13361
13362 2012-03-03  Marek Polacek  <polacek@redhat.com>
13363
13364         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13365         * math/math_private.h: Likewise.
13366         * stdlib/tst-strtod.c: Likewise.
13367         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13368         * sysdeps/x86_64/bits/atomic.h: Likewise.
13369
13370 2012-03-02  David S. Miller  <davem@davemloft.net>
13371
13372         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13373         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13374         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13375         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13376         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13377         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13378         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13379         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13380
13381 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13382
13383         [BZ #13792]
13384         * manual/examples/README: New file, says the example source files
13385         can be used under GPL>=2.
13386         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13387         line containing just "*/".
13388         * manual/examples/add.c: Add copyright header (GPL>=2).
13389         * manual/examples/argp-ex1.c: Likewise.
13390         * manual/examples/argp-ex2.c: Likewise.
13391         * manual/examples/argp-ex3.c: Likewise.
13392         * manual/examples/argp-ex4.c: Likewise.
13393         * manual/examples/atexit.c: Likewise.
13394         * manual/examples/db.c: Likewise.
13395         * manual/examples/dir.c: Likewise.
13396         * manual/examples/dir2.c: Likewise.
13397         * manual/examples/execinfo.c: Likewise.
13398         * manual/examples/filecli.c: Likewise.
13399         * manual/examples/filesrv.c: Likewise.
13400         * manual/examples/fmtmsgexpl.c: Likewise.
13401         * manual/examples/genpass.c: Likewise.
13402         * manual/examples/inetcli.c: Likewise.
13403         * manual/examples/inetsrv.c: Likewise.
13404         * manual/examples/isockad.c: Likewise.
13405         * manual/examples/longopt.c: Likewise.
13406         * manual/examples/memopen.c: Likewise.
13407         * manual/examples/memstrm.c: Likewise.
13408         * manual/examples/mkfsock.c: Likewise.
13409         * manual/examples/mkisock.c: Likewise.
13410         * manual/examples/mygetpass.c: Likewise.
13411         * manual/examples/pipe.c: Likewise.
13412         * manual/examples/popen.c: Likewise.
13413         * manual/examples/rprintf.c: Likewise.
13414         * manual/examples/search.c: Likewise.
13415         * manual/examples/select.c: Likewise.
13416         * manual/examples/setjmp.c: Likewise.
13417         * manual/examples/sigh1.c: Likewise.
13418         * manual/examples/sigusr.c: Likewise.
13419         * manual/examples/stpcpy.c: Likewise.
13420         * manual/examples/strdupa.c: Likewise.
13421         * manual/examples/strftim.c: Likewise.
13422         * manual/examples/strncat.c: Likewise.
13423         * manual/examples/subopt.c: Likewise.
13424         * manual/examples/swapcontext.c: Likewise.
13425         * manual/examples/termios.c: Likewise.
13426         * manual/examples/testopt.c: Likewise.
13427         * manual/examples/testpass.c: Likewise.
13428         * manual/examples/timeval_subtract.c: Likewise.
13429
13430         [BZ #13792]
13431         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13432         function to ...
13433         * manual/timeval_subtract.c.texi: ... here, new file.
13434
13435 2012-03-02  David S. Miller  <davem@davemloft.net>
13436
13437         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13438
13439 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13440
13441         [BZ #3976]
13442         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13443         (__sin): Save and restore rounding mode and use round-to-nearest
13444         for all computations.
13445         (__cos): Save and restore rounding mode and use round-to-nearest
13446         for all computations.
13447         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13448         <fenv.h>.
13449         (tan): Save and restore rounding mode and use round-to-nearest for
13450         all computations.
13451         * math/libm-test.inc (cos_test_tonearest): New function.
13452         (cos_test_towardzero): Likewise.
13453         (cos_test_downward): Likewise.
13454         (cos_test_upward): Likewise.
13455         (sin_test_tonearest): Likewise.
13456         (sin_test_towardzero): Likewise.
13457         (sin_test_downward): Likewise.
13458         (sin_test_upward): Likewise.
13459         (tan_test_tonearest): Likewise.
13460         (tan_test_towardzero): Likewise.
13461         (tan_test_downward): Likewise.
13462         (tan_test_upward): Likewise.
13463         (main): Call the new functions.
13464         * sysdeps/i386/fpu/libm-test-ulps: Update.
13465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13466
13467         [BZ #10135]
13468         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13469         small n, then large n, before computing and testing k+n.
13470         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13471         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13472         Likewise.
13473         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13474         Likewise.
13475         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13476         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13477         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13478         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13479         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13480         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13481         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13482         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13483         * math/libm-test.inc (scalbn_test): Add more tests.
13484         (scalbln_test): Likewise.
13485
13486         * manual/filesys.texi (mode_t): Describe constraints on size and
13487         signedness, not exact equivalence to a particular type.
13488         (ino_t): Likewise.
13489         (ino64_t): Likewise.
13490         (dev_t): Likewise.
13491         (nlink_t): Likewise.
13492         (blkcnt_t): Likewise.
13493         (blkcnt64_t): Likewise.
13494         * manual/llio.texi (off_t): Likewise.
13495
13496         [BZ #3976]
13497         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13498         (__ieee754_exp): Save and restore rounding mode and use
13499         round-to-nearest for all computations.
13500         * math/libm-test.inc (exp_test_tonearest): New function.
13501         (exp_test_towardzero): Likewise.
13502         (exp_test_downward): Likewise.
13503         (exp_test_upward): Likewise.
13504         (main): Call the new functions.
13505         * sysdeps/i386/fpu/libm-test-ulps: Update.
13506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13507
13508 2012-03-01  Chris Demetriou  <cgd@google.com>
13509
13510         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13511         have predictable order.
13512
13513 2012-03-01  David S. Miller  <davem@davemloft.net>
13514
13515         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13516
13517         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13518         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13519         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13520         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13521
13522         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13523         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13524         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13525         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13526         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13527         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13528         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13529         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13530         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13531
13532         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13533
13534         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13535         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13536         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13537
13538         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13539         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13540         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13541         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13542         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13543         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13544         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13545         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13546         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13547         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13548         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13549         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13550         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13551         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13552         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13553         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13554         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13555         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13556         * sysdeps/sparc/elf/configure: Regenerated.
13557
13558 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13559
13560         * configure.in (AS, LD): Require binutils 2.20 or later.
13561         * configure: Regenerated.
13562         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13563         as required minimum version.
13564         * INSTALL: Regenerated.
13565
13566         [BZ #2541]
13567         [BZ #4108]
13568         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13569         before squaring exponent.
13570         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13571         bottom long double and 27 bits of top long double before squaring
13572         exponent.
13573         * math/libm-test.inc (erfc_test): Add more tests.
13574         * sysdeps/i386/fpu/libm-test-ulps: Update.
13575         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13577
13578 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13579
13580         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13581         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13582         containing bit-fields.
13583         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13584         * soft-fp/single.h (_FP_UNION_S): Likewise.
13585         * soft-fp/double.h (_FP_UNION_D): Likewise.
13586
13587 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13588
13589         [BZ #13786]
13590         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13591         not include ../strcmp.S.
13592         [USE_AS_STRNCASECMP_L]: Likewise.
13593         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13594         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13595         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13596         (__strncasecmp_l_ia32): Define as alias to
13597         __strncasecmp_l_nonascii.
13598
13599         [BZ #5794]
13600         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13601         * sysdeps/i386/fpu/libm-test-ulps: Update.
13602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13603
13604         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13606
13607 2012-02-29  Jeff Law  <law@redhat.com>
13608
13609         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13610         out of bounds read.
13611
13612 2012-02-29  Marek Polacek  <polacek@redhat.com>
13613
13614         [BZ #13706]
13615         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13616         * elf/Makefile: Add rules to run tst-unused-dep.out.
13617
13618 2012-02-28  David S. Miller  <davem@davemloft.net>
13619
13620         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13621         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13622         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13623         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13624         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13625         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13626
13627 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13628
13629         * math/libm-test.inc (llround_test): Move one test from
13630         lround_test.  Use TEST_f_L in moved test.
13631         (lround_test): Move misplaced test to llround_test.  Add testcase
13632         from bug 2561.
13633
13634 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13635
13636         * sysdeps/x86_64/fpu/e_expf.S: New file.
13637         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13638
13639 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13640
13641         [BZ #13637]
13642         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13643         of remain_len that may cause incomplete multi-byte character and
13644         false match.
13645         * posix/bug-regex33.c: New file.
13646         * posix/Makefile (tests): Add bug-regex33.
13647
13648 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13649
13650         * manual/macros.texi: New file.
13651         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13652         * manual/libc.texinfo: Include macros.texi.
13653         * manual/creatute.texi: Likewise.
13654         * manual/install.texi: Likewise.
13655         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13656         @glibcadj{} in references to the GNU C Library.
13657         * manual/charset.texi: Likewise.
13658         * manual/conf.texi: Likewise.
13659         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13660         when not using those macros.
13661         * manual/creature.texi: Likewise.
13662         * manual/crypt.texi: Likewise.
13663         * manual/errno.texi: Likewise.
13664         * manual/filesys.texi: Likewise.
13665         * manual/header.texi: Likewise.
13666         * manual/install.texi: Likewise.
13667         * manual/intro.texi: Likewise.
13668         * manual/io.texi: Likewise.
13669         * manual/job.texi: Likewise.
13670         * manual/lang.texi: Likewise.
13671         * manual/libc.texiinfo: Likewise.
13672         * manual/llio.texi: Likewise.
13673         * manual/locale.texi: Likewise.
13674         * manual/maint.texi: Likewise.
13675         * manual/math.texi: Likewise.
13676         * manual/memory.texi: Likewise.
13677         * manual/message.texi: Likewise.
13678         * manual/nss.texi: Likewise.
13679         * manual/pattern.texi: Likewise.
13680         * manual/process.texi: Likewise.
13681         * manual/resource.texi: Likewise.
13682         * manual/search.texi: Likewise.
13683         * manual/setjmp.texi: Likewise.
13684         * manual/signal.texi: Likewise.
13685         * manual/socket.texi: Likewise.
13686         * manual/startup.texi: Likewise.
13687         * manual/stdio.texi: Likewise.
13688         * manual/string.texi: Likewise.
13689         * manual/sysinfo.texi: Likewise.
13690         * manual/syslog.texi: Likewise.
13691         * manual/terminal.texi: Likewise.
13692         * manual/time.texi: Likewise.
13693         * manual/users.texi: Likewise.
13694         * INSTALL: Regenerated.
13695         * NOTES: Regenerated.
13696         * sysdeps/gnu/errlist.c: Regenerated.
13697
13698 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13699
13700         * include/dirent.h: Include <dirstream.h> before
13701         <dirent/dirent.h>.
13702
13703 2012-02-28  David S. Miller  <davem@davemloft.net>
13704
13705         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13706         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13707         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13708         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13709
13710 2012-02-27  David S. Miller  <davem@davemloft.net>
13711
13712         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13713         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13714         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13715         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13716
13717         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13718         frame pointer instead of stack pointer relative arg slot.
13719         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13720         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13721         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13722
13723 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13724
13725         [BZ #3992]
13726         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13727
13728 2012-02-27  David S. Miller  <davem@davemloft.net>
13729
13730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13732         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13733         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13734         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13735         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13736         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13737         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13738
13739 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13740
13741         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13742         later.  Allow versions 5-9.
13743         * configure: Regenerated.
13744         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13745         required minimum version and 4.6 as recommended version.  Do not
13746         mention bugs in GCC 2.7 and 2.8.
13747         * INSTALL: Regenerated.
13748
13749 2012-02-27  David S. Miller  <davem@davemloft.net>
13750
13751         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13752         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13753         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13754         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13755         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13756         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13757         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13758         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13759
13760         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13761         manipulate bits before adding and subtracting TWO112[sx].
13762         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13763
13764 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13765
13766         [BZ #13775]
13767         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13768         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13769         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13770         being in POSIX, because they are in 1003.1-2008.
13771
13772         * rt/tst-aio.c: Include <fcntl.h>.
13773         * rt/tst-aio7.c: Likewise.
13774         * rt/tst-aio64.c: Likewise.
13775
13776         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13777
13778 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13779
13780         * manual/install.texi (--with-headers): Describe headers as
13781         interface headers, not private headers.
13782         (Specific advice for GNU/Linux systems): Describe use of headers
13783         from "make headers_install", not private headers from older
13784         kernels.
13785         * INSTALL: Regenerated.
13786         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13787         Change to 2.6.19.
13788         * sysdeps/unix/sysv/linux/configure: Regenerated.
13789
13790         * manual/llio.texi (fclean): Remove documentation.
13791
13792         * manual/Makefile (libc-texi-generated): New variable.  Include
13793         version.texi.
13794         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13795         $(libc-texi-generated), not duplicated list of files.
13796         (version.texi, stamp-version): New rules.
13797         (realclean): Remove $(libc-texi-generated), not individual files
13798         from that list.  Do not remove dir-add.texinfo.
13799         * manual/libc.texinfo: Comment out uses of edition numbers and
13800         references to printed manual.  Remove last-updated dates.
13801         (EDITION): Comment out.
13802         (ISBN): Likewise.
13803         (VERSION, UPDATED): Remove.
13804         (version.texi): Include.
13805
13806 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13807
13808         * sysdeps/posix/spawni.c: Include <signal.h>.
13809         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13810         * sysdeps/pthread/aio_fsync.c: Likewise.
13811
13812 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13813
13814         * conform/Makefile (tests): Run only when not cross-compiling and
13815         when fast-check is not defined.
13816
13817         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13818         * conform/data/limits.h-data: Fixes for POSIX2008.
13819         * conform/run-conformtest.sh: Run all tests.
13820         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13821         headers.
13822         * include/bits/dlfcn.h: Likewise.
13823         * include/langinfo.h: Likewise.
13824         * include/monetary.h: Likewise.
13825         * include/sys/poll.h: Likewise.
13826
13827         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13828         for __USE_GNU.
13829         * posix/spawn.h: Define __need_sigset_t.
13830         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13831         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13832         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13833         to get sigevent_t only.
13834         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13835         only for __USE_GNU.
13836         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13837         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13838         process_vm_writev only for __USE_GNU.
13839         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13840
13841         * conform/Makefile: For now ignore errors from run-conformtest.
13842         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13843         POSIX to avoid namespace pollution.  Don't prepend headers.
13844         * conform/data/aio.h-data: Fixes for POSIX testing.
13845         * conform/data/fcntl.h-data: Likewise.
13846         * conform/data/glob.h-data: Likewise.
13847         * conform/data/grp.h-data: Likewise.
13848         * conform/data/pthread.h-data: Likewise.
13849         * conform/data/pwd.h-data: Likewise.
13850         * conform/data/signal.h-data: Likewise.
13851         * conform/data/spawn.h-data: Likewise.
13852         * conform/data/stdio.h-data: Likewise.
13853         * conform/data/stdlib.h-data: Likewise.
13854         * conform/data/stropts.h-data: Likewise.
13855         * conform/data/sys/mman.h-data: Likewise.
13856         * conform/data/sys/stat.h-data: Likewise.
13857         * conform/data/sys/types.h-data: Likewise.
13858         * conform/data/sys/wait.h-data: Likewise.
13859         * conform/data/time.h-data: Likewise.
13860         * conform/data/unistd.h-data: Likewise.
13861         * conform/data/utime.h-data: Likewise.
13862
13863         * io/sys/stat.h: fchmod was always in POSIX.
13864         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13865         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13866         * rt/aio.h: Define __need_timespec before including <time.h>.
13867         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13868         struct.  Add forward declaration of pthread_attr_t and use it in
13869         sigevent.
13870         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13871         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13872         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13873         always remove CLK_TCK definition.
13874
13875 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13876
13877         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13878
13879 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13880
13881         * conform/run-conformtest.sh: New file.
13882         * conform/Makefile: Run run-conformtest for tests.
13883         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13884         support.
13885
13886         * conform/data/uchar.h-data: New file.
13887         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13888         * conform/data/arpa/inet.h-data: Likewise.
13889         * conform/data/assert.h-data: Likewise.
13890         * conform/data/complex.h-data: Likewise.
13891         * conform/data/cpio.h-data: Likewise.
13892         * conform/data/ctype.h-data: Likewise.
13893         * conform/data/dirent.h-data: Likewise.
13894         * conform/data/dlfcn.h-data: Likewise.
13895         * conform/data/errno.h-data: Likewise.
13896         * conform/data/fcntl.h-data: Likewise.
13897         * conform/data/float.h-data: Likewise.
13898         * conform/data/fmtmsg.h-data: Likewise.
13899         * conform/data/fnmatch.h-data: Likewise.
13900         * conform/data/ftw.h-data: Likewise.
13901         * conform/data/glob.h-data: Likewise.
13902         * conform/data/grp.h-data: Likewise.
13903         * conform/data/iconv.h-data: Likewise.
13904         * conform/data/inttypes.h-data: Likewise.
13905         * conform/data/langinfo.h-data: Likewise.
13906         * conform/data/libgen.h-data: Likewise.
13907         * conform/data/limits.h-data: Likewise.
13908         * conform/data/locale.h-data: Likewise.
13909         * conform/data/math.h-data: Likewise.
13910         * conform/data/monetary.h-data: Likewise.
13911         * conform/data/mqueue.h-data: Likewise.
13912         * conform/data/ndbm.h-data: Likewise.
13913         * conform/data/net/if.h-data: Likewise.
13914         * conform/data/netdb.h-data: Likewise.
13915         * conform/data/netinet/in.h-data: Likewise.
13916         * conform/data/nl_types.h-data: Likewise.
13917         * conform/data/poll.h-data: Likewise.
13918         * conform/data/pthread.h-data: Likewise.
13919         * conform/data/pwd.h-data: Likewise.
13920         * conform/data/regex.h-data: Likewise.
13921         * conform/data/sched.h-data: Likewise.
13922         * conform/data/search.h-data: Likewise.
13923         * conform/data/semaphore.h-data: Likewise.
13924         * conform/data/setjmp.h-data: Likewise.
13925         * conform/data/signal.h-data: Likewise.
13926         * conform/data/spawn.h-data: Likewise.
13927         * conform/data/stdarg.h-data: Likewise.
13928         * conform/data/stdio.h-data: Likewise.
13929         * conform/data/stdlib.h-data: Likewise.
13930         * conform/data/string.h-data: Likewise.
13931         * conform/data/strings.h-data: Likewise.
13932         * conform/data/stropts.h-data: Likewise.
13933         * conform/data/sys/ipc.h-data: Likewise.
13934         * conform/data/sys/mman.h-data: Likewise.
13935         * conform/data/sys/msg.h-data: Likewise.
13936         * conform/data/sys/resource.h-data: Likewise.
13937         * conform/data/sys/select.h-data: Likewise.
13938         * conform/data/sys/sem.h-data: Likewise.
13939         * conform/data/sys/shm.h-data: Likewise.
13940         * conform/data/sys/socket.h-data: Likewise.
13941         * conform/data/sys/stat.h-data: Likewise.
13942         * conform/data/sys/statvfs.h-data: Likewise.
13943         * conform/data/sys/time.h-data: Likewise.
13944         * conform/data/sys/timeb.h-data: Likewise.
13945         * conform/data/sys/times.h-data: Likewise.
13946         * conform/data/sys/types.h-data: Likewise.
13947         * conform/data/sys/uio.h-data: Likewise.
13948         * conform/data/sys/un.h-data: Likewise.
13949         * conform/data/sys/utsname.h-data: Likewise.
13950         * conform/data/sys/wait.h-data: Likewise.
13951         * conform/data/syslog.h-data: Likewise.
13952         * conform/data/tar.h-data: Likewise.
13953         * conform/data/termios.h-data: Likewise.
13954         * conform/data/utime.h-data: Likewise.
13955         * conform/data/utmpx.h-data: Likewise.
13956         * conform/data/varargs.h-data: Likewise.
13957         * conform/data/wchar.h-data: Likewise.
13958         * conform/data/wctype.h-data: Likewise.
13959         * conform/data/wordexp.h-data: Likewise.
13960
13961         * include/stropts.h: New file.
13962         * include/uchar.h: New file.
13963         * include/aio.h: Changes to allow conformtest.pl to use the headers.
13964         * include/assert.h: Likewise.
13965         * include/ctype.h: Likewise.
13966         * include/dirent.h: Likewise.
13967         * include/dlfcn.h: Likewise.
13968         * include/fcntl.h: Likewise.
13969         * include/fnmatch.h: Likewise.
13970         * include/glob.h: Likewise.
13971         * include/grp.h: Likewise.
13972         * include/libio.h: Likewise.
13973         * include/locale.h: Likewise.
13974         * include/math.h: Likewise.
13975         * include/net/if.h: Likewise.
13976         * include/netdb.h: Likewise.
13977         * include/netinet/in.h: Likewise.
13978         * include/pthread.h: Likewise.
13979         * include/pwd.h: Likewise.
13980         * include/regex.h: Likewise.
13981         * include/sched.h: Likewise.
13982         * include/search.h: Likewise.
13983         * include/setjmp.h: Likewise.
13984         * include/signal.h: Likewise.
13985         * include/stdio.h: Likewise.
13986         * include/stdlib.h: Likewise.
13987         * include/string.h: Likewise.
13988         * include/sys/cdefs.h: Likewise.
13989         * include/sys/mman.h: Likewise.
13990         * include/sys/msg.h: Likewise.
13991         * include/sys/resource.h: Likewise.
13992         * include/sys/select.h: Likewise.
13993         * include/sys/socket.h: Likewise.
13994         * include/sys/stat.h: Likewise.
13995         * include/sys/statvfs.h: Likewise.
13996         * include/sys/time.h: Likewise.
13997         * include/sys/times.h: Likewise.
13998         * include/sys/uio.h: Likewise.
13999         * include/sys/utsname.h: Likewise.
14000         * include/sys/wait.h: Likewise.
14001         * include/termios.h: Likewise.
14002         * include/time.h: Likewise.
14003         * include/ulimit.h: Likewise.
14004         * include/unistd.h: Likewise.
14005         * include/utime.h: Likewise.
14006         * include/wchar.h: Likewise.
14007         * include/wctype.h: Likewise.
14008         * include/wordexp.h: Likewise.
14009
14010         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
14011
14012         * time/time.h: TIME_UTC must be a macro.
14013         Make timespec_get available for ISO C11 only as well.
14014
14015 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
14016
14017         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
14018         Reported by Peng Haitao <penght@cn.fujitsu.com>.
14019
14020 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14021
14022         * configure.in: Use -o not -a in test for unsupported multi-arch.
14023
14024 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14025
14026         * manual/texinfo.tex: Update to version 2012-01-19.16.
14027
14028 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14029
14030         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14031
14032 2012-02-24  Roland McGrath  <roland@hack.frob.com>
14033
14034         [BZ #13738]
14035         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14036         * manual/fdl-1.3.texi: New file.
14037         * manual/fdl-1.1.texi: File removed.
14038
14039         [BZ #13738]
14040         * manual/libc.texinfo (FDL_VERSION): New @set.
14041         Use it for mention of FDL in cover text.
14042         (Documentation License): Use it in @include file name.
14043
14044 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14045             Roland McGrath  <roland@hack.frob.com>
14046
14047         [BZ #5461]
14048         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14049         not LONG_LONG_MAX and LONG_LONG_MIN.
14050         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14051         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14052         name.
14053         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14054
14055 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14056
14057         [BZ #2547]
14058         [BZ #11365]
14059         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14060         manipulate bits before adding and subtracting TWO23[sx].
14061         * math/libm-test.inc (nearbyint_test): Add more tests.
14062
14063 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14064
14065         [BZ #2548]
14066         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14067         bits before adding and subtracting TWO23[sx].
14068         * math/libm-test.inc (rint_test): Add more tests.
14069         (rint_test_tonearest): Likewise.
14070         (rint_test_towardzero): Likewise.
14071         (rint_test_downward): Likewise.
14072         (rint_test_upward: Likewise.
14073
14074 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14075
14076         [BZ #10110]
14077         * include/stdc-predef.h: New file.  Extracted from features.h.
14078         * include/features.h: Include stdc-predef.h.
14079         * Makefile (headers): Add stdc-predef.h.
14080         * CONFORMANCE (Compiler limitations): Update.
14081
14082 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14083
14084         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14085
14086 2012-02-21  David S. Miller  <davem@davemloft.net>
14087
14088         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14089         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14090
14091 2012-02-20  David S. Miller  <davem@davemloft.net>
14092
14093         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14094         using a normal save/restore sequence, rather than allocating a
14095         dummy stack frame just to store a frame pointer and restore.
14096         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14097
14098 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14099
14100         * manual/install.texi: Fix stray word in line-wrapped comment.
14101
14102 2012-02-20  David S. Miller  <davem@davemloft.net>
14103
14104         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14105         both binutils and gcc support GOTDATA.
14106
14107         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14108         "rd %pc" in the PIC register setup sequences.
14109
14110         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14111         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14112         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14113         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14114         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14115         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14116         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14117         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14118         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14119         (SYSCALL_ERROR_HANDLER): Likewise.
14120         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14121         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14122         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14123         (SYSCALL_ERROR_HANDLER): Likewise.
14124
14125         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14126         (HAVE_GCC_GOTDATA): New.
14127         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14128         relocation support in both binutils and gcc.
14129         * sysdeps/sparc/elf/configure: Regenerate.
14130
14131         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14132         * sysdeps/sparc/sparc32/elf/configure: Delete.
14133         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14134         * sysdeps/sparc/sparc64/elf/configure: Delete.
14135         * sysdeps/sparc/elf/configure.in: New file.
14136         * sysdeps/sparc/elf/configure: Generate.
14137
14138         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14139         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14140         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14141         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14142         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14143
14144 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14145
14146         * manual/install.texi: Do not mention specific glibc version
14147         numbers.
14148         * manual/libc.texinfo (VERSION, UPDATED): Update.
14149         (@copying): Use @copyright{} and range of years.
14150
14151 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14152
14153         [BZ #13695]
14154         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14155         [crti.S not in sysdirs] (generated): Do not append.
14156         [crti.S not in sysdirs] (omit-deps): Likewise.
14157         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14158         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14159         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14160         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14161         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14162         Likewise.
14163         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14164         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14165         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14166         * csu/defs.awk: Remove file.
14167         * sysdeps/generic/initfini.c: Likewise.
14168         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14169         variable.
14170         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14171         Likewise.
14172
14173 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14174
14175         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14176         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14177         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14178         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14179         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14180         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14181         <bits/epoll.h>.
14182         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14183         (__EPOLL_PACKED): Define to empty if not defined by
14184         <bits/epoll.h>.
14185         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14186         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14187         bits/epoll.h.
14188
14189 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14190
14191         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14192         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14193         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14194         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14195         <bits/timerfd.h>.
14196         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14197         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14198         bits/timerfd.h.
14199
14200 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14201
14202         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14203         in C locale.
14204         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14205         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14206         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14208
14209 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14210
14211         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14212         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14213
14214 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14215
14216         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14217         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14218         defined.
14219         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14220         Likewise.
14221         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14222         entry for 2.16.
14223
14224 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
14225
14226         * math/w_acos.c: Use non-signaling floating-point comparisons.
14227         * math/w_acosf.c: Likewise.
14228         * math/w_acosh.c: Likewise.
14229         * math/w_acoshf.c: Likewise.
14230         * math/w_acoshl.c: Likewise.
14231         * math/w_acosl.c: Likewise.
14232         * math/w_asin.c: Likewise.
14233         * math/w_asinf.c: Likewise.
14234         * math/w_asinl.c: Likewise.
14235         * math/w_atanh.c: Likewise.
14236         * math/w_atanhf.c: Likewise.
14237         * math/w_atanhl.c: Likewise.
14238         * math/w_exp2.c: Likewise.
14239         * math/w_exp2f.c: Likewise.
14240         * math/w_exp2l.c: Likewise.
14241         * math/w_j0.c: Likewise.
14242         * math/w_j0f.c: Likewise.
14243         * math/w_j0l.c: Likewise.
14244         * math/w_j1.c: Likewise.
14245         * math/w_j1f.c: Likewise.
14246         * math/w_j1l.c: Likewise.
14247         * math/w_jn.c: Likewise.
14248         * math/w_jnf.c: Likewise.
14249         * math/w_log.c: Likewise.
14250         * math/w_log10.c: Likewise.
14251         * math/w_log10f.c: Likewise.
14252         * math/w_log10l.c: Likewise.
14253         * math/w_log2.c: Likewise.
14254         * math/w_log2f.c: Likewise.
14255         * math/w_log2l.c: Likewise.
14256         * math/w_logf.c: Likewise.
14257         * math/w_logl.c: Likewise.
14258         * math/w_sqrt.c: Likewise.
14259         * math/w_sqrtf.c: Likewise.
14260         * math/w_sqrtl.c: Likewise.
14261         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14262         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14263         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14264         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14265         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14266
14267 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14268
14269         [BZ #9739]
14270         * manual/string.texi (strnlen): Use correct parameter name in
14271         equivalent expression.
14272
14273 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14274
14275         [BZ #11174]
14276         * manual/users.texi (seteuid): Consistently use neweuid for
14277         argument name.
14278
14279 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14280
14281         [BZ #13704]
14282         * manual/nss.texi (Services in the NSS configuration): Correct
14283         list of services in example configuration file.
14284
14285 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14286
14287         [BZ #11322]
14288         * manual/arith.texi: Remove statements about negative zero
14289         behaving identically to zero.
14290
14291 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14292
14293         [BZ #5993]
14294         * manual/install.texi: Do not document upgrading from libc5.
14295
14296 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14297
14298         [BZ #4596]
14299         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14300
14301 2012-02-18  David S. Miller  <davem@davemloft.net>
14302
14303         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14304         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14305         %o7 across the call.
14306         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14307         instead.
14308         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14309         SETUP_PIC_REG_LEAF.
14310         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14311         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14312         * sysdeps/sparc/crtn.S: Likewise.
14313
14314 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14315
14316         * aout/Makefile: Remove.
14317
14318 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14319
14320         [BZ #13058]
14321         * manual/examples/argp-ex1.c (main): Format definition in GNU
14322         style.
14323         * manual/examples/argp-ex2.c (main): Likewise.
14324         * manual/examples/argp-ex3.c (main): Likewise.
14325         * manual/examples/argp-ex4.c (main): Likewise.
14326         * manual/examples/longopt.c (main): Use new-style prototype
14327         definition.
14328         * manual/examples/strncat.c (main): Specify return type and use
14329         (void) for arguments.
14330         * manual/examples/subopt.c (main): Use char **argv argument.
14331
14332 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14333
14334         [BZ #5077]
14335         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14336         rounding modes.
14337
14338 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14339
14340         [BZ #6907]
14341         * manual/string.texi (strchr): Change when strchrnul is
14342         recommended.
14343
14344 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14345
14346         [BZ #174]
14347         * manual/locale.texi (setlocale): Document LOCPATH.
14348
14349 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14350
14351         [BZ #10210]
14352         * manual/process.texi (execle): Move @dots{} before last argument.
14353
14354 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14355
14356         [BZ #12047]
14357         * manual/charset.texi (Generic Charset Conversion): Fix typo
14358         (LC_TYPE -> LC_CTYPE).
14359
14360 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14361
14362         [BZ #5805]
14363         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14364         (scalbnf): Likewise.
14365         (scalbnl): Likewise.
14366         (scalbln): Likewise.
14367         (scalblnf): Likewise.
14368         (scalblnl): Likewise.
14369         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14370         (vwarnx): Likewise.
14371         (verr): Likewise.
14372         (verrx): Likewise.
14373         * manual/filesys.texi (telldir): Use braces around return type.
14374         * manual/llio.texi (mmap): Add space after comma.
14375         (mmap64): Likewise.
14376         * manual/math.texi (jn): Use @var{} on parameter names.
14377         (jnf): Likewise.
14378         (jnl): Likewise.
14379         (yn): Likewise.
14380         (ynf): Likewise.
14381         (ynl): Likewise.
14382         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14383         line.
14384         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14385         "...".
14386         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14387         (sched_get_priority_max): Likewise.
14388         * manual/signal.texi (sigvec): Add space after comma.
14389         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14390         names.
14391         (if_indextoname): Likewise.
14392         (if_freenameindex): Likewise.
14393         (sendto): Use ',' instead of '.' in prototype.
14394         * manual/startup.texi (syscall): Use @dots{} instead of literal
14395         "...".
14396         * manual/stdio.texi (__fpending): Separate initial words of
14397         paragraph from @deftypefun line.
14398         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14399         "...".
14400         (vsyslog): Use @var{} on parameter names.
14401         * manual/terminal.texi (stty): Use @var{} on parameter names.
14402         * manual/users.texi (getutmp): Use @var{} on parameter names.
14403         (getutmpx): Likewise.
14404
14405 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14406
14407         [BZ #6884]
14408         * manual/stdio.texi (fopen): Fix typos in description of
14409         ",ccs=STRING".
14410
14411 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14412
14413         [BZ #4026]
14414         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14415         get clock_id definition.
14416
14417 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14418
14419         [BZ #4822]
14420         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14421         (madvise): Cast every argument to void on its own.
14422
14423 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14424
14425         [BZ #9902]
14426         * manual/startup.texi (Exit Status): Fix typo.
14427
14428 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14429
14430         [BZ #10140]
14431         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14432         * manual/examples/argp-ex2.c: Likewise.
14433         * manual/examples/argp-ex3.c: Likewise.
14434
14435 2012-02-16  Richard Henderson  <rth@redhat.com>
14436
14437         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14438         * sysdeps/s390/s390-32/initfini.c: Remove.
14439         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14440         * sysdeps/s390/s390-64/initfini.c: Remove.
14441
14442 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14443
14444         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14445         compiler output for sysdeps/generic/initfini.c.
14446         * sysdeps/sh/elf/initfini.c: Remove file.
14447
14448 2012-02-16  David S. Miller  <davem@davemloft.net>
14449
14450         [BZ #11494]
14451         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14452
14453         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14454         * sysdeps/sparc/crti.S: New file.
14455         * sysdeps/sparc/crtn.S: New file.
14456         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14457         * sysdeps/sparc/sparc64/Makefile: Likewise.
14458
14459 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14460
14461         [BZ #3335]
14462         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14463
14464 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14465
14466         [BZ #4822]
14467         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14468
14469         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14470         (write, read, close): Likewise.
14471         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14472
14473 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14474
14475         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14476         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14477         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14478         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14479         <bits/signalfd.h>.
14480         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14481         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14482         bits/signalfd.h.
14483
14484 2012-02-14  Marek Polacek  <polacek@redhat.com>
14485
14486         * sysdeps/x86_64/crti.S: New file.
14487         * sysdeps/x86_64/crtn.S: New file.
14488         * sysdeps/x86_64/elf/initfini.c: Remove file.
14489
14490 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14491
14492         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14493         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14494         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14495         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14496         <bits/inotify.h>.
14497         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14498         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14499         bits/inotify.h.
14500
14501 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14502
14503         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14504         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14505         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14506         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14507         <bits/eventfd.h>.
14508         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14509         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14510         bits/eventfd.h.
14511
14512 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14513
14514         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14515         __feraiseexcept instead of feraiseexcept.
14516
14517         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14518         nanosleep invocations.
14519         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14520         strings, and add error checking for a nanosleep invocations.
14521
14522 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14523
14524         Replace FSF snail mail address with URLs, as per GNU coding standards.
14525         Most of the snail mail addresses were wrong anyway, and omitting
14526         them makes the source code easier to maintain.  Almost all of the
14527         changes are to license notices and to locale LC_IDENTIFICATION
14528         addresses, except for this one:
14529         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14530         not its snail mail address.
14531
14532 2012-02-09  Richard Henderson  <rth@twiddle.net>
14533
14534         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14535         of kernel-features.h.
14536
14537         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14538
14539 2012-02-08  Marek Polacek  <polacek@redhat.com>
14540
14541         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14542         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14543         * sysdeps/gnu/_G_config.h: Likewise.
14544         * sysdeps/generic/_G_config.h: Likewise.
14545
14546 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14547
14548         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14549         tests.
14550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14551
14552         * sysdeps/powerpc/powerpc32/crti.S: New file.
14553         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14554         * sysdeps/powerpc/powerpc64/crti.S: New file.
14555         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14556
14557         * Makeconfig (have-initfini): Don't set.
14558         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14559         * configure.in (nopic_initfini): Don't substitute.
14560         * config.h.in (HAVE_INITFINI): Don't #undef.
14561         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14562         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14563
14564 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14565
14566         Support crti.S and crtn.S provided directly by architectures.
14567         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14568         [crti.S in sysdirs] (omit-deps): Likewise.
14569         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14570         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14571         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14572         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14573         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14574         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14575         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14576         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14577         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14578         compiler output for sysdeps/generic/initfini.c.
14579         * sysdeps/i386/elf/Makefile: Remove file.
14580         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14581
14582 2012-02-07  Marek Polacek  <polacek@redhat.com>
14583
14584         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14585         * sysdeps/gnu/_G_config.h: Likewise.
14586         * sysdeps/mach/hurd/_G_config.h: Likewise.
14587
14588 2012-02-07  Marek Polacek  <polacek@redhat.com>
14589
14590         * math/Makefile (tests): Add tst-CMPLX2.
14591         * math/tst-CMPLX2.c: New file.
14592
14593 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14594
14595         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14596
14597         * math/libm-test.inc (jn_test): Add missing L suffix.
14598
14599 2012-02-06  Marek Polacek  <polacek@redhat.com>
14600
14601         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14602         * sysdeps/i386/fpu/e_powf.S: Likewise.
14603         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14604         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14605         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14606         * sysdeps/i386/fpu/e_pow.S: Likewise.
14607         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14608         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14609         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14610         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14611         * sysdeps/i386/fpu/e_log2.S: Likewise.
14612         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14613         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14614         * sysdeps/i386/fpu/e_powl.S: Likewise.
14615         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14616         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14617         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14618         * sysdeps/i386/fpu/e_logl.S: Likewise.
14619         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14620         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14621         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14622         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14623         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14624         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14625         * sysdeps/i386/fpu/e_log.S: Likewise.
14626         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14627         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14628         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14629         * sysdeps/i386/fpu/e_logf.S: Likewise.
14630         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14631         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14632         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14633         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14634         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14635         * sysdeps/i386/fpu/e_log10.S: Likewise.
14636         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14637         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14638         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14639         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14640         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14641         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14642         * sysdeps/i386/asm-syntax.h: Likewise.
14643         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14644         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14645         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14646         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14647         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14648         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14649         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14650         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14651         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14652         * sysdeps/powerpc/sysdep.h: Likewise.
14653         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14654         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14655
14656 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14657
14658         [BZ #411]
14659         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14660
14661 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14662
14663         * sysdeps/i386/sysdep.h: Include <features.h>.
14664         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14665         version.
14666
14667 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14668
14669         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14670         Define.
14671         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14672         LOAD_PIC_REG_STR.
14673
14674 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14675
14676         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14677         (SETUP_PIC_REG): Use GET_PC_THUNK.
14678         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14679         macro.
14680
14681 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14682
14683         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14684         for non-PIC compilation.
14685         (SETUP_PIC_REG): Add .p2align directive.
14686         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14687         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14688         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14689         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14690         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14691         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14692         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14693         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14694         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14695         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14696         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14697         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14698         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14699         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14700         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14701         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14702         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14703         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14704         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14705         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14706         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14707         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14708         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14709         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14710         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14711         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14712         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14713         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14714         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14715         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14716         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14717         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14718         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14719         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14720         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14721         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14722         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14723         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14724         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14725         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14726         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14727
14728 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14729
14730         * math/tst-CMPLX.c: Include <stdio.h>.
14731
14732 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14733
14734         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14735         float.
14736         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14737         * sysdeps/sparc/bits/mathdef.h: Likewise.
14738
14739 2012-01-31  Marek Polacek  <polacek@redhat.com>
14740
14741         * libio/libio.h: Don't define _PARAMS.
14742         * locale/programs/config.h: Don't define PARAMS.
14743         * stdlib/strtol_l.c: Likewise.
14744         (__strtol_l): Remove PARAMS from the prototype.
14745
14746 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14747
14748         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14749         names.  Just use the correct names.  Remove unnecessary wrapper
14750         functions.
14751         * malloc/arena.c: Likewise.
14752         * malloc/hooks.c: Likewise.
14753
14754         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14755         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14756         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14757
14758 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14759
14760         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14761         into tail calls.
14762         (update_get_addr): New function.
14763         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14764         GET_ADDR_MODULE parameter.
14765
14766 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14767
14768         * crypt/cert.c: Remove __STDC__ conditionals.
14769         * crypt/crypt-entry.c: Likewise.
14770         * crypt/crypt_util.c: Likewise.
14771         * libio/filedoalloc.c: Likewise.
14772         * libio/fileops.c: Likewise.
14773         * libio/genops.c: Likewise.
14774         * libio/iofclose.c: Likewise.
14775         * libio/iofdopen.c: Likewise.
14776         * libio/iofopen.c: Likewise.
14777         * libio/iofopen64.c: Likewise.
14778         * libio/iogetdelim.c: Likewise.
14779         * libio/iopopen.c: Likewise.
14780         * libio/obprintf.c: Likewise.
14781         * libio/oldfileops.c: Likewise.
14782         * libio/oldiofclose.c: Likewise.
14783         * libio/oldiofdopen.c: Likewise.
14784         * libio/oldiofopen.c: Likewise.
14785         * libio/oldiopopen.c: Likewise.
14786         * libio/wfiledoalloc.c: Likewise.
14787         * libio/wgenops.c: Likewise.
14788         * locale/programs/xmalloc.c: Likewise.
14789         * misc/syslog.c: Likewise.
14790         * stdio-common/xbug.c: Likewise.
14791         * string/memchr.c: Likewise.
14792         * string/memcmp.c: Likewise.
14793         * string/memrchr.c: Likewise.
14794         * string/rawmemchr.c: Likewise.
14795         * sysdeps/posix/getcwd.c: Likewise.
14796         * time/strftime_l.c: Likewise.
14797
14798 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14799
14800         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14801         * config.make.in (config-cflags-sse2avx): Define.
14802         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14803         Fix typo.
14804
14805 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14806
14807         * scripts/config.guess: Update from upstream config git repository.
14808         * scripts/config.sub: Likewise.
14809
14810 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14811
14812         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14813         (EM_NUM): Update.
14814         (R_TILEPRO_*, R_TILEGX_*): New macros.
14815
14816         * scripts/firstversions.awk: Fix bug in version range handling.
14817
14818         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14819
14820         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14821
14822         * include/sys/epoll.h: New file.
14823         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14824         libc_hidden_def.
14825
14826 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14827
14828         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14829         Avoid unnecessary __WORDSIZE == 64 test.
14830         (fmaxf): Use VEX format if possible.
14831         (fmax): Likewise.
14832         (fminf): Likewise.
14833         (fmin): Likewise.
14834
14835         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14836         * math/math_private.h: Remove libc_fegetround* and
14837         libc_fesetround*.
14838         * sysdeps/i386/configure.in: Check for -msse2avx.
14839         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14840         also if SSE2AVX is defined.
14841         Remove libc_fegetround* and libc_fesetround*.
14842         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14843         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14844         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14845         of HAS_YMM_USABLE.
14846         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14847         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14848         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14849         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14850         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14851
14852         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14853
14854 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14855
14856         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14857         size is not set.
14858         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14859
14860 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14861
14862         [BZ #13618]
14863         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14864         relocation.
14865         * Makeconfig (libm): Define.
14866         * elf/Makefile: Add rules to build and run tst-relsort1.
14867         * elf/tst-relsort1.c: New file.
14868         * elf/tst-relsort1mod1.c: New file.
14869         * elf/tst-relsort1mod2.c: New file.
14870
14871 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14872
14873         * math/s_ldexp.c: Remove __STDC__ conditionals.
14874         * math/s_ldexpf.c: Likewise.
14875         * math/s_ldexpl.c: Likewise.
14876         * math/s_nextafter.c: Likewise.
14877         * math/s_nexttowardf.c: Likewise.
14878         * math/s_significand.c: Likewise.
14879         * math/s_significandf.c: Likewise.
14880         * math/s_significandl.c: Likewise.
14881         * math/w_jnl.c: Likewise.
14882         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14883         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14884         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14885         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14886         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14887         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14888         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14889         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14890         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14891         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14892         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14893         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14894         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14895         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14896         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14897         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14898         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14899         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14900         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14901         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14902         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14903         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14904         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14905         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14906         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14907         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14908         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14909         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14910         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14911         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14912         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14913         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14914         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14915         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14916         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14917         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14918         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14919         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14920         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14921         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14922         * sysdeps/ieee754/k_standard.c: Likewise.
14923         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14924         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14925         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14926         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14927         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14928         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14929         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14930         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14931         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14932         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14933         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14934         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14935         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14936         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14937         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14938         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14939         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14940         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14941         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14942         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14943         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14944         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14945         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14946         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14947         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14948         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14949         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14950         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14951         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14952         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14953         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14954         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14955         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
14956         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
14957         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14958         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
14959         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
14960         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
14961         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
14962         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
14963         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
14964         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
14965         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
14966         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
14967         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
14968         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14969         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14970         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14971         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14972         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14973         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
14974         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
14975         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
14976         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
14977         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14978         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
14979         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
14980         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14981         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14982         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14983         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
14984         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
14985         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
14986         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14987         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
14988         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
14989         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
14990         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
14991         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
14992         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
14993         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
14994         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
14995         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
14996         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14997         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14998         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
14999         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15000         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15001         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15002         * sysdeps/ieee754/s_matherr.c: Likewise.
15003         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15004         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15005         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15006         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15007
15008 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15009
15010         * crypt/md5.h: Remove __STDC__ conditionals.
15011         * libio/libioP.h: Likewise.
15012         * locale/programs/config.h: Likewise.
15013         * sysdeps/generic/sysdep.h: Likewise.
15014         * sysdeps/i386/asm-syntax.h: Likewise.
15015         * sysdeps/s390/asm-syntax.h: Likewise.
15016         * sysdeps/unix/sysdep.h: Likewise.
15017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
15018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15019
15020 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15021
15022         * libio/libio.h: Remove __STDC__ conditionals.
15023         * malloc/obstack.h: Likewise.
15024         * math/complex.h: Likewise.
15025         * math/math.h: Likewise.
15026         * sysdeps/generic/_G_config.h: Likewise.
15027         * sysdeps/gnu/_G_config.h: Likewise.
15028         * sysdeps/mach/hurd/_G_config.h: Likewise.
15029         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15030         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15031         * sysdeps/sparc/bits/mathdef.h: Likewise.
15032
15033 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
15034
15035         [BZ #13583]
15036         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15037         Clean up HAS_* macros.
15038         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15039         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15040         possible.
15041         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15042         HAS_AVX.
15043         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15044         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15045         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15046         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15047         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15048
15049 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15050
15051         * elf/tst-unique3.cc (gets): Remove declaration.
15052         * elf/tst-unique3lib.cc (gets): Likewise.
15053         * elf/tst-unique3lib2.cc (gets): Likewise.
15054         * elf/tst-unique4.cc (gets): Likewise.
15055
15056 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15057
15058         * include/stdio.h: Add C++ protection.  Add gets declarations and
15059         definitions.
15060         * debug/tst-chk1.c: Don't declare gets here.
15061         * stdio-common/tst-gets.c: Likewise.
15062
15063 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15064
15065         * posix/glob: Remove directory.
15066
15067 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15068
15069         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15070
15071 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15072
15073         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15074         of the non-standard EPFNOSUPPORT.
15075
15076 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15077
15078         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15079         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15080         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15081
15082 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15083
15084         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15085
15086 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15087
15088         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15089         transient errors.
15090         * nscd/grpcache.c (cache_addgr): Likewise.
15091         * nscd/hstcache.c (cache_addhst): Likewise.
15092         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15093         * nscd/pwdcache.c (cache_addpw): Likewise.
15094         * nscd/servicescache.c (cache_addserv): Likewise.
15095
15096 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15097
15098         * malloc/malloc.c: Various cleanups.
15099         * malloc/hooks.c: Likewise.
15100
15101         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15102         * stdlib/bug-fmtmsg1.c: New file.
15103
15104         * stdlib/fmtmsg.c (init): Add missing unlock.
15105         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15106
15107 2012-01-12  Marek Polacek  <polacek@redhat.com>
15108
15109         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15110         and _GNU_SOURCE.
15111
15112 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15113
15114         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15115         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15116         macro to ensure uniqueness of label name.
15117         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15118         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15119
15120 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15121
15122         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15123
15124         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15125         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15126         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15127         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15128
15129 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15130
15131         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15132
15133         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15134         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15135         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15136
15137         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15138
15139         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15140         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15141         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15142         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15143
15144         * math/bits/math-finite.h: Add ldexp support.
15145
15146 2012-01-10  Marek Polacek  <polacek@redhat.com>
15147
15148         * locale/programs/localedef.h (show_archive_content): Add noreturn
15149         attribute.
15150
15151 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15152
15153         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15154
15155 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15156
15157         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15158
15159         * io/Makefile (headers): Add bits/poll2.h.
15160
15161 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15162
15163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15164         typo #include statement.
15165
15166 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15167
15168         * include/sys/cdefs.h: Define __attribute_alloc_size.
15169         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15170         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15171         * elf/pldd.c: Likewise.
15172         * iconv/iconv_charmap.c: Likewise.
15173         * iconv/iconvconfig.c: Likewise.
15174         * iconv/strtab.c: Likewise.
15175         * locale/programs/locale.c: Likewise.
15176         * locale/programs/localedef.h: Likewise.
15177         * locale/programs/simple-hash.c: Likewise.
15178         * nscd/nscd.h: Likewise.
15179         * nss/makedb.c: Likewise.
15180         * sysdeps/generic/ldconfig.h: Likewise.
15181         * locale/programs/localedef.c: Remove xmalloc prototype.
15182         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15183
15184 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15185
15186         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15187         appropriate.
15188
15189 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15190
15191         * math/Makefile (tests): Add tst-CMPLX.
15192         * math/tst-CMPLX.c: New file.
15193
15194         * math/complex.h (CMPLXL): Fix typo.
15195
15196         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15197         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15198         GLIBC_2.16.
15199         * debug/tst-chk1.c: Add poll and ppoll tests.
15200         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15201         * include/sys/poll.h: Add hidden proto for ppoll.
15202         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15203         * sysdeps/mach/hurd/ppoll.c: Likewise.
15204         * io/ppoll.c: Likewise.
15205         * debug/poll_chk.c: New file.
15206         * debug/ppoll_chk.c: New file.
15207         * include/bits/poll2.h: New file.
15208         * io/bits/poll2.h: New file.
15209
15210         [BZ #1350]
15211         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15212
15213         * configure.in: static is always set to yes.  Remove.
15214         * config.make.in: Don't set build-static.
15215         * Makeconfig: Remove use of build-static.
15216         * dlfcn/Makefile: Likewise.
15217         * elf/Makefile: Likewise.
15218         * math/Makefile: Likewise.
15219         * misc/Makefile: Likewise.
15220         * nptl/Makefile: Likewise.
15221         * sysdeps/mach/hurd/Makefile: Likewise.
15222
15223         * configure.in: PWD_P is not used anymore.
15224         * config.make.in: Remove PWD_P entry.
15225
15226         * configure.in: Remove last remnants of RANLIB.
15227         No need to check for signed size_t anymore.
15228         Don't set libc_commonpagesize and libc_relro_required here for Alpha
15229         and IA-64.
15230         Remove __builtin_expect test because we require at least gcc 3.4.
15231         * aclocal.m4: Likewise.
15232
15233         * wcsmbs/mbrtoc16.c: Implement using towc function.
15234         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15235         * wcsmbs/wcsmbsload.c: Likewise.
15236         * iconv/gconv_simple.c: Likewise.
15237         * iconv/gconv_int.h: Likewise.
15238         * iconv/gconv_builtin.h: Likewise.
15239         * iconv/iconv_prog.c: Remove CHAR16 handling.
15240
15241         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15242
15243         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15244
15245         * configure.in: Remove --with-elf and --enable-bounded options.
15246         Dont set base_machine for ia64.  More non-ELF conditions removed.
15247         Remove testing and setting of leading underscore information.
15248         * config.make.in (build-bounded): Set to no.
15249         * config.h.in: Remove NO_UNDERSCORES entry.
15250         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15251         them.
15252         * csu/start.c: Remove !NO_UNDERSCORE code.
15253         * locale/localeinfo.h: Likewise.
15254         * sysdeps/generic/machine-gmon.h: Likewise.
15255         * sysdeps/generic/sysdep.h: Likewise.
15256         * sysdeps/i386/sysdep.h: Likewise.
15257         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15258         * sysdeps/mach/sysdep.h: Likewise.
15259         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15260         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15261         * sysdeps/sh/sysdep.h: Likewise.
15262         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15263         * sysdeps/unix/i386/sysdep.S: Likewise.
15264         * sysdeps/unix/sparc/start.c: Likewise.
15265         * sysdeps/unix/sparc/sysdep.S: Likewise.
15266         * sysdeps/unix/sparc/sysdep.h: Likewise.
15267         * sysdeps/unix/start.c: Likewise.
15268         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15269         * sysdeps/x86_64/sysdep.h: Likewise.
15270
15271 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15272
15273         [BZ #13553]
15274         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15275         for non-gcc.
15276         * argp/argp-fmtstream.h: Use const instead __const.
15277         * argp/argp.h: Likewise.
15278         * assert/assert.h: Likewise.
15279         * bits/fenv.h: Likewise.
15280         * bits/sched.h: Likewise.
15281         * bits/sigset.h: Likewise.
15282         * bits/sigthread.h: Likewise.
15283         * catgets/nl_types.h: Likewise.
15284         * conform/data/pthread.h-data: Likewise.
15285         * crypt/crypt-private.h: Likewise.
15286         * crypt/crypt.h: Likewise.
15287         * crypt/crypt_util.c: Likewise.
15288         * ctype/ctype.h: Likewise.
15289         * debug/execinfo.h: Likewise.
15290         * debug/mbsnrtowcs_chk.c: Likewise.
15291         * debug/mbsrtowcs_chk.c: Likewise.
15292         * debug/wcsnrtombs_chk.c: Likewise.
15293         * debug/wcsrtombs_chk.c: Likewise.
15294         * debug/wcstombs_chk.c: Likewise.
15295         * dirent/dirent.h: Likewise.
15296         * dlfcn/dlfcn.h: Likewise.
15297         * elf/neededtest4.c: Likewise.
15298         * grp/grp.h: Likewise.
15299         * gshadow/gshadow.h: Likewise.
15300         * iconv/gconv.h: Likewise.
15301         * iconv/gconv_int.h: Likewise.
15302         * iconv/gconv_simple.c: Likewise.
15303         * iconv/iconv.h: Likewise.
15304         * iconv/loop.c: Likewise.
15305         * iconv/skeleton.c: Likewise.
15306         * include/aio.h: Likewise.
15307         * include/aliases.h: Likewise.
15308         * include/argz.h: Likewise.
15309         * include/arpa/inet.h: Likewise.
15310         * include/assert.h: Likewise.
15311         * include/dirent.h: Likewise.
15312         * include/dlfcn.h: Likewise.
15313         * include/execinfo.h: Likewise.
15314         * include/fcntl.h: Likewise.
15315         * include/fenv.h: Likewise.
15316         * include/glob.h: Likewise.
15317         * include/grp.h: Likewise.
15318         * include/libintl.h: Likewise.
15319         * include/mntent.h: Likewise.
15320         * include/netdb.h: Likewise.
15321         * include/pwd.h: Likewise.
15322         * include/rpc/netdb.h: Likewise.
15323         * include/sched.h: Likewise.
15324         * include/search.h: Likewise.
15325         * include/shadow.h: Likewise.
15326         * include/signal.h: Likewise.
15327         * include/stdio.h: Likewise.
15328         * include/stdlib.h: Likewise.
15329         * include/string.h: Likewise.
15330         * include/sys/socket.h: Likewise.
15331         * include/sys/stat.h: Likewise.
15332         * include/sys/statfs.h: Likewise.
15333         * include/sys/statvfs.h: Likewise.
15334         * include/sys/syslog.h: Likewise.
15335         * include/sys/time.h: Likewise.
15336         * include/sys/uio.h: Likewise.
15337         * include/time.h: Likewise.
15338         * include/unistd.h: Likewise.
15339         * include/utmp.h: Likewise.
15340         * include/wchar.h: Likewise.
15341         * include/wctype.h: Likewise.
15342         * inet/aliases.h: Likewise.
15343         * inet/arpa/inet.h: Likewise.
15344         * inet/netinet/ether.h: Likewise.
15345         * inet/netinet/in.h: Likewise.
15346         * intl/libintl.h: Likewise.
15347         * io/bits/fcntl2.h: Likewise.
15348         * io/fcntl.h: Likewise.
15349         * io/ftw.h: Likewise.
15350         * io/sys/poll.h: Likewise.
15351         * io/sys/stat.h: Likewise.
15352         * io/sys/statfs.h: Likewise.
15353         * io/sys/statvfs.h: Likewise.
15354         * io/utime.h: Likewise.
15355         * libio/bits/stdio.h: Likewise.
15356         * libio/bits/stdio2.h: Likewise.
15357         * libio/libio.h: Likewise.
15358         * libio/libioP.h: Likewise.
15359         * libio/stdio.h: Likewise.
15360         * locale/lc-ctype.c: Likewise.
15361         * locale/locale.h: Likewise.
15362         * login/utmp.h: Likewise.
15363         * malloc/arena.c: Likewise.
15364         * malloc/malloc.c: Likewise.
15365         * malloc/malloc.h: Likewise.
15366         * malloc/mcheck.c: Likewise.
15367         * malloc/mtrace.c: Likewise.
15368         * math/bits/mathcalls.h: Likewise.
15369         * math/fenv.h: Likewise.
15370         * math/math_private.h: Likewise.
15371         * misc/bits/error.h: Likewise.
15372         * misc/bits/syslog.h: Likewise.
15373         * misc/err.h: Likewise.
15374         * misc/error.h: Likewise.
15375         * misc/fstab.h: Likewise.
15376         * misc/mntent.h: Likewise.
15377         * misc/regexp.h: Likewise.
15378         * misc/search.h: Likewise.
15379         * misc/sgtty.h: Likewise.
15380         * misc/sys/mman.h: Likewise.
15381         * misc/sys/syslog.h: Likewise.
15382         * misc/sys/uio.h: Likewise.
15383         * misc/sys/xattr.h: Likewise.
15384         * misc/ttyent.h: Likewise.
15385         * nis/rpcsvc/ypclnt.h: Likewise.
15386         * nss/nss.h: Likewise.
15387         * posix/bits/unistd.h: Likewise.
15388         * posix/fnmatch.h: Likewise.
15389         * posix/glob.h: Likewise.
15390         * posix/sched.h: Likewise.
15391         * posix/spawn.h: Likewise.
15392         * posix/sys/wait.h: Likewise.
15393         * posix/unistd.h: Likewise.
15394         * posix/wordexp.h: Likewise.
15395         * pwd/pwd.h: Likewise.
15396         * resolv/netdb.h: Likewise.
15397         * resource/sys/resource.h: Likewise.
15398         * rt/aio.h: Likewise.
15399         * rt/bits/mqueue2.h: Likewise.
15400         * rt/mqueue.h: Likewise.
15401         * shadow/shadow.h: Likewise.
15402         * signal/signal.h: Likewise.
15403         * socket/send.c: Likewise.
15404         * socket/sendto.c: Likewise.
15405         * socket/sys/socket.h: Likewise.
15406         * stdio-common/printf.h: Likewise.
15407         * stdlib/bits/stdlib.h: Likewise.
15408         * stdlib/fmtmsg.h: Likewise.
15409         * stdlib/monetary.h: Likewise.
15410         * stdlib/stdlib.h: Likewise.
15411         * stdlib/ucontext.h: Likewise.
15412         * streams/stropts.h: Likewise.
15413         * string/argz.h: Likewise.
15414         * string/bits/string2.h: Likewise.
15415         * string/string.h: Likewise.
15416         * string/strings.h: Likewise.
15417         * sunrpc/rpc/auth.h: Likewise.
15418         * sunrpc/rpc/auth_des.h: Likewise.
15419         * sunrpc/rpc/clnt.h: Likewise.
15420         * sunrpc/rpc/netdb.h: Likewise.
15421         * sunrpc/rpc/pmap_clnt.h: Likewise.
15422         * sunrpc/rpc/xdr.h: Likewise.
15423         * sysdeps/generic/inttypes.h: Likewise.
15424         * sysdeps/generic/net/if.h: Likewise.
15425         * sysdeps/generic/sys/swap.h: Likewise.
15426         * sysdeps/gnu/net/if.h: Likewise.
15427         * sysdeps/gnu/utmpx.h: Likewise.
15428         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15429         * sysdeps/i386/i486/bits/string.h: Likewise.
15430         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15431         * sysdeps/s390/bits/string.h: Likewise.
15432         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15433         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15434         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15435         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15436         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15437         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15438         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15439         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15440         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15441         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15442         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15443         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15444         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15445         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15446         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15447         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15448         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15449         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15450         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15451         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15452         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15453         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15454         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15455         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15456         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15457         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15458         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15459         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15460         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15461         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15462         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15463         * sysvipc/sys/ipc.h: Likewise.
15464         * sysvipc/sys/msg.h: Likewise.
15465         * sysvipc/sys/sem.h: Likewise.
15466         * sysvipc/sys/shm.h: Likewise.
15467         * termios/termios.h: Likewise.
15468         * time/sys/time.h: Likewise.
15469         * time/time.h: Likewise.
15470         * wcsmbs/bits/wchar2.h: Likewise.
15471         * wcsmbs/uchar.h: Likewise.
15472         * wcsmbs/wchar.h: Likewise.
15473         * wctype/wctype.h: Likewise.
15474
15475         [BZ #13551]
15476         * Makeconfig: Remove all but ELF support including AIX support.
15477         * Makerules: Likewise.
15478         * config.h.in: Likewise.
15479         * config.make.in: Likewise.
15480         * configure: Likewise.
15481         * configure.in: Likewise.
15482         * csu/Makefile: Likewise.
15483         * csu/version.c: Likewise.
15484         * debug/Makefile: Likewise.
15485         * dlfcn/Makefile: Likewise.
15486         * elf/Makefile: Likewise.
15487         * extra-lib.mk: Likewise.
15488         * iconv/Makefile: Likewise.
15489         * include/libc-symbols.h: Likewise.
15490         * include/shlib-compat.h: Likewise.
15491         * resolv/Makefile: Likewise.
15492         * resolv/res_libc.c: Likewise.
15493         * rt/Makefile: Likewise.
15494         * sysdeps/i386/asm-syntax.h: Likewise.
15495         * sysdeps/i386/sysdep.h: Likewise.
15496         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15497         * sysdeps/mach/sysdep.h: Likewise.
15498         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15499         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15500         * sysdeps/s390/asm-syntax.h: Likewise.
15501         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15502         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15503         * sysdeps/sh/sysdep.h: Likewise.
15504         * sysdeps/unix/sparc/sysdep.h: Likewise.
15505         * sysdeps/wordsize-32/divdi3.c: Likewise.
15506         * sysdeps/x86_64/sysdep.h: Likewise.
15507
15508         * argp/Versions: Remove _argp_unlock_xxx.
15509
15510         [BZ #13559]
15511         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15512         * abilist/libBrokenLocale.abilist: Likewise.
15513         * abilist/libanl.abilist: Likewise.
15514         * abilist/libc.abilist: Likewise.
15515         * abilist/libcrypt.abilist: Likewise.
15516         * abilist/libdl.abilist: Likewise.
15517         * abilist/libm.abilist: Likewise.
15518         * abilist/libnsl.abilist: Likewise.
15519         * abilist/libpthread.abilist: Likewise.
15520         * abilist/libresolv.abilist: Likewise.
15521         * abilist/librt.abilist: Likewise.
15522         * abilist/libthread_db.abilist: Likewise.
15523         * abilist/libutil.abilist: Likewise.
15524         * abilist/libnss_db.abilist: New file.
15525
15526         * scripts/abilist.awk: Add support for indirect functions.
15527
15528         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15529
15530         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15531
15532         * shlib-versions: Remove entries for ports architectures.
15533
15534         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15535         files in ports.
15536         * elf/stackguard-macros.h: Remove support for IA-64.
15537         * elf/tst-auditmod1.c: Likewise.
15538         * sysdeps/generic/ldsodefs.h: Likewise.
15539
15540         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15541         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15542         configure files.
15543
15544         [BZ #13552]
15545         * configure.in: Remove --enable-omitfp support.
15546         * FAQ.in: Adjust.
15547         * config.make.in: Likewise.
15548         * Makeconfig: Likewise.
15549         * manual/install.texi: Likewise.
15550
15551         In case anyone cares, the IA-64 architecture could move to ports.
15552         * sysdeps/ia64/*: Removed.
15553         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15554         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15555
15556         [BZ #13555]
15557         * configure.in: Remove entries for unsupported architectures.
15558
15559         [BZ #13533]
15560         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15561         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15562         routines.
15563         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15564         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15565         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15566         fall back to using wcrtomb.
15567         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15568         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15569         renaming.
15570         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15571         * wcsmbs/tst-c16c32-1.c: New file.
15572
15573         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15574         local variable.
15575
15576         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15577
15578         * elf/tst-unique3.cc: Add explicit declaration of gets.
15579         * elf/tst-unique3lib.cc: Likewise.
15580         * elf/tst-unique3lib2.cc: Likewise.
15581         * elf/tst-unique4.cc: Likewise.
15582
15583         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15584
15585 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15586
15587         [BZ #13566]
15588         * assert/assert.h (static_assert): Don't define for C++.
15589         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15590         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15591
15592 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15593
15594         * iconv/loop.c (single loop): Fix assertion in storing of
15595         remaining bytes.
15596
15597         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15598
15599 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15600
15601         * posix/getconf.c: Update copyright year.
15602         * nss/getent.c: Likewise.
15603         * nss/makedb.c: Likewise.
15604         * iconv/iconvconfig.c: Likewise.
15605         * iconv/iconv_prog.c: Likewise.
15606         * elf/ldconfig.c: Likewise.
15607         * elf/pldd.c: Likewise.
15608         * elf/sotruss.ksh: Likewise.
15609         * catgets/gencat.c: Likewise.
15610         * csu/version.c: Likewise.
15611         * elf/ldd.bash.in: Likewise.
15612         * elf/sprof.c (print_version): Likewise.
15613         * locale/programs/locale.c: Likewise.
15614         * locale/programs/localedef.c: Likewise.
15615         * login/programs/pt_chown.c: Likewise.
15616         * nscd/nscd.c (print_version): Likewise.
15617         * debug/xtrace.sh: Likewise.
15618         * malloc/memusage.sh: Likewise.
15619         * malloc/mtrace.pl: Likewise.
15620         * debug/catchsegv.sh: Likewise.
15621
15622 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15623
15624         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15625         pure attribute.
15626
15627 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15628
15629         [BZ #13533]
15630         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15631         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15632         transformations.
15633         * iconv/gconv_int.h: Likewise.
15634         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15635         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15636         from libc for GLIBC_2.16.
15637         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15638         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15639         * wcsmbs/uchar.h: Really define mbstate_t.
15640         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15641         * wcsmbs/c16rtomb.c: New file.
15642         * wcsmbs/mbrtoc16.c: New file.
15643         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15644         for C/POSIX locale.
15645         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15646         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15647
15648         * wcsmbs/wchar.h: Add missing __restrict.
15649
15650 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15651
15652         [BZ #13532]
15653         * time/Makefile (routines): Add timespec_get.
15654         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15655         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15656         timespec for ISO C11.
15657         * time/timespec_get.c: New file.
15658         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15659         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15660
15661         [BZ #13531]
15662         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15663         * stdlib/stdlib.h: Declare aligned_alloc.
15664         * Versions.def: Add GLIBC_2.16 for libc.
15665         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15666
15667         [BZ 13527]
15668         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15669         ISO C11.
15670
15671         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15672         code.
15673
15674         [BZ #13528]
15675         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15676
15677         [BZ #13529]
15678         * assert/assert.h (static_assert): Define.
15679
15680         * version.h: Update for 2.16 development version.
15681
15682         [BZ #13526]
15683         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15684         _ISOC11_SOURCE.
15685
15686         * version.h (RELEASE): Bump for 2.15 release.
15687         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15688
15689         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15690         Patch by Marek Polacek <mpolacek@redhat.com>.
15691
15692         * bits/byteswap.h: Protect long long constants with __extension__.
15693         * sysdeps/i386/bits/byteswap.h: Likewise.
15694         * sysdeps/ia64/bits/byteswap.h: Likewise.
15695         * sysdeps/s390/bits/byteswap.h: Likewise.
15696         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15697
15698 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15699
15700         [BZ #13540]
15701         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15702         destination buffer.
15703         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15704
15705 2011-12-23  Marek Polacek  <polacek@redhat.com>
15706
15707         * elf/dl-addr.c (determine_info): Add inline keyword.
15708         * elf/tst-auditmod4b.c (check_avx): Likewise.
15709         * elf/tst-auditmod6b.c (check_avx): Likewise.
15710         * elf/tst-auditmod6c.c (check_avx): Likewise.
15711         * elf/tst-auditmod7b.c (check_avx): Likewise.
15712
15713 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15714
15715         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15716         !__SSE_MATH__.
15717
15718 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15719
15720         [BZ #13540]
15721         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15722         processing for last bytes.
15723
15724 2011-08-06  Bruno Haible  <bruno@clisp.org>
15725
15726         [BZ #13061]
15727         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15728         U+0385, not to U+1FEE.
15729
15730         [BZ #13062]
15731         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15732         entry for U+00A5 U+0301.
15733
15734 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15735
15736         [BZ #13166]
15737         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15738         buffer for the output is too small.
15739
15740         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15741         optimization.
15742
15743         [BZ #13185]
15744         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15745         SSE flags if possible.
15746
15747 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15748
15749         [BZ #13540]
15750         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15751         processing for last bytes.
15752
15753 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15754
15755         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15756         (syscall-list-default-options, syscall-list-default-condition)
15757         (syscall-list-includes): Define.
15758         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15759         list of ABIs and options and #if conditions for each ABI.  Do not
15760         handle common syscalls between ABIs specially.
15761         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15762         Remove.
15763         (syscall-list-variants, syscall-list-32bit-options)
15764         (syscall-list-32bit-condition, syscall-list-64bit-options)
15765         (syscall-list-64bit-condition): Define.
15766         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15767         (syscall-list-variants, syscall-list-32bit-options)
15768         (syscall-list-32bit-condition, syscall-list-64bit-options)
15769         (syscall-list-64bit-condition): Define.
15770         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15771         Remove.
15772         (syscall-list-variants, syscall-list-32bit-options)
15773         (syscall-list-32bit-condition, syscall-list-64bit-options)
15774         (syscall-list-64bit-condition): Define.
15775         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15776         Remove.
15777         (syscall-list-variants, syscall-list-32bit-options)
15778         (syscall-list-32bit-condition, syscall-list-64bit-options)
15779         (syscall-list-64bit-condition): Define.
15780
15781 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15782
15783         * locale/iso-639.def: Add brx entry.
15784
15785         [BZ #13328]
15786         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15787         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15788
15789         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15790         __feraiseexcept_renamed.
15791
15792 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15793
15794         [BZ #13538]
15795         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15796         EPOLLET with unsigned values.
15797         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15798         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15799
15800         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15801         to large cancellation.
15802         * math/s_cacoshf.c: Likewise.
15803         * math/s_cacoshl.c: Likewise.
15804
15805 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15806
15807         [BZ #13305]
15808         [BZ #12786]
15809         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15810         * math/s_cacoshf.c: Likewise.
15811         * math/s_cacoshl.c: Likewise.
15812
15813 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15814
15815         [BZ #13439]
15816         * iconv/gconv.h: Define __GCONV_SWAP.
15817         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15818         * iconvdata/utf-16.c: Likewise.
15819         * iconvdata/utf-32.c: Likewise.
15820
15821 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15822
15823         [BZ #13524]
15824         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15825         numerator after shifting it by one limb.
15826
15827 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15828
15829         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15830         under [__USE_EXTERN_INLINES].
15831
15832 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15833
15834         [BZ #13446]
15835         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15836
15837 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15838
15839         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15840         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15841         optimized code.
15842         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15843         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15844         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15845         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15846         for strncasecmp/strncasecmp_l compilation.
15847         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15848         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15849
15850 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15851
15852         [BZ #13484]
15853         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15854         of __asm__.
15855
15856 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15857
15858         [BZ #13506]
15859         * time/tzfile.c (__tzfile_read): Check values from file header.
15860
15861 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15862
15863         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15864         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15865         * powerpc/powerpc32/dl-start.S: Likewise.
15866         * powerpc/powerpc32/elf/start.S: Likewise.
15867         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15868         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15869         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15870         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15871         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15872         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15873         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15874         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15875         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15876         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15877         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15878         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15879         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15880         * powerpc/powerpc32/memset.S: Likewise.
15881         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15882         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15883         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15884         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15885         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15886         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15887         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15888         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15889         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15890         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15891         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15892         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15893         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15894
15895 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15896
15897         * math/libm-test.inc: Added more nearbyint tests.
15898         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15899         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15900         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15901         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15902
15903 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15904
15905         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15906         FD_CLOEXEC.
15907
15908 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15909
15910         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15911         Add wcscpy-ssse3 wcscpy-c.
15912         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15913         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15914         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15915         * sysdeps/x86_64/wcschr.S: New file.
15916         * sysdeps/x86_64/wcsrchr.S: New file.
15917         * string/test-strcmp.c: Remove checking of wcscmp function for
15918         wrong alignments.
15919         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15920         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15921         wcsrchr-sse2 wcsrchr-c.
15922         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15923         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15924         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15925         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15926         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15927         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15928         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15929         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15930         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15931         * wcsmbc/wcschr.c (WCSCHR): New macro.
15932
15933 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15934
15935         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15936         * wcsmbs/test-wcsrchr.c: New file.
15937         * string/test-strrchr.c: Add wcsrchr support.
15938         (WIDE): New macro.
15939         * wcsmbs/test-wcscpy.c: New file.
15940         * string/test-strcpy.c: Add wcscpy support.
15941         (WIDE): New macro.
15942
15943 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15944
15945         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15946         the inner loop.
15947
15948 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15949
15950         [BZ #13472]
15951         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15952
15953 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15954
15955         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
15956         Minor optimizations.
15957
15958         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
15959         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
15960         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
15961
15962 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
15963
15964         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
15965         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
15966         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
15967         for gcc to avoid warnings.
15968         * inet/Makefile (tests): Add tst-checks.
15969         * inet/tst-checks.c: New file.
15970
15971         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
15972         warning.
15973
15974         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
15975         __wmemcmp_sse2.
15976
15977         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
15978         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
15979
15980         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
15981
15982 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
15983
15984         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
15985         problem.
15986
15987         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
15988
15989 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
15990
15991         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
15992         conditional on GCC version.
15993         (__arch_compare_and_exchange_val_8_acq)
15994         (__arch_compare_and_exchange_val_16_acq)
15995         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
15996         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
15997         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
15998
15999 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
16000
16001         * sysdeps/sh/backtrace.c: New file.
16002
16003 2011-12-02  Andreas Schwab  <schwab@redhat.com>
16004
16005         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
16006         parenthesis.
16007
16008 2011-12-01  Andreas Schwab  <schwab@redhat.com>
16009
16010         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
16011         falling back to utime.
16012
16013 2011-11-30  Andreas Schwab  <schwab@redhat.com>
16014
16015         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
16016         expectations for float.
16017
16018 2011-11-29  Andreas Schwab  <schwab@redhat.com>
16019
16020         * locale/weight.h (findidx): Add parameter len.
16021         * locale/weightwc.h (findidx): Likewise.
16022         * posix/fnmatch_loop.c (FCT): Adjust caller.
16023         * posix/regcomp.c (build_equiv_class): Likewise.
16024         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
16025         * posix/regexec.c (check_node_accept_bytes): Likewise.
16026         * string/strcoll_l.c (STRCOLL): Likewise.
16027         * string/strxfrm_l.c (STRXFRM): Likewise.
16028
16029 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
16030
16031         * Makefile.in: Remove CVSOPT handling.
16032         * configure.in: Remove use of AC_REVISION.
16033         * iconvdata/Makefile (distribute): No need to filter out CVS.
16034         * scripts/list-sources.sh: Remove CVS, subversion and monotone
16035         handling.
16036
16037 2011-11-16  Andreas Schwab  <schwab@redhat.com>
16038
16039         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16040         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16041         [USE_AS_STRNCASECMP_L]: Likewise.
16042         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16043         NO_TLS_DIRECT_SEG_REFS.
16044         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16045         Fix argument offsets for non-PIC.
16046         [USE_AS_STRNCASECMP_L]: Likewise.
16047         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16048         NO_TLS_DIRECT_SEG_REFS.
16049
16050 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16051
16052         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16053         O_CLOEXEC.
16054         * locale/loadlocale.c (_nl_load_locale): Likewise.
16055
16056 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16057
16058         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16059         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16060         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16061         (SYSCALL_GETTIME): Set errno on error.
16062
16063         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16064         count references to noai6ai_cached.
16065
16066 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16067
16068         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16069
16070         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16071         FD_CLOEXEC for /proc/self/maps.
16072
16073         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16074         FD_CLOEXEC for /proc/meminfo.
16075
16076         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16077         gai.conf.
16078
16079         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16080         FD_CLOEXEC for given file.
16081
16082         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16083
16084         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16085         FD_CLOEXEC for /etc/hosts.
16086         (_gethtent): Likewise.
16087
16088         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16089
16090         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16091         cancellation and set FD_CLOEXEC for /etc/netgroup.
16092
16093         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16094         reading /etc/publickey.
16095
16096         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16097         allow cancellation when reading /etc/group.
16098
16099         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16100         cancellation.
16101         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16102
16103         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16104         when using data file.
16105
16106         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16107
16108         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16109         (write_nis_obj): Use "c" and "e" in fopen.
16110
16111         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16112
16113         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16114
16115         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16116
16117         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16118
16119         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16120         locale.alias.
16121
16122         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16123
16124         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16125
16126         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16127
16128         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16129         file parsing and set FD_CLOEXEC.
16130
16131 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16132
16133         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16134
16135 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16136
16137         * malloc/arena.c (arena_get2): Don't call reused_arena when
16138         _int_new_arena failed.
16139
16140 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16141
16142         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16143         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16144         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16145         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16146         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16147         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16148         to compile strcasecmp and strncasecmp.
16149         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16150         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16151
16152         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16153
16154 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16155
16156         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16157         locale-defines.sym to gen-as-const-headers.
16158         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16159         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16160         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16161         to compile strcasecmp and strncasecmp.
16162         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16163         strcasecmp_l and strncasecmp_l.
16164         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16165         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16166         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16167         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16168         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16169         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16170         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16171         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16172         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16173         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16174         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16175
16176 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16177
16178         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16179         result of SYSDEP_GETTIME_CPU to retval.
16180         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16181         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16182
16183         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16184         variable.
16185
16186         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16187         mantissa words.
16188         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16189
16190         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16191         from unused variable.
16192
16193         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16194         DWARF definitions.
16195         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16196         for assembling.
16197
16198         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16199         over namespaces.
16200
16201         * sunrpc/rpc_prot.c (rejected): Fix case value.
16202
16203         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16204         unsigned long long int to avoid warnings in shift.
16205
16206         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16207         of use of trans.
16208         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16209         variable tmp.
16210
16211         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16212         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16213         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16214
16215         * nis/nis_table.c (nis_list): Use variable of correct type for
16216         result of __follow_path call.
16217
16218 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16219
16220         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16221         of math functions ceil, trunc, floor, round, and sqrt, when
16222         avaliable on the platform.
16223         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16224         name clash.
16225         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16226         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16227         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16228
16229 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
16230
16231         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16232         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16233
16234 2011-11-11  Roland McGrath  <roland@hack.frob.com>
16235
16236         * include/unistd.h: Fix __readlink return type.
16237         Reported by Chris Metcalf <cmetcalf@tilera.com>.
16238
16239 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
16240
16241         * stdlib/ucontext.h: Undo last change for makecontext.
16242
16243 2011-11-11  Andreas Schwab  <schwab@redhat.com>
16244
16245         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16246
16247         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16248         * setjmp/setjmp.h: Mark functions as non-leaf.
16249         * setjmp/bits/setjmp2.h: Likewise.
16250         * stdlib/ucontext.h: Likewise.
16251
16252 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16253
16254         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16255         (reused_arena): Don't check arena limit.
16256         (arena_get2): Atomically check arena limit.
16257
16258 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16259
16260         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16261         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16262
16263         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16264         instructions.
16265
16266 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16267
16268         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16269         handler when locking.
16270
16271         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16272         Fix size of allocated buffer.
16273
16274 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16275
16276         [BZ #10103]
16277         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16278         declarations for long double functions.
16279         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16280
16281         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16282
16283 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16284
16285         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16286         installed.
16287
16288         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16289         is disabled.
16290
16291 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16292
16293         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16294
16295 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16296
16297         * include/alloca.h (stackinfo_alloca_round): Define.
16298         (extend_alloca): Use it.
16299         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16300         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16301         here.
16302
16303         * scripts/check-local-headers.sh: Ignore libaudit.h.
16304
16305         * nscd/Makefile (extra-objs): Make recursively expanded.
16306
16307 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16308
16309         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16310         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16311
16312         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16313         * posix/tst-rfc3484-2.c: Likewise.
16314         * posix/tst-rfc3484-3.c: Likewise.
16315
16316         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16317         process_vm_writev.
16318         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16319         process_vm_writev.
16320         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16321         process_vm_writev from libc using GLIBC_2.15 version.
16322
16323         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16324
16325 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16326
16327         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16328         stack usage.
16329
16330 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16331
16332         [BZ #13367]
16333         * nss/getent.c (initgroups_keys): Show error message in case no group
16334         names are given.
16335
16336         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16337         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16338         __bump_nl_timestamp.
16339         * nscd/connections (nscd_init): When host database is served open
16340         netlink socket and request notification about configuration changes.
16341         (main_loop_poll): Track netlink file descriptor and bump timestamp
16342         in case data becomes available.
16343         (main_loop_epoll): Likewise.
16344         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16345         (database_pers_head): Add extra_data fileds.
16346         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16347         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16348         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16349         Adjust caller.
16350         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16351         in6ai data, call __free_in6ai.
16352         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16353         Add -DHAVE_NETLINK.
16354         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16355         interface information.  Reuse previous data if netlink timestamp
16356         is not changed.
16357         (__bump_nl_timestamp): New function.
16358         (__free_in6ai): New function.
16359
16360 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16361
16362         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16363         close_not_cancel_no_status here.
16364         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16365
16366 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16367
16368         [BZ #13276]
16369         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16370         return value.
16371
16372         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16373         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16374         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16375
16376 2011-07-03  Andreas Jaeger  <aj@suse.de>
16377
16378         [BZ #10709]
16379         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16380         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16381         * math/libm-test.inc (sin_test): Add test case.
16382
16383 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16384
16385         [BZ #13337]
16386         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16387         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16388
16389         * elf/chroot_canon.c (chroot_canon): Cleanups.
16390
16391         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16392
16393         [BZ #13335]
16394         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16395         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16396
16397         * string/test-strchr.c: Make usable for strchrnul testing.
16398         * string/test-strchrnul.c: New file.
16399         * string/Makefile (strop-tests): Add strchrnul.
16400
16401         * po/it.po: Update from translation team.
16402         * po/es.po: Likewise.
16403
16404 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16405
16406         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16407         the three constants needed as parameters.  Drop the others.
16408         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16409         __m128i_strloadu_tolower.
16410         Create and initialize variable zero and use it in all the places
16411         where _mm_setzero_si128 was used.
16412
16413         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16414         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16415         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16416         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16417         anymore.
16418         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16419         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16420         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16421         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16422         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16423         __mpranred, __mptan.
16424         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16425         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16426         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16427         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16428         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16429         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16430         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16431         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16432         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16433
16434 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16435
16436         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16437         redefine if SHARED.
16438         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16439
16440         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16441         wide char related routines to wcsmbs subdir.
16442
16443 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16444
16445         [BZ #13344]
16446         * misc/sys/cdefs.h (__THROWNL): Define.
16447         * posix/unistd.h: Use __THREADNL instead of __THREAD
16448         for memory synchronization functions.
16449
16450 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16451
16452         [BZ #13349]
16453         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16454         doesn't exist.
16455         * manual/stdio.texi (Obstack Streams): Node removed.
16456
16457 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16458
16459         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16460         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16461         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16462
16463         * math/math_private.h (math_force_eval): Allow non-addressable
16464         arguments.
16465         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16466
16467 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16468
16469         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16470         file is not needed.
16471
16472         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16473         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16474         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16475         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16476         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16477         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16478         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16479         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16480         Add AVX variants.
16481         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16482         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16483         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16484         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16485         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16486         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16487         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16488         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16489         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16490         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16491         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16492         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16493         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16494         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16495         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16496         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16497         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16498         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16499         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16500
16501         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16502         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16503
16504         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16505         place.  Use VEX encoding when compiling for AVX.
16506
16507 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16508
16509         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16510         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16511
16512         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16513
16514 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16515
16516         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16517         useless if() expression.
16518         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16519         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16520         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16521         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16522         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16523         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16524         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16525         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16526         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16527         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16528         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16529         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16530         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16531         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16532         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16533         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16534         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16535         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16536         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16537
16538         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16539
16540 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16541
16542         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16543         condition.
16544         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16545
16546 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16547
16548         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16549         .text section.  Avoid duplicate constants.
16550         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16551         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16552         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16553         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16554         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16555         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16556         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16557         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16558         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16559         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16560         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16561         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16562         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16563         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16564         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16565         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16566         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16567         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16568         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16569         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16570         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16571         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16572         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16573         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16574         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16575         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16576         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16577         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16578         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16579         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16580         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16581         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16582         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16583         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16584         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16585         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16586         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16587         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16588         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16589         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16590         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16591         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16592         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16593         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16594         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16595
16596 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16597
16598         * sysdeps/x86_64/dla.h: Move to ...
16599         * sysdeps/x86_64/fpu/dla.h: ...here.
16600         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16601         situations.  Use __builtin_fma only for gcc 4.6 and up.
16602
16603         * config.make.in: Add have-mfma4 entry.
16604         * configure.in: Substitute libc_cv_cc_fma4.
16605         * math/Makefile (dbl-only-routines): Add sincostab.
16606         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16607         Use __sincostab not sincos.
16608         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16609         name is a macro.
16610         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16611         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16612         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16613         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16614         using __copysign.
16615         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16616         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16617         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16618         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16619         and __inv.
16620         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16621         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16622         __copysign.
16623         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16624         define aliases when function name is a macro.
16625         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16626         sysdeps/ieee754/dbl-64/sincos.tbl.
16627         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16628         fma4-enabled routines.
16629         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16630         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16631         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16632         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16633         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16634         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16635         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16636         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16637         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16638         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16639         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16640         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16641         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16642         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16643         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16644         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16645         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16646         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16647         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16648         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16649         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16650         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16651         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16652         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16653         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16654         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16655         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16656         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16657         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16658         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16659
16660         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16661         rename.
16662         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16663         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16664         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16665         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16666         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16667         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16668         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16669         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16670
16671 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16672
16673         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16674
16675 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16676
16677         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16678
16679         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16680         prediction.
16681         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16682
16683         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16684         Remove unused variable magic_bits.
16685         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16686
16687         * string/strnlen.c: Define and use STRNLEN macro.
16688         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16689         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16690         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16691         * wcsmbs/wcslen.c: Define and use WCSLEN.
16692         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16693         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16694         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16695         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16696         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16697         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16698         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16699
16700 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16701
16702         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16703         strnlen-sse2-no-bsf.
16704         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16705         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16706         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16707         Add strnlen support.
16708         (USE_AS_STRNLEN): New macro.
16709         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16710         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16711         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16712         * sysdeps/x86_64/wcslen.S: New file.
16713
16714 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16715
16716         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16717         XMM-moves are used for copying on small sizes.
16718
16719 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16720
16721         * wcsmbs/Makefile (strop-tests): Add wcschr.
16722         * wcsmbs/test-wcschr.c: New file.
16723         * string/test-strchr.c: Update.
16724         Add wcschr support.
16725         (WIDE): New macro.
16726
16727 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16728
16729         * wcsmbs/Makefile (strop-tests): Add wcslen.
16730         * wcsmbs/test-wcslen.c: New file.
16731         * string/test-strlen.c: Update.
16732         Add wcslen support.
16733         (WIDE): New macro.
16734
16735 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16736
16737         * po/it.po: Update from translation team.
16738
16739 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16740
16741         * sysdeps/x86_64/wcscmp.S: Update.
16742         Fix wrong comparison semantics.
16743         wcscmp shall use signed comparison not unsigned.
16744         Don't use substraction to avoid overflow bug.
16745         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16746         * wcsmbc/wcscmp.c: Likewise.
16747         * string/test-strcmp.c: Likewise.
16748         Add new tests to check cases with negative values.
16749
16750 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16751
16752         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16753         * sysdeps/x86_64/dla.h: ...here.  New file.
16754         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16755         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16756         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16757         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16758         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16759         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16760         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16761         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16762         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16763
16764 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16765
16766         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16767         __ynl_finite aliases.
16768
16769 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16770
16771         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16772
16773         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16774         define DLA_FMA.
16775         [DLA_FMA] (EMULV): Use DLA_FMA.
16776         [DLA_FMA] (MUL12): Use EMULV.
16777         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16778         that are not needed.
16779         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16780         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16781         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16782         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16783         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16784         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16785         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16786
16787 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16788
16789         * math/s_nan.c: Undef __nan.
16790         * math/s_nanf.c: Undef __nanf.
16791         * math/s_nanl.c: Undef __nanl.
16792         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16793         "math_private.h".
16794
16795 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16796
16797         * math/s_catan.c: Add branch predictions.
16798         * math/s_catanf.c: Likewise.
16799         * math/s_catanh.c: Likewise.
16800         * math/s_catanhf.c: Likewise.
16801         * math/s_catanhl.c: Likewise.
16802         * math/s_catanl.c: Likewise.
16803         * math/s_cexp.c: Likewise.
16804         * math/s_cexpf.c: Likewise.
16805         * math/s_cexpl.c: Likewise.
16806         * math/s_clog.c: Likewise.
16807         * math/s_clog10.c: Likewise.
16808         * math/s_clog10f.c: Likewise.
16809         * math/s_clog10l.c: Likewise.
16810         * math/s_clogf.c: Likewise.
16811         * math/s_clogl.c: Likewise.
16812         * math/s_csqrt.c: Likewise.
16813         * math/s_csqrtf.c: Likewise.
16814         * math/s_csqrtl.c: Likewise.
16815         * math/s_ctanf.c: Likewise.
16816         * math/s_ctanh.c: Likewise.
16817         * math/s_ctanhf.c: Likewise.
16818         * math/s_ctanhl.c: Likewise.
16819         * math/s_ctanl.c: Likewise.
16820
16821         * math/math_private.h: Define __nan, __nanf, __nanl.
16822         * math/s_cacosh.c: Include <math_private.h>.
16823         * math/s_cacoshl.c: Likewise.
16824         * math/s_casinh.c: Likewise.
16825         * math/s_casinhf.c: Likewise.
16826         * math/s_casinhl.c: Likewise.
16827         * math/s_ccos.c: Rely entire on ccosh.
16828         * math/s_ccosf.c: Rely entire on ccoshf.
16829         * math/s_ccosl.c: Rely entirely on ccoshl.
16830         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16831         Remove tests for FE_INVALID.
16832         * math/s_ccoshf.c: Likewise.
16833         * math/s_ccoshl.c: Likewise.
16834         * math/s_csin.c: Likewise.
16835         * math/s_csinf.c: Likewise.
16836         * math/s_csinh.c Likewise.
16837         * math/s_csinhf.c: Likewise.
16838         * math/s_csinhl.c: Likewise.
16839         * math/s_csinl.c: Likewise.
16840         * math/s_ctan.c: Likewise.
16841         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16842         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16843         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16844
16845 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16846
16847         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16848         compilation problems.
16849
16850         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16851         __builtin_expect.
16852
16853 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16854
16855         * sysdeps/i386/configure.in: Test for -mfma4 option.
16856         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16857         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16858         COMMON_CPUID_INDEX_80000001.
16859         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16860         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16861         use it if FMA3 is not supported.
16862         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16863
16864         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16865         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16866
16867 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16868
16869         [BZ #12892]
16870         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16871         it would create a cycle with a link time dependency.
16872
16873 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16874
16875         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16876         instruction.
16877         * string/Makefile (strop-tests): Add rawmemchr.
16878         * string/test-rawmemchr.c: New file.
16879
16880         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16881         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16882         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16883         when compiling str{,n}casecmp and when AVX is available.  Hook up
16884         new optimized code in initializers.
16885
16886 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16887
16888         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16889         __feraiseexcept instead of feraiseexcept.
16890
16891 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16892
16893         * math/math_private.h: Define defaults for libc_fetestexcept and
16894         libc_feupdateenv.
16895         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16896         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16897         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16898         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16899         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16900         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16901         libc_fetestexcept and libc_feupdateenv.
16902
16903         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16904         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16905         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16906         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16907         libc_feholdexcept_setround.
16908
16909         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16910         Add s_nearbyint-c and s_nearbyintf-c.
16911         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16912         nearbyintf inlines.
16913         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16914         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16915         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16916         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16917
16918         * math/math_private.h: Define defaults for libc_fegetround,
16919         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16920         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16921         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16922         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16923         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16924         standard functions.
16925         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16926         Remove comments and hacks for old compiler versions.
16927         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16928         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16929         libc_feholdexceptl.
16930
16931 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16932
16933         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16934         (__feraiseexcept_renamed): Add __NTH.
16935         (feraiseexcept): Add __NTH.  Rename local variables to fix
16936         namespace violations.
16937
16938 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16939
16940         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16941
16942         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16943
16944         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16945         recently added interfaces.
16946         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16947
16948         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16949         about macro parameter expansion.
16950
16951         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16952         __NO_MATH_INLINES is defined.  Cleanups.
16953
16954         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16955         and __floorf is target has SSE4.1.
16956         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
16957         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
16958         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
16959         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
16960
16961         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
16962         name.
16963         (floorf): Likewise.
16964
16965         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
16966
16967 2011-10-17  Andreas Schwab  <schwab@redhat.com>
16968
16969         * misc/sys/cdefs.h: Fix last change.
16970
16971         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
16972         database lookup.
16973
16974 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
16975
16976         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
16977
16978         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
16979         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16980         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
16981         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16982         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16983         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
16984         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16985         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16986         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
16987         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
16988         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
16989         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
16990         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
16991         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
16992         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
16993         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
16994         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
16995         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
16996         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
16997         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
16998         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
16999         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
17000
17001         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
17002         ceil, ceilf, floor, floorf.
17003
17004         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
17005         Perform IRELATIVE relocations last.
17006
17007         * elf/do-rel.h: Add another parameter nrelative, replacing the
17008         local variable with the same name.  Change name of the function
17009         to end in Rel or Rela (uppercase).
17010         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
17011         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
17012         elf_dynamic_do_##reloc function.
17013
17014 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17015
17016         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
17017         is sufficient, at least on modern CPUs.
17018
17019         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
17020
17021         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
17022         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
17023
17024         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
17025         __expl_finite.
17026         * math/bits/math-finite.h: Add entries for exp.
17027         * math/e_expl.c: Add __*_finite alias.
17028         * sysdeps/i386/fpu/e_exp.S: Likewise.
17029         * sysdeps/i386/fpu/e_expf.S: Likewise.
17030         * sysdeps/i386/fpu/e_expl.c: Likewise.
17031         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17032         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17033         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17034         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17035         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17036         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17037         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17038
17039         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17040         is sufficient, at least on modern CPUs.
17041
17042         * ctype/ctype-info.c (__ctype_init): Define.
17043         * include/ctype.h (__ctype_init): Declare.
17044         (__ctype_b_loc): The variable is always initialized.
17045         (__ctype_toupper_loc): Likewise.
17046         (__ctype_tolower_loc): Likewise.
17047         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17048         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17049
17050 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17051
17052         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17053
17054         * configure.in: Also look in $cxxmachine/include for C++ system
17055         headers.
17056
17057 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17058
17059         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17060         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17061         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17062         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17063         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17064         (USE_AS_WMEMCMP): New macro.
17065         Fixing indents.
17066         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17067         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17068         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17069         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17070         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17071         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17072         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17073         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17074         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17075         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17076         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17077         (USE_AS_WMEMCMP): New macro.
17078         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17079         * sysdeps/string/test-memcmp.c: Update.
17080         Fix simple_wmemcmp.
17081         Add new tests.
17082         * wcsmbs/wmemcmp.c: Update.
17083         (WMEMCMP): New macro.
17084         Fix overflow bug.
17085
17086 2011-10-12  Andreas Jaeger  <aj@suse.de>
17087
17088         [BZ #13268]
17089         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17090
17091 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17092
17093         * libio/iofwide.c (do_length): Avoid warning.
17094
17095         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17096
17097 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17098
17099         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17100
17101         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17102         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17103         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17104         * sysdeps/i386/i686/fpu/e_log.S: New file.
17105         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17106         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17107
17108         * ctype/ctype.h: Add support for inlined isXXX functions when
17109         compiling C++ code.
17110
17111 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17112
17113         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17114
17115         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17116
17117 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17118
17119         [BZ #13291]
17120         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17121
17122 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17123
17124         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17125         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17126         feraiseexcept.
17127
17128         * sysdeps/x86_64/memrchr.S: Check for zero size.
17129
17130         * string/stratcliff.c: Add memrchr tests.
17131
17132 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17133
17134         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17135         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17136         rawmemchr-sse2 rawmemchr-sse2-bsf.
17137         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17138         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17139         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17140         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17141         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17142         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17143         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17144         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17145         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17146         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17147         * string/memrchr.c (MEMRCHR): New macro.
17148
17149 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17150
17151         Add integration with gcc's -ffinite-math-only and optimize wrapper
17152         functions in libm.
17153         * Versions.def: Define GLIBC_2.15 version for libm.
17154         * math/Makefile (headers): Add bits/math-finite.h.
17155         * math/bits/math-finite.h: New file.
17156         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17157         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17158         * math/e_acoshl.c: Add __*_finite alias.
17159         * math/e_acosl.c: Likewise.
17160         * math/e_asinl.c: Likewise.
17161         * math/e_atan2l.c: Likewise.
17162         * math/e_atanhl.c: Likewise.
17163         * math/e_coshl.c: Likewise.
17164         * math/e_exp10.c: Likewise.
17165         * math/e_exp10f.c: Likewise.
17166         * math/e_exp10l.c: Likewise.
17167         * math/e_exp2l.c: Likewise.
17168         * math/e_fmodl.c: Likewise.
17169         * math/e_gammal_r.c: Likewise.
17170         * math/e_hypotl.c: Likewise.
17171         * math/e_j0l.c: Likewise.
17172         * math/e_j1l.c: Likewise.
17173         * math/e_jnl.c: Likewise.
17174         * math/e_lgammal_r.c: Likewise.
17175         * math/e_log10l.c: Likewise.
17176         * math/e_log2l.c: Likewise.
17177         * math/e_logl.c: Likewise.
17178         * math/e_powl.c: Likewise.
17179         * math/e_sinhl.c: Likewise.
17180         * math/e_sqrtl.c: Likewise.
17181         * math/e_scalb.c: Completely rewritten and optimized.
17182         * math/e_scalbf.c: Likewise.
17183         * math/e_scalbl.c: Likewise.
17184         * math/w_acos.c: Likewise.
17185         * math/w_acosf.c: Likewise.
17186         * math/w_acosl.c: Likewise.
17187         * math/w_acosh.c: Likewise.
17188         * math/w_acoshf.c: Likewise.
17189         * math/w_acoshl.c: Likewise.
17190         * math/w_asin.c: Likewise.
17191         * math/w_asinf.c: Likewise.
17192         * math/w_asinl.c: Likewise.
17193         * math/w_atan2.c: Likewise.
17194         * math/w_atan2f.c: Likewise.
17195         * math/w_atan2l.c: Likewise.
17196         * math/w_atanh.c: Likewise.
17197         * math/w_atanhf.c: Likewise.
17198         * math/w_atanhl.c: Likewise.
17199         * math/w_exp10.c: Likewise.
17200         * math/w_exp10f.c: Likewise.
17201         * math/w_exp10l.c: Likewise.
17202         * math/w_fmod.c: Likewise.
17203         * math/w_fmodf.c: Likewise.
17204         * math/w_fmodl.c: Likewise.
17205         * math/w_j0.c: Likewise.
17206         * math/w_j0f.c: Likewise.
17207         * math/w_j0l.c: Likewise.
17208         * math/w_j1.c: Likewise.
17209         * math/w_j1f.c: Likewise.
17210         * math/w_j1l.c: Likewise.
17211         * math/w_jn.c: Likewise.
17212         * math/w_jnf.c: Likewise.
17213         * math/w_log.c: Likewise.
17214         * math/w_logf.c: Likewise.
17215         * math/w_logl.c: Likewise.
17216         * math/w_log10.c: Likewise.
17217         * math/w_log10f.c: Likewise.
17218         * math/w_log10l.c: Likewise.
17219         * math/w_log2.c: Likewise.
17220         * math/w_log2f.c: Likewise.
17221         * math/w_log2l.c: Likewise.
17222         * math/w_pow.c: Likewise.
17223         * math/w_powf.c: Likewise.
17224         * math/w_powl.c: Likewise.
17225         * math/w_remainder.c: Likewise.
17226         * math/w_remainderf.c: Likewise.
17227         * math/w_remainderl.c: Likewise.
17228         * math/w_scalb.c: Likewise.
17229         * math/w_scalbf.c: Likewise.
17230         * math/w_scalbl.c: Likewise.
17231         * math/w_sqrt.c: Likewise.
17232         * math/w_sqrtf.c: Likewise.
17233         * math/w_sqrtl.c: Likewise.
17234         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17235         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
17236         used.
17237         * math/math_private.h: Declare __kernel_standard_f.
17238         * math/w_cosh.c: Remove cruft and optimize a bit.
17239         * math/w_coshf.c: Likewise.
17240         * math/w_coshl.c: Likewise.
17241         * math/w_exp2.c: Likewise.
17242         * math/w_exp2f.c: Likewise.
17243         * math/w_exp2l.c: Likewise.
17244         * math/w_hypot.c: Likewise.
17245         * math/w_hypotf.c: Likewise.
17246         * math/w_hypotl.c: Likewise.
17247         * math/w_lgamma.c: Likewise.
17248         * math/w_lgamma_r.c: Likewise.
17249         * math/w_lgammaf.c: Likewise.
17250         * math/w_lgammaf_r.c: Likewise.
17251         * math/w_lgammal.c: Likewise.
17252         * math/w_lgammal_r.c: Likewise.
17253         * math/w_sinh.c: Likewise.
17254         * math/w_sinhf.c: Likewise.
17255         * math/w_sinhl.c: Likewise.
17256         * math/w_tgamma.c: Likewise.
17257         * math/w_tgammaf.c: Likewise.
17258         * math/w_tgammal.c: Likewise.
17259         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17260         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17261         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17262         Minor optimizations.  Pretty printing.  Remove cruft.
17263         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17264         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17265         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17266         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17267         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17268         * sysdeps/i386/fpu/e_asin.S: Likewise.
17269         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17270         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17271         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17272         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17273         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17274         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17275         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17276         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17277         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17278         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17279         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17280         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17281         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17282         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17283         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17284         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17285         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17286         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17287         * sysdeps/i386/fpu/e_log.S: Likewise.
17288         * sysdeps/i386/fpu/e_log10.S: Likewise.
17289         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17290         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17291         * sysdeps/i386/fpu/e_log2.S: Likewise.
17292         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17293         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17294         * sysdeps/i386/fpu/e_logf.S: Likewise.
17295         * sysdeps/i386/fpu/e_logl.S: Likewise.
17296         * sysdeps/i386/fpu/e_pow.S: Likewise.
17297         * sysdeps/i386/fpu/e_powf.S: Likewise.
17298         * sysdeps/i386/fpu/e_powl.S: Likewise.
17299         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17300         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17301         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17302         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17303         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17304         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17305         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17306         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17307         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17308         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17309         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17310         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17311         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17312         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17313         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17314         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17315         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17316         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17317         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17318         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17319         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17320         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17321         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17322         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17323         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17324         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17325         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17326         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17327         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17328         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17329         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17330         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17331         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17332         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17333         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17334         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17335         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17336         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17337         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17338         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17339         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17340         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17341         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17342         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17343         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17344         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17345         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17346         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17347         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17348         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17349         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17350         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17351         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17352         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17353         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17354         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17355         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17356         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17357         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17358         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17359         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17360         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17361         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17362         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17363         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17364         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17365         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17366         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17367         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17368         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17369         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17370         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17371         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17372         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17373         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17374         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17375         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17376         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17377         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17378         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17379         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17380         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17381         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17382         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17383         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17384         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17385         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17386         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17387         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17388         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17389         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17390         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17391         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17392         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17393         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17394         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17395         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17396         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17397         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17398         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17399         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17400         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17401         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17402         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17403         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17404         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17405         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17406         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17407         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17408         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17409         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17410         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17411         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17412         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17413         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17414         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17415         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17416         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17417         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17418         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17419         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17420         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17421         (__isnanf): Likewise.
17422         (__isinf_ns): Likewise.
17423         (__isinf_nsf): Likewise.
17424         (__finite): Likewise.
17425         (__finitef): Likewise.
17426         (__ieee754_sqrt): Define as macro.
17427         (__ieee754_sqrtf): Define as macro.
17428         (__ieee754_sqrtl): Define as macro.
17429         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17430         inlined copy.
17431         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17432         __FINITE_MATH_ONLY__ consistent.
17433         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17434
17435 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17436
17437         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17438         of rawmemchr.
17439
17440         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17441
17442 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17443
17444         * po/ja.po: Update from translation team.
17445
17446 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17447
17448         * locale/programs/locarchive.c (prepare_address_space): New function.
17449         (create_archive, enlarge_archive, open_archive): Use it.
17450
17451         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17452         inside [SHARED], where it is used.
17453
17454         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17455
17456         * nss/getent.c (netgroup_keys): Remove unused variable.
17457         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17458
17459 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17460
17461         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17462         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17463         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17464         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17465         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17466         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17467         * math/Makefile (libm-calls): Add s_isinf_ns.
17468         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17469         * math/multc3.c: Likewise.
17470         * math/s_casin.c: Likewise.
17471         * math/s_casinf.c: Likewise.
17472         * math/s_casinl.c: Likewise.
17473         * math/s_ccos.c: Likewise.
17474         * math/s_ccosf.c: Likewise.
17475         * math/s_ccosl.c: Likewise.
17476         * math/s_ctan.c: Likewise.
17477         * math/s_ctanf.c: Likewise.
17478         * math/s_ctanh.c: Likewise.
17479         * math/s_ctanhf.c: Likewise.
17480         * math/s_ctanhl.c: Likewise.
17481         * math/s_ctanl.c: Likewise.
17482         * math/w_fmod.c: Likewise.
17483         * math/w_fmodf.c: Likewise.
17484         * math/w_fmodl.c: Likewise.
17485         * math/w_remainder.c: Likewise.
17486         * math/w_remainderf.c: Likewise.
17487         * math/w_remainderl.c: Likewise.
17488         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17489         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17490         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17491         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17492         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17493         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17494         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17495         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17496
17497         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17498         of the number.
17499         * stdio-common/printf_fphex.c: Likewise.
17500         * stdio-common/printf_size.c: Likewise.
17501
17502         * math/e_exp10.c: Include math_private.h using <...> not "...".
17503         * math/e_exp10f.c: Likewise.
17504         * math/e_exp10l.c: Likewise.
17505         * math/e_exp2l.c: Likewise.
17506         * math/e_j0l.c: Likewise.
17507         * math/e_j1l.c: Likewise.
17508         * math/e_jnl.c: Likewise.
17509         * math/e_lgammal_r.c: Likewise.
17510         * math/e_rem_pio2l.c: Likewise.
17511         * math/e_scalb.c: Likewise.
17512         * math/e_scalbf.c: Likewise.
17513         * math/e_scalbl.c: Likewise.
17514         * math/k_cosl.c: Likewise.
17515         * math/k_sinl.c: Likewise.
17516         * math/k_tanl.c: Likewise.
17517         * math/s_cacoshf.c: Likewise.
17518         * math/s_catan.c: Likewise.
17519         * math/s_catanf.c: Likewise.
17520         * math/s_catanh.c: Likewise.
17521         * math/s_catanhf.c: Likewise.
17522         * math/s_catanhl.c: Likewise.
17523         * math/s_catanl.c: Likewise.
17524         * math/s_ccosh.c: Likewise.
17525         * math/s_ccoshf.c: Likewise.
17526         * math/s_ccoshl.c: Likewise.
17527         * math/s_cexp.c: Likewise.
17528         * math/s_cexpf.c: Likewise.
17529         * math/s_cexpl.c: Likewise.
17530         * math/s_clog.c: Likewise.
17531         * math/s_clog10.c: Likewise.
17532         * math/s_clog10f.c: Likewise.
17533         * math/s_clog10l.c: Likewise.
17534         * math/s_clogf.c: Likewise.
17535         * math/s_clogl.c: Likewise.
17536         * math/s_csin.c: Likewise.
17537         * math/s_csinf.c: Likewise.
17538         * math/s_csinh.c: Likewise.
17539         * math/s_csinhf.c: Likewise.
17540         * math/s_csinhl.c: Likewise.
17541         * math/s_csinl.c: Likewise.
17542         * math/s_csqrt.c: Likewise.
17543         * math/s_csqrtf.c: Likewise.
17544         * math/s_csqrtl.c: Likewise.
17545         * math/s_ctan.c: Likewise.
17546         * math/s_ctanf.c: Likewise.
17547         * math/s_ctanh.c: Likewise.
17548         * math/s_ctanhf.c: Likewise.
17549         * math/s_ctanhl.c: Likewise.
17550         * math/s_ctanl.c: Likewise.
17551         * math/s_ldexp.c: Likewise.
17552         * math/s_ldexpf.c: Likewise.
17553         * math/s_ldexpl.c: Likewise.
17554         * math/s_significand.c: Likewise.
17555         * math/s_significandf.c: Likewise.
17556         * math/s_significandl.c: Likewise.
17557         * math/w_acos.c: Likewise.
17558         * math/w_acosf.c: Likewise.
17559         * math/w_acosh.c: Likewise.
17560         * math/w_acoshf.c: Likewise.
17561         * math/w_acoshl.c: Likewise.
17562         * math/w_acosl.c: Likewise.
17563         * math/w_asin.c: Likewise.
17564         * math/w_asinf.c: Likewise.
17565         * math/w_asinl.c: Likewise.
17566         * math/w_atan2.c: Likewise.
17567         * math/w_atan2f.c: Likewise.
17568         * math/w_atan2l.c: Likewise.
17569         * math/w_atanh.c: Likewise.
17570         * math/w_atanhf.c: Likewise.
17571         * math/w_atanhl.c: Likewise.
17572         * math/w_cosh.c: Likewise.
17573         * math/w_coshf.c: Likewise.
17574         * math/w_coshl.c: Likewise.
17575         * math/w_dremf.c: Likewise.
17576         * math/w_exp10.c: Likewise.
17577         * math/w_exp10f.c: Likewise.
17578         * math/w_exp10l.c: Likewise.
17579         * math/w_exp2.c: Likewise.
17580         * math/w_exp2f.c: Likewise.
17581         * math/w_fmod.c: Likewise.
17582         * math/w_fmodf.c: Likewise.
17583         * math/w_fmodl.c: Likewise.
17584         * math/w_hypot.c: Likewise.
17585         * math/w_hypotf.c: Likewise.
17586         * math/w_hypotl.c: Likewise.
17587         * math/w_j0.c: Likewise.
17588         * math/w_j0f.c: Likewise.
17589         * math/w_j0l.c: Likewise.
17590         * math/w_j1.c: Likewise.
17591         * math/w_j1f.c: Likewise.
17592         * math/w_j1l.c: Likewise.
17593         * math/w_jn.c: Likewise.
17594         * math/w_jnf.c: Likewise.
17595         * math/w_jnl.c: Likewise.
17596         * math/w_lgamma.c: Likewise.
17597         * math/w_lgamma_r.c: Likewise.
17598         * math/w_lgammaf.c: Likewise.
17599         * math/w_lgammaf_r.c: Likewise.
17600         * math/w_lgammal.c: Likewise.
17601         * math/w_lgammal_r.c: Likewise.
17602         * math/w_log.c: Likewise.
17603         * math/w_log10.c: Likewise.
17604         * math/w_log10f.c: Likewise.
17605         * math/w_log10l.c: Likewise.
17606         * math/w_log2.c: Likewise.
17607         * math/w_log2f.c: Likewise.
17608         * math/w_log2l.c: Likewise.
17609         * math/w_logf.c: Likewise.
17610         * math/w_logl.c: Likewise.
17611         * math/w_pow.c: Likewise.
17612         * math/w_powf.c: Likewise.
17613         * math/w_powl.c: Likewise.
17614         * math/w_remainder.c: Likewise.
17615         * math/w_remainderf.c: Likewise.
17616         * math/w_remainderl.c: Likewise.
17617         * math/w_scalb.c: Likewise.
17618         * math/w_scalbf.c: Likewise.
17619         * math/w_scalbl.c: Likewise.
17620         * math/w_sinh.c: Likewise.
17621         * math/w_sinhf.c: Likewise.
17622         * math/w_sinhl.c: Likewise.
17623         * math/w_sqrt.c: Likewise.
17624         * math/w_sqrtf.c: Likewise.
17625         * math/w_sqrtl.c: Likewise.
17626         * math/w_tgamma.c: Likewise.
17627         * math/w_tgammaf.c: Likewise.
17628         * math/w_tgammal.c: Likewise.
17629
17630         * po/ja.po: Update from translation team.
17631
17632 2011-09-29  Andreas Jaeger  <aj@suse.de>
17633
17634         [BZ #13179]
17635         * sunrpc/netname.c (netname2host): Fix logic.
17636
17637         [BZ #6779]
17638         [BZ #6783]
17639         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17640         correctly.
17641         * math/w_remainder.c (__remainder): Likewise.
17642         * math/w_remainderf.c (__remainderf): Likewise.
17643         * math/libm-test.inc (remainder_test): Add test cases.
17644
17645 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17646
17647         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17648         sdiv_qrnnd.
17649
17650 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17651
17652         * string/test-memcmp.c: Avoid unncessary #defines.
17653         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17654
17655 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17656
17657         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17658         Use new sse2 version for core i3 - i7 as it's faster
17659         than sse42 version.
17660         (bit_Prefer_PMINUB_for_stringop): New.
17661         * sysdeps/x86_64/rawmemchr.S: Update.
17662         Replace with faster SSE2 version.
17663         * sysdeps/x86_64/memrchr.S: New file.
17664         * sysdeps/x86_64/memchr.S: Update.
17665         Replace with faster SSE2 version.
17666
17667 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17668
17669         * elf/dl-load.c (lose): Add cast to avoid warning.
17670
17671 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17672
17673         * po/ca.po: Update from translation team.
17674
17675         * inet/getnetgrent_r.c: Hook up nscd.
17676         * nscd/Makefile (routines): Add nscd_netgroup.
17677         (nscd-modules): Add netgroupcache.
17678         (CFLAGS-netgroupcache.c): Define.
17679         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17680         (cache_search): Add const to second parameter.
17681         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17682         INNETGR.
17683         (dbs): Add netgrdb entry.
17684         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17685         (verify_persistent_db): Handle netgrdb.
17686         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17687         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17688         GETFDNETGR.
17689         (netgroup_response_header): Define.
17690         (innetgroup_response_header): Define.
17691         (datahead): Add netgroup_response_header and innetgroup_response_header
17692         elements.
17693         * nscd/nscd.conf: Add entries for netgroup cache.
17694         * nscd/nscd.h (dbtype): Add netgrdb.
17695         (_PATH_NSCD_NETGROUP_DB): Define.
17696         (netgroup_iov_disabled): Declare.
17697         (xmalloc, xcalloc, xrealloc): Move declarations here.
17698         (cache_search): Adjust prototype.
17699         Add netgroup-related prototypes.
17700         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17701         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17702         (__nscd_innetgr): Declare.
17703         * nscd/selinux.c (perms): Use access_vector_t as element type and
17704         add netgroup-related initializers.
17705         * nscd/netgroupcache.c: New file.
17706         * nscd/nscd_netgroup.c: New file.
17707         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17708         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17709         For four parameters use innetgr.
17710         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17711         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17712         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17713         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17714
17715         * nscd/connections.c (register_traced_file): Don't register file
17716         for disabled databases.
17717
17718 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17719
17720         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17721
17722         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17723         from tree and freeing node.
17724
17725 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17726
17727         * nss/nsswitch.c (__nss_database_lookup): Handle
17728         nss_parse_service_list out of memory case.
17729
17730 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17731
17732         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17733         out of memory case.
17734
17735 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17736
17737         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17738         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17739         pass it down.
17740         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17741         elf_machine_rela, elf_machine_lazy_rel.
17742         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17743         (ELF_DYNAMIC_DO_REL): Likewise.
17744         (ELF_DYNAMIC_DO_RELA): Likewise.
17745         (ELF_DYNAMIC_RELOCATE): Likewise.
17746         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17747         to ELF_DYNAMIC_DO_REL.
17748         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17749         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17750         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17751         elf_machine_rela.
17752         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17753         skip_ifunc, don't call ifunc function if non-zero.
17754         (elf_machine_rela): Likewise.
17755         (elf_machine_lazy_rel): Likewise.
17756         (elf_machine_lazy_rela): Likewise.
17757         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17758         (elf_machine_lazy_rel): Likewise.
17759         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17760         Likewise.
17761         (elf_machine_lazy_rel): Likewise.
17762         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17763         Likewise.
17764         (elf_machine_lazy_rel): Likewise.
17765         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17766         (elf_machine_lazy_rel): Likewise.
17767         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17768         (elf_machine_lazy_rel): Likewise.
17769         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17770         (elf_machine_lazy_rel): Likewise.
17771         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17772         (elf_machine_lazy_rel): Likewise.
17773         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17774         (elf_machine_lazy_rel): Likewise.
17775         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17776         (elf_machine_lazy_rel): Likewise.
17777
17778 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17779
17780         * nss/nss_files/files-init.c (_nss_files_init): Use static
17781         initialization for all the *_traced_file variables.
17782
17783 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17784
17785         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17786
17787 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17788
17789         [BZ #13226]
17790         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17791
17792 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17793
17794         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17795         Reread the line before reparsing it.
17796
17797 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17798
17799         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17800
17801 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17802             Maxim Kuvyrkov  <maxim@codesourcery.com>
17803             Joseph Myers  <joseph@codesourcery.com>
17804
17805         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17806         if needed for __stack_chk_guard.
17807
17808 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17809
17810         * sysdeps/posix/spawni.c (script_execute): Always define it.
17811         It will be optimized away if unused.
17812         (maybe_script_execute): New function.
17813         (__spawni): Call it.
17814
17815         * Makerules: Don't include tls.make.
17816         (config-tls): Always set to thread.
17817         * tls.make.c: File removed.
17818
17819 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17820
17821         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17822         * config.make.in (CPPFLAGS-config): New substituted variable.
17823
17824 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17825
17826         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17827
17828         [BZ #13192]
17829         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17830         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17831
17832 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17833
17834         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17835         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17836         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17837         (CALL_FAIL): Likewise.
17838         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17839         (CALL_FAIL): Macro removed.
17840         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17841
17842 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17843
17844         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17845         for __FINITE_MATH_ONLY__ == 1.
17846
17847 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17848
17849         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17850         __ieee754_sqrt instead of sqrt.
17851         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17852         __ieee754_sqrtf instead of sqrtf.
17853         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17854         __floorf instead of floorf.
17855         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17856         __floorf, __truncf instead of floorf, truncf.
17857
17858 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17859
17860         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17861
17862         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17863         __extern_always_inline.
17864         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17865         32-bit.
17866
17867 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17868
17869         * elf/rtld.c (dl_main): Also relocate in dependency order when
17870         doing symbol dependency testing.
17871
17872 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17873
17874         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17875         Always define `refsym'.
17876
17877 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17878
17879         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17880         (__FD_ELT): Renamed from __FDELT.
17881         * misc/bits/select2.h (__FD_ELT): Likewise.
17882         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17883         __FD_MASK instead of __FDELT, __FDMASK.
17884         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17885         Likewise.
17886         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17887         Likewise.
17888
17889         * elf/Makefile (gen-ldd): Fix pattern.
17890
17891         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17892         (init_tls): Likewise.
17893
17894 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17895
17896         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17897
17898 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17899
17900         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17901         `struct cmsghdr *' instead of `void *'.
17902         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17903         Likewise.
17904
17905 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17906
17907         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17908         if non-absolute.
17909         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17910         ldd_rewrite_script.
17911
17912 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17913
17914         * configure.in: Remove --with-tls option.
17915         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17916         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17917         out in case it is missing.
17918         * sysdeps/ia64/elf/configure.in: Likewise.
17919         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17920         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17921         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17922         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17923         * sysdeps/sh/elf/configure.in: Likewise.
17924         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17925         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17926         * sysdeps/x86_64/elf/configure.in: Likewise.
17927         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17928         * sysdeps/mach/hurd/tls.h: Likewise.
17929
17930         [BZ #13067]
17931         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17932
17933         [BZ #13090]
17934         * configure.in: Fix use of AC_INIT.
17935
17936         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17937
17938 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17939
17940         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17941         __set_errno.
17942         * malloc/hooks.c: Likewise.
17943
17944         [BZ #11929]
17945         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17946         variables statically.
17947         (narenas): Initialize.
17948         (list_lock): Initialize.
17949         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17950         initializtion of main_arena and list_lock.  Small cleanups.
17951         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17952         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17953         Add initializers to main_arena and mp_.
17954         (malloc_state): Remove pagesize member.  Change all users to use
17955         GLRO(dl_pagesize).
17956
17957         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
17958         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
17959         is always initialized.
17960
17961         * malloc/malloc.c: Removed unused configurations and dead code.
17962         * malloc/arena.c: Likewise.
17963         * malloc/hooks.c: Likewise.
17964         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
17965
17966         * include/tls.h: Removed.  USE___THREAD must always be defined.
17967         * bits/libc-tsd.h: Don't handle !USE___THREAD.
17968         * elf/dl-libc.c: Likewise.
17969         * elf/dl-tsd.c: Likewise.
17970         * include/errno.h: Likewise.
17971         * include/netdb.h: Likewise.
17972         * include/resolv.h: Likewise.
17973         * inet/herrno-loc.c: Likewise.
17974         * inet/herrno.c: Likewise.
17975         * malloc/arena.c: Likewise.
17976         * malloc/hooks.c: Likewise.
17977         * malloc/malloc.c: Likewise.
17978         * resolv/res-state.c: Likewise.
17979         * resolv/res_libc.c: Likewise.
17980         * sysdeps/i386/dl-machine.h: Likewise.
17981         * sysdeps/ia64/dl-machine.h: Likewise.
17982         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
17983         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
17984         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
17985         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
17986         * sysdeps/sh/dl-machine.h: Likewise.
17987         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17988         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17989         * sysdeps/unix/i386/sysdep.S: Likewise.
17990         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
17991         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
17992         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
17993         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17994         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
17995         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
17996         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
17997         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17998         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17999         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
18000         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18001         * sysdeps/x86_64/dl-machine.h: Likewise.
18002         * tls.make.c: Likewise.
18003
18004         * configure.in: Remove --with-__thread option.  Make tests for
18005         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
18006         tls_model attribute fail if no support is available.  Remove
18007         USE_IN_LIBIO.
18008         * Makeconfig: Adjust for dropped configure option.  All features are
18009         now mandatory.
18010         * Makerules: Likewise.
18011         * Versions.def: Likewise.
18012         * argp/argp-fmtstream.c: Likewise.
18013         * argp/argp-fmtstream.h: Likewise.
18014         * argp/argp-help.c: Likewise.
18015         * assert/assert.c: Likewise.
18016         * config.h.in: Likewise.
18017         * config.make.in: Likewise.
18018         * configure: Likewise.
18019         * configure.in: Likewise.
18020         * csu/Versions: Likewise.
18021         * csu/init.c: Likewise.
18022         * elf/tst-audit2.c: Likewise.
18023         * elf/tst-tls10.c: Likewise.
18024         * elf/tst-tls10.h: Likewise.
18025         * elf/tst-tls11.c: Likewise.
18026         * elf/tst-tls12.c: Likewise.
18027         * elf/tst-tls14.c: Likewise.
18028         * elf/tst-tlsmod11.c: Likewise.
18029         * elf/tst-tlsmod12.c: Likewise.
18030         * elf/tst-tlsmod13.c: Likewise.
18031         * elf/tst-tlsmod13a.c: Likewise.
18032         * elf/tst-tlsmod14a.c: Likewise.
18033         * elf/tst-tlsmod15b.c: Likewise.
18034         * elf/tst-tlsmod16a.c: Likewise.
18035         * elf/tst-tlsmod16b.c: Likewise.
18036         * elf/tst-tlsmod7.c: Likewise.
18037         * elf/tst-tlsmod8.c: Likewise.
18038         * elf/tst-tlsmod9.c: Likewise.
18039         * gmon/gmon.c: Likewise.
18040         * grp/fgetgrent_r.c: Likewise.
18041         * grp/putgrent.c: Likewise.
18042         * hurd/fopenport.c: Likewise.
18043         * include/libc-symbols.h: Likewise.
18044         * include/tls.h: Likewise.
18045         * intl/gettextP.h: Likewise.
18046         * intl/loadinfo.h: Likewise.
18047         * locale/global-locale.c: Likewise.
18048         * locale/localeinfo.h: Likewise.
18049         * mach/devstream.c: Likewise.
18050         * malloc/arena.c: Likewise.
18051         * malloc/set-freeres.c: Likewise.
18052         * misc/err.c: Likewise.
18053         * misc/getttyent.c: Likewise.
18054         * misc/mntent_r.c: Likewise.
18055         * posix/getopt.c: Likewise.
18056         * posix/wordexp.c: Likewise.
18057         * pwd/fgetpwent_r.c: Likewise.
18058         * resolv/Versions: Likewise.
18059         * resolv/res_hconf.c: Likewise.
18060         * shadow/fgetspent_r.c: Likewise.
18061         * shadow/putspent.c: Likewise.
18062         * stdio-common/printf_fphex.c: Likewise.
18063         * stdio-common/tmpfile.c: Likewise.
18064         * stdlib/abort.c: Likewise.
18065         * stdlib/fmtmsg.c: Likewise.
18066         * sunrpc/auth_unix.c: Likewise.
18067         * sunrpc/clnt_perr.c: Likewise.
18068         * sunrpc/clnt_tcp.c: Likewise.
18069         * sunrpc/clnt_udp.c: Likewise.
18070         * sunrpc/clnt_unix.c: Likewise.
18071         * sunrpc/openchild.c: Likewise.
18072         * sunrpc/svc_simple.c: Likewise.
18073         * sunrpc/svc_tcp.c: Likewise.
18074         * sunrpc/svc_udp.c: Likewise.
18075         * sunrpc/svc_unix.c: Likewise.
18076         * sunrpc/xdr.c: Likewise.
18077         * sunrpc/xdr_array.c: Likewise.
18078         * sunrpc/xdr_rec.c: Likewise.
18079         * sunrpc/xdr_ref.c: Likewise.
18080         * sunrpc/xdr_stdio.c: Likewise.
18081
18082 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18083
18084         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18085
18086 2011-07-03  Andreas Jaeger  <aj@suse.de>
18087
18088         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18089         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18090         regenerate with gen-libm-tests.pl.
18091
18092 2010-05-12  Petr Baudis  <pasky@suse.cz>
18093
18094         [BZ #11589]
18095         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18096         around j0() zero points by switching to j1().
18097         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18098         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18099         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18100         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18101
18102 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18103
18104         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18105         instead of 0.
18106         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18107         instead of 0.                              .
18108         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18109         Patch in part by Pavel Roskin <proski@gnu.org>.
18110
18111         [BZ #13138]
18112         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18113         realloc.
18114         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18115         Free memory block if necessary.
18116
18117         [BZ #12847]
18118         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18119         be NULL.  Don't lock in this case.
18120
18121 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18122
18123         * elf/elf.h (ELFOSABI_GNU): New macro.
18124         (ELFOSABI_LINUX): Define to that.
18125
18126 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18127
18128         * string/strncat.c (strncat): Undef the symbol in case it has been
18129         defined in bits/string.h.
18130
18131 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18132
18133         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18134
18135         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18136         link map.
18137
18138 2011-08-17  Andreas Jaeger  <aj@suse.de>
18139
18140         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18141
18142 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18143             Ian Lance Taylor  <iant@google.com>
18144
18145         * math/libm-test.inc (lround_test): New testcase.
18146         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18147
18148 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18149
18150         * Makefile: Remove support for automatic cvs check-ins.
18151         * Makerules: Likewise.
18152         * config.make.in: Likewise.
18153         * configure.in: Likewise.
18154         * intl/Makefile: Likewise.
18155         * locale/Makefile: Likewise.
18156         * po/Makefile: Likewise.
18157         * posix/Makefile: Likewise.
18158         * sysdeps/gnu/Makefile: Likewise.
18159         * sysdeps/mach/hurd/Makefile: Likewise.
18160         * sysdeps/sparc/sparc32/Makefile: Likewise.
18161
18162         [BZ #13118]
18163         * posix/Makefile (bug-regex32-ENV): Define.
18164         Patch by John Stanley <jpsinthemix@verizon.net>.
18165
18166         * misc/Makefile (headers): Add bits/select2.h.
18167         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18168         * misc/bits/select2.h: New file.
18169         * include/bits/select2.h: New file.
18170         * debug/Makefile (routines): Add fdelt_chk.
18171         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18172         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18173         FD_ISSET.
18174         * debug/fdelt_chk.c: New file.
18175
18176         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18177         * wcsmbs/test-wmemcmp.c: Likewise.
18178         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18179         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18180
18181 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18182
18183         * string/Makefile (strop-tests): Add memcmp.
18184         * string/test-wmemcmp.c: New file.
18185         * string/test-memcmp.c: Add wmemcmp support.
18186
18187 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18188
18189         [BZ #13153]
18190         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18191         2011-07-19 change.
18192
18193         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18194         garbage value in a __mach_port_mod_refs call in the cases of the
18195         task-self and thread-self ports.
18196
18197 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18198
18199         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18200
18201 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18202
18203         * elf/dl-load.c (lose): Check for non-null L.
18204
18205 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18206
18207         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18208
18209         * elf/dl-libc.c (dlerror_run): Pass back error code from
18210         dl_catch_error.
18211
18212         [BZ #13123]
18213         * elf/dl-load.c (lose): Free l_origin if it is valid.
18214
18215         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18216         names.
18217         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18218         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18219         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18220         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18221         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18222         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18223
18224 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18225
18226         * sysdeps/powerpc/fpu/e_hypot.c: New file.
18227         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18228         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18229         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18230         * sysdeps/powerpc/fpu/k_cosf.c: New file.
18231         * sysdeps/powerpc/fpu/k_sinf.c: New file.
18232         * sysdeps/powerpc/fpu/s_cosf.c: New file.
18233         * sysdeps/powerpc/fpu/s_sinf.c: New file.
18234         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18235         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18236
18237 2011-08-15  Alan Modra  <amodra@gmail.com>
18238
18239         [BZ #13092]
18240         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18241         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18242         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
18243         ppc_mcount to static-only-routines.
18244         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18245         __mcount_internal.
18246         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18247         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18248
18249 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18250
18251         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18252         for finite and infinity parameters.
18253
18254 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18255
18256         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18257         and add nop instructions for throughput optimization.
18258         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18259
18260 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18261
18262         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18263         aligned copy for power7 with vector-scalar instructions.
18264         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18265
18266 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18267
18268         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18269         AVX check.
18270
18271 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18272
18273         [BZ #13144]
18274         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18275         last change.
18276
18277 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18278
18279         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18280         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18281         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18282         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18283         clock_gettime.
18284
18285 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18286
18287         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18288         Forgot to demangle the pointer.
18289
18290         * sysdeps/i386/sysdep.h: Define atom_text_section.
18291         * sysdeps/x86_64/sysdep.h: Likewise.
18292         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18293         section with atom_text_section.
18294         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18295         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18296         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18297         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18298         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18299
18300         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18301         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18302         already be defined.  Change to take two parameters and don't assign
18303         result to variable.  Adjust all users.
18304         Define INTERNAL_GETTIME if not already defined.
18305         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18306         call.
18307         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18308         HAVE_CLOCK_GETTIME_VSYSCALL.
18309         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18310
18311         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18312         gettimeofday vsyscall, just use time.
18313
18314 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18315
18316         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18317         <errno.h>.
18318
18319 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18320
18321         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18322         syscall on x86-64.
18323         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18324         syscall.
18325         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18326         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18327         syscall if possible.
18328
18329 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18330
18331         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18332         e_ident.  Don't pass to find_mapsXX.
18333         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18334
18335 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18336
18337         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18338         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18339         * sysdeps/x86_64/multiarch/strchr.S: Update.
18340         Check bit_slow_BSF bit.
18341         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18342         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18343         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18344
18345 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18346
18347         [BZ #13134]
18348         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18349         before glibc 2.15.
18350         (tryshell): Define.
18351         (__spawni): Change last parameter to be flag.  Test
18352         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18353         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18354         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18355         * posix/spawni.c: Likewise.
18356         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18357         * posix/spawnp.c: Likewise.  Change normal version to use
18358         SPAWN_XFLAGS_USE_PATH.
18359         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18360         SPAWN_XFLAGS_TRY_SHELL.
18361
18362         [BZ #13150]
18363         * posix/glob.h: Remove gcc 1.x support.
18364
18365         [BZ #13068]
18366         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18367
18368 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18369
18370         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18371         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18372         strrchr-sse2-bsf
18373         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18374         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18375         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18376         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18377         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18378         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18379
18380 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18381
18382         * sysdeps/x86_64/wcscmp.S: New file.
18383
18384         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18385         wcscmp-c wcscmp-sse2
18386         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18387         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18388         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18389         * wcsmbs/wcscmp.c: Allow renaming.
18390
18391 2011-09-05  David S. Miller  <davem@davemloft.net>
18392
18393         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18394         stack slot, rather than the struct return pointer slot.
18395         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18396         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18397         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18398         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18399
18400 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18401
18402         * po/ja.po: Update from translation team.
18403
18404         [BZ #13144]
18405         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18406         kernel in 64-bit binaries.
18407
18408 2011-09-01  David S. Miller  <davem@davemloft.net>
18409
18410         * elf/elf.h (HWCAP_SPARC_*): Move to..
18411         * sysdeps/sparc/sysdep.h: this new file and add new values.
18412         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18413         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18414         _DL_HWCAP_COUNT to 24.
18415         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18416         entries.
18417         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18418         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18419         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18420         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18421         instead of magic constants.
18422         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18423
18424 2011-08-31  David S. Miller  <davem@davemloft.net>
18425
18426         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18427         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18428         Reimplement to do errno handling inline.
18429         (SYSCALL_ERROR_HANDLER): New macro.
18430         (__SYSCALL_STRING): Do not do errno handling in asm.
18431         (__CLONE_SYSCALL_STRING): Delete.
18432         (__INTERNAL_SYSCALL_STRING): Delete.
18433         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18434         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18435         (PSEUDO): Reimplement to do errno handling inline.
18436         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18437         (SYSCALL_ERROR_HANDLER): New macro.
18438         (__SYSCALL_STRING): Do not do errno handling in asm.
18439         (__CLONE_SYSCALL_STRING): Delete.
18440         (__INTERNAL_SYSCALL_STRING): Delete.
18441         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18442         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18443         i386.
18444         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18445         (inline_syscall*): Add 'err' argument.
18446         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18447         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18448         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18449         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18450
18451         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18452         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18453
18454 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18455
18456         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18457
18458 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18459
18460         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18461         directive.
18462
18463 2011-08-24  David S. Miller  <davem@davemloft.net>
18464
18465         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18466
18467 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18468
18469         * elf/Makefile: Add rules to build and run unload8 test.
18470         * elf/unload8.c: New file.
18471         * elf/unload8mod1.c: New file.
18472         * elf/unload8mod1x.c: New file.
18473         * elf/unload8mod2.c: New file.
18474         * elf/unload8mod3.c: New file.
18475
18476         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18477         it wasn't used.
18478
18479 2011-08-23  David S. Miller  <davem@davemloft.net>
18480
18481         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18482         subtract stack bias.
18483         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18484         %sp not %fp in calculations.
18485         (_JMPBUF_UNWINDS_ADJ): Likewise.
18486
18487         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18488         (aio_suspend): Call it to force an exception region around the
18489         AIO_MISC_WAIT() invocation.
18490
18491 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18492
18493         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18494         backslash.
18495
18496 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18497
18498         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18499         protection macro.
18500         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18501         and <dl-machine.h>.
18502         (Elf64_FuncDesc): Remove.
18503
18504 2011-08-22  David S. Miller  <davem@davemloft.net>
18505
18506         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18507         sigaltstack check, add missing cfi directives.
18508         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18509         missing cfi directives, and sigaltstack handling.
18510
18511 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18512
18513         [BZ #11724]
18514         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18515         object is seen twice.
18516         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18517
18518         * elf/Makefile (distribute): Add tst-initorder2.c.
18519         (tests): Add tst-initorder2.
18520         (modules-names): Add tst-initorder2a tst-initorder2b
18521         tst-initorder2c tst-initorder2d.  Add rules to build them.
18522         ($(objpfx)tst-initorder2.out): New rule.
18523         * elf/tst-initorder2.c: New file.
18524         * elf/tst-initorder2.exp: New file.
18525
18526 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18527
18528         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18529
18530         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18531         dependencies back to end of function.
18532
18533         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18534         $(elfobjdir)/ld.so.
18535
18536 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18537
18538         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18539         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18540         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18541         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18542         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18543         of __vdso_gettimeofday.
18544         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18545         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18546         attribute_hidden.
18547         (_libc_vdso_platform_setup): Remove initialization of
18548         __vdso_gettimeofday and __vdso_time.
18549
18550 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18551
18552         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18553         and fgetc_unlocked.
18554         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18555         getc_unlocked.
18556
18557         * elf/dl-open.c (add_to_global): Report additions to the global scope
18558         for LD_DEBUG=scopes.
18559         (dl_open_worker): Also print scope of newly loaded dependencies.
18560         (_dl_show_scope): Indicate if there is no scope.
18561
18562         [BZ #13114]
18563         * stdio-common/Makefile (tests): Add bug24.
18564         * stdio-common/bug24.c: New file.
18565
18566 2011-08-19  Andreas Jaeger  <aj@suse.de>
18567
18568         [BZ #13114]
18569         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18570         non-existant file when using close-on-exec mode.
18571
18572 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18573
18574         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18575         the very first instruction.
18576
18577         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18578         the CFI state in the end.
18579         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18580         inclusion of dl-trampoline.h.
18581         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18582
18583 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18584
18585         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18586         expectations for long double.
18587
18588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18589         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18590
18591 2011-08-14  David S. Miller  <davem@davemloft.net>
18592
18593         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18594         artificual limit depends upon the system page size.
18595
18596 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18597
18598         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18599         * resolv/Makefile: Define CFLAGS-libresolv.
18600
18601 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18602
18603         * nss/makedb.c (compute_tables): Make variables used in nested
18604         function static.
18605
18606 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18607
18608         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18609         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18610         if buffer was too small.
18611
18612         * elf/pldd.c (main): Attach to all threads in the process.
18613         Rewrite /proc handling to use *at functions.
18614
18615 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18616
18617         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18618         specifies first scope to show.
18619         (dl_open_worker): Update callers.  Move printing scope of new
18620         object to before the relocation.
18621         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18622         * sysdeps/generic/ldsodefs.h: Update declaration.
18623
18624         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18625         string for the scope number.
18626
18627 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18628
18629         * nscd/servicescache.c (cache_addserv): Make sure written is always
18630         initialized.
18631
18632 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18633
18634         * sysdeps/i386/i486/bits/atomic.h
18635         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18636         statement expression, so as to suppress "set but not used" warning.
18637         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18638
18639         * string/strncat.c (STRNCAT): Use prototype definition.
18640
18641         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18642         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18643         -Iprograms here.
18644         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18645         (localedef-modules): Add localedef.
18646         (locale-modules): Add locale.
18647
18648         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18649         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18650         to avoid a warning.
18651
18652 2011-08-14  David S. Miller  <davem@davemloft.net>
18653
18654         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18655         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18656
18657 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18658
18659         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18660         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18661         * elf/rtld.c (dl_main): Set l_name of vDSO.
18662         Call _dl_show_scope when DL_DEBUG_SCOPES.
18663         (process_dl_debug): Recognize scopes flag and also set it for all.
18664         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18665         Declare _dl_show_scope.
18666
18667         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18668         (do_dlopen): Pass caller_dlopen to dl_open.
18669         (__libc_dlopen_mode): Initialize caller_dlopen.
18670
18671         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18672         of libc.  Make tolower call locale-independent.  Optimize a bit by
18673         using isdigit instead of isalnum.
18674         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18675
18676 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18677
18678         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18679         was a dependency or dynamically loaded.
18680
18681 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18682
18683         * intl/l10nflist.c: Allow architecture-specific pop function.
18684         * sysdeps/x86_64/l10nflist.c: New file.
18685
18686         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18687         classification.
18688
18689 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18690
18691         * include/dirent.h: Add libc_hidden_proto for scandirat and
18692         scandirat64.  Don't declare __scandirat64.
18693         * dirent/scandirat.c: Add libc_hidden_def.
18694         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18695         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18696
18697 2011-08-10  David S. Miller  <davem@davemloft.net>
18698
18699         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18700         enum.
18701         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18702         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18703         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18704
18705 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18706
18707         * Versions.def [libc]: Add GLIBC_2.15.
18708         * dirent/Makefile (routines): Add scandirat and scandirat64.
18709         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18710         GLIBC_2.15.
18711         * dirent/dirent.h: Declare scandirat and scandirat64.
18712         * dirent/scandirat.c: New file.
18713         * dirent/scandirat64.c: New file.
18714         * sysdeps/wordsize-64/scandirat.c: New file.
18715         * sysdeps/wordsize-64/scandirat64.c: New file.
18716         * dirent/opendir.c: Define opendirat.
18717         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18718         using scandirat.
18719         * dirent/scandir64.c: Adjust for scandir.c change.
18720         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18721         __scandirat64, and __scandir_cancel_handler.
18722         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18723         additional parameter and use openat instead of open (outside of ld.so).
18724         Add new __opendir as wrapper around __opendirat.
18725         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18726         here without requiring old scandirat implementation.
18727
18728 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18729
18730         * dirent/scandir.c (cancel_handler): Renamed to
18731         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18732         defined.  Adjust users.
18733         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18734         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18735
18736 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18737
18738         * string/test-string.h (IMPL): Use __STRING to expand name and then
18739         stringify it.
18740
18741         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18742         of cleanups.
18743
18744 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18745
18746         * string/Makefile: Update.
18747         (strop-tests): Append strncat.
18748         * string/test-wcscmp.c: New file.
18749         New comprehensive test for wcscmp.
18750         * string/test-strcmp.c: Update.
18751         (WIDE): New define.
18752
18753 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18754
18755         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18756         line.
18757
18758 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18759
18760         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18761         encoding to ACE if AI_IDN.
18762
18763 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18764
18765         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18766         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18767
18768 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18769
18770         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18771         Fix overflow bug in strncat.
18772         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18773
18774         * string/test-strncat.c: Update.
18775         Add new tests for checking overflow bugs.
18776
18777 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18778
18779         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18780         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18781         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18782         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18783         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18784         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18785         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18786         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18787         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18788
18789         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18790         (USE_AS_STRCAT): Define.
18791         Add strcat and strncat support.
18792         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18793
18794 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18795
18796         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18797         __n bigger than INT_MAX+1.
18798         (__strncmp_g): Likewise.
18799
18800 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18801
18802         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18803         * libio/stido.h: Likewise.
18804
18805         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18806         (AF_NFC): Define.
18807         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18808         (AF_NFC): Define.
18809
18810         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18811         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18812         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18813         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18814         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18815
18816         [BZ #13021]
18817         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18818         installed.
18819
18820         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18821         typo.
18822         (_dl_x86_64_save_sse): Likewise.
18823
18824 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18825
18826         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18827         OSXSAVE.
18828         (_dl_x86_64_save_sse): Likewise.
18829
18830         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18831
18832         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18833
18834 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18835
18836         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18837         change.
18838         (_dl_x86_64_save_sse): Use correct AVX check.
18839
18840 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18841
18842         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18843         bug in strncpy/strncat.
18844         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18845
18846 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18847
18848         * string/tester.c (test_strcat): Add tests for different alignments
18849         of source and destination.
18850         (test_strncat): Likewise.
18851
18852 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18853
18854         [BZ #12852]
18855         * posix/glob.c (glob): Check passed in values before using them in
18856         expressions to avoid some overflows.
18857         (glob_in_dir): Likewise.
18858
18859         [BZ #13007]
18860         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18861         check for AVX enablement so that we don't crash with old kernels and
18862         new hardware.
18863         * elf/tst-audit4.c: Add same checks here.
18864         * elf/tst-audit6.c: Likewise.
18865
18866         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18867
18868 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18869
18870         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18871
18872 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18873
18874         * po/cs.po: Update from translation team.
18875         * po/bg.po: Likewise.
18876
18877 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18878
18879         * misc/sys/cdefs.h: Add support for const attribute.
18880         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18881         to gnu_dev_{major,minor,makedev} functions.
18882
18883 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18884
18885         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18886
18887 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18888
18889         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18890         strlen results.
18891
18892 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18893
18894         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18895         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18896         register in order to avoid conflicts with the soft frame pointer
18897         being held in r11 when necessary.
18898         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18899         (INTERNAL_VSYSCALL_NCS): Likewise.
18900
18901 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18902
18903         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18904         * elf/dl-fini.c (_dl_fini): Adjust caller.
18905         * elf/dl-close.c (_dl_close_worker): Likewise.
18906         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18907
18908 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18909
18910         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18911         "aux_cache->nlibs < 0".
18912
18913         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18914         in the reload-count case.
18915
18916 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18917
18918         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18919         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18920         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18921         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18922         * sysdeps/x86_64/multiarch/strcat.S: New file.
18923         * sysdeps/x86_64/multiarch/strncat.S: New file.
18924         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18925         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18926         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18927         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18928         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18929         (USE_AS_STRCAT): Define.
18930         Add strcat and strncat support.
18931         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18932         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18933         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18934         * string/strncat.c: Update.
18935         (USE_AS_STRNCAT): Define.
18936         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18937         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18938         and i7.
18939         * sysdeps/x86_64/multiarch/init-arch.h
18940         (bit_Prefer_PMINUB_for_stringop): New.
18941         (index_Prefer_PMINUB_for_stringop): Likewise.
18942         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18943         bit_Prefer_PMINUB_for_stringop.
18944
18945 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18946
18947         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18948         buffer64.
18949         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18950         of casting of buffer.
18951         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18952         buffer32 and buffer64.
18953         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18954         writes instead of casting of buffer.
18955         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
18956         buffer32.
18957         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
18958         casting of buffer.
18959
18960 2011-07-19  Andreas Schwab  <schwab@redhat.com>
18961
18962         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
18963
18964 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18965
18966         * nscd/nscd.c (termination_handler): Don't do anything for a database
18967         if it has not yet been initialized.
18968
18969 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18970
18971         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18972
18973 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18974
18975         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
18976
18977 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
18978
18979         * po/nl.po: Update from translation team.
18980         * po/sv.po: Likewise.
18981
18982 2011-07-16  Roland McGrath  <roland@hack.frob.com>
18983
18984         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
18985         now disallowed by GCC.
18986
18987         * configure.in (use-default-link): Default to yes if a test -shared
18988         link meets our qualifications.
18989         * configure: Regenerated.
18990
18991         * config.make.in (output-format): New variable.
18992         * configure.in: Check for ld --print-output-format support.
18993         * configure: Regenerated.
18994         * Makerules ($(common-objpfx)format.lds)
18995         [$(output-format) != unknown]: Just use $(output-format),
18996         instead of the linker-script munging.
18997
18998 2011-07-14  Roland McGrath  <roland@hack.frob.com>
18999
19000         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
19001         of $(common-objpfx)shlib.lds.
19002         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
19003
19004         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
19005         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
19006
19007         * configure.in (-z relro check): Adjust test code to add a large
19008         writable data section after it.
19009         * configure: Regenerated.
19010
19011 2011-07-11  Roland McGrath  <roland@hack.frob.com>
19012
19013         * configure.in (-z relro check): Fix test code to make the variable
19014         truly const.
19015         * configure: Regenerated.
19016
19017 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
19018
19019         * nscd/nscd.h (struct traced_file): Define.
19020         (struct database_dyn): Remove inotify_descr, reset_res, and filename
19021         elements.  Add traced_files.
19022         (inotify_fd): Declare.
19023         (register_traced_file): Declare.
19024         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
19025         (inotify_fd): Export.
19026         (resolv_conf_descr): Remove.
19027         (nscd_init): Move inotify descriptor creation to main.
19028         Don't register files for notification here.
19029         (register_traced_file): New function.
19030         (invalidate_cache): Don't use reset_res to determine whether to call
19031         res_init, go through the list of registered files.
19032         (main_loop_poll): The inotify descriptors are now stored in the
19033         structures for the traced files.
19034         (main_loop_epoll): Likewise
19035         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
19036         to __nss_disable_nscd.
19037         * nscd/cache.c (prune_cache): There is no single inotify descriptor
19038         for a database anymore.  Check the records for all the registered
19039         files instead.
19040         * nss/Makefile (libnss_files-routines): Add files-init.
19041         (libnss_db-routines): Add db-init.
19042         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19043         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19044         * nss/nss_db/db-init.c: New file.
19045         * nss/nss_files/files-init.c: New file.
19046         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19047         __nss_lookup_function.
19048         (__nss_lookup_function): Call nss_load_library.
19049         (nss_load_all_libraries): New function.
19050         (__nss_disable_nscd): Take parameter with callback function for files
19051         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19052         used for the cached services.
19053         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19054         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19055         options for features to all the files in nscd.
19056
19057         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19058
19059 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19060
19061         * csu/elf-init.c (__libc_csu_init): Comment typo.
19062
19063 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19064
19065         * po/pl.po: Update from translation team.
19066         * po/ja.po: Likewise.
19067         * po/ru.po: Likewise.
19068         * po/ko.po: Likewise.
19069         * po/fr.po: Likewise.
19070
19071 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19072
19073         * configure.in (.ctors/.dtors header and trailer check):
19074         Use an empirical test on a built program.
19075         * configure: Regenerated.
19076
19077         * configure.in (-z relro check): Use an empirical test on a built DSO.
19078         Detect, but do not require, on ia64.
19079         * configure: Regenerated.
19080
19081         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19082         Update tests that use readelf to use $READELF instead.
19083         * configure: Regenerated.
19084
19085 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19086
19087         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19088         if the result is not used.
19089
19090 2011-07-05  Andreas Jaeger  <aj@suse.de>
19091
19092         [BZ#9696]
19093         * stdlib/tst-strtod.c: Add testcase.
19094
19095 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19096
19097         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19098         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19099         The latter has a higher limit.  Take additional parameter to pass to
19100         the new function.
19101         (__pathconf): Pass file to __statfs_link_max.
19102         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19103         __statfs_link_max.
19104         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19105         __statfs_link_max.
19106
19107         [BZ #12868]
19108         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19109         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19110         Handle Lustre.
19111         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19112         (__statfs_filesize_max): Likewise.
19113         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19114
19115 2011-07-05  Andreas Jaeger  <aj@suse.de>
19116
19117         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19118
19119 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19120
19121         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19122         `status' variable.
19123         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19124         Likewise.
19125
19126 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19127
19128         * Makefile (strop-tests): Add strncat.
19129         * string/test-strncat.c: New file.
19130
19131 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19132
19133         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19134
19135 2011-06-21  Andreas Jaeger  <aj@suse.de>
19136
19137         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19138         Copy rule from iconvdata/Makefile.
19139
19140 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19141
19142         [BZ #12922]
19143         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19144         but no long options are defined, just return 'W'.
19145
19146 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19147
19148         [BZ #9696]
19149         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19150
19151 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19152
19153         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19154         netgroups to read.
19155         (innetgr): Likewise.
19156
19157 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19158
19159         * config.make.in (install_root): Default to $(DESTDIR).
19160
19161 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19162
19163         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19164
19165 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19166
19167         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19168
19169         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19170         containing directory rather than embedding absolute directory names.
19171
19172         * scripts/check-local-headers.sh: Rewritten using awk.
19173         Match by word, not by line.  Print error messages for matches.
19174         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19175
19176         * Makerules [shlib-lds-flags empty]:
19177         ($(common-objpfx)libc_pic.opts): New target.
19178         ($(common-objpfx)libc_pic.os.clean): New target.
19179         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19180
19181         * config.make.in (OBJCOPY): New variable.
19182         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19183         * configure: Regenerated.
19184
19185         * config.make.in (use-default-link): New variable.
19186         * configure.in (use_default_link): Grok --with-default-link to set it.
19187         * configure: Regenerated.
19188         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19189         (shlib-lds, shlib-lds-flags): Define to empty.
19190
19191         * Makerules (shlib-lds): New variable.
19192         (shlib-lds-flags): New variable.
19193         (build-shlib, build-moduile, build-module-asneeded): Use it.
19194         ($(common-objpfx)libc.so): Use $(shlib-lds).
19195         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19196         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19197
19198         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19199         DT_FLAGS/DT_FLAGS_1 with zero flags.
19200
19201         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19202         linker script munging.
19203
19204 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19205
19206         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19207         as 128-bit value.
19208         * crypt/sha512.c (sha512_process_block): Perform total addition using
19209         128-bit if possible.
19210         (__sha512_finish_ctx): Likewise.
19211         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19212         as 64-bit value.
19213         * crypt/sha256.c (SWAP64): Define.
19214         (sha256_process_block): Perform total addition using 64-bit if
19215         possible.
19216         (__sha256_finish_ctx): Likewise.
19217
19218 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
19219
19220         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
19221         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19222         * nscd/hstcache.c (cache_addhst): Likewise.
19223         * nscd/grpcache.c (cache_addgr): Likewise.
19224         * nscd/aicache.c (addhstaiX): Likewise
19225         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19226
19227 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
19228
19229         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19230         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19231         * nscd/hstcache.c (cache_addhst): Likewise.
19232         * nscd/grpcache.c (cache_addgr): Likewise.
19233         * nscd/aicache.c (addhstaiX): Likewise
19234
19235 2011-07-01  Andreas Schwab  <schwab@redhat.com>
19236
19237         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19238         domain only when needed.
19239
19240 2011-06-30  Andreas Schwab  <schwab@redhat.com>
19241
19242         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19243         is always restored.
19244
19245 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19246
19247         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19248         are re-adding the entry.
19249         * nscd/servicescache.c (cache_addserv): Likewise.
19250
19251 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19252
19253         * sysdeps/generic/dl-irel.h: fix protection against multiple
19254         inclusions.
19255         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19256
19257 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19258
19259         [BZ #12935]
19260         * malloc/memusage.sh: Fix quoting in message.
19261         * debug/xtrace.sh: Likewise.
19262
19263         * configure.in: Remove support for --experimental-malloc option, make
19264         it the default.
19265         * config.make.in: Likewise.
19266         * malloc/Makefile: Likewise.
19267
19268 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19269
19270         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19271         two-byte characters.
19272
19273 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19274
19275         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19276         AC_CACHE_CHECK invocation.
19277         * configure: Regenerated.
19278
19279         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19280
19281 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19282
19283         [BZ #12350]
19284         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19285         bit from old_res_options.
19286
19287         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19288
19289         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19290         value type for setfct.
19291
19292 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19293
19294         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19295         __gettimeofday instead of gettimeofday.
19296
19297 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19298
19299         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19300
19301 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19302
19303         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19304
19305         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19306         info.
19307
19308 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19309
19310         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19311         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19312         strcpy-sse2-unaligned strncpy-sse2-unaligned
19313         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19314         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19315         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19316         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19317         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19318         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19319         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19320         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19321         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19322         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19323         (STRCPY): Support SSE2 and SSSE3 versions.
19324
19325 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19326
19327         [BZ #12874]
19328         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19329         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19330         kernels which artificially limit size of requests.
19331
19332 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19333
19334         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19335         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19336         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19337         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19338         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19339         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19340         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19341         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19342         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19343         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19344         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19345         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19346         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19347         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19348         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19349         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19350         Enable unaligned load optimization for Intel Core i3, i5 and i7
19351         processors.
19352         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19353         Define.
19354         (index_Fast_Unaligned_Load): Define.
19355         (HAS_FAST_UNALIGNED_LOAD): Define.
19356
19357 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19358
19359         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19360
19361 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19362
19363         [BZ #12907]
19364         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19365         until it is clear that the information is realy needed.
19366         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19367
19368 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19369
19370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19371
19372 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19373
19374         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19375         /sys/devices/system/cpu/online if it is usable.
19376
19377         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19378         reading the information from the /proc filesystem to once a second.
19379
19380 2011-06-21  Andreas Jaeger  <aj@suse.de>
19381
19382         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19383         NULL after inclusion of kernel headers.
19384
19385 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19386
19387         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19388         calls to internal_setent.
19389
19390         [BZ #12885]
19391         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19392         addresses using gethostbyname4_r ignore IPv4 addresses.
19393
19394         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19395         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19396
19397         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19398
19399 2011-06-20  David S. Miller  <davem@davemloft.net>
19400
19401         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19402         inclusions.
19403         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19404
19405         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19406         (elf_irel): Use it.
19407         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19408         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19409         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19410         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19411         * sysdeps/x86_64/dl-irel.h: Likewise.
19412
19413         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19414         * elf/dl-sym.c: Likewise.
19415
19416 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19417
19418         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19419         need to dereference resplen2.
19420
19421 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19422
19423         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19424
19425 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19426
19427         * Makeconfig: Define vardbdir and inst_vardbdir.
19428         * nss/Makefile: Add rules to install db-Makefile.
19429
19430         * nss/nss_db/db-XXX.c: Cleanup.
19431
19432         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19433         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19434         GLIBC_PRIVATE.
19435         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19436         * nss/makedb.c: Implement -g option to specify that value strings
19437         are generated and should not be added to table iterated over for
19438         get*ent calls.
19439         * nss/nss_db/db-initgroups.c: New file.
19440
19441         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19442         interface.
19443
19444         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19445         (internal_getgrouplist): Adjust to name change.
19446         Update use_initgroups_entry if this is not the first call.
19447         * nss/databases.def: Add initgroups entry.
19448
19449         * nss/makedb.c (compute_tables): Check result of multiple hash table
19450         sizes to minimize maximum chain length.
19451
19452 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19453
19454         * Versions.def: Add entry for libnss_db.
19455         * shlib-versions: Likewise.
19456         * nss/Makefile: Add rules to build libnss_db.
19457         * nss/Versions: Add libnss_db information.  Organize libnss_files
19458         entries better.
19459         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19460         makedb progra.  Some minor improvements to generate smaller files.
19461         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19462         here from...
19463         * nss/makedb.c: ...here.
19464         Improve database format to be smaller and require less memory at
19465         runtime.
19466         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19467         db anymore.
19468         * nss/nss_db/db-netgrp.c: Likewise.
19469         * nss/nss_db/db-open.c: Likewise.
19470         * nss/nss_files/flies-XXX.x: Adjust comments.
19471         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19472         * nss/nss_files/files-grp.c: Likewise.
19473         * nss/nss_files/files-hosts.c: Likewise.
19474         * nss/nss_files/files-network.c: Likewise.
19475         * nss/nss_files/files-proto.c: Likewise.
19476         * nss/nss_files/files-pwd.c: Likewise.
19477         * nss/nss_files/files-rpc.c: Likewise.
19478         * nss/nss_files/files-service.c: Likewise.
19479         * nss/nss_files/files-sgrp.c: Likewise.
19480         * nss/nss_files/files-spwd.c: Likewise.
19481         * nss/nss_db/db-alias.c: Removed.
19482         * nss/nss_db/dummy-db.h: Removed.
19483
19484 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19485
19486         * nss/makedb.c: Rewritten to not use database library.
19487         * nss/Makefile: Update to build new makedb program.
19488
19489 2011-06-14  Andreas Jaeger  <aj@suse.de>
19490
19491         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19492         memset declaration.
19493
19494 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19495
19496         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19497         tmpbuf.
19498
19499 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19500
19501         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19502         * elf/Makefile ($(objpfx)ld.so): Likewise.
19503
19504         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19505         Don't list ld.so twice in dependencies.
19506
19507         * posix/bug-regex31.c: Include <stdlib.h>.
19508
19509         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19510
19511         * nis/nss_compat/compat-spwd.c
19512         (getspent_next_nss_netgr): Remove unused variable.
19513         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19514
19515         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19516         nonmembers" output to use the right array.
19517
19518         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19519
19520         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19521
19522         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19523         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19524         * catgets/gencat.c (read_input_file): Likewise.
19525         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19526
19527         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19528         variable definition inside #if's controlling its use.
19529
19530         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19531
19532         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19533
19534         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19535
19536         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19537         unreachable code.
19538
19539         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19540
19541         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19542         * configure: Regenerated.
19543
19544         * Makerules: Revert last change.
19545         * elf/Makefile: Likewise.
19546
19547 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19548
19549         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19550         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19551         (reloc-link): Likewise.
19552
19553 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19554
19555         * elf/Makefile: Add rules to build pldd.
19556         * elf/pldd.c: New file.
19557         * elf/pldd-xx.c: New file.
19558
19559 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19560
19561         * version.h: Update for 2.15 development version.
19562
19563 2011-06-07  David S. Miller  <davem@davemloft.net>
19564
19565         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19566         ifuncs.
19567         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19568         elf_machine_lazy_rel): Likewise.
19569         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19570         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19571         elf_machine_lazy_rel): Likewise.
19572         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19573         dl_hwcap via passed in argument.
19574         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19575         Likewise.
19576
19577 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19578
19579         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19580
19581 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19582
19583         [BZ #12849]
19584         * manual/fdl-1.1.texi: New file, verbatim from:
19585         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19586         * manual/lgpl-2.1.texi: New file, verbatim from:
19587         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19588         * manual/Makefile (licenses): New variable, list those new file names.
19589         (texis): Use it.
19590         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19591
19592         * manual/fdl.texi: File removed.
19593         * manual/lesser.texi: File removed.
19594         * manual/libc.texinfo (Copying, Documentation License):
19595         Use new @include file names, put @appendix directive before @include.
19596
19597 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19598
19599         [BZ #12841]
19600         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19601         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19602         (mq_open): Add __NTH.
19603
19604 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19605
19606         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19607         Assume Intel Core i3/i5/i7 processor if AVX is available.
19608
19609 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19610
19611         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19612         typo.
19613
19614 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19615
19616         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19617         memory.  Use alloca_account.  Fix memory leak when retrying.
19618
19619 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19620
19621         * version.h (RELEASE): Bump for 2.14 release.
19622         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19623
19624         * config.make.in (RANLIB): Remove entry.
19625
19626 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19627
19628         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19629         (libc.pot): Work around missing support for .ksh extension in xgettext.
19630
19631         [BZ #12684]
19632         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19633         if both request failed.
19634         (send_dg): In case of server errors clear resplen or *resplen2.
19635
19636         [BZ #12454]
19637         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19638         when there are multiple maps.
19639         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19640         (_dl_fini): Remove test here.
19641
19642         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19643
19644 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19645
19646         [BZ #12350]
19647         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19648         bit from old_res_options.
19649         (gaih_inet): Likewise.
19650
19651         [BZ #11099]
19652         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19653         as signed.
19654
19655         * resolv/res_init.c (res_setoptions): Make the code more compact.
19656
19657         [BZ #11558]
19658         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19659         set RES_USEVC.
19660
19661         [BZ #11634]
19662         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19663
19664         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19665
19666         [BZ #11781]
19667         * malloc/malloc.h: Declare malloc hook variables as volatile.
19668
19669         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19670         in last patch.
19671
19672         [BZ #11799]
19673         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19674         raise in the comment.
19675         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19676         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19677         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19678
19679 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19680
19681         [BZ #12811]
19682         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19683         grow the buffers more if it already has to be sufficient.
19684         (build_wcs_upper_buffer): Likewise.
19685         * posix/regexec.c (check_matching): Likewise.
19686         (clean_state_log_if_needed): Likewise.
19687         (extend_buffers): Don't enlarge buffers beyond size of the input
19688         buffer.
19689         Patches mostly by Emil Wojak <emil@wojak.eu>.
19690         * posix/bug-regex32.c: New file.
19691         * posix/Makefile (tests): Add bug-regex32.
19692
19693         * locale/findlocale.c (_nl_find_locale): Return right away if
19694         _nl_explode_name failed.
19695         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19696
19697         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19698
19699         * debug/xtrace.sh: Unify messages.
19700         * malloc/memusage.sh: Likewise.
19701
19702         [BZ #12813]
19703         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19704         time symbol from vDSO.  Substitute with vsyscall if not available.
19705         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19706         __vdso_time.
19707
19708         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19709         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19710         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19711         Add sendmmsg and internal_sendmmsg.
19712         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19713         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19714         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19715
19716         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19717         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19718         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19719
19720 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19721
19722         [BZ #12813]
19723         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19724         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19725         available.
19726         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19727         __vdso_getcpu.
19728
19729         [BZ #12814]
19730         * iconvdata/Makefile (tests): Add bug-iconv9.
19731         * iconvdata/bug-iconv9.c: New file.
19732
19733 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19734
19735         [BZ #12814]
19736         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19737
19738 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19739
19740         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19741         (struct user_regs_struct): Change intcs field back to cs.
19742
19743 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19744
19745         * po/ja.po: Update from translation team.
19746
19747 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19748
19749         [BZ #12795]
19750         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19751         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19752
19753 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19754
19755         * stdlib/longlong.h: Update from GCC.
19756
19757 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19758
19759         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19760         parameter name.
19761         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19762         Add parameter name.
19763         (__sysconf): Pass it down.
19764
19765 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19766
19767         [BZ #12671]
19768         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19769         some situations.
19770         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19771         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19772         add in in __libc_use_alloca calls.  Adjust callers.
19773         (glob): Use malloc in some situations.
19774
19775         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19776         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19777         pltexit.
19778
19779 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19780
19781         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19782         and CLOCK_BOOTTIME_ALARM.
19783
19784         [BZ #12782]
19785         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19786         is returned.
19787
19788         * string/_strerror.c (__strerror_r): Print negative errors as signed
19789         numbers.
19790
19791         [BZ #12777]
19792         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19793         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19794         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19795
19796         * configure.in: Fix typo in redirection and correct removal of test
19797         files in two cases.
19798
19799         [BZ #12788]
19800         * locale/setlocale.c (new_composite_name): Fix test to check for
19801         identical name of all categories.
19802
19803         [BZ #12792]
19804         * libio/filedoalloc.c (local_isatty): New function.
19805         (_IO_file_doallocate): Use local_isatty.
19806         * stdio-common/perror.c (perror): In case a new stream is used
19807         forward the stream error.
19808         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19809         error flag.
19810
19811 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19812
19813         [BZ #11869]
19814         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19815         alloca.
19816         * include/alloca.h (extend_alloca_account): Define.
19817
19818         [BZ #11857]
19819         * posix/regex.h: Fix comments with documentation of user-accessible
19820         fields after compilation and describe correct free'ing of pattern
19821         after re_compile_pattern.
19822         Patch by Reuben Thomas <rrt@sc3d.org>.
19823
19824 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19825
19826         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19827         and -mno-altivec to prevent the compiler from using Altivec and/or
19828         VSX instructions when the corresponding registers are not available.
19829
19830 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19831
19832         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19833
19834 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19835
19836         * libio/freopen.c (freopen): Use __dup2, not dup2.
19837         * libio/freopen64.c (freopen64): Likewise.
19838
19839 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19840
19841         [BZ #12775]
19842         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19843         * math/Makefile (tests): Add test-powl.
19844         (CFLAGS-test-powl.c): Define.
19845         * math/test-powl.c: New file.
19846
19847 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19848
19849         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19850
19851 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19852
19853         [BZ #11837]
19854         * iconvdata/gb18030.c: Update to GB18020-2005.
19855
19856 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19857
19858         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19859         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19860         Patch by Aharon Robbins <arnold@skeeve.com>.
19861
19862         [BZ #11892]
19863         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19864         on the stack.
19865
19866         [BZ #11895]
19867         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19868         through underflows.
19869
19870         [BZ #12766]
19871         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19872         point to strings before performing equality test for error_one_per_line
19873         mode.
19874
19875         [BZ #11697]
19876         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19877
19878         [BZ #11820]
19879         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19880         (struct user_fpregs_struct): Avoid __uint*_t types.
19881
19882         [BZ #6420]
19883         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19884         symbol info.  Use it instead of calling _dl_addr locally.
19885         (lock_and_info): New function.
19886         (tr_freehook): Call lock_and_info and pass symbol info as additional
19887         parameter to tr_where.
19888         (tr_mallochook): Likewise.
19889         (tr_reallochook): Likewise.
19890         (tr_memalignhook): Likewise.
19891
19892         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19893         used and couldn't be at all thread-safe.
19894
19895 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19896
19897         * libio/freopen.c (freopen): Don't close old file descriptor
19898         before the new one is opened.  Instead dup the new file descriptor
19899         to the old one after the new stream is created.
19900         * libio/freopen64.c (freopen64): Likewise.
19901         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19902         * libio/fileops.c (_IO_new_file_close_it): Handle new
19903         _IO_FLAGS2_NOCLOSE flag.
19904         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19905         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19906         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19907         _IO_FLAGS2_NOCLOSE flag.
19908         * include/unistd.h: Add hidden_proto for dup3.
19909         Define __have_dup3.
19910         * io/dup3.c: Define hidden symbol.
19911         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19912
19913         [BZ #7101]
19914         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19915         when an incomplete long option is used.
19916         * posix/tst-getopt_long1.c: New file.
19917         * posix/Makefile (tests): Add tst-getopt_long1.
19918
19919         [BZ #10138]
19920         * scripts/config.guess: Update from autoconf-2.68.
19921         * scripts/config.sub: Likewise.
19922
19923         [BZ #10157]
19924         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19925         tests into ...
19926         (has_cpuclock): ...this.  New function.
19927         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19928         macro here based on has_cpuclock code.
19929
19930         [BZ #10149]
19931         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19932         First byte (not low byte) is now always NUL.
19933         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19934
19935         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19936         Use non-cancelable interfaces.
19937
19938         [BZ #9809]
19939         * locale/iso-639.def: Add entry for Sorani.
19940
19941         [BZ #11901]
19942         * include/stdlib.h: Move include protection to the right place.
19943         Define abort_msg_s.  Declare __abort_msg with it.
19944         * stdlib/abort.c (__abort_msg): Adjust type.
19945         * assert/assert.c (__assert_fail_base): New function.  Majority
19946         of code from __assert_fail.  Allocate memory for __abort_msg with
19947         mmap.
19948         (__assert_fail): Now call __assert_fail_base.
19949         * assert/assert-perr.c: Remove bulk of implementation.  Use
19950         __assert_fail_base.
19951         * include/assert.hL Declare __assert_fail_base.
19952         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19953         mmap.
19954         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19955
19956 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
19957
19958         [BZ #11952]
19959         [BZ #12453]
19960         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
19961         until all modules are registered in the DTV.
19962         * elf/Makefile: Add rules to build and run tst-tls19.
19963         * elf/tst-tls19.c: New file.
19964         * elf/tst-tls19mod1.c: New file.
19965         * elf/tst-tls19mod2.c: New file.
19966         * elf/tst-tls19mod3.c: New file.
19967         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
19968
19969         [BZ #12083]
19970         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
19971         correctly.
19972
19973         [BZ #12601]
19974         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
19975         two-byte sequence errors.
19976         * iconvdata/Makefile (tests): Add bug-iconv8.
19977         * iconvdata/bug-iconv8.c: New file.
19978
19979         [BZ #12626]
19980         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
19981         buf2 definition.
19982
19983         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
19984
19985         [BZ #12432]
19986         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
19987         (dummy_getcfa): New function.
19988         (init): Get _Unwind_GetCFA address, use dummy if not found.
19989         (backtrace_helper): In recursion check, also check whether CFA changes.
19990         (__backtrace): Completely initialize arg.
19991
19992         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
19993         storing incomplete byte sequence in state object.  Avoid testing for
19994         guaranteed too small input if we know there is enough data available.
19995
19996 2011-05-11  Andreas Schwab  <schwab@redhat.com>
19997
19998         * Makeconfig (+link-pie): Indent.
19999         * Rules (binaries-pie): Define if $(have-fpie) and
20000         $(build-shared).
20001         (binaries-shared): Also filter out $(binaries-pie).
20002         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
20003         * nscd/Makefile (others-pie): Add nscd.
20004         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
20005         ($(objpfx)nscd): Remove command override.
20006         * login/Makefile (others-pie): Add pt_chown.
20007         ($(objpfx)pt_chown): Remove command override.
20008         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
20009         remove command overrides.
20010
20011 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
20012
20013         * libio/tst_putwc.c: Fix error messages.
20014
20015         [BZ #12724]
20016         * libio/fileops.c (_IO_new_file_close_it): Always flush when
20017         currently writing and seek to current position when not.
20018         * libio/Makefile (tests): Add bug-fclose1.
20019         * libio/bug-fclose1.c: New file.
20020
20021 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
20022
20023         [BZ #12511]
20024         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
20025         don't set DF_1_NODELETE here.
20026         (do_lookup_x): When entering new entry test for copy relocation
20027         and if necessary set DF_1_NODELETE flag.
20028         * elf/tst-unique4.cc: New file.
20029         * elf/tst-unique4.h: New file.
20030         * elf/tst-unique4lib.cc: New file.
20031         * elf/Makefile: Add rules to build and run tst-unique4.
20032         Patch by Piotr Bury <pbury@goahead.com>.
20033
20034 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20035
20036         [BZ #12052]
20037         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20038
20039         [BZ #12625]
20040         * misc/mntent_r.c (addmntent): Flush the stream after the output
20041
20042         [BZ #12393]
20043         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20044         (is_trusted_path_normalize): Skip initial colon.  Append slash
20045         to empty buffer.  Duplicate is_trusted_path code but allow
20046         constructed patch to be prefix.
20047         (is_dst): Allow $ORIGIN followed by /.
20048         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20049         Correct testing of result of is_trusted_path_normalize
20050         (decompose_rpath): Fix warning.
20051
20052 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20053
20054         [BZ #11257]
20055         * grp/initgroups.c (internal_getgrouplist): When we found the service
20056         list through the initgroups entry in nsswitch.conf do not always
20057         continue on a successful lookup.  Don't always use the
20058         __nss_group_database value if it is set.
20059         * nss/nsswitch.conf (initgroups): Change action for successful db
20060         lookup to continue for compatibility.
20061
20062 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20063
20064         [BZ #11532]
20065         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20066         and CP774 modules.
20067         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20068         and CP774 modules.
20069         * iconvdata/tst-tables.sh: Likewise.
20070         * iconvdata/cp770.c: New file.
20071         * iconvdata/cp771.c: New file.
20072         * iconvdata/cp772.c: New file.
20073         * iconvdata/cp773.c: New file.
20074         * iconvdata/cp774.c: New file.
20075         * iconvdata/testdata/CP770: New file.
20076         * iconvdata/testdata/CP770..UTF8: New file.
20077         * iconvdata/testdata/CP771: New file.
20078         * iconvdata/testdata/CP771..UTF8: New file.
20079         * iconvdata/testdata/CP772: New file.
20080         * iconvdata/testdata/CP772..UTF8: New file.
20081         * iconvdata/testdata/CP773: New file.
20082         * iconvdata/testdata/CP773..UTF8: New file.
20083         * iconvdata/testdata/CP774: New file.
20084         * iconvdata/testdata/CP774..UTF8: New file.
20085
20086         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20087         END CHARMAP line.
20088         * iconvdata/gen-8bit-gap.sh: Likewise.
20089         * iconvdata/gen-8bit.sh: Likewise.
20090
20091         * locale/iso-639.def: Add ary entry.
20092
20093         [BZ #11258]
20094         * locale/C-translit.h.in: Add U20A1 transliteration.
20095
20096         [BZ #12178]
20097         * locale/iso-639.def: Add wae entry.
20098         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20099
20100         [BZ #12545]
20101         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20102         for n.
20103
20104         [BZ #12711]
20105         * locale/C-translit.h.in: Add entry for U20B9.
20106         Patch by pravin.d.s@gmail.com.
20107
20108 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20109
20110         [BZ #12713]
20111         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20112         ENAMETOOLONG use generic getcwd.
20113         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20114         in rtld.  Use *stat64.
20115         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20116         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20117         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20118         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20119         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20120         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20121         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20122         __fstatat64 macros.
20123         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20124         * dirent/rewinddir.c: Add libc_hidden_def.
20125         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20126         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20127
20128         * include/dirent.h (__alloc_dir): Add flags parameter.
20129         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20130         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20131         __alloc_dir.
20132         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20133         from fdopendir if O_CLOEXEC is already set.
20134
20135 2011-03-15  Alan Modra  <amodra@gmail.com>
20136
20137         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20138         l_tls_firstbyte_offset non-zero.  Save padding offset in
20139         l_tls_firstbyte_offset for later use.
20140         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20141         freeing static tls block.
20142
20143 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20144
20145         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20146         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20147         being defined by the kernel headers.
20148
20149 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20150
20151         [BZ #12734]
20152         * resolv/resolv.h: Define RES_NOTLDQUERY.
20153         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20154         no-tld-query and set RES_NOTLDQUERY.
20155         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20156         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20157         modern BIND to search name as TLD unless forbidden.
20158
20159 2011-05-07  Petr Baudis  <pasky@suse.cz>
20160             Ulrich Drepper  <drepper@gmail.com>
20161
20162         [BZ #12393]
20163         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20164         (is_trusted_path): ...to here.
20165         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20166         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20167         using is_trusted_path_normalize() in setuid scripts.
20168
20169 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20170
20171         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20172         __BEGIN/__END_DECLS.
20173
20174 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20175
20176         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20177         NSS_STATUS_NOTFOUND if no record was found.
20178
20179 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20180
20181         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20182         (headers-not-in-tirpc): Remove rpc/netdb.h
20183         * resolv/netdb.h: Revert last change.
20184
20185 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20186
20187         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20188         circular dependency between libgcc.a and libc.a.
20189
20190 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20191
20192         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20193         * nis/Makefile: Don't install rpcsvc/*.
20194         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20195         instead of <rpc/types.h>.
20196         (MAXHOSTNAMELEN): Define.
20197
20198 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20199
20200         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20201
20202 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20203
20204         [BZ #12714]
20205         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20206         gethostbyname4_r when IPv6 results are possible.
20207
20208 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20209
20210         [BZ #12723]
20211         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20212         _PC_PIPE_BUF handling.
20213
20214 2011-04-30  Bruno Haible  <bruno@clisp.org>
20215
20216         [BZ #12717]
20217         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20218         * resolv/netdb.h (getnameinfo): Change type of flags parameter
20219         to 'int'.
20220         * inet/getnameinfo.c (getnameinfo): Likewise.
20221
20222 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
20223
20224         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20225         to groups setting in database lookup.
20226         * nss/nsswitch.conf: Add initgroups entry.
20227
20228 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
20229
20230         [BZ #12685]
20231         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20232         mode string.
20233         Patch by Eric Blake <eblake@redhat.com>.
20234
20235 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20236
20237         * sunrpc/Makefile (need-export-routines): Add svc_run.
20238         (routines): Remove svc_run.
20239         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20240         * sunrpc/clnt_perr.c (clnt_perrno): Export.
20241         * sunrpc/svc_run.c (svc_run): Likewise.
20242         * sunrpc/svc_udp.c (svcudp_create): Likewise.
20243
20244 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
20245
20246         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20247         problem in reallocation in last patch.
20248
20249 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20250
20251         * sunrpc/Makefile: Move inclusion of Rules.
20252
20253 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20254
20255         * nss/nss_files/files-initgroups.c: New file.
20256         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20257         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20258         _nss_files_initgroups_dyn.
20259
20260 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20261
20262         * elf/elf.h (R_ARM_IRELATIVE): Define.
20263
20264 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20265
20266         * po/ru.po: Update from translation team.
20267
20268 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20269
20270         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20271         dependencies.
20272
20273 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20274
20275         [BZ #12653]
20276         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20277         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20278         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20279         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20280         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20281
20282 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20283
20284         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20285         differing bytes.
20286         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20287         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20288         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20289
20290 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20291
20292         [BZ #12420]
20293         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20294         storing it.
20295         * stdlib/bug-getcontext.c: New file.
20296         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20297
20298 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20299
20300         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20301         instructions into .machine "z9-109".
20302         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20303         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20304
20305 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20306
20307         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20308         between environment variables and auxiliary vector.
20309
20310 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20311
20312         * Makefile: Add rules to build linkobj/libc.so.
20313         * include/libc-symbols.h: Define libc_hidden_nolink.
20314         * include/rpc/auth.h: Mark functions which are to be hidden.
20315         * include/rpc/auth_des.h: Likewise.
20316         * include/rpc/auth_unix.h: Likewise.
20317         * include/rpc/clnt.h: Likewise.
20318         * include/rpc/des_crypt.h: Likewise.
20319         * include/rpc/key_prot.h: Likewise.
20320         * include/rpc/pmap_clnt.h: Likewise.
20321         * include/rpc/pmap_prot.h: Likewise.
20322         * include/rpc/pmap_rmt.h: Likewise.
20323         * include/rpc/rpc_msg.h: Likewise.
20324         * include/rpc/svc.h: Likewise.
20325         * include/rpc/svc_auth.h: Likewise.
20326         * include/rpc/xdr.h: Likewise.
20327         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20328         * nss/Makefile: Likewise.
20329         * sunrpc/Makefile: Don't install headers.  Build library with normal
20330         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20331         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20332         for the compat linking library.  Remove use of INTDEF/INTUSE.
20333         * sunrpc/auth_none.c: Likewise.
20334         * sunrpc/auth_unix.c: Likewise.
20335         * sunrpc/authdes_prot.c: Likewise.
20336         * sunrpc/authuxprot.c: Likewise.
20337         * sunrpc/clnt_gen.c: Likewise.
20338         * sunrpc/clnt_perr.c: Likewise.
20339         * sunrpc/clnt_raw.c: Likewise.
20340         * sunrpc/clnt_simp.c: Likewise.
20341         * sunrpc/clnt_tcp.c: Likewise.
20342         * sunrpc/clnt_udp.c: Likewise.
20343         * sunrpc/clnt_unix.c: Likewise.
20344         * sunrpc/des_crypt.c: Likewise.
20345         * sunrpc/des_soft.c: Likewise.
20346         * sunrpc/get_myaddr.c: Likewise.
20347         * sunrpc/key_call.c: Likewise.
20348         * sunrpc/key_prot.c: Likewise.
20349         * sunrpc/netname.c: Likewise.
20350         * sunrpc/pm_getmaps.c: Likewise.
20351         * sunrpc/pm_getport.c: Likewise.
20352         * sunrpc/pmap_clnt.c: Likewise.
20353         * sunrpc/pmap_prot.c: Likewise.
20354         * sunrpc/pmap_prot2.c: Likewise.
20355         * sunrpc/pmap_rmt.c: Likewise.
20356         * sunrpc/publickey.c: Likewise.
20357         * sunrpc/rpc_cmsg.c: Likewise.
20358         * sunrpc/rpc_common.c: Likewise.
20359         * sunrpc/rpc_dtable.c: Likewise.
20360         * sunrpc/rpc_prot.c: Likewise.
20361         * sunrpc/rpc_thread.c: Likewise.
20362         * sunrpc/rtime.c: Likewise.
20363         * sunrpc/svc.c: Likewise.
20364         * sunrpc/svc_auth.c: Likewise.
20365         * sunrpc/svc_authux.c: Likewise.
20366         * sunrpc/svc_raw.c: Likewise.
20367         * sunrpc/svc_run.c: Likewise.
20368         * sunrpc/svc_simple.c: Likewise.
20369         * sunrpc/svc_tcp.c: Likewise.
20370         * sunrpc/svc_udp.c: Likewise.
20371         * sunrpc/svc_unix.c: Likewise.
20372         * sunrpc/svcauth_des.c: Likewise.
20373         * sunrpc/xcrypt.c: Likewise.
20374         * sunrpc/xdr.c: Likewise.
20375         * sunrpc/xdr_array.c: Likewise.
20376         * sunrpc/xdr_float.c: Likewise.
20377         * sunrpc/xdr_intXX_t.c: Likewise.
20378         * sunrpc/xdr_mem.c: Likewise.
20379         * sunrpc/xdr_rec.c: Likewise.
20380         * sunrpc/xdr_ref.c: Likewise.
20381         * sunrpc/xdr_sizeof.c: Likewise.
20382         * sunrpc/xdr_stdio.c: Likewise.
20383
20384 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20385
20386         [BZ #12650]
20387         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20388         * sysdeps/ia64/dl-tls.h: Likewise.
20389         * sysdeps/powerpc/dl-tls.h: Likewise.
20390         * sysdeps/s390/dl-tls.h: Likewise.
20391         * sysdeps/sh/dl-tls.h: Likewise.
20392         * sysdeps/sparc/dl-tls.h: Likewise.
20393         * sysdeps/x86_64/dl-tls.h: Likewise.
20394         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20395
20396 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20397
20398         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20399         rpath element also skip the following colon.
20400         (expand_dynamic_string_token): Add is_path parameter and pass
20401         down to DL_DST_REQUIRED and _dl_dst_substitute.
20402         (decompose_rpath): Call expand_dynamic_string_token with
20403         non-zero is_path.  Ignore empty rpaths.
20404         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20405         with zero is_path.
20406
20407 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20408
20409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20410         Make cancelable.
20411
20412 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20413
20414         [BZ #12655]
20415         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20416         Patch by Filipe David Manana <fdmanana@apache.org>.
20417
20418 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20419
20420         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20421         Maintain aligned stack.
20422         (CHECK_RSP): Remove unused macro.
20423
20424 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20425
20426         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20427         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20428
20429 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20430
20431         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20432
20433         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20434
20435 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20436
20437         [BZ #12518]
20438         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20439         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20440         * sysdeps/x86_64/memmove.c: New file.
20441         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20442         (memcpy): Renamed to ...
20443         (__new_memcpy): This.
20444         (memcpy): Provide GLIBC_2_14 memcpy.
20445         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20446         (memcpy): Provide GLIBC_2_2_5 memcpy.
20447
20448 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20449
20450         [BZ #12631]
20451         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20452
20453 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20454
20455         * misc/syncfs.c: New file.
20456         * misc/Makefile (routines): Add syncfs.
20457         * posix/unistd.h: Declare syncfs.
20458         * sysdeps/unix/syscalls.list: Add syncfs.
20459
20460 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20461
20462         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20463         open_by_handle_at.
20464         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20465         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20466         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20467         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20468         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20469         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20470         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20471
20472 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20473
20474         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20475         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20476         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20477         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20478         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20479         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20480         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20481
20482         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20483         sync_file_range.c with -fexceptions.
20484         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20485         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20486         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20487         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20488         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20489         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20490         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20491         sync_file_range as cancellation point
20492         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20493         now a wrapper around __call_sync_file_range with cancellation handling.
20494         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20495         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20496         function name to __call_sync_file_range.
20497         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20498         Add call_sync_file_range.
20499
20500 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20501
20502         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20503         bits/timex.h.
20504
20505 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20506
20507         * iconv/iconv.h: Fix typo in comment.
20508         * io/fcntl.h: Likewise.
20509         * libio/stdio.h: Likewise.
20510         * posix/spawn.h: Likewise.
20511         * posix/unistd.h: Likewise.
20512         * stdlib/stdlib.h: Likewise.
20513         * time/time.h: Likewise.
20514         * wcsmbs/wchar.h: Likewise.
20515
20516         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20517         open_by_handle): Add.
20518         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20519         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20520         Augment a few comments.
20521         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20522         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20523         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20524         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20525         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20526         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20527         open_by_handle.
20528
20529         * io/fcntl.h (AT_EMPTY_PATH): Define.
20530
20531 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20532
20533         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20534         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20535         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20536         to...
20537         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20538         * Versions.def: Add GLIBC_2.14.
20539         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20540         Export.
20541
20542 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20543
20544         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20545         round counter.
20546         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20547
20548 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20549
20550         [BZ #12597]
20551         * string/test-strncmp.c (do_page_test): New function.
20552         (check2): Likewise.
20553         (test_main): Call check2.
20554         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20555
20556 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20557
20558         [BZ #12587]
20559         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20560         Handle cache information in CPU leaf 4.
20561         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20562
20563 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20564
20565         [BZ #12583]
20566         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20567         character representation.
20568         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20569
20570 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20571
20572         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20573         END(__isnan) to END(__isnanf) to match function entry point/label
20574         EALIGN(__isnanf,...).
20575
20576 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20577
20578         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20579
20580 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20581
20582         [BZ #12510]
20583         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20584         copy from the symbol referenced in the relocation to initialize the
20585         used variable.
20586         Patch by Piotr Bury <pbury@goahead.com>.
20587         * elf/Makefile: Add rules to build and tst-unique3.
20588         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20589         * elf/tst-unique3.cc: New file.
20590         * elf/tst-unique3.h: New file.
20591         * elf/tst-unique3lib.cc: New file.
20592         * elf/tst-unique3lib2.cc: New file.
20593
20594         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20595
20596 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20597
20598         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20599         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20600         to _start.
20601
20602 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20603
20604         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20605         to-be-loaded object along a path to loader is ld.so.
20606
20607 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20608             Ulrich Drepper  <drepper@gmail.com>
20609
20610         * sysdeps/x86_64/memset.S: After aligning destination, code
20611         branches to different locations depending on the value of
20612         misalignment, when multiarch is enabled. Fix this.
20613
20614 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20615
20616         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20617         Set _x86_64_preferred_memory_instruction for AMD processsors.
20618         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20619         Set bit_Prefer_SSE_for_memop for AMD processors.
20620
20621 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20622
20623         * libio/fmemopen.c (fmemopen): Optimize a bit.
20624
20625 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20626
20627         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20628
20629 2011-03-03  Roland McGrath  <roland@redhat.com>
20630
20631         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20632
20633 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20634
20635         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20636         __bzero_ultra1 instead of __memset_ultra1.
20637
20638 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20639             Ulrich Drepper  <drepper@gmail.com>
20640
20641         [BZ #12509]
20642         * include/link.h (struct link_map): Add l_orig_initfini.
20643         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20644         returning unsuccessfully.
20645         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20646         close of a file loaded at startup, restore the original l_initfini
20647         list.
20648         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20649         list, store the pointer.
20650         * elf/Makefile ($(objpfx)noload-mem): New rule.
20651         (noload-ENV): Define.
20652         (tests): Add $(objpfx)noload-mem.
20653         * elf/noload.c: Include <memcheck.h>.
20654         (main): Call mtrace.  Close all opened handles.
20655
20656 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20657
20658         [BZ #12454]
20659         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20660         dependencies are missing.
20661
20662 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20663
20664         Fix __if_freereq crash: Unlike the generic version which uses free,
20665         Hurd needs munmap.
20666         * sysdeps/mach/hurd/ifreq.h: New file.
20667
20668 2011-01-27  Petr Baudis  <pasky@suse.cz>
20669             Ulrich Drepper  <drepper@gmail.com>
20670
20671         [BZ 12445]#
20672         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20673         to extend_alloca().
20674         * stdio-common/bug23.c: New file.
20675         * stdio-common/Makefile (tests): Add bug23.
20676
20677 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20678             Ulrich Drepper  <drepper@gmail.com>
20679
20680         [BZ #12489]
20681         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20682         before performing relro protection.  At old place add assertion
20683         to make sure nothing changed.
20684
20685 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20686             Glauber de Oliveira Costa  <glommer@gmail.com>
20687
20688         * elf/elf.h: Add new ARM TLS relocs.
20689
20690 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20691
20692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20693         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20694         cast from r3.
20695         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20696         'tests' variable.
20697         * sysdeps/wordsize-64/tst-writev.c: New file.
20698
20699 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20700
20701         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20702         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20703         insns in _dl_start to prevent a TOC reference before relocs are
20704         resolved.
20705
20706 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20707
20708         [BZ #12469]
20709         * Makeconfig: Remove RANLIB definition.
20710         * Makerules: Don't use RANLIB.
20711         * aclocal.m4: Remove ranlib test.
20712         * configure.in: No need to check for ranlib.
20713         * elf/rtld-Rules: Don't use RANLIB.
20714
20715 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20716
20717         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20718         protection macro.
20719         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20720         inclusion protection macro.
20721
20722         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20723         SIGRTMIN and SIGRTMAX and print information in that case only when
20724         SIGRTMIN is defined.
20725
20726 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20727
20728         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20729         arginfo fn returning -1.
20730
20731         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20732         and thousands string is zero terminated.
20733
20734 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20735
20736         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20737         sysdeps/unix/sysv/linux/bits/socket.h.
20738
20739 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20740
20741         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20742         (__CPU_COUNT): Remove old macros.
20743         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20744         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20745         (__CPU_ALLOC, __CPU_FREE): Add macros.
20746         (__sched_cpualloc, __sched_cpufree): Add declarations.
20747
20748 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20749
20750         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20751         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20752         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20753         (readdhstai): Return value of addhstaiX call.
20754         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20755         (addgrbyX): Return value returned by cache_addgr.
20756         (readdgrbyname): Return value returned by addgrbyX.
20757         (readdgrbygid): Likewise.
20758         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20759         (addpwbyX): Return value returned by cache_addpw.
20760         (readdpwbyname): Return value returned by addhstbyX.
20761         (readdpwbyuid): Likewise.
20762         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20763         (addservbyX): Return value returned by cache_addserv.
20764         (readdservbyname): Return value returned by addservbyX:
20765         (readdservbyport): Likewise.
20766         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20767         (addhstbyX): Return value returned by cache_addhst.
20768         (readdhstbyname): Return value returned by addhstbyX.
20769         (readdhstbyaddr): Likewise.
20770         (readdhstbynamev6): Likewise.
20771         (readdhstbyaddrv6): Likewise.
20772         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20773         (readdinitgroups): Return value returned by addinitgroupsX.
20774         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20775         (prune_cache): Keep track of timeout value of re-added entries.
20776         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20777         * nscd/nscd.h: Adjust prototypes of readd* functions.
20778
20779 2011-02-04  Roland McGrath  <roland@redhat.com>
20780
20781         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20782         (nis_stats): Likewise.
20783         * nis/nis_modify.c (nis_modify): Likewise.
20784         * nis/nis_remove.c (nis_remove): Likewise.
20785         * nis/nis_add.c (nis_add): Likewise.
20786
20787         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20788
20789         * posix/fnmatch_loop.c: Add some consts.
20790
20791         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20792
20793 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20794
20795         [BZ #12460]
20796         * config.make.in (config-cflags-novzeroupper): Define.
20797         * configure.in: Substitute libc_cv_cc_novzeroupper.
20798         * elf/Makefile (AVX-CFLAGS): Define.
20799         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20800         (CFLAGS-tst-auditmod4a.c): Likewise.
20801         (CFLAGS-tst-auditmod4b.c): Likewise.
20802         (CFLAGS-tst-auditmod6b.c): Likewise.
20803         (CFLAGS-tst-auditmod6c.c): Likewise.
20804         (CFLAGS-tst-auditmod7b.c): Likewise.
20805         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20806
20807 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20808
20809         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20810         function to the callback.
20811         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20812
20813 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20814
20815         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20816         of errno.
20817
20818 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20819
20820         [BZ #11724]
20821         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20822         of constructors.
20823         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20824         of destructors.
20825         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20826
20827         [BZ #11724]
20828         * elf/Makefile: Add rules to build and run new test.
20829         * elf/tst-initorder.c: New file.
20830         * elf/tst-initorder.exp: New file.
20831         * elf/tst-initordera1.c: New file.
20832         * elf/tst-initordera2.c: New file.
20833         * elf/tst-initordera3.c: New file.
20834         * elf/tst-initordera4.c: New file.
20835         * elf/tst-initorderb1.c: New file.
20836         * elf/tst-initorderb2.c: New file.
20837         * elf/tst-order-a1.c: New file.
20838         * elf/tst-order-a2.c: New file.
20839         * elf/tst-order-a3.c: New file.
20840         * elf/tst-order-a4.c: New file.
20841         * elf/tst-order-b1.c: New file.
20842         * elf/tst-order-b2.c: New file.
20843         * elf/tst-order-main.c: New file.
20844         New test case by George Gensure <werkt0@gmail.com>.
20845
20846 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20847
20848         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20849         decoding ACE if AI_CANONIDN.
20850
20851 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20852
20853         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20854
20855 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20856
20857         * version.h (RELEASE): Bump for 2.13 release.
20858         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20859
20860         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20861
20862         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20863         MADV_NOHUGEPAGE.
20864         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20865         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20866         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20867         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20868         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20869         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20870
20871         * posix/getconf.c: Update copyright year.
20872         * catgets/gencat.c: Likewise.
20873         * csu/version.c: Likewise.
20874         * debug/catchsegv.sh: Likewise.
20875         * debug/xtrace.sh: Likewise.
20876         * elf/ldconfig.c: Likewise.
20877         * elf/ldd.bash.in: Likewise.
20878         * elf/sprof.c (print_version): Likewise.
20879         * iconv/iconv_prog.c: Likewise.
20880         * iconv/iconvconfig.c: Likewise.
20881         * locale/programs/locale.c: Likewise.
20882         * locale/programs/localedef.c: Likewise.
20883         * malloc/memusage.sh: Likewise.
20884         * malloc/mtrace.pl: Likewise.
20885         * nscd/nscd.c (print_version): Likewise.
20886         * nss/getent.c: Likewise.
20887
20888         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20889         PF_CAIF, and PF_ALG.
20890         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20891
20892 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20893
20894         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20895         (modules-names): Use them.
20896         (ifunc-test-modules, ifunc-pie-tests): Define.
20897         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20898         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20899         (test-extras): Likewise.
20900         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20901         $(compile-command.c).
20902         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20903         (all-built-dso): Define.
20904         (check-textrel.out, check-execstack.out): Depend on it.
20905
20906         * configure.in: Don't override --enable-multi-arch.
20907
20908 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20909
20910         [BZ #6812]
20911         * nscd/hstcache.c (tryagain): Define.
20912         (cache_addhst): Return tryagain not notfound for temporary errors.
20913         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20914         failed.
20915
20916 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20917
20918         [BZ #10563]
20919         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20920         to make the syscall.
20921         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20922
20923         [BZ #12378]
20924         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20925         and fall back to matching as normal character if the string ends before
20926         the matching ']' is found.  This is what POSIX requires.
20927         * posix/testfnm.c: Adjust test result.
20928         * posix/globtest.sh: Adjust test result.  Add new test.
20929         * posix/tst-fnmatch.input: Likewise.
20930         * posix/tst-fnmatch2.c: Add new test.
20931
20932 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20933
20934         * elf/Makefile (check-execstack): Revert last change.  Depend on
20935         check-execstack.h.
20936         (check-execstack.h): New target.
20937         (generated): Add check-execstack.h.
20938         * elf/check-execstack.c: Include "check-execstack.h".
20939         (main): Revert last change.
20940         (handle_file): Return zero if GNU_STACK is absent and
20941         DEFAULT_STACK_PERMS doesn't include PF_X.
20942
20943 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20944
20945         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20946         in child fails because the descriptor is already closed.
20947         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20948         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20949         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20950
20951         [BZ #12397]
20952         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20953         syscall.
20954
20955         [BZ #10484]
20956         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
20957         temporary buffer used to handle multi lookups locally.
20958         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
20959
20960 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20961
20962         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
20963         loader is ld.so.
20964
20965 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
20966
20967         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
20968         alignment for SSE2.
20969
20970 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
20971
20972         [BZ #12394]
20973         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
20974         characters.  When rounding increased number of integer digits recompute
20975         number of groups.
20976         * stdio-common/tst-grouping.c: New file.
20977         * stdio-common/Makefile: Add rules to build and run tst-grouping.
20978
20979 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
20980
20981         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
20982         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
20983
20984         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
20985         void.
20986         * bits/select.h: Likewise.
20987
20988 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
20989
20990         * po/ja.po: Update from translation team.
20991
20992 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
20993
20994         [BZ #11155]
20995         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
20996         implementation just like for lxstat, fxstatat, et al.
20997
20998 2010-12-27  Jim Meyering  <meyering@redhat.com>
20999
21000         [BZ #12348]
21001         * posix/regexec.c (build_trtable): Return failure indication upon
21002         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21003
21004 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
21005
21006         [BZ #12201]
21007         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
21008         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
21009         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
21010         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
21011
21012         [BZ #12207]
21013         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
21014
21015         [BZ #12204]
21016         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
21017         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
21018
21019 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21020
21021         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
21022         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
21023         script has SORT_BY_INIT_PRIORITY.
21024         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
21025         NO_CTORS_DTORS_SECTIONS is defined.
21026         * elf/soinit.c: Likewise.
21027         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
21028         NO_CTORS_DTORS_SECTIONS is defined.
21029         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21030         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21031         * sysdeps/sh/init-first.c: Likewise.
21032         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21033
21034 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
21035
21036         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21037         always use the slow path.
21038
21039 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
21040
21041         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21042         similar rule which adds the sysdep directories to the header search in
21043         order to pick up the correct platform stackinfo.h.
21044         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21045         perform test if it is, otherwise return successfully without testing.
21046         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21047         DEFAULT_STACK_PERMS define in stackinfo.h.
21048         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21049         defined in stackinfo.h.
21050         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21051         DEFAULT_STACK_PERMS defined in stackinfo.h.
21052         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21053         * sysdeps/ia64/stackinfo.h: Likewise.
21054         * sysdeps/s390/stackinfo.h: Likewise.
21055         * sysdeps/sh/stackinfo.h: Likewise.
21056         * sysdeps/sparc/stackinfo.h: Likewise.
21057         * sysdeps/x86_64/stackinfo.h: Likewise.
21058         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21059         PF_X for powerpc64.  Retain PF_X for powerpc32.
21060
21061 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21062
21063         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21064         accurately.
21065         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21066         GETDENTS_64BIT_ALIGNED.
21067
21068 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21069
21070         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21071
21072 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21073
21074         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21075         _GNU_SOURCE.
21076
21077         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21078         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21079         Remove __restrict.
21080         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21081         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21082
21083 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21084
21085         [BZ #11655]
21086         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21087         are initialized.
21088
21089 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21090
21091         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21092
21093 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21094
21095         * po/it.po: Update from translation team.
21096
21097 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21098
21099         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21100         unused codes.
21101
21102 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21103
21104         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21105
21106 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21107
21108         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21109         specially.
21110         (gaih_getanswer_slice): Likewise.
21111
21112 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21113
21114         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21115
21116 2010-05-31  Petr Baudis  <pasky@suse.cz>
21117
21118         [BZ #11149]
21119         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21120         silently even in the chroot mode.
21121
21122 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21123
21124         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21125         last patch a bit.  Pretty printing
21126
21127 2010-05-31  Petr Baudis <pasky@suse.cz>
21128
21129         [BZ #10085]
21130         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21131         initialization of skip_initgroups_dyn.
21132
21133 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21134
21135         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21136         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21137
21138 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21139
21140         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21141
21142 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21143
21144         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21145         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21146         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21147         ($(objpfx)tst-fnmatch-mem): New rule.
21148         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21149         * posix/tst-fnmatch.c (main): Call mtrace.
21150
21151 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21152
21153         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21154         Support Intel processor model 6 and model 0x2c.
21155
21156 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21157
21158         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21159           signed comparison.
21160
21161 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21162
21163         [BZ #12205]
21164         * string/test-strncasecmp.c (check_result): New function.
21165         (do_one_test): Use it.
21166         (check1): New function.
21167         (test_main): Use it.
21168         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21169         Support strcasecmp and strncasecmp.
21170
21171 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21172
21173         [BZ #12194]
21174         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21175         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21176
21177 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21178
21179         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21180         IFUNC support.
21181         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21182         memset-x86-64.
21183         * sysdeps/x86_64/multiarch/bzero.S: New file.
21184         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21185         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21186         * sysdeps/x86_64/multiarch/memset.S: New file.
21187         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21188         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21189         Set bit_Prefer_SSE_for_memop for Intel processors.
21190         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21191         Define.
21192         (index_Prefer_SSE_for_memop): Define.
21193         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21194
21195 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21196
21197         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21198         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21199
21200 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21201
21202         [BZ #12191]
21203         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21204         (__x86_64_raw_data_cache_size_half): Likewise.
21205         (__x86_64_raw_shared_cache_size): Likewise.
21206         (__x86_64_raw_shared_cache_size_half): Likewise.
21207
21208         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21209         (__x86_64_raw_data_cache_size_half): Likewise.
21210         (__x86_64_raw_shared_cache_size): Likewise.
21211         (__x86_64_raw_shared_cache_size_half): Likewise.
21212         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21213         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21214         and __x86_64_raw_shared_cache_size_half.  Round
21215         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21216         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21217         to multiple of 256 bytes.
21218
21219 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
21220
21221         [BZ #12167]
21222         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21223         of inacessible symlinks.  Verify result of symlink before returning it.
21224         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21225         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21226
21227 2010-10-28  Erich Ritz  <erichritz@gmail.com>
21228
21229         * math/math.h (isinf): Fix typo in comment.
21230
21231 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
21232
21233         * po/da.po: Update from translation team.
21234
21235 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
21236
21237         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21238         is added to the list.
21239
21240 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21241             Ulrich Drepper  <drepper@gmail.com>
21242
21243         * elf/dl-object.c (_dl_new_object): Don't append the new object to
21244         the global list here.  Move code to...
21245         (_dl_add_to_namespace_list): ...here.  New function.
21246         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21247         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21248         * elf/dl-load.c (lose): Don't remove the element from the list.
21249         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21250         (_dl_map_object): Likewise.
21251
21252 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21253
21254         [BZ #12159]
21255         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21256         into all bytes of SSE register.
21257         Patch by Richard Li <richardpku@gmail.com>.
21258
21259 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21260
21261         [BZ #12140]
21262         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21263         perturbing.
21264
21265 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21266
21267         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21268         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21269         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21270         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21272         submachine.
21273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21274
21275 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21276
21277         * include/dlfcn.h (__RTLD_SECURE): Define.
21278         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21279         mode & __RTLD_SECURE instead.
21280         (open_path): Rename preloaded parameter to secure.
21281         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21282         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21283         * elf/dl-deps.c (openaux): Likewise.
21284         * elf/rtld.c (struct map_args): Remove is_preloaded.
21285         (map_doit): Don't use it.
21286         (dl_main): Likewise.
21287         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21288         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21289
21290 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21291
21292         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21293         (sysd-rules-targets): Remove duplicates.
21294         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21295         rtld-%.$o dependency.
21296
21297 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21298
21299         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21300         _dl_map_object do it.
21301
21302 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21303
21304         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21305         fast fma builtins, define the macros in the C99 standard.
21306         (FP_FAST_FMAF): Likewise.
21307         (FP_FAST_FMAL): Likewise.
21308         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21309
21310         * bits/mathdef.h: Update copyright year.
21311         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21312
21313 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21314
21315         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21316         builtins, define the macros in the C99 standard.
21317         (FP_FAST_FMAF): Likewise.
21318         (FP_FAST_FMAL): Likewise.
21319         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21320         multiply/add.
21321         (FP_FAST_FMAF): Likewise.
21322
21323 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21324
21325         [BZ #3268]
21326         * math/libm-test.inc (fma_test): Some new testcases.
21327         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21328         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21329         y and infinite z.  Do multiplication by C already in long double.
21330         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21331         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21332         y and infinite z.  Do bitwise or of inexact bit into u.d.
21333         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21334         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21335         * sysdeps/i386/fpu/s_fma.S: Removed.
21336         * sysdeps/i386/fpu/s_fmal.S: Removed.
21337
21338 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21339
21340         [BZ #3268]
21341         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21342         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21343         computation is not scheduled after fetestexcept.  Fix value
21344         of minimum denormal long double.
21345
21346 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21347
21348         [BZ #3268]
21349         * math/libm-test.inc (fma_test): Add some more tests.
21350         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21351         correctly.
21352
21353 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21354
21355         * scripts/data/localplt-s390-linux-gnu.data: New file.
21356         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21357
21358 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21359
21360         [BZ #3268]
21361         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21362         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21363         instead of dbl-64.
21364         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21365         inlines.
21366         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21367         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21368         if one of x and y is very large and the other is subnormal.
21369         * sysdeps/s390/fpu/s_fmaf.c: New file.
21370         * sysdeps/s390/fpu/s_fma.c: New file.
21371         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21372         * sysdeps/powerpc/fpu/s_fma.S: New file.
21373         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21374         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21375         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21376
21377 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21378
21379         [BZ #3268]
21380         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21381         fma tests.
21382         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21383         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21384         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21385         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21386         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21387         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21388         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21389
21390 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21391
21392         [BZ #12078]
21393         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21394         * posix/bug-regex31.input: Add test case.
21395
21396 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21397
21398         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21399         * posix/bug-regex31.input: New file.
21400
21401         [BZ #12078]
21402         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21403         (parse_sub_exp): Fix last change, use postorder.
21404
21405         * posix/bug-regex31.c: New file.
21406         * posix/Makefile: Add rules to build and run bug-regex31.
21407
21408         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21409
21410         [BZ #12078]
21411         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21412
21413         [BZ #12108]
21414         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21415         to have entries in sys_siglist.
21416
21417         [BZ #12093]
21418         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21419         be NULL.
21420
21421 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21422
21423         [BZ #3268]
21424         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21425         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21426         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21427         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21428         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21429         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21430         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21431         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21432         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21433         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21434         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21435         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21436         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21437         * math/ftestexcept.c (fetestexcept): Likewise.
21438         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21439         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21440         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21441         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21442         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21443         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21444         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21445
21446 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21447
21448         [BZ #12107]
21449         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21450         newline.
21451
21452 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21453
21454         * string/bug-strstr1.c: New file.
21455         * string/Makefile: Add rules to build and run bug-strstr1.
21456
21457 2010-10-05  Eric Blake  <eblake@redhat.com>
21458
21459         [BZ #12092]
21460         * string/str-two-way.h (two_way_long_needle): Always clear memory
21461         when skipping input due to the shift table.
21462
21463 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21464
21465         [BZ #12005]
21466         * malloc/mcheck.c: Handle large requests.
21467
21468         [BZ #12077]
21469         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21470         for strncmp and strncasecmp.
21471         * string/stratcliff.c: Add tests for strcmp and strncmp.
21472         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21473
21474 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21475
21476         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21477         __set_fpscr.
21478
21479 2010-09-30  Andreas Jaeger  <aj@suse.de>
21480
21481         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21482         (CGROUP_SUPER_MAGIC): Define.
21483         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21484         Handle btrfs and cgroup file systems.
21485         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21486         Likewise.
21487
21488 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21489
21490         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21491         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21492
21493 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21494
21495         [BZ #12067]
21496         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21497         trying to locate the ELF header.
21498
21499 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21500
21501         [BZ #11611]
21502         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21503         Mask out sign-bit copies when constructing f_fsid.
21504
21505 2010-09-24  Petr Baudis <pasky@suse.cz>
21506
21507         * debug/stack_chk_fail_local.c: Add missing licence exception.
21508         * debug/warning-nop.c: Likewise.
21509
21510 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21511
21512         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21513         implementing getdents64 using getdents syscall, set d_type if
21514         __ASSUME_GETDENTS32_D_TYPE.
21515
21516 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21517
21518         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21519         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21520
21521 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21522
21523         [BZ #12037]
21524         * posix/unistd.h: Undo change of feature selection for ftruncate from
21525         2010-01-11.
21526
21527 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21528
21529         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21530         detection.
21531
21532 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21533
21534         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21535         fanotify_mark.
21536         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21537
21538 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21539
21540         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21541         variables after CHECK_SP call.
21542         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21543
21544 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21545             Ulrich Drepper  <drepper@redhat.com>
21546
21547         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21548         re-relocationg ld.so.
21549         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21550         _dl_init_paths call.
21551         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21552         here anymore.
21553
21554 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21555
21556         * resolv/res_init.c (__res_vinit): Count the default server we added.
21557
21558 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21559             Ulrich Drepper  <drepper@redhat.com>
21560
21561         [BZ #11968]
21562         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21563         (____longjmp_chk): Use %ebx for saving value across system call.
21564         Add unwind info.
21565
21566 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21567
21568         * manual/Makefile: Don't mix pattern rules with normal rules.
21569
21570 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21571
21572         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21573         operation.
21574         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21575         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21576         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21577         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21578         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21579         Likewise.
21580
21581 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21582
21583         [BZ #11979]
21584         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21585         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21586
21587 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21588
21589         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21590         * sysdeps/x86_64/addmul_1.S: Likewise.
21591         * sysdeps/x86_64/lshift.S: Likewise.
21592         * sysdeps/x86_64/mul_1.S: Likewise.
21593         * sysdeps/x86_64/rshift.S: Likewise.
21594         * sysdeps/x86_64/sub_n.S: Likewise.
21595         * sysdeps/x86_64/submul_1.S: Likewise.
21596
21597 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21598
21599         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21600         Define __sched_param instead of SCHED_* and sched_param when
21601         <bits/sched.h> is included with __need_schedparam defined.
21602         * bits/sched.h [__need_schedparam]
21603         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21604         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21605         (__defined_schedparam): Define to 1.
21606         (__sched_param): New structure, identical to sched_param.
21607         (__need_schedparam): Undefine.
21608
21609 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21610
21611         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21612         (epoll_create1): Declare.
21613
21614         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21615
21616 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21617
21618         [BZ #7066]
21619         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21620         shifting retval into place.
21621
21622 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21623
21624         * nis/rpcsvc/nis.h: Update copyright notice.
21625         * nis/rpcsvc/nis.x: Likewise.
21626         * nis/rpcsvc/nis_callback.h: Likewise.
21627         * nis/rpcsvc/nis_callback.x: Likewise.
21628         * nis/rpcsvc/nis_object.x: Likewise.
21629         * nis/rpcsvc/nis_tags.h: Likewise.
21630         * nis/rpcsvc/yp.h: Likewise.
21631         * nis/rpcsvc/yp.x: Likewise.
21632         * nis/rpcsvc/ypupd.h: Likewise.
21633         * nis/yp_xdr.c: Likewise.
21634         * nis/ypupdate_xdr.c: Likewise.
21635
21636         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21637         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21638         (pmap_getport): Use __libc_rpc_getport.
21639         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21640         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21641         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21642
21643 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21644
21645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21646         fanotify_mark.
21647
21648 2010-08-27  Roland McGrath  <roland@redhat.com>
21649
21650         * sysdeps/i386/i686/multiarch/Makefile
21651         (CFLAGS-varshift.c): New variable.
21652
21653 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21654
21655         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21656         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21657
21658         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21659
21660         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21661
21662 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21663
21664         * sysdeps/x86_64/strlen.S: Unroll the loop.
21665         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21666         strlen-sse2 strlen-sse2-bsf.
21667         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21668         __strlen_no_bsf if bit_Slow_BSF is set.
21669         (__strlen_sse42): Removed.
21670         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21671         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21672
21673 2010-08-25  Roland McGrath  <roland@redhat.com>
21674
21675         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21676         * sysdeps/x86_64/multiarch/varshift.c: New file.
21677         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21678         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21679         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21680         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21681
21682 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21683
21684         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21685         strlen-sse2 strlen-sse2-bsf.
21686         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21687         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21688         (__strlen_sse2): Removed.
21689         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21690         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21691         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21692         bit_Slow_BSF for Atom.
21693         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21694         (index_Slow_BSF): Define.
21695         (HAS_SLOW_BSF): Define.
21696
21697 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21698
21699         [BZ #10851]
21700         * resolv/res_init.c (__res_vinit): When no server address at all
21701         is given default to loopback.
21702
21703 2010-08-24  Roland McGrath  <roland@redhat.com>
21704
21705         * configure.in: Remove config-name.h generation.
21706         * configure: Regenerated.
21707         * config-name.in: File removed.
21708         * scripts/config-uname.sh: New file.
21709         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21710         ($(objdir)config-name.h): New target.
21711
21712         * sunrpc/rpc_parse.h: Avoid nested comment.
21713
21714 2010-08-24  Richard Henderson  <rth@redhat.com>
21715             Ulrich Drepper  <drepper@redhat.com>
21716             H.J. Lu  <hongjiu.lu@intel.com>
21717
21718         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21719         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21720         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21721         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21722         _mm_alignr_epi8 with _mm_loadu_si128.
21723         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21724         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21725         (__m128i_shift_right): Removed.
21726         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21727         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21728         * sysdeps/x86_64/multiarch/varshift.h: New file.
21729         * sysdeps/x86_64/multiarch/varshift.S: New file.
21730
21731 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21732
21733         * configure.in: Move assembler checks to before sysdep dir checking.
21734
21735 2010-08-20  Petr Baudis  <pasky@suse.cz>
21736
21737         * LICENSES: Sync the sunrpc license.
21738
21739 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21740
21741         * sunrpc/auth_des.c: Update copyright notice once again.
21742         * sunrpc/auth_none.c: Likewise.
21743         * sunrpc/auth_unix.c: Likewise.
21744         * sunrpc/authdes_prot.c: Likewise.
21745         * sunrpc/authuxprot.c: Likewise.
21746         * sunrpc/bindrsvprt.c: Likewise.
21747         * sunrpc/clnt_gen.c: Likewise.
21748         * sunrpc/clnt_perr.c: Likewise.
21749         * sunrpc/clnt_raw.c: Likewise.
21750         * sunrpc/clnt_simp.c: Likewise.
21751         * sunrpc/clnt_tcp.c: Likewise.
21752         * sunrpc/clnt_udp.c: Likewise.
21753         * sunrpc/clnt_unix.c: Likewise.
21754         * sunrpc/des_crypt.c: Likewise.
21755         * sunrpc/des_soft.c: Likewise.
21756         * sunrpc/get_myaddr.c: Likewise.
21757         * sunrpc/getrpcport.c: Likewise.
21758         * sunrpc/key_call.c: Likewise.
21759         * sunrpc/key_prot.c: Likewise.
21760         * sunrpc/openchild.c: Likewise.
21761         * sunrpc/pm_getmaps.c: Likewise.
21762         * sunrpc/pm_getport.c: Likewise.
21763         * sunrpc/pmap_clnt.c: Likewise.
21764         * sunrpc/pmap_prot.c: Likewise.
21765         * sunrpc/pmap_prot2.c: Likewise.
21766         * sunrpc/pmap_rmt.c: Likewise.
21767         * sunrpc/rpc/auth.h: Likewise.
21768         * sunrpc/rpc/auth_unix.h: Likewise.
21769         * sunrpc/rpc/clnt.h: Likewise.
21770         * sunrpc/rpc/des_crypt.h: Likewise.
21771         * sunrpc/rpc/key_prot.h: Likewise.
21772         * sunrpc/rpc/netdb.h: Likewise.
21773         * sunrpc/rpc/pmap_clnt.h: Likewise.
21774         * sunrpc/rpc/pmap_prot.h: Likewise.
21775         * sunrpc/rpc/pmap_rmt.h: Likewise.
21776         * sunrpc/rpc/rpc.h: Likewise.
21777         * sunrpc/rpc/rpc_des.h: Likewise.
21778         * sunrpc/rpc/rpc_msg.h: Likewise.
21779         * sunrpc/rpc/svc.h: Likewise.
21780         * sunrpc/rpc/svc_auth.h: Likewise.
21781         * sunrpc/rpc/types.h: Likewise.
21782         * sunrpc/rpc/xdr.h: Likewise.
21783         * sunrpc/rpc_clntout.c: Likewise.
21784         * sunrpc/rpc_cmsg.c: Likewise.
21785         * sunrpc/rpc_common.c: Likewise.
21786         * sunrpc/rpc_cout.c: Likewise.
21787         * sunrpc/rpc_dtable.c: Likewise.
21788         * sunrpc/rpc_hout.c: Likewise.
21789         * sunrpc/rpc_main.c: Likewise.
21790         * sunrpc/rpc_parse.c: Likewise.
21791         * sunrpc/rpc_parse.h: Likewise.
21792         * sunrpc/rpc_prot.c: Likewise.
21793         * sunrpc/rpc_sample.c: Likewise.
21794         * sunrpc/rpc_scan.c: Likewise.
21795         * sunrpc/rpc_scan.h: Likewise.
21796         * sunrpc/rpc_svcout.c: Likewise.
21797         * sunrpc/rpc_tblout.c: Likewise.
21798         * sunrpc/rpc_util.c: Likewise.
21799         * sunrpc/rpc_util.h: Likewise.
21800         * sunrpc/rpcinfo.c: Likewise.
21801         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21802         * sunrpc/rpcsvc/key_prot.x: Likewise.
21803         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21804         * sunrpc/rpcsvc/mount.x: Likewise.
21805         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21806         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21807         * sunrpc/rpcsvc/rex.x: Likewise.
21808         * sunrpc/rpcsvc/rstat.x: Likewise.
21809         * sunrpc/rpcsvc/rusers.x: Likewise.
21810         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21811         * sunrpc/rpcsvc/spray.x: Likewise.
21812         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21813         * sunrpc/rtime.c: Likewise.
21814         * sunrpc/svc.c: Likewise.
21815         * sunrpc/svc_auth.c: Likewise.
21816         * sunrpc/svc_authux.c: Likewise.
21817         * sunrpc/svc_raw.c: Likewise.
21818         * sunrpc/svc_run.c: Likewise.
21819         * sunrpc/svc_simple.c: Likewise.
21820         * sunrpc/svc_tcp.c: Likewise.
21821         * sunrpc/svc_udp.c: Likewise.
21822         * sunrpc/svc_unix.c: Likewise.
21823         * sunrpc/svcauth_des.c: Likewise.
21824         * sunrpc/xcrypt.c: Likewise.
21825         * sunrpc/xdr.c: Likewise.
21826         * sunrpc/xdr_array.c: Likewise.
21827         * sunrpc/xdr_float.c: Likewise.
21828         * sunrpc/xdr_mem.c: Likewise.
21829         * sunrpc/xdr_rec.c: Likewise.
21830         * sunrpc/xdr_ref.c: Likewise.
21831         * sunrpc/xdr_sizeof.c: Likewise.
21832         * sunrpc/xdr_stdio.c: Likewise.
21833
21834         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21835         handling.
21836
21837 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21838
21839         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21840
21841 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21842
21843         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21844         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21845         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21846         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21847         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21848         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21849         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21850         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21851         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21852         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21853         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21854         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21855         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21856         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21857
21858 2010-07-26  Anton Blanchard  <anton@samba.org>
21859
21860         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21861         * malloc/arena.c (heap_trim): Likewise.
21862
21863 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21864
21865         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21866         here.  Not...
21867         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21868         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21869
21870 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21871
21872         * sysdeps/i386/elf/Makefile: New file.
21873
21874 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21875
21876         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21877         from fanotify_init.
21878         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21879         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21880
21881 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21882
21883         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21884         of strncasecmp_l.
21885         * sysdeps/multiarch/strcmp.S: Likewise.
21886
21887 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21888
21889         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21890         strncase_l-nonascii.
21891         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21892         Add strncase_l-ssse3.
21893         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21894         * sysdeps/x86_64/strcmp.S: Likewise.
21895         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21896         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21897         * sysdeps/x86_64/strncase.S: New file.
21898         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21899         * sysdeps/x86_64/strncase_l.S: New file.
21900         * string/Makefile (strop-tests): Add strncasecmp.
21901         * string/test-strncasecmp.c: New file.
21902
21903         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21904         warning.
21905
21906         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21907         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21908
21909 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21910
21911         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21912
21913 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21914
21915         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21916         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21917         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21918
21919 2010-05-01  Alan Modra  <amodra@gmail.com>
21920
21921         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21922         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21923         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21924         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21925         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21926         tidying.  Don't tail-call __sigjmp_save for static lib.
21927         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21928         save location.
21929         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21930         (CALL_MCOUNT): Add eh info, and nop after bl.
21931         (TAIL_CALL_SYSCALL_ERROR): New macro.
21932         (PSEUDO_RET): Use it.
21933         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21934         Correct save location of integer regs and cr.
21935         (_dl_profile_resolve): Correct cr save location.  Delete nops
21936         after bl when SHARED.  Reduce cfi size a little by better
21937         placement of cfi directives.
21938         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21939         make a stack frame.  Instead use parm save area as a temp.
21940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21941         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21943         Don't make a stack frame for parent, use parm save area.
21944         Increase child stack frame to 112 bytes.  Don't save unused reg,
21945         and adjust reg usage.  Set up cfi on error recovery and
21946         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21948         (__makecontext): Add dummy nop after jump to exit.
21949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21950         Use correct parm save area and cr save, reduce stack frame.
21951         Correct cfi for possible PSEUDO_RET frame setup.
21952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21953         Branch to local label emitted by PSEUDO_RET rather than
21954         __syscall_error.
21955
21956 2010-08-12  Andreas Schwab  <schwab@redhat.com>
21957
21958         [BZ #11904]
21959         * locale/programs/locale.c (print_assignment): New function.
21960         (show_locale_vars): Use it.
21961
21962 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
21963
21964         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
21965         field.
21966         (struct statfs64): Likewise.
21967         (_STATFS_F_FLAGS): Define.
21968         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
21969         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21970         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
21971         (ST_VALID): Define locally.
21972         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
21973         __statvfs_getflags, use the provided value.
21974         * sysdeps/unix/sysv/linux/kernel-features.h: Define
21975         __ASSUME_STATFS_F_FLAGS.
21976
21977         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
21978
21979         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
21980         Add sys/fanotify.h.
21981         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
21982         fanotify_mask for GLIBC_2.13.
21983         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
21984         fanotify_init and fanotify_mark.
21985         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21986         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
21987
21988         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
21989         Add prlimit.
21990         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
21991         prlimit64 for GLIBC_2.13.
21992         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
21993         prlimit64.
21994         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
21995         syscall.
21996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
21997         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21998         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
21999         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
22000         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
22001         add prlimit alias.
22002         * sysdeps/unix/sysv/linux/prlimit.c: New file.
22003
22004         [BZ #11903]
22005         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
22006         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
22007
22008         * nss/Makefile: Add rules to build and run tst-nss-test1.
22009         * shlib-versions: Add entry for libnss_test1.
22010         * nss/nss_test1.c: New file.
22011         * nss/tst-nss-test1.c: New file.
22012
22013         * nss/nsswitch.c (__nss_database_custom): Define new variable.
22014         (__nss_configure_lookup): Set appropriate entry in
22015         __nss_configure_lookup to true.
22016         * nss/nsswitch.h: Define enum with indeces of databases in
22017         databases and __nss_database_custom arrays.  Declare
22018         __nss_database_custom.
22019         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
22020         to avoid using nscd when custom rules are installed.
22021         * nss/getXXbyYY_r.c: Likewise.
22022         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
22023
22024         * nss/nss_files/files-parse.c: Whitespace fixes.
22025
22026 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
22027
22028         [BZ #11883]
22029         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22030         * posix/fnmatch_loop.c: Likewise.
22031
22032 2010-07-17  Andi Kleen  <ak@linux.intel.com>
22033
22034         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22035         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22036         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22037         * Versions.def [GLIBC_2.13]: Add.
22038
22039 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
22040
22041         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22042         Also fail if tpwd after pwuid call is NULL.
22043
22044 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22045
22046         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22047         when converting to ms.
22048
22049 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22050
22051         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22052         EOPNOTSUPP errors with ENOTTY.
22053         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22054         EOPNOTSUPP errors with ENOTTY.
22055
22056 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22057
22058         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22059         Add strcasecmp_l-ssse3.
22060         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22061         strcasecmp.
22062         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22063         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22064         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22065
22066 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22067
22068         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22069
22070         * string/Makefile (strop-tests): Add strcasecmp.
22071         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22072         strcasecmp_l-nonascii.
22073         (gen-as-const-headers): Add locale-defines.sym.
22074         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22075         * sysdeps/x86_64/strcasecmp.S: New file.
22076         * sysdeps/x86_64/strcasecmp_l.S: New file.
22077         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22078         * sysdeps/x86_64/locale-defines.sym: New file.
22079         * string/test-strcasecmp.c: New file.
22080
22081         * string/test-strcasestr.c: Test both ends of the range of characters.
22082         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22083
22084 2010-07-29  Roland McGrath  <roland@redhat.com>
22085
22086         [BZ #11856]
22087         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22088
22089 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22090
22091         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22092         for ld.so.
22093
22094 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22095
22096         * manual/memory.texi (Malloc Tunable Parameters): Document
22097         M_PERTURB.
22098
22099 2010-07-26  Roland McGrath  <roland@redhat.com>
22100
22101         [BZ #11840]
22102         * configure.in (-fgnu89-inline check): Set and substitute
22103         gnu89_inline, not libc_cv_gnu89_inline.
22104         * configure: Regenerated.
22105         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22106
22107 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22108
22109         * string/test-strnlen.c: New file.
22110         * string/Makefile (strop-tests): Add strnlen.
22111         * string/tester.c (test_strnlen): Add a few more test cases.
22112         * string/tst-strlen.c: Better error reporting.
22113
22114         * sysdeps/x86_64/strnlen.S: New file.
22115
22116 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22117
22118         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22119         lower-latency instructions.
22120
22121 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22122
22123         * string/test-strcasestr.c: New file.
22124         * string/test-strstr.c: New file.
22125         * string/Makefile (strop-tests): Add strstr and strcasestr.
22126         * string/str-two-way.h: Don't undefine MAX.
22127         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22128
22129 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22130
22131         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22132         strcasestr-nonascii.
22133         (CFLAGS-strcasestr-nonascii.c): Define.
22134         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22135         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22136         Remove unused attribute.
22137
22138 2010-07-20  Roland McGrath  <roland@redhat.com>
22139
22140         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22141         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22142         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22143         like LD_HWCAP_MASK can disable hwcaps.
22144
22145 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22146
22147         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22148
22149 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22150
22151         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22152         call in strcasestr.
22153         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22154         __strcasestr_sse42_nonascii.
22155         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22156         strcasestr-nonascii.c.
22157         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22158
22159 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22160
22161         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22162         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22163         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22164         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22165
22166 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22167
22168         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22169         fcntl.
22170
22171 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22172
22173         [BZ #11577]
22174         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22175         dl_signal_cerror.
22176
22177 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22178
22179         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22180         _PC_PIPE_BUF using F_GETPIPE_SZ.
22181
22182 2010-07-05  Roland McGrath  <roland@redhat.com>
22183
22184         * manual/arith.texi (Rounding Functions): Fix rint description
22185         implicit in round description.
22186
22187 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22188
22189         * elf/Makefile: Fix linking for a few tests to make recent linker
22190         happy.
22191
22192 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22193
22194         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22195         $(common-objpfx)libc_nonshared.a.
22196
22197 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22198
22199         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22200         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22201         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22202         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22203         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22204         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22205         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22206         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22221         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22222         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22223         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22224         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22225         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22226         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22227         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22228         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22229         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22230         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22231         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22232         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22247
22248 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22249
22250         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22251         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22252         * string/memmove.c (memmove): Renamed to ...
22253         (MEMMOVE): ...this.  Default to memmove.
22254         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22255         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22256         (END_CHK): Define.
22257         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22258         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22259         mempcpy-ssse3-back memmove-ssse3-back.
22260         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22261         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22262         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22263         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22264         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22265         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22266         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22267         * sysdeps/x86_64/multiarch/memmove.c: New file.
22268         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22269         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22270         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22271         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22272         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22273         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22274         Define.
22275         (index_Fast_Copy_Backward): Define.
22276         (HAS_ARCH_FEATURE): Define.
22277         (HAS_FAST_REP_STRING): Define.
22278         (HAS_FAST_COPY_BACKWARD): Define.
22279
22280 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22281
22282         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22283         Restore proper fallback handling.
22284
22285 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22286
22287         [BZ #11701]
22288         * posix/group_member.c (__group_member): Correct checking loop.
22289
22290         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22291         OOM in getpwuid_r correctly.  Return error number when the caller
22292         should return, otherwise -1.
22293         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22294         call returning > 0 value.
22295         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22296
22297 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22298
22299         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22300         libc_nonshared.a from targets in modules-names.
22301
22302 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22303
22304         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22305         requires it.
22306
22307 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22308
22309         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22310         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22311         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22312         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22313
22314 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22315
22316         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22317
22318 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22319
22320         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22321         and F_GETPIPE_SZ.
22322         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22323         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22324         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22325         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22326         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22327         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22328
22329 2010-06-14  Roland McGrath  <roland@redhat.com>
22330
22331         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22332
22333 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22334
22335         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22336         __REDIRECT followed by __THROW.
22337         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22338         * posix/getopt.h (getopt): Likewise.
22339
22340 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22341
22342         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22343         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22344         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22345         in AT_FLAGS.
22346         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22347         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22348
22349 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22350
22351         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22352
22353 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22354
22355         [BZ #11640]
22356         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22357         Properly check family and model.
22358
22359 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22360
22361         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22362
22363 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22364
22365         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22366
22367 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22368
22369         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22370         symbol reference.
22371
22372 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22373
22374         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22375         symbol reference.
22376
22377 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22378
22379         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22380         and internal_recvmmsg.
22381         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22382         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22383         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22384         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22385
22386         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22387         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22388         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22389
22390 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22391
22392         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22393
22394 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22395
22396         POWER7 optimizations.
22397         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22398         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22399
22400 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22401
22402         * version.h: Update for 2.13 development version.
22403
22404 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22405
22406         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22407         exceptions.  Return 0.
22408
22409 2010-05-07  Roland McGrath  <roland@redhat.com>
22410
22411         * elf/ldconfig.c (main): Add a const.
22412
22413 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22414
22415         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22416         (args_options): Add no-idn option.
22417         (ahosts_keys_int): Add idn_flags to ai_flags.
22418         (parse_option): Handle 'i' option to clear idn_flags.
22419
22420         * malloc/malloc.c (_int_free): Possible race in the most recently
22421         added check.  Only act on the data if no current modification
22422         happened.
22423
22424 See ChangeLog.17 for earlier changes.