Generate /usr/libexec/getconf files when cross-compiling.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
2
3         * posix/getconf-speclist.c: New file.
4         * posix/posix-envs.def: Likewise.
5         * posix/confstr.c (START_ENV_GROUP): New macro.
6         (END_ENV_GROUP): Likewise.
7         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
8         (KNOWN_PRESENT_ENV_STRING): Likewise.
9         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
10         (UNKNOWN_ENVIRONMENT): Likewise.
11         (confstr): Include posix-envs.def instead of handling
12         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
13         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
14         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
15         (END_ENV_GROUP): Likewise.
16         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
17         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
18         (UNKNOWN_ENVIRONMENT): Likewise.
19         (__sysconf): Include posix-envs.def instead of handling associated
20         cases directly here.
21         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
22         preprocessing getconf-speclist.c rather than running getconf or
23         generating empty file.
24
25 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
26
27         * scripts/check-local-headers.sh: Ignore 'mach' headers.
28
29 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
30
31         [BZ #14672]
32         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
33
34 2012-11-16  David S. Miller  <davem@davemloft.net>
35
36         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
37         smaller than LDBL_EPSILON/2.0L, just return xm1.
38
39 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
40
41         * elf/tst-array1.c (init): Set constructor priority to 1000.
42         (fini): Set destructor priority to 1000.
43         * elf/tst-array2dep.c: Likewise.
44
45 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
46
47         [BZ #11741]
48         * libio/fileops.c (_IO_new_file_write): Correctly return error.
49         (_IO_new_file_xsputn): Also return EOF if none of the input
50         data was written when overflow failed.
51         * libio/iopadn.c (_IO_padn): Likewise.
52         * libio/iowpadn.c (_IO_wpadn): Likewise.
53         * stdio-common/tst-put-error.c: Add copyright notice.
54         (do_test): Add case for printing padded string.
55         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
56         _IO_padn returned error.
57         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
58         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
59         return EOF.
60
61 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
62
63         * libio/libioP.h: Add comment note that the references to C++
64         bits are now obsolete.
65
66 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67
68         * math/libm-test.inc (check_complex): Use asprintf.
69
70 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
71
72         * debug/pcprofiledump.c (print_version): Update copyright year.
73         * malloc/memusagestat.c (print_version): Likewise.
74
75 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
76
77         [BZ #14831]
78         * elf/Makefile (tests): Add tst-audit8.
79         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
80         ($(objpfx)tst-audit8.out): New target.
81         (tst-audit8-ENV): New variable.
82         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
83         audit if l_reloc_result is NULL.
84         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
85         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
86         * elf/tst-audit8.c: New file.
87
88 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
89
90         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
91         * misc/Makefile (CFLAGS-select.c): Define.
92         * posix/Makefile (CFLAGS-pause.c): Define.
93
94 2012-11-13  David S. Miller  <davem@davemloft.net>
95
96         * crypt/Makefile: Move test targets after toplevel Rules
97         inclusion.  Grab any necessary sysdep routines when linking.
98         * crypt/md5.c (md5_process_block): Remove define, we will always
99         name it __md5_process_block.
100         (md5_finish_ctx): Update md5_process_block call.
101         (md5_stream): Likewise.
102         (md5_process_bytes): Likewise.
103         (md5_process_block): Rename to __md5_process_block and move to ...
104         * crypt/md5-block.c: ... here.
105         * crypt/sha256.c (sha256_process_block): Move to ...
106         * crypt/sha256-block.c: ... here.
107         * crypt/sha512.c (sha512_process_block): Move to ...
108         * crypt/sha512-block.c: ... here.
109         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
110         path.
111         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
112         * sysdeps/sparc/sparc64/multiarch/Makefile
113         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
114         crypt subdir.
115         (localedef-aux): Add md5 crypto assembler when in locale subdir.
116         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
117         multiarch changes.
118         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
119         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
120         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
121         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
122         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
123         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
124         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
125         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
126         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
127         file.
128         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
129         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
130         file.
131         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
132
133 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
134
135         * timezone/tzselect.ksh: Update from tzcode git revision
136         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
137         * timezone/zdump.c: Likewise.
138         * timezone/zic.c: Likewise.
139         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
140         in TZVERSION setting, not $(PKGVERSION).
141         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
142         REPORT_BUGS_TO settings.
143
144         [BZ #14838]
145         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
146         macro.
147
148 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
149
150         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
151         detection to immediately after _FP_ROUND().
152         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
153         bits are 0.
154
155 2012-11-11  David S. Miller  <davem@davemloft.net>
156
157         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
158         inttypes.h
159         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
160         __close rather than their public counterparts.
161
162 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
163
164         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
165         file.
166         [UNIX98] (sem_timedwait): Do not expect.
167         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
168         [XPG4 || UNIX98] (sockatmark): Do not expect.
169         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
170         (clock_getcpuclockid): Do not expect.
171         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
172         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
173         Do not expect.
174         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
175         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
176         [UNIX98] (vwscanf): Likewise.
177         [UNIX98] (vswscanf): Likewise.
178
179 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
180
181         * timezone/version.h: Remove file.
182         * timezone/README: Do not refer to version.h.
183         * timezone/Makefile ($(objpfx)zic.o): New dependency on
184         $(objpfx)version.h.
185         ($(objpfx)zdump.o): Likewise.
186         ($(objpfx)version.h): New target.
187
188         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
189         2012i.
190         * timezone/README: Don't mention modification to tzselect.ksh.
191         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
192         work on unmodified tzselect.ksh.  Substitute version numbers in
193         tzselect.ksh.
194
195         * Makefile (format-me): Remove.
196         (INSTALL): Adjust indentation.  Use commands directly instead of
197         using $(format-me).
198
199         * aclocal.m4 (ACX_PKGVERSION): New macro.
200         (ACX_BUGURL): Likewise.
201         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
202         (PKGVERSION): New AC_DEFINE_UNQUOTED.
203         (REPORT_BUGS_TO): Likewise.
204         * configure: Regenerated.
205         * config.h.in (PKGVERSION): New macro.
206         (REPORT_BUGS_TO): Likewise.
207         * config.make.in (PKGVERSION): New variable.
208         (PKGVERSION_TEXI): Likewise.
209         (REPORT_BUGS_TO): Likewise.
210         (REPORT_BUGS_TEXI): Likewise.
211         * Makefile (format-me): Use -I$(common-objpfx)manual.
212         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
213         ($(common-objpfx)manual/%): New target.
214         (manual/%): Remove target.
215         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
216         (print_version): Use PKGVERSION.
217         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
218         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
219         and REPORT_BUGS_TO.
220         ($(objpfx)xtrace): Likewise.
221         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
222         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
223         (print_version): Use PKGVERSION.
224         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
225         (do_version): Use PKGVERSION.
226         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
227         REPORT_BUGS_TO.
228         (common-ldd-rewrite): Likewise.
229         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
230         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
231         (print_version): Use PKGVERSION.
232         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
233         * elf/pldd.c (argp_program_bug_address): Remove variable.
234         (more_help): New function.
235         (argp): Use more_help.
236         (print_version): Use PKGVERSION.
237         * elf/sln.c (main): Use PKGVERSION.
238         (usage): Use REPORT_BUGS_TO.
239         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
240         (top level): Use PKGVERSION.
241         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
242         (print_version): Use PKGVERSION.
243         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
244         (print_version): Use PKGVERSION.
245         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
246         (print_version): Use PKGVERSION.
247         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
248         (print_version): Use PKGVERSION.
249         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
250         (print_version): Use PKGVERSION.
251         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
252         (print_version): Use PKGVERSION.
253         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
254         and BUGURL.
255         ($(objpfx)memusage): Likewise.
256         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
257         (do_version): Use PKGVERSION.
258         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
259         (print_version): Use PKGVERSION.
260         * malloc/mtrace.pl ($PACKAGE): Remove variable.
261         ($PKGVERSION): New variable.
262         ($REPORT_BUGS_TO): Likewise.
263         (usage): Use $REPORT_BUGS_TO.
264         (top level): Use $PKGVERSION.
265         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
266         ($(objpfx)pkgvers.texi): New rule.
267         ($(objpfx)stamp-pkgvers): Likewise.
268         * manual/install.texi: Include pkgvers.texi.
269         (--with-pkgversion): Document new configure option.
270         (--with-bugurl): Likewise.
271         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
272         than necessarily for this particular distribution.  Use
273         REPORT_BUGS_TO for where to report bugs.
274         * INSTALL: Regenerated.
275         * manual/libc.texinfo: Include pkgvers.texi.
276         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
277         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
278         (print_version): Use PKGVERSION.
279         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
280         (print_version): Use PKGVERSION.
281         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
282         (print_version): Use PKGVERSION.
283         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
284         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
285         macro.
286         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
287         (print_version): Use PKGVERSION.
288         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
289         (print_version): Use PKGVERSION.
290         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
291         and PKGVERSION.
292
293         * timezone/checktab.awk: Update from tzcode 2012i.
294         * timezone/ialloc.c: Likewise.
295         * timezone/private.h: Likewise.
296         * timezone/scheck.c: Likewise.
297         * timezone/tzfile.h: Likewise.
298         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
299         (TZVERSION): Hardcode tzcode version number.
300         * timezone/zdump.c: Update from tzcode 2012i.
301         * timezone/zic.c: Likewise.
302         * timezone/version.h: New file.
303         * timezone/README: Describe version.h.  Update upstream location.
304
305         [BZ #14824]
306         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
307         (mktemp): Enable declaration.
308         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
309         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
310         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
311         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
312         Likewise.
313         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
314         Likewise.
315         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
316         Likewise.
317         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
318         Likewise.
319         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
320         Likewise.
321         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
322         Likewise.
323
324         [BZ #14821]
325         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
326         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
327         for copies of such integer values.
328         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
329         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
330
331 2012-11-09  Andreas Jaeger  <aj@suse.de>
332
333         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
334         definitions and declarations that are provided by
335         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
336
337 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
338
339         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
340         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
341         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
342         definition.
343
344 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
345
346         * elf/elf.h: Update comment before AArch64 relocations.
347
348 2012-11-07  David S. Miller  <davem@davemloft.net>
349
350         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
351         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
352         (__start_context): Declare.
353         (__makecontext_ret): Delete.
354         (__makecontext): Hook up __start_context instead of
355         __makecontext_ret.
356         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
357         (sysdep_routines): Add __start_context when in stdlib.
358
359 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
360
361         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
362         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
363         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
364         hardcoded "nm".
365         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
366         (READELF): New variable.  Use it instead of hardcoded "readelf".
367
368 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
369
370         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
371         * sysdeps/x86/Makefile: Here.
372         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
373         * sysdeps/x86/tst-xmmymm.sh: This.
374
375 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
376
377         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
378         expectations.
379         [UNIX98] (pthread_barrier_t): Do not expect.
380         [UNIX98] (pthread_barrierattr_t): Likewise.
381         [UNIX98] (pthread_spinlock_t): Likewise.
382         [UNIX98] (pthread_barrier_destroy): Likewise.
383         [UNIX98] (pthread_barrier_init): Likewise.
384         [UNIX98] (pthread_barrier_wait): Likewise.
385         [UNIX98] (pthread_barrierattr_destroy): Likewise.
386         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
387         [UNIX98] (pthread_barrierattr_init): Likewise.
388         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
389         [UNIX98] (pthread_getcpuclockid): Likewise.
390         [UNIX98] (pthread_mutex_timedlock): Likewise.
391         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
392         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
393         [UNIX98] (pthread_sigmask): Likewise.
394         [UNIX98] (pthread_spin_destroy): Likewise.
395         [UNIX98] (pthread_spin_init): Likewise.
396         [UNIX98] (pthread_spin_lock): Likewise.
397         [UNIX98] (pthread_spin_trylock): Likewise.
398         [UNIX98] (pthread_spin_unlock): Likewise.
399         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
400         Do not expect.
401         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
402         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
403         [XPG3 || XPG4] (pthread_cond_t): Likewise.
404         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
405         [XPG3 || XPG4] (pthread_key_t): Likewise.
406         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
407         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
408         [XPG3 || XPG4] (pthread_once_t): Likewise.
409         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
410         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
411         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
412         [XPG3 || XPG4] (pthread_t): Likewise.
413
414         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
415         not expect.
416         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
417
418         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
419         Change function return type to int.
420
421         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
422         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
423         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
424         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
425         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
426         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
427         [!POSIX] (posix_madvise): Likewise.
428         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
429         && !UNIX98].
430         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
431         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
432         (mode_t): Likewise.
433         (posix_mem_offset): Likewise.
434         (posix_typed_mem_get_info): Likewise.
435         (posix_typed_mem_open): Likewise.
436
437         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
438         Change condition to [XOPEN2K8].
439
440         * conform/conformtest.pl: Preprocess allow-header data with -x c
441         instead of from stdin.
442         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
443         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
444         [C99-based standards] (cerfc): Likewise.
445         [C99-based standards] (cexp2): Likewise.
446         [C99-based standards] (cexpm1): Likewise.
447         [C99-based standards] (clog10): Likewise.
448         [C99-based standards] (clog1p): Likewise.
449         [C99-based standards] (clog2): Likewise.
450         [C99-based standards] (clgamma): Likewise.
451         [C99-based standards] (ctgamma): Likewise.
452         [C99-based standards] (cerff): Likewise.
453         [C99-based standards] (cerfcf): Likewise.
454         [C99-based standards] (cexp2f): Likewise.
455         [C99-based standards] (cexpm1f): Likewise.
456         [C99-based standards] (clog10f): Likewise.
457         [C99-based standards] (clog1pf): Likewise.
458         [C99-based standards] (clog2f): Likewise.
459         [C99-based standards] (clgammaf): Likewise.
460         [C99-based standards] (ctgammaf): Likewise.
461         [C99-based standards] (cerfl): Likewise.
462         [C99-based standards] (cerfcl): Likewise.
463         [C99-based standards] (cexp2l): Likewise.
464         [C99-based standards] (cexpm1l): Likewise.
465         [C99-based standards] (clog10l): Likewise.
466         [C99-based standards] (clog1pl): Likewise.
467         [C99-based standards] (clog2l): Likewise.
468         [C99-based standards] (clgammal): Likewise.
469         [C99-based standards] (ctgammal): Likewise.
470         * conform/data/inttypes.h-data [C99-based standards]: Include
471         stdint.h-data.  Remove all expectations for stdint.h contents.
472         [C99-based standards] (PRI*): Do not allow.
473         [C99-based standards] (SCN*): Likewise.
474         [C99-based standards] (*_t): Likewise.
475         [C99-based-standards] (PRId8): Expect macro.
476         [C99-based-standards] (PRIi8): Likewise.
477         [C99-based-standards] (PRIo8): Likewise.
478         [C99-based-standards] (PRIu8): Likewise.
479         [C99-based-standards] (PRIx8): Likewise.
480         [C99-based-standards] (PRIX8): Likewise.
481         [C99-based-standards] (SCNd8): Likewise.
482         [C99-based-standards] (SCNi8): Likewise.
483         [C99-based-standards] (SCNo8): Likewise.
484         [C99-based-standards] (SCNu8): Likewise.
485         [C99-based-standards] (SCNx8): Likewise.
486         [C99-based-standards] (PRIdLEAST8): Likewise.
487         [C99-based-standards] (PRIiLEAST8): Likewise.
488         [C99-based-standards] (PRIoLEAST8): Likewise.
489         [C99-based-standards] (PRIuLEAST8): Likewise.
490         [C99-based-standards] (PRIxLEAST8): Likewise.
491         [C99-based-standards] (PRIXLEAST8): Likewise.
492         [C99-based-standards] (SCNdLEAST8): Likewise.
493         [C99-based-standards] (SCNiLEAST8): Likewise.
494         [C99-based-standards] (SCNoLEAST8): Likewise.
495         [C99-based-standards] (SCNuLEAST8): Likewise.
496         [C99-based-standards] (SCNxLEAST8): Likewise.
497         [C99-based-standards] (PRIdFAST8): Likewise.
498         [C99-based-standards] (PRIiFAST8): Likewise.
499         [C99-based-standards] (PRIoFAST8): Likewise.
500         [C99-based-standards] (PRIuFAST8): Likewise.
501         [C99-based-standards] (PRIxFAST8): Likewise.
502         [C99-based-standards] (PRIXFAST8): Likewise.
503         [C99-based-standards] (SCNdFAST8): Likewise.
504         [C99-based-standards] (SCNiFAST8): Likewise.
505         [C99-based-standards] (SCNoFAST8): Likewise.
506         [C99-based-standards] (SCNuFAST8): Likewise.
507         [C99-based-standards] (SCNxFAST8): Likewise.
508         [C99-based-standards] (PRId16): Likewise.
509         [C99-based-standards] (PRIi16): Likewise.
510         [C99-based-standards] (PRIo16): Likewise.
511         [C99-based-standards] (PRIu16): Likewise.
512         [C99-based-standards] (PRIx16): Likewise.
513         [C99-based-standards] (PRIX16): Likewise.
514         [C99-based-standards] (SCNd16): Likewise.
515         [C99-based-standards] (SCNi16): Likewise.
516         [C99-based-standards] (SCNo16): Likewise.
517         [C99-based-standards] (SCNu16): Likewise.
518         [C99-based-standards] (SCNx16): Likewise.
519         [C99-based-standards] (PRIdLEAST16): Likewise.
520         [C99-based-standards] (PRIiLEAST16): Likewise.
521         [C99-based-standards] (PRIoLEAST16): Likewise.
522         [C99-based-standards] (PRIuLEAST16): Likewise.
523         [C99-based-standards] (PRIxLEAST16): Likewise.
524         [C99-based-standards] (PRIXLEAST16): Likewise.
525         [C99-based-standards] (SCNdLEAST16): Likewise.
526         [C99-based-standards] (SCNiLEAST16): Likewise.
527         [C99-based-standards] (SCNoLEAST16): Likewise.
528         [C99-based-standards] (SCNuLEAST16): Likewise.
529         [C99-based-standards] (SCNxLEAST16): Likewise.
530         [C99-based-standards] (PRIdFAST16): Likewise.
531         [C99-based-standards] (PRIiFAST16): Likewise.
532         [C99-based-standards] (PRIoFAST16): Likewise.
533         [C99-based-standards] (PRIuFAST16): Likewise.
534         [C99-based-standards] (PRIxFAST16): Likewise.
535         [C99-based-standards] (PRIXFAST16): Likewise.
536         [C99-based-standards] (SCNdFAST16): Likewise.
537         [C99-based-standards] (SCNiFAST16): Likewise.
538         [C99-based-standards] (SCNoFAST16): Likewise.
539         [C99-based-standards] (SCNuFAST16): Likewise.
540         [C99-based-standards] (SCNxFAST16): Likewise.
541         [C99-based-standards] (PRId32): Likewise.
542         [C99-based-standards] (PRIi32): Likewise.
543         [C99-based-standards] (PRIo32): Likewise.
544         [C99-based-standards] (PRIu32): Likewise.
545         [C99-based-standards] (PRIx32): Likewise.
546         [C99-based-standards] (PRIX32): Likewise.
547         [C99-based-standards] (SCNd32): Likewise.
548         [C99-based-standards] (SCNi32): Likewise.
549         [C99-based-standards] (SCNo32): Likewise.
550         [C99-based-standards] (SCNu32): Likewise.
551         [C99-based-standards] (SCNx32): Likewise.
552         [C99-based-standards] (PRIdLEAST32): Likewise.
553         [C99-based-standards] (PRIiLEAST32): Likewise.
554         [C99-based-standards] (PRIoLEAST32): Likewise.
555         [C99-based-standards] (PRIuLEAST32): Likewise.
556         [C99-based-standards] (PRIxLEAST32): Likewise.
557         [C99-based-standards] (PRIXLEAST32): Likewise.
558         [C99-based-standards] (SCNdLEAST32): Likewise.
559         [C99-based-standards] (SCNiLEAST32): Likewise.
560         [C99-based-standards] (SCNoLEAST32): Likewise.
561         [C99-based-standards] (SCNuLEAST32): Likewise.
562         [C99-based-standards] (SCNxLEAST32): Likewise.
563         [C99-based-standards] (PRIdFAST32): Likewise.
564         [C99-based-standards] (PRIiFAST32): Likewise.
565         [C99-based-standards] (PRIoFAST32): Likewise.
566         [C99-based-standards] (PRIuFAST32): Likewise.
567         [C99-based-standards] (PRIxFAST32): Likewise.
568         [C99-based-standards] (PRIXFAST32): Likewise.
569         [C99-based-standards] (SCNdFAST32): Likewise.
570         [C99-based-standards] (SCNiFAST32): Likewise.
571         [C99-based-standards] (SCNoFAST32): Likewise.
572         [C99-based-standards] (SCNuFAST32): Likewise.
573         [C99-based-standards] (SCNxFAST32): Likewise.
574         [C99-based-standards] (PRId64): Likewise.
575         [C99-based-standards] (PRIi64): Likewise.
576         [C99-based-standards] (PRIo64): Likewise.
577         [C99-based-standards] (PRIu64): Likewise.
578         [C99-based-standards] (PRIx64): Likewise.
579         [C99-based-standards] (PRIX64): Likewise.
580         [C99-based-standards] (SCNd64): Likewise.
581         [C99-based-standards] (SCNi64): Likewise.
582         [C99-based-standards] (SCNo64): Likewise.
583         [C99-based-standards] (SCNu64): Likewise.
584         [C99-based-standards] (SCNx64): Likewise.
585         [C99-based-standards] (PRIdLEAST64): Likewise.
586         [C99-based-standards] (PRIiLEAST64): Likewise.
587         [C99-based-standards] (PRIoLEAST64): Likewise.
588         [C99-based-standards] (PRIuLEAST64): Likewise.
589         [C99-based-standards] (PRIxLEAST64): Likewise.
590         [C99-based-standards] (PRIXLEAST64): Likewise.
591         [C99-based-standards] (SCNdLEAST64): Likewise.
592         [C99-based-standards] (SCNiLEAST64): Likewise.
593         [C99-based-standards] (SCNoLEAST64): Likewise.
594         [C99-based-standards] (SCNuLEAST64): Likewise.
595         [C99-based-standards] (SCNxLEAST64): Likewise.
596         [C99-based-standards] (PRIdFAST64): Likewise.
597         [C99-based-standards] (PRIiFAST64): Likewise.
598         [C99-based-standards] (PRIoFAST64): Likewise.
599         [C99-based-standards] (PRIuFAST64): Likewise.
600         [C99-based-standards] (PRIxFAST64): Likewise.
601         [C99-based-standards] (PRIXFAST64): Likewise.
602         [C99-based-standards] (SCNdFAST64): Likewise.
603         [C99-based-standards] (SCNiFAST64): Likewise.
604         [C99-based-standards] (SCNoFAST64): Likewise.
605         [C99-based-standards] (SCNuFAST64): Likewise.
606         [C99-based-standards] (SCNxFAST64): Likewise.
607         [C99-based-standards] (PRIdMAX): Likewise.
608         [C99-based-standards] (PRIiMAX): Likewise.
609         [C99-based-standards] (PRIoMAX): Likewise.
610         [C99-based-standards] (PRIuMAX): Likewise.
611         [C99-based-standards] (PRIxMAX): Likewise.
612         [C99-based-standards] (PRIXMAX): Likewise.
613         [C99-based-standards] (SCNdMAX): Likewise.
614         [C99-based-standards] (SCNiMAX): Likewise.
615         [C99-based-standards] (SCNoMAX): Likewise.
616         [C99-based-standards] (SCNuMAX): Likewise.
617         [C99-based-standards] (SCNxMAX): Likewise.
618         [C99-based-standards] (PRIdPTR): Likewise.
619         [C99-based-standards] (PRIiPTR): Likewise.
620         [C99-based-standards] (PRIoPTR): Likewise.
621         [C99-based-standards] (PRIuPTR): Likewise.
622         [C99-based-standards] (PRIxPTR): Likewise.
623         [C99-based-standards] (PRIXPTR): Likewise.
624         [C99-based-standards] (SCNdPTR): Likewise.
625         [C99-based-standards] (SCNiPTR): Likewise.
626         [C99-based-standards] (SCNoPTR): Likewise.
627         [C99-based-standards] (SCNuPTR): Likewise.
628         [C99-based-standards] (SCNxPTR): Likewise.
629         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
630         allow.
631         * conform/data/stdint.h-data: Update comments to clarify
632         requirements.
633         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
634         type.
635         [C99-based standards] (INT8_MAX): Likewise.
636         [C99-based standards] (INT16_MIN): Likewise.
637         [C99-based standards] (INT16_MAX): Likewise.
638         [C99-based standards] (INT32_MIN): Likewise.
639         [C99-based standards] (INT32_MAX): Likewise.
640         [C99-based standards] (INT64_MIN): Likewise.
641         [C99-based standards] (INT64_MAX): Likewise.
642         [C99-based standards] (UINT8_MAX): Likewise.
643         [C99-based standards] (UINT16_MAX): Likewise.
644         [C99-based standards] (UINT32_MAX): Likewise.
645         [C99-based standards] (UINT64_MAX): Likewise.
646         [C99-based standards] (INT_LEAST8_MIN): Likewise.
647         [C99-based standards] (INT_LEAST8_MAX): Likewise.
648         [C99-based standards] (INT_LEAST16_MIN): Likewise.
649         [C99-based standards] (INT_LEAST16_MAX): Likewise.
650         [C99-based standards] (INT_LEAST32_MIN): Likewise.
651         [C99-based standards] (INT_LEAST32_MAX): Likewise.
652         [C99-based standards] (INT_LEAST64_MIN): Likewise.
653         [C99-based standards] (INT_LEAST64_MAX): Likewise.
654         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
655         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
656         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
657         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
658         [C99-based standards] (INT_FAST8_MIN): Likewise.
659         [C99-based standards] (INT_FAST8_MAX): Likewise.
660         [C99-based standards] (INT_FAST16_MIN): Likewise.
661         [C99-based standards] (INT_FAST16_MAX): Likewise.
662         [C99-based standards] (INT_FAST32_MIN): Likewise.
663         [C99-based standards] (INT_FAST32_MAX): Likewise.
664         [C99-based standards] (INT_FAST64_MIN): Likewise.
665         [C99-based standards] (INT_FAST64_MAX): Likewise.
666         [C99-based standards] (UINT_FAST8_MAX): Likewise.
667         [C99-based standards] (UINT_FAST16_MAX): Likewise.
668         [C99-based standards] (UINT_FAST32_MAX): Likewise.
669         [C99-based standards] (UINT_FAST64_MAX): Likewise.
670         [C99-based standards] (INTPTR_MIN): Likewise.
671         [C99-based standards] (INTPTR_MAX): Likewise.
672         [C99-based standards] (UINTPTR_MAX): Likewise.
673         [C99-based standards] (INTMAX_MIN): Likewise.
674         [C99-based standards] (INTMAX_MAX): Likewise.
675         [C99-based standards] (UINTMAX_MAX): Likewise.
676         [C99-based standards] (PTRDIFF_MIN): Likewise.
677         [C99-based standards] (PTRDIFF_MAX): Likewise.
678         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
679         [C99-based standards] (SIZE_MAX): Likewise.
680         [C99-based standards] (WCHAR_MAX): Likewise.
681         [C99-based standards] (WINT_MAX): Likewise.
682         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
683         constraint on value.
684         [C99-based standards] (WCHAR_MIN): Likewise.
685         [C99-based standards] (WINT_MIN): Likewise.
686         [C99-based standards] (*_t): Allow.
687         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
688         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
689         Include math.h-data and complex.h-data.  Remove all expectations
690         of math.h and complex.h contents.
691         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
692         at end of line.
693         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
694         (struct tm): Expect tag.
695         [C99-based-standards] (wcstof): Expect function.
696         [C99-based-standards] (wcstold): Likewise.
697         [C99-based-standards] (wcstoll): Likewise.
698         [C99-based-standards] (wcstoull): Likewise.
699         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
700         macro-int-constant.  Specify type.
701         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
702         constraint on value.
703         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
704         Specify type.
705         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
706         Specify value.
707         [ISO C standards]: Do not allow headers.
708         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
709         wcs[abcdefghijklmnopqrstuvwxyz]*.
710         [ISO C standards] (*_t): Do not allow.
711         * conform/data/wctype.h-data [C99-based standards] (iswblank):
712         Expect function.
713         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
714         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
715         Specify type.
716         [ISO C standards]: Do not allow headers.
717         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
718         is[abcdefghijklmnopqrstuvwxyz]*.
719         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
720         to[abcdefghijklmnopqrstuvwxyz]*.
721         [ISO C standards] (*_t): Do not allow.
722         * conform/data/stdalign.h-data: New file.
723         * conform/data/stdbool.h-data: Likewise.
724         * conform/data/stdnoreturn.h-data: Likewise.
725
726 2012-11-07  Andreas Jaeger  <aj@suse.de>
727
728         [BZ #14809]
729         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
730         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
731         guards are changed.  Only define if not yet defined, #undef back
732         after including linux/sysctl.h if defined here.
733
734 2012-11-07  Roland McGrath  <roland@hack.frob.com>
735
736         [BZ #14815]
737         * manual/filesys.texi (Directory Entries): Typo fix.
738         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
739
740 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
741
742         * elf/elf.h (EM_AARCH64): New macro.
743         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
744         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
745         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
746         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
747         (R_AARCH64_TLSDESC): Likewise.
748         (NT_ARM_TLS): Likewise.
749         (NT_ARM_HW_BREAK): Likewise.
750         (NT_ARM_HW_WATCH): Likewise.
751
752 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
753
754         [BZ #14811]
755         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
756         (__ieee754_powl): Saturate nonzero exponents with absolute value
757         below 0x1p-79 to +/- 0x1p-79.
758         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
759         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
760         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
761         nonzero exponents with absolute value below 0x1p-32 to +/-
762         0x1p-32.
763         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
764         (__ieee754_powl): Saturate nonzero exponents with absolute value
765         below 0x1p-79 to +/- 0x1p-79.
766         * math/libm-test.inc (pow_test): Add more tests.
767
768 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
769
770         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
771         _dl_s390_cap_flags with kernel. Increase string length.
772         (_dl_s390_platforms): Add z196 and zEC12.
773
774 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
775
776         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
777         Change XOPEN21K to XOPEN2K.
778
779 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
780
781         * string/memmove.c: Use memcpy when possible.
782
783 2012-11-06  Andreas Jaeger  <aj@suse.de>
784
785         * po/eo.po: Update from translation team.
786
787 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
788
789         [BZ #14793]
790         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
791         exponent and small x and y exponents, scale x or y up.  Increase
792         by 2 the exponent used in scaling up.
793         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
794         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
795         * math/libm-test.inc (fma_test): Add more tests.
796         (fma_test_towardzero): Likewise.
797         (fma_test_downward): Likewise.
798         (fma_test_upward): Likewise.
799
800 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
801
802         [BZ #14805]
803         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
804         fenv_t *.
805
806         [BZ #14801]
807         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
808         namespace for names of struct fields.
809         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
810         fenv_t fields.
811         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
812         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
813
814 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
815
816         [BZ #3665]
817         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
818
819 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
820
821         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
822         PTR_DEMANGLE.
823
824         [BZ #5246]
825         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
826         PTR_DEMANGLE.
827
828 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
829
830         [BZ #14797]
831         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
832         definitely overflow as x * y not x * y + z.
833         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
834         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
835         * math/libm-test.inc (fma_test): Add more tests.
836         (fma_test_towardzero): Likewise.
837         (fma_test_downward): Likewise.
838         (fma_test_upward): Likewise.
839
840 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
841
842         [BZ #157]
843
844         * include/stub-tag.h: Remove file.
845         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
846         '#include' of it.
847         * manual/maint.texi (Porting): Don't reference it.
848         * Makerules ($(objpfx)stubs): Likewise.
849         * dirent/closedir.c: Don't include <stub-tag.h>.
850         * dirent/dirfd.c: Likewise.
851         * dirent/fdopendir.c: Likewise.
852         * dirent/getdents.c: Likewise.
853         * dirent/getdents64.c: Likewise.
854         * dirent/opendir.c: Likewise.
855         * dirent/readdir.c: Likewise.
856         * dirent/readdir64.c: Likewise.
857         * dirent/readdir64_r.c: Likewise.
858         * dirent/readdir_r.c: Likewise.
859         * dirent/rewinddir.c: Likewise.
860         * dirent/seekdir.c: Likewise.
861         * dirent/telldir.c: Likewise.
862         * gmon/profil.c: Likewise.
863         * grp/setgroups.c: Likewise.
864         * inet/if_index.c: Likewise.
865         * io/access.c: Likewise.
866         * io/chdir.c: Likewise.
867         * io/chmod.c: Likewise.
868         * io/chown.c: Likewise.
869         * io/close.c: Likewise.
870         * io/dup.c: Likewise.
871         * io/dup2.c: Likewise.
872         * io/dup3.c: Likewise.
873         * io/euidaccess.c: Likewise.
874         * io/faccessat.c: Likewise.
875         * io/fchdir.c: Likewise.
876         * io/fchmod.c: Likewise.
877         * io/fchmodat.c: Likewise.
878         * io/fchown.c: Likewise.
879         * io/fchownat.c: Likewise.
880         * io/fcntl.c: Likewise.
881         * io/flock.c: Likewise.
882         * io/fstatfs.c: Likewise.
883         * io/fstatfs64.c: Likewise.
884         * io/fstatvfs.c: Likewise.
885         * io/fstatvfs64.c: Likewise.
886         * io/futimens.c: Likewise.
887         * io/fxstat.c: Likewise.
888         * io/fxstat64.c: Likewise.
889         * io/fxstatat.c: Likewise.
890         * io/fxstatat64.c: Likewise.
891         * io/getcwd.c: Likewise.
892         * io/isatty.c: Likewise.
893         * io/lchmod.c: Likewise.
894         * io/lchown.c: Likewise.
895         * io/link.c: Likewise.
896         * io/linkat.c: Likewise.
897         * io/lseek.c: Likewise.
898         * io/lseek64.c: Likewise.
899         * io/lxstat64.c: Likewise.
900         * io/mkdir.c: Likewise.
901         * io/mkdirat.c: Likewise.
902         * io/mkfifo.c: Likewise.
903         * io/mkfifoat.c: Likewise.
904         * io/open.c: Likewise.
905         * io/open64.c: Likewise.
906         * io/openat.c: Likewise.
907         * io/openat64.c: Likewise.
908         * io/pipe.c: Likewise.
909         * io/pipe2.c: Likewise.
910         * io/poll.c: Likewise.
911         * io/posix_fadvise.c: Likewise.
912         * io/posix_fadvise64.c: Likewise.
913         * io/posix_fallocate.c: Likewise.
914         * io/posix_fallocate64.c: Likewise.
915         * io/read.c: Likewise.
916         * io/readlink.c: Likewise.
917         * io/readlinkat.c: Likewise.
918         * io/rmdir.c: Likewise.
919         * io/sendfile.c: Likewise.
920         * io/sendfile64.c: Likewise.
921         * io/statfs.c: Likewise.
922         * io/statfs64.c: Likewise.
923         * io/statvfs.c: Likewise.
924         * io/statvfs64.c: Likewise.
925         * io/symlink.c: Likewise.
926         * io/symlinkat.c: Likewise.
927         * io/ttyname.c: Likewise.
928         * io/ttyname_r.c: Likewise.
929         * io/umask.c: Likewise.
930         * io/unlink.c: Likewise.
931         * io/unlinkat.c: Likewise.
932         * io/utime.c: Likewise.
933         * io/utimensat.c: Likewise.
934         * io/write.c: Likewise.
935         * io/xmknod.c: Likewise.
936         * io/xmknodat.c: Likewise.
937         * io/xstat.c: Likewise.
938         * io/xstat64.c: Likewise.
939         * login/getpt.c: Likewise.
940         * login/grantpt.c: Likewise.
941         * login/unlockpt.c: Likewise.
942         * math/e_acoshl.c: Likewise.
943         * math/e_acosl.c: Likewise.
944         * math/e_asinl.c: Likewise.
945         * math/e_atan2l.c: Likewise.
946         * math/e_atanhl.c: Likewise.
947         * math/e_coshl.c: Likewise.
948         * math/e_expl.c: Likewise.
949         * math/e_fmodl.c: Likewise.
950         * math/e_gammal_r.c: Likewise.
951         * math/e_hypotl.c: Likewise.
952         * math/e_j0l.c: Likewise.
953         * math/e_j1l.c: Likewise.
954         * math/e_jnl.c: Likewise.
955         * math/e_lgammal_r.c: Likewise.
956         * math/e_log10l.c: Likewise.
957         * math/e_log2l.c: Likewise.
958         * math/e_logl.c: Likewise.
959         * math/e_powl.c: Likewise.
960         * math/e_rem_pio2l.c: Likewise.
961         * math/e_sinhl.c: Likewise.
962         * math/e_sqrtl.c: Likewise.
963         * math/fclrexcpt.c: Likewise.
964         * math/fedisblxcpt.c: Likewise.
965         * math/feenablxcpt.c: Likewise.
966         * math/fegetenv.c: Likewise.
967         * math/fegetexcept.c: Likewise.
968         * math/fegetround.c: Likewise.
969         * math/feholdexcpt.c: Likewise.
970         * math/fesetenv.c: Likewise.
971         * math/fesetround.c: Likewise.
972         * math/feupdateenv.c: Likewise.
973         * math/fgetexcptflg.c: Likewise.
974         * math/fraiseexcpt.c: Likewise.
975         * math/fsetexcptflg.c: Likewise.
976         * math/ftestexcept.c: Likewise.
977         * math/k_cosl.c: Likewise.
978         * math/k_rem_pio2l.c: Likewise.
979         * math/k_sinl.c: Likewise.
980         * math/k_tanl.c: Likewise.
981         * math/s_asinhl.c: Likewise.
982         * math/s_atanl.c: Likewise.
983         * math/s_cbrtl.c: Likewise.
984         * math/s_erfl.c: Likewise.
985         * math/s_expm1l.c: Likewise.
986         * math/s_log1pl.c: Likewise.
987         * math/s_tanhl.c: Likewise.
988         * misc/acct.c: Likewise.
989         * misc/brk.c: Likewise.
990         * misc/chflags.c: Likewise.
991         * misc/chroot.c: Likewise.
992         * misc/fchflags.c: Likewise.
993         * misc/fgetxattr.c: Likewise.
994         * misc/flistxattr.c: Likewise.
995         * misc/fremovexattr.c: Likewise.
996         * misc/fsetxattr.c: Likewise.
997         * misc/fsync.c: Likewise.
998         * misc/ftruncate.c: Likewise.
999         * misc/futimes.c: Likewise.
1000         * misc/futimesat.c: Likewise.
1001         * misc/getdomain.c: Likewise.
1002         * misc/getdtsz.c: Likewise.
1003         * misc/gethostid.c: Likewise.
1004         * misc/gethostname.c: Likewise.
1005         * misc/getloadavg.c: Likewise.
1006         * misc/getpagesize.c: Likewise.
1007         * misc/getsysstats.c: Likewise.
1008         * misc/getxattr.c: Likewise.
1009         * misc/gtty.c: Likewise.
1010         * misc/ioctl.c: Likewise.
1011         * misc/lgetxattr.c: Likewise.
1012         * misc/listxattr.c: Likewise.
1013         * misc/llistxattr.c: Likewise.
1014         * misc/lremovexattr.c: Likewise.
1015         * misc/lsetxattr.c: Likewise.
1016         * misc/lutimes.c: Likewise.
1017         * misc/madvise.c: Likewise.
1018         * misc/mincore.c: Likewise.
1019         * misc/mlock.c: Likewise.
1020         * misc/mlockall.c: Likewise.
1021         * misc/mmap.c: Likewise.
1022         * misc/mprotect.c: Likewise.
1023         * misc/msync.c: Likewise.
1024         * misc/munlock.c: Likewise.
1025         * misc/munlockall.c: Likewise.
1026         * misc/munmap.c: Likewise.
1027         * misc/preadv.c: Likewise.
1028         * misc/preadv64.c: Likewise.
1029         * misc/ptrace.c: Likewise.
1030         * misc/pwritev.c: Likewise.
1031         * misc/pwritev64.c: Likewise.
1032         * misc/readv.c: Likewise.
1033         * misc/reboot.c: Likewise.
1034         * misc/remap_file_pages.c: Likewise.
1035         * misc/removexattr.c: Likewise.
1036         * misc/revoke.c: Likewise.
1037         * misc/select.c: Likewise.
1038         * misc/setdomain.c: Likewise.
1039         * misc/setegid.c: Likewise.
1040         * misc/seteuid.c: Likewise.
1041         * misc/sethostid.c: Likewise.
1042         * misc/sethostname.c: Likewise.
1043         * misc/setregid.c: Likewise.
1044         * misc/setreuid.c: Likewise.
1045         * misc/setxattr.c: Likewise.
1046         * misc/sstk.c: Likewise.
1047         * misc/stty.c: Likewise.
1048         * misc/swapoff.c: Likewise.
1049         * misc/swapon.c: Likewise.
1050         * misc/sync.c: Likewise.
1051         * misc/syncfs.c: Likewise.
1052         * misc/syscall.c: Likewise.
1053         * misc/truncate.c: Likewise.
1054         * misc/ualarm.c: Likewise.
1055         * misc/usleep.c: Likewise.
1056         * misc/ustat.c: Likewise.
1057         * misc/utimes.c: Likewise.
1058         * misc/vhangup.c: Likewise.
1059         * misc/writev.c: Likewise.
1060         * posix/_exit.c: Likewise.
1061         * posix/alarm.c: Likewise.
1062         * posix/execve.c: Likewise.
1063         * posix/fexecve.c: Likewise.
1064         * posix/fork.c: Likewise.
1065         * posix/fpathconf.c: Likewise.
1066         * posix/getaddrinfo.c: Likewise.
1067         * posix/getegid.c: Likewise.
1068         * posix/geteuid.c: Likewise.
1069         * posix/getgid.c: Likewise.
1070         * posix/getgroups.c: Likewise.
1071         * posix/getlogin.c: Likewise.
1072         * posix/getlogin_r.c: Likewise.
1073         * posix/getpgid.c: Likewise.
1074         * posix/getpid.c: Likewise.
1075         * posix/getppid.c: Likewise.
1076         * posix/getresgid.c: Likewise.
1077         * posix/getresuid.c: Likewise.
1078         * posix/getsid.c: Likewise.
1079         * posix/getuid.c: Likewise.
1080         * posix/glob64.c: Likewise.
1081         * posix/nanosleep.c: Likewise.
1082         * posix/pathconf.c: Likewise.
1083         * posix/pause.c: Likewise.
1084         * posix/posix_madvise.c: Likewise.
1085         * posix/pread.c: Likewise.
1086         * posix/pread64.c: Likewise.
1087         * posix/pwrite.c: Likewise.
1088         * posix/pwrite64.c: Likewise.
1089         * posix/sched_getaffinity.c: Likewise.
1090         * posix/sched_getp.c: Likewise.
1091         * posix/sched_gets.c: Likewise.
1092         * posix/sched_primax.c: Likewise.
1093         * posix/sched_primin.c: Likewise.
1094         * posix/sched_rr_gi.c: Likewise.
1095         * posix/sched_setaffinity.c: Likewise.
1096         * posix/sched_setp.c: Likewise.
1097         * posix/sched_sets.c: Likewise.
1098         * posix/sched_yield.c: Likewise.
1099         * posix/setgid.c: Likewise.
1100         * posix/setlogin.c: Likewise.
1101         * posix/setpgid.c: Likewise.
1102         * posix/setresgid.c: Likewise.
1103         * posix/setresuid.c: Likewise.
1104         * posix/setsid.c: Likewise.
1105         * posix/setuid.c: Likewise.
1106         * posix/sleep.c: Likewise.
1107         * posix/spawni.c: Likewise.
1108         * posix/sysconf.c: Likewise.
1109         * posix/times.c: Likewise.
1110         * posix/wait.c: Likewise.
1111         * posix/wait3.c: Likewise.
1112         * posix/wait4.c: Likewise.
1113         * posix/waitpid.c: Likewise.
1114         * resolv/gai_sigqueue.c: Likewise.
1115         * resource/getpriority.c: Likewise.
1116         * resource/getrlimit.c: Likewise.
1117         * resource/getrusage.c: Likewise.
1118         * resource/nice.c: Likewise.
1119         * resource/setpriority.c: Likewise.
1120         * resource/setrlimit.c: Likewise.
1121         * resource/ulimit.c: Likewise.
1122         * rt/aio_cancel.c: Likewise.
1123         * rt/aio_fsync.c: Likewise.
1124         * rt/aio_read.c: Likewise.
1125         * rt/aio_sigqueue.c: Likewise.
1126         * rt/aio_suspend.c: Likewise.
1127         * rt/aio_write.c: Likewise.
1128         * rt/clock_getres.c: Likewise.
1129         * rt/clock_gettime.c: Likewise.
1130         * rt/clock_nanosleep.c: Likewise.
1131         * rt/clock_settime.c: Likewise.
1132         * rt/lio_listio.c: Likewise.
1133         * rt/mq_close.c: Likewise.
1134         * rt/mq_getattr.c: Likewise.
1135         * rt/mq_notify.c: Likewise.
1136         * rt/mq_open.c: Likewise.
1137         * rt/mq_receive.c: Likewise.
1138         * rt/mq_send.c: Likewise.
1139         * rt/mq_setattr.c: Likewise.
1140         * rt/mq_timedreceive.c: Likewise.
1141         * rt/mq_timedsend.c: Likewise.
1142         * rt/mq_unlink.c: Likewise.
1143         * rt/shm_open.c: Likewise.
1144         * rt/shm_unlink.c: Likewise.
1145         * rt/timer_create.c: Likewise.
1146         * rt/timer_delete.c: Likewise.
1147         * rt/timer_getoverr.c: Likewise.
1148         * rt/timer_gettime.c: Likewise.
1149         * rt/timer_settime.c: Likewise.
1150         * setjmp/__longjmp.c: Likewise.
1151         * setjmp/setjmp.c: Likewise.
1152         * signal/kill.c: Likewise.
1153         * signal/killpg.c: Likewise.
1154         * signal/raise.c: Likewise.
1155         * signal/sigaction.c: Likewise.
1156         * signal/sigaltstack.c: Likewise.
1157         * signal/sigblock.c: Likewise.
1158         * signal/sigignore.c: Likewise.
1159         * signal/sigintr.c: Likewise.
1160         * signal/signal.c: Likewise.
1161         * signal/sigpause.c: Likewise.
1162         * signal/sigpending.c: Likewise.
1163         * signal/sigqueue.c: Likewise.
1164         * signal/sigreturn.c: Likewise.
1165         * signal/sigset.c: Likewise.
1166         * signal/sigsetmask.c: Likewise.
1167         * signal/sigstack.c: Likewise.
1168         * signal/sigsuspend.c: Likewise.
1169         * signal/sigtimedwait.c: Likewise.
1170         * signal/sigvec.c: Likewise.
1171         * signal/sigwait.c: Likewise.
1172         * signal/sigwaitinfo.c: Likewise.
1173         * signal/sysv_signal.c: Likewise.
1174         * socket/accept.c: Likewise.
1175         * socket/accept4.c: Likewise.
1176         * socket/bind.c: Likewise.
1177         * socket/connect.c: Likewise.
1178         * socket/getpeername.c: Likewise.
1179         * socket/getsockname.c: Likewise.
1180         * socket/getsockopt.c: Likewise.
1181         * socket/isfdtype.c: Likewise.
1182         * socket/listen.c: Likewise.
1183         * socket/recv.c: Likewise.
1184         * socket/recvfrom.c: Likewise.
1185         * socket/recvmsg.c: Likewise.
1186         * socket/send.c: Likewise.
1187         * socket/sendmsg.c: Likewise.
1188         * socket/sendto.c: Likewise.
1189         * socket/setsockopt.c: Likewise.
1190         * socket/shutdown.c: Likewise.
1191         * socket/sockatmark.c: Likewise.
1192         * socket/socket.c: Likewise.
1193         * socket/socketpair.c: Likewise.
1194         * stdio-common/ctermid.c: Likewise.
1195         * stdio-common/cuserid.c: Likewise.
1196         * stdio-common/remove.c: Likewise.
1197         * stdio-common/rename.c: Likewise.
1198         * stdio-common/renameat.c: Likewise.
1199         * stdio-common/tempname.c: Likewise.
1200         * stdlib/getcontext.c: Likewise.
1201         * stdlib/makecontext.c: Likewise.
1202         * stdlib/setcontext.c: Likewise.
1203         * stdlib/swapcontext.c: Likewise.
1204         * stdlib/system.c: Likewise.
1205         * streams/fattach.c: Likewise.
1206         * streams/fdetach.c: Likewise.
1207         * streams/getmsg.c: Likewise.
1208         * streams/getpmsg.c: Likewise.
1209         * streams/putmsg.c: Likewise.
1210         * streams/putpmsg.c: Likewise.
1211         * sysdeps/unix/bsd/getpt.c: Likewise.
1212         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1213         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1214         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1216         Likewise.
1217         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1218         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1219         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1220         * sysvipc/msgctl.c: Likewise.
1221         * sysvipc/msgget.c: Likewise.
1222         * sysvipc/msgrcv.c: Likewise.
1223         * sysvipc/msgsnd.c: Likewise.
1224         * sysvipc/semctl.c: Likewise.
1225         * sysvipc/semget.c: Likewise.
1226         * sysvipc/semop.c: Likewise.
1227         * sysvipc/semtimedop.c: Likewise.
1228         * sysvipc/shmat.c: Likewise.
1229         * sysvipc/shmctl.c: Likewise.
1230         * sysvipc/shmdt.c: Likewise.
1231         * sysvipc/shmget.c: Likewise.
1232         * termios/tcdrain.c: Likewise.
1233         * termios/tcflow.c: Likewise.
1234         * termios/tcflush.c: Likewise.
1235         * termios/tcgetattr.c: Likewise.
1236         * termios/tcgetpgrp.c: Likewise.
1237         * termios/tcsendbrk.c: Likewise.
1238         * termios/tcsetattr.c: Likewise.
1239         * termios/tcsetpgrp.c: Likewise.
1240         * time/adjtime.c: Likewise.
1241         * time/clock.c: Likewise.
1242         * time/getitimer.c: Likewise.
1243         * time/gettimeofday.c: Likewise.
1244         * time/setitimer.c: Likewise.
1245         * time/settimeofday.c: Likewise.
1246         * time/stime.c: Likewise.
1247         * time/time.c: Likewise.
1248
1249 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1250
1251         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1252         /usr/old/bin.
1253
1254         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1255         instead of spaces.
1256         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1257
1258 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1259
1260         [BZ #14796]
1261         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1262         FE_TONEAREST before applying Dekker multiplication and Knuth
1263         addition.  Clear inexact exceptions and check for exact zero
1264         results afterwards.
1265         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1266         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1267         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1268         * math/libm-test.inc (fma_test): Add more tests.
1269         (fma_test_towardzero): Likewise.
1270         (fma_test_downward): Likewise.
1271         (fma_test_upward): Likewise.
1272         * sysdeps/generic/math_private.h (default_libc_fesetround): New
1273         function.
1274         (libc_fesetround): New macro.
1275         (libc_fesetroundf): Likewise.
1276         (libc_fesetroundl): Likewise.
1277         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1278         function.
1279         (libc_fesetround_387): Likewise.
1280         (libc_fesetroundf): New macro.
1281         (libc_fesetround): Likewise.
1282         (libc_fesetroundl): Likewise.
1283         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1284         function.
1285         (libc_fesetroundf): New macro.
1286         (libc_fesetround): Likewise.
1287         (libc_fesetroundl): Likewise.
1288         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1289         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1290         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1291         libm_hidden_ver.
1292         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1293         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1294         libm_hidden_def.
1295         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1296         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1297         libm_hidden_ver.
1298         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1299         libm_hidden_def.
1300
1301         [BZ #3439]
1302         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1303         integer constant usable in #if and use that to give value to enum
1304         constant.
1305         (FE_DIVBYZERO): Likewise.
1306         (FE_UNDERFLOW): Likewise.
1307         (FE_OVERFLOW): Likewise.
1308         (FE_INVALID): Likewise.
1309         (FE_INVALID_SNAN): Likewise.
1310         (FE_INVALID_ISI): Likewise.
1311         (FE_INVALID_IDI): Likewise.
1312         (FE_INVALID_ZDZ): Likewise.
1313         (FE_INVALID_IMZ): Likewise.
1314         (FE_INVALID_COMPARE): Likewise.
1315         (FE_INVALID_SOFTWARE): Likewise.
1316         (FE_INVALID_SQRT): Likewise.
1317         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1318         (FE_TONEAREST): Likewise.
1319         (FE_TOWARDZERO): Likewise.
1320         (FE_UPWARD): Likewise.
1321         (FE_DOWNWARD): Likewise.
1322         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1323         (FE_DIVBYZERO): Likewise.
1324         (FE_OVERFLOW): Likewise.
1325         (FE_UNDERFLOW): Likewise.
1326         (FE_INEXACT): Likewise.
1327         (FE_TONEAREST): Likewise.
1328         (FE_DOWNWARD): Likewise.
1329         (FE_UPWARD): Likewise.
1330         (FE_TOWARDZERO): Likewise.
1331         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1332         (FE_UNDERFLOW): Likewise.
1333         (FE_OVERFLOW): Likewise.
1334         (FE_DIVBYZERO): Likewise.
1335         (FE_INVALID): Likewise.
1336         (FE_TONEAREST): Likewise.
1337         (FE_TOWARDZERO): Likewise.
1338         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1339         (FE_OVERFLOW): Likewise.
1340         (FE_UNDERFLOW): Likewise.
1341         (FE_DIVBYZERO): Likewise.
1342         (FE_INEXACT): Likewise.
1343         (FE_TONEAREST): Likewise.
1344         (FE_TOWARDZERO): Likewise.
1345         (FE_UPWARD): Likewise.
1346         (FE_DOWNWARD): Likewise.
1347         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1348         (FE_DIVBYZERO): Likewise.
1349         (FE_OVERFLOW): Likewise.
1350         (FE_UNDERFLOW): Likewise.
1351         (FE_INEXACT): Likewise.
1352         (FE_TONEAREST): Likewise.
1353         (FE_DOWNWARD): Likewise.
1354         (FE_UPWARD): Likewise.
1355         (FE_TOWARDZERO): Likewise.
1356
1357 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1358
1359         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1360
1361 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1362
1363         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1364         commands.  Quote $PWD.
1365         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1366         -x" by "export".
1367         (remove_newlines): Remove.
1368
1369 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1370
1371         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1372         * stdlib/stdlib.h (atof): Moved to ...
1373         * include/bits/stdlib-float.h: Here.  New file.
1374         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1375         * stdlib/bits/stdlib-float.h: New file.
1376         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1377         -mno-sse -mno-mmx.
1378         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1379         <xmmintrin.h>.
1380
1381 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1382
1383         * conform/conformtest.pl (@headers): Add fenv.h.
1384         * conform/data/fenv.h-data: New file.
1385         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1386         include of <math/fenv.h>.
1387
1388         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1389         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1390         && !UNIX98].  Enables tests for XOPEN2K8.
1391         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1392         POSIX2008]: Likewise.
1393
1394         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1395         (struct rusage): Do not expect type or its members.
1396
1397         [BZ #3439]
1398         * math/math.h (FP_NAN): Define macro to integer constant usable in
1399         #if and use that to give value to enum constant.
1400         (FP_INFINITE): Likewise.
1401         (FP_ZERO): Likewise.
1402         (FP_SUBNORMAL): Likewise.
1403         (FP_NORMAL): Likewise.
1404
1405 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1406
1407         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1408         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1409         arguments.
1410
1411 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1412
1413         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1414         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1415         autoconf-time if not.
1416         * configure.in: Remove AC_PREREQ.
1417
1418 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1419
1420         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1421         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1422         of the internal implementation.
1423
1424 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1425
1426         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1427         except include of <misc/sys/syslog.h>.
1428
1429 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1430
1431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1432         function returns with a NULL context exit with zero.
1433
1434 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1435
1436         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1437
1438 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1439
1440         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1441         (run_program_cmd): This.
1442         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1443         (tst_langinfo): New variable.  Use it.
1444
1445 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1446
1447         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1448         floating point opcodes.
1449
1450 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1451
1452         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1453         variable.
1454
1455         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1456
1457         * sysdeps/mach/hurd/powerpc: Remove directory.
1458         * sysdeps/mach/powerpc: Likewise.
1459
1460 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1461
1462         * scripts/check-local-headers.sh: Ignore c++ headers.
1463
1464 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1465
1466         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1467         __libc_cleanup_region_start argument.
1468
1469 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1470
1471         [BZ #14784]
1472         [BZ #14785]
1473         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1474         x * y using scaling, not as x * y + z.
1475         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1476         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1477         * math/libm-test.inc (fma_test): Add more tests.
1478         (fma_test_towardzero): Likewise.
1479         (fma_test_downward): Likewise.
1480         (fma_test_upward): Likewise.
1481
1482 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1483
1484         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1485
1486 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1487
1488         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1489         New variable.
1490
1491 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1492
1493         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1494
1495 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1496
1497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1498         Fix sort order.
1499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1500         Likewise.
1501
1502 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1503
1504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1505         Fix the order of the list for glibc 2.17.
1506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1507         Likewise.
1508
1509 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1510
1511         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1512
1513 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1514
1515         [BZ #14610]
1516         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1517         for low part of x being zero before using __atanl (y).
1518         * math/libm-test.inc (atan2_test): Add another test.
1519
1520         * manual/install.texi (Configuring and compiling): Document
1521         general use of test-wrapper and test-wrapper-env.
1522         * INSTALL: Regenerated.
1523
1524         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1525         (__fma): Do not extract and scale down low bits on after-rounding
1526         systems when result rounded to normal precision would have normal
1527         exponent.
1528         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1529         (__fmal): Do not extract and scale down low bits on after-rounding
1530         systems when result rounded to normal precision would have normal
1531         exponent.
1532         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1533         (__fmal): Do not extract and scale down low bits on after-rounding
1534         systems when result rounded to normal precision would have normal
1535         exponent.
1536         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1537         macro.
1538         (fma_test): Add more tests.
1539         (fma_test_towardzero): Likewise.
1540         (fma_test_downward): Likewise.
1541         (fma_test_upward): Likewise.
1542
1543 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1544
1545         * sysdeps/i386/tininess.h: Renamed to ...
1546         * sysdeps/x86/tininess.h: This.
1547         * sysdeps/x86_64/tininess.h: Removed.
1548
1549 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1550
1551         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1552         input.  Use $(build-program-cmd).
1553         ($(objpfx)tst-array1-static.out): Likewise.
1554         ($(objpfx)tst-array2.out): Likewise.
1555         ($(objpfx)tst-array3.out): Likewise.
1556         ($(objpfx)tst-array4.out): Likewise.
1557         ($(objpfx)tst-array5.out): Likewise.
1558         ($(objpfx)tst-array5-static.out): Likewise.
1559
1560 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1561
1562         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1563         if defined.
1564
1565         * nss/nsswitch.h (nss_interface_function): Provide new
1566         macro for use with NSS functions.
1567         * grp/initgroups.c: Use new macro.
1568         * nss/getXXbyYY.c: Likewise.
1569         * nss/getXXbyYY_r.c: Likewise.
1570         * nss/getXXent.c: Likewise.
1571         * nss/getXXent_r.c: Likewise.
1572         * sysdeps/posix/getaddrinfo.c: Likewise.
1573
1574 2012-10-30  Andreas Jaeger  <aj@suse.de>
1575
1576         * po/ru.po: Update Russion translation from translation project.
1577
1578 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1579
1580         [BZ #14152]
1581         [BZ #14783]
1582         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1583         result and shift together with sticky bit instead of replicating
1584         round-to-nearest rounding.
1585         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1586         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1587         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1588         missing underflow exceptions.
1589         (fma_test_towardzero): Add more tests.
1590         (fma_test_downward): Likewise.
1591         (fma_test_upward): Likewise.
1592
1593         [BZ #14047]
1594         * sysdeps/generic/tininess.h: New file.
1595         * sysdeps/i386/tininess.h: Likewise.
1596         * sysdeps/sh/tininess.h: Likewise.
1597         * sysdeps/x86_64/tininess.h: Likewise.
1598         * stdlib/tst-strtod-underflow.c: Likewise.
1599         * stdlib/tst-tininess.c: Likewise.
1600         * stdlib/strtod_l.c: Include <tininess.h>.
1601         (round_and_return): Do not set errno for exact underflow cases.
1602         Force an underflow exception when setting errno for underflow.
1603         Determine underflow based on rounding to normal precision if
1604         TININESS_AFTER_ROUNDING.
1605         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1606         ERANGE for exact underflow cases.
1607         * stdlib/Makefile (tests): Add tst-tininess and
1608         tst-strtod-underflow.
1609         ($(objpfx)tst-tininess): Use $(link-libm).
1610         ($(objpfx)tst-strtod-underflow): Likewise.
1611
1612 2012-10-30  Andreas Jaeger  <aj@suse.de>
1613
1614         [BZ#14767]
1615         * elf/Makefile (tests): Remove conditional for have-initfini-array
1616         since this is now always required and the variable does not exist
1617         anymore.
1618         (tests-static): Likewise.
1619         (modules-names): Likewise.
1620
1621         * po/eo.po: Add Esperanto translation from translation project.
1622
1623         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1624         merged with constructor/destructor.
1625         (init_array): Likewise.
1626         * elf/tst-array2dep.c (fini_array): Likewise.
1627         (init_array): Likewise.
1628
1629 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1630
1631         * manual/message.texi: Delete @cartouche tags.
1632
1633 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1634
1635         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1636         EOPNOTSUPP.
1637         * sysdeps/mach/hurd/fsync.c: Likewise.
1638
1639         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1640         [_POSIX_REALTIME_SIGNALS]: Change condition to
1641         [_POSIX_REALTIME_SIGNALS > 0].
1642
1643 2012-10-27  Andreas Jaeger  <aj@suse.de>
1644
1645         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1646         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1647         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1648         [__WORDSIZE != 64]: Likewise.
1649
1650 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1651
1652         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1653         *  iconvdata/tst-tables.sh: Likewise.
1654
1655 2012-10-25  David S. Miller  <davem@davemloft.net>
1656
1657         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1658         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1659         of strtoull.
1660
1661         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1662         ifunc-impl-list.c
1663         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1664         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1665         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1666         file.
1667
1668 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1669
1670         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1671         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1672         __getdirentries.
1673
1674 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1675             Jim Blandy  <jimb@codesourcery.com>
1676
1677         * scripts/cross-test-ssh.sh: New file.
1678         * manual/install.texi (Configuring and compiling): Document use of
1679         cross-test-ssh.sh.
1680         * INSTALL: Regenerated.
1681
1682 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1683
1684         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1685         EOPNOTSUPP.
1686
1687 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1688
1689         * Makeconfig (run-program-prefix): Fix comment.
1690
1691 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1692             Jim Blandy  <jimb@codesourcery.com>
1693
1694         * Makeconfig (test-wrapper): New variable,
1695         (test-wrapper-env): Likewise.
1696         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1697         (run-built-tests): Define to yes.
1698         (run-program-prefix): Use $(test-wrapper).
1699         (built-program-cmd): Likewise.
1700         * Rules (make-test-out): Use $(test-wrapper-env) and
1701         $(host-built-program-cmd).
1702         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1703         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1704         tst-pathopt.sh.
1705         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1706         $(test-wrapper-env) to tst-rtld-load-self.sh.
1707         ($(objpfx)order2.out): Use $(test-wrapper).
1708         ($(objpfx)tst-initorder.out): Likewise.
1709         ($(objpfx)tst-initorder2.out): Likewise.
1710         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1711         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1712         (test_wrapper_env): New variable.  Use it to run ld.so.
1713         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1714         Use it to run ld.so.
1715         (test_wrapper_env): Likewise.
1716         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1717         $(test-wrapper) to run-iconv-test.sh.
1718         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1719         (ICONV): Use $test_wrapper.
1720         * posix/Makefile ($(objpfx)globtest.out): Pass
1721         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1722         globtest.sh, not $(run-program-prefix).
1723         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1724         (test_wrapper): Likewise.
1725         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1726         set together with run_via_rtld_prefix.
1727         (run_program_prefix): Define in terms of test_wrapper and
1728         run_via_rtld_prefix.
1729
1730 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1731
1732         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1733         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1734         Targets removed.
1735
1736         [BZ #14743]
1737         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1738         Declare __clock_getres, __clock_gettime, __clock_settime,
1739         __clock_nanosleep, and __clock_getcpuclockid.
1740         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1741         Remove librt_hidden_def (clock_gettime).
1742         * sysdeps/unix/clock_gettime.c: Likewise.
1743         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1744         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1745         * rt/clock_getres.c: Define __clock_getres as an alias.
1746         * sysdeps/posix/clock_getres.c: Likewise.
1747         * rt/clock_settime.c: Define __clock_settime as an alias.
1748         * sysdeps/unix/clock_settime.c: Likewise.
1749         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1750         * sysdeps/unix/clock_nanosleep.c: Likewise.
1751         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1752         * rt/clock-compat.c: New file.
1753         * rt/Makefile (librt-routines): Add clock-compat and move
1754         $(clock-routines) to ...
1755         (routines): ... here, new variable.
1756         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1757         Don't add get_clockfreq here.
1758         * rt/Versions (libc: GLIBC_2.17): New version set.
1759         Add clock_* symbols here.
1760         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1761         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1762         (GLIBC_2.17): Add clock_* symbols.
1763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1764         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1765         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1767         Likewise.
1768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1769         Likewise.
1770         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1771         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1772         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1773         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1774         * NEWS: Mention the move.
1775
1776         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1777         Use __open, __read, __close rather than their public counterparts.
1778         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1779         (__get_clockfreq_via_cpuinfo): Likewise.
1780         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1781         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1782
1783         * config.h.in (HAVE_IFUNC): New #undef.
1784         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1785         was successful.
1786         * configure: Regenerated.
1787
1788 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1789
1790         * configure.in: Move READELF check to start of file.
1791         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1792         libc_cv_asm_gnu_indirect_function in the process.
1793         * configure: Regenerated.
1794
1795 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1796
1797         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1798         send the output to /dev/null.
1799         (libc_cv_cc_with_libunwind): Likewise.
1800         (libc_cv_as_noexecstack): Likewise.
1801         * configure: Regenerate.
1802
1803 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1804
1805         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1806
1807         * posix/globtest.sh (TMPDIR): Do not set.
1808         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1809         (testout): Likewise.
1810
1811 2012-10-24  Andreas Jaeger  <aj@suse.de>
1812
1813         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1814         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1815         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1816         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1817         posix_fadvise64, posix_fallocate64.
1818
1819         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1820         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1821         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1822         Likewise.
1823         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1824         Likewise.
1825         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1826
1827         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1828         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1829         <bits/fcntl-linux.h>.
1830         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1831
1832         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1833         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1834         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1835         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1836         [__WORDSIZE != 64]: Likewise.
1837
1838 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1839
1840         * Makeconfig (run-built-tests): New variable.
1841         * Rules [$(cross-compiling) = yes]: Change condition to
1842         [$(run-built-tests) = no].
1843         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1844         to [$(run-built-tests) = yes].
1845         * elf/Makefile [$(cross-compiling) = no]: Likewise
1846         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1847         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1848         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1849         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1850         * io/Makefile [$(cross-compiling) = no]: Likewise.
1851         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1852         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1853         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1854         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1855         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1856         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1857         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1858         * string/Makefile [$(cross-compiling) = no]: Likewise.
1859
1860         * posix/Makefile ($(objpfx)globtest.out): Pass
1861         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1862         $(rtld-installed-name).
1863         * posix/globtest.sh (elf_objpfx): Remove variable.
1864         (rtld_installed_name): Likewise.
1865         (library_path): Likewise.
1866         (run_program_prefix): New variable.  Use for running globtest
1867         binary.
1868
1869 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1870             Joseph Myers  <joseph@codesourcery.com>
1871
1872         * Makeconfig (host-built-program-cmd): New variable.
1873         * elf/Makefile (tst-stackguard1-ARGS): Use
1874         $(host-built-program-cmd).
1875         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1876         (tst-spawn-ARGS): Likewise.
1877         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1878
1879 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1880             Jim Blandy  <jimb@codesourcery.com>
1881
1882         * Makeconfig (run-via-rtld-prefix): New variable.
1883         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1884         (built-program-cmd): Likewise.
1885
1886 2012-10-22  Andreas Jaeger  <aj@suse.de>
1887
1888         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1889         __O_RSYNC if it exists, otherwise to O_SYNC.
1890
1891 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1892             Joseph Myers  <joseph@codesourcery.com>
1893
1894         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1895         /dev/null.
1896         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1897         from /dev/null
1898         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1899         /dev/null.
1900
1901 2012-10-22  Andreas Jaeger  <aj@suse.de>
1902
1903         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1904         Define always.
1905         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1906
1907         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1908         bits/fcntl-linux.h.
1909
1910         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1911         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1912
1913         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1914         to __O_LARGEFILE.
1915         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1916         to __O_LARGEFILE.
1917
1918 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1919             Joseph Myers  <joseph@codesourcery.com>
1920
1921         * config.make.in (NM): New variable.
1922
1923 2012-10-21  Andreas Jaeger  <aj@suse.de>
1924
1925         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1926         definitions and declarations that are provided by
1927         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1928
1929 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1930
1931         [BZ #14683]
1932         * elf/Makefile (tests-static): Add tst-leaks1-static.
1933         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1934         ($(objpfx)tst-leaks1-static): New rule.
1935         ($(objpfx)tst-leaks1-static-mem): Likewise.
1936         (tst-leaks1-static-ENV): New macro.
1937         * elf/dl-open.c (dl_open_worker): Check the main application
1938         only if SHARED is defined.
1939         * elf/tst-leaks1-static.c: New file.
1940
1941 2012-10-20  Andreas Jaeger  <aj@suse.de>
1942
1943         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1944         generic values for Linux.
1945         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1946         and declarations that are provided by <bits/fcntl-linux.h> and
1947         include <bits/fcntl-linux.h>.
1948         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1949         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1950
1951 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1952
1953         * io/fcntl.h: Move include of <bits/types.h> to the top and
1954         include it unconditionally.
1955
1956 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1957
1958         * wcsmbs/Makefile (tests-ifunc): New variable.
1959         (tests): Add $(tests-ifunc).
1960         * wcsmbs/test-wcschr-ifunc.c: New file.
1961         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1962         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1963         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1964         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1965         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1966
1967         * string/Makefile (tests-ifunc): New variable.
1968         (tests): Add $(tests-ifunc).
1969         * string/test-memccpy.c (TEST_NAME): New macro.
1970         * string/test-memchr.c (TEST_NAME): Likewise.
1971         * string/test-memcmp.c (TEST_NAME): Likewise.
1972         * string/test-memcpy.c (TEST_NAME): Likewise.
1973         * string/test-memmem.c (TEST_NAME): Likewise.
1974         * string/test-memmove.c (TEST_NAME): Likewise.
1975         * string/test-memset.c (TEST_NAME): Likewise.
1976         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1977         * string/test-stpcpy.c (TEST_NAME): Likewise.
1978         * string/test-stpncpy.c (TEST_NAME): Likewise.
1979         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1980         * string/test-strcasestr.c (TEST_NAME): Likewise.
1981         * string/test-strcat.c (TEST_NAME): Likewise.
1982         * string/test-strchr.c (TEST_NAME): Likewise.
1983         * string/test-strcmp.c(TEST_NAME): Likewise.
1984         * string/test-strcpy.c (TEST_NAME): Likewise.
1985         * string/test-strcspn.c (TEST_NAME): Likewise.
1986         * string/test-strlen.c (TEST_NAME): Likewise.
1987         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1988         * string/test-strncmp.c (TEST_NAME): Likewise.
1989         * string/test-strncpy.c (TEST_NAME): Likewise.
1990         * string/test-strnlen.c (TEST_NAME): Likewise.
1991         * string/test-strpbrk.c (TEST_NAME): Likewise.
1992         * string/test-strrchr.c (TEST_NAME): Likewise.
1993         * string/test-strspn.c (TEST_NAME): Likewise.
1994         * string/test-strstr.c (TEST_NAME): Likewise.
1995         * string/test-bcopy-ifunc.c: New file.
1996         * string/test-bzero-ifunc.c: Likewise.
1997         * string/test-memccpy-ifunc.c: Likewise.
1998         * string/test-memchr-ifunc.c: Likewise.
1999         * string/test-memcmp-ifunc.c: Likewise.
2000         * string/test-memcpy-ifunc.c: Likewise.
2001         * string/test-memmem-ifunc.c: Likewise.
2002         * string/test-memmove-ifunc.c: Likewise.
2003         * string/test-mempcpy-ifunc.c: Likewise.
2004         * string/test-memset-ifunc.c: Likewise.
2005         * string/test-rawmemchr-ifunc.c: Likewise.
2006         * string/test-stpcpy-ifunc.c: Likewise.
2007         * string/test-stpncpy-ifunc.c: Likewise.
2008         * string/test-strcasecmp-ifunc.c: Likewise.
2009         * string/test-strcasestr-ifunc.c: Likewise.
2010         * string/test-strcat-ifunc.c: Likewise.
2011         * string/test-strchr-ifunc.c: Likewise.
2012         * string/test-strchrnul-ifunc.c: Likewise.
2013         * string/test-strcmp-ifunc.c: Likewise.
2014         * string/test-strcpy-ifunc.c: Likewise.
2015         * string/test-strcspn-ifunc.c: Likewise.
2016         * string/test-strlen-ifunc.c: Likewise.
2017         * string/test-strncasecmp-ifunc.c: Likewise.
2018         * string/test-strncat-ifunc.c: Likewise.
2019         * string/test-strncmp-ifunc.c: Likewise.
2020         * string/test-strncpy-ifunc.c: Likewise.
2021         * string/test-strnlen-ifunc.c: Likewise.
2022         * string/test-strpbrk-ifunc.c: Likewise.
2023         * string/test-strrchr-ifunc.c: Likewise.
2024         * string/test-strspn-ifunc.c: Likewise.
2025         * string/test-strstr-ifunc.c: Likewise.
2026
2027         * debug/Makefile (tests-ifunc): New variable.
2028         (tests): Add $(tests-ifunc).
2029         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
2030         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
2031         * debug/test-stpcpy_chk-ifunc.c: New file.
2032         * debug/test-strcpy_chk-ifunc.c: Likewise.
2033
2034 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2035
2036         [BZ #13601]
2037         * elf/dl-load.c (open_verify): Retry read if the entire ELF
2038         header is not read in.
2039
2040 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
2041
2042         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
2043         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
2044         directly.  Pass built executable to script as
2045         $(built-program-cmd).
2046         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
2047         $testprogram without using LD_LIBRARY_PATH and $ldso.
2048
2049         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
2050         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
2051         $(rtld-installed-name).
2052         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
2053         (rtld_installed_name): Likewise.
2054         (library_path): Likewise.
2055         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
2056         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
2057         $(run-program-prefix) to tst-tables.sh.
2058         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
2059         it to run tst-table-from and tst-table-to.
2060         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
2061         Pass it to tst-table.sh.
2062         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
2063         $(run-program-prefix) to tst-gettext.sh.
2064         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
2065         tst-translit.sh.
2066         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
2067         tst-gettext2.sh.
2068         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
2069         to run tst-gettext.
2070         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
2071         to run tst-gettext2.
2072         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
2073         to run tst-translit.
2074         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2075         $(run-program-prefix) to tst-mtrace.sh.
2076         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
2077         to run tst-mtrace.
2078         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2079         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2080         $(rtld-installed-name).
2081         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2082         (rtld_installed_name): Likewise.
2083         (run_program_prefix): New variable.  Use it to run wordexp-test.
2084
2085         * Makeconfig (ARCH): Remove all definitions.
2086         (machine): Likewise.
2087         [ARCH]: Remove conditional code.
2088         [!objdir]: Give error.
2089         [!objdir] (objpfx): Remove.
2090         [!objdir] (common-objpfx): Likewise.
2091         [!objdir] (common-objdir): Likewise.
2092         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2093         AC_CONFIG_FILES call.
2094         * configure: Regenerated.
2095
2096         [BZ #13888]
2097         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2098         or TMPDIR.
2099         (testout): Likewise.
2100
2101         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2102         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2103         $(rtld-installed-name).
2104         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2105         (rtld_installed_name): Likwise.
2106         (runit): Remove function.
2107         (run_getconf): New variable,  Use it for running getconf binary.
2108
2109 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2110
2111         [BZ #14716]
2112         * string/test-memmem.c (check_result): New function.
2113         (do_one_test): Use it.
2114         (check1): New function.
2115         (test_main): Use it.
2116
2117 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2118
2119         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2120
2121 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2122
2123         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2124         (_G_LSEEK64): Likewise.
2125         (_G_MMAP64): Likewise.
2126         (_G_FSTAT64): Likewise.
2127         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2128         (_G_LSEEK64): Likewise.
2129         (_G_MMAP64): Likewise.
2130         (_G_FSTAT64): Likewise.
2131         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2132         unconditional.  Call __mmap64 directly.
2133         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2134         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2135         __lseek64 directly.
2136         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2137         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2138         __mmap64 directly.
2139         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2140         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2141         __lseek64 directly.
2142         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2143         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2144         __lseek64 directly.
2145         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2146         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2147         __lseek64 directly.
2148         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2149         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2150         __fxstat64 directly.
2151         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2152         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2153         unconditional.
2154         (freopen64) [!_G_OPEN64]: Remove conditional code.
2155         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2156         unconditional.
2157         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2158         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2159         unconditional.
2160         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2161         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2162         unconditional.
2163         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2164         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2165         unconditional.
2166         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2167         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2168         unconditional.
2169         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2170         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2171         unconditional.
2172         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2173         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2174         unconditional.
2175         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2176
2177 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2178
2179         [BZ #12140]
2180         * manual/memory.texi (Malloc Tunable Parameters): Add note
2181         about free list pointers overwriting some perturb bytes.
2182         Wording suggested by Roland McGrath.
2183
2184 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2185
2186         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2187         (lgamma_test): Likewise.
2188         (tgamma_test): Likewise.
2189
2190 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2191
2192         [BZ #14700]
2193         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2194         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2195
2196 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2197
2198         * NEWS: Mention BZ #14716.
2199         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2200         when removing AVAILABLE1_USES_J macro.
2201
2202 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2203
2204         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2205         (__bswap_64): __uint64_t for unsigned 64-bit int.
2206
2207 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2208
2209         * include/string.h (memmem): Declare libc hidden alias.
2210         * string/memmem.c (memmem): Define libc hidden alias.
2211         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2212         __read, __close instead of open, read, close.
2213
2214 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2215
2216         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2217         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2218         global and hidden.
2219         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2220         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2221         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2222         Likewise.
2223         (__rawmemchr_sse2): Likewise.
2224         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2225         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2226         (__strchr_sse2): Likewise.
2227         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2228         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2229         (__strcasecmp_sse2): Likewise.
2230         (__strncasecmp_sse2): Likewise.
2231         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2232         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2233         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2234         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2235         (__strrchr_sse2): Likewise.
2236         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2237         ifunc-impl-list.c.
2238         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2239         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2240         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2241         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2242         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2243         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2244         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2245         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2246         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2247         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2248         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2249         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2250         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2251         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2252         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2253         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2254         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2255         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2256         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2257         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2258         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2259         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2260         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2261         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2262         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2263         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2264         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2265         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2266         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2267         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2268
2269         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2270         global and hidden.
2271         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2272         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2273         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2274         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2275         Likewise.
2276         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2277         Likewise.
2278         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2279         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2280         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2281         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2282         ifunc-impl-list.c.
2283         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2284         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2285         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2286         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2287         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2288         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2289         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2290         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2291         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2292         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2293         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2294         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2295         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2296         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2297         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2298         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2299         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2300         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2301         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2302         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2303         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2304         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2305         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2306         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2307         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2308         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2309         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2310         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2311         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2312         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2313         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2314         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2315         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2316         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2317         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2318         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2319         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2320         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2321         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2322         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2323         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2324
2325         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2326         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2327         * include/ifunc-impl-list.h: New file.
2328         * misc/ifunc-impl-list.c: Likewise.
2329         * misc/Makefile (routines): Add ifunc-impl-list.
2330         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2331         * string/test-string.h: Include <ifunc-impl-list.h>.
2332         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2333         impl_array): New variables.
2334         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2335         are defined.
2336         (test_init): Call __libc_ifunc_impl_list to initialize
2337         func_list if TEST_IFUNC and TEST_NAME are defined.
2338
2339         * string/Makefile (strop-tests): Add bcopy and bzero.
2340         * string/test-bcopy.c: New file.
2341         * string/test-bzero.c: Likewise.
2342         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2343         defined.
2344         * string/test-memset.c: Support bzero test if TEST_BZERO is
2345         defined.
2346         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2347         __libc_memmove.
2348         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2349         __libc_memset.
2350         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2351         of memset.
2352
2353 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2354
2355         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2356         * configure: Regenerated.
2357
2358         * Makeconfig (+link-static-before-libc): Don't include
2359         $(link-static-libc).
2360
2361         * libio/libio.h (_IO_pos_t): Remove.
2362
2363 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2364
2365         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2366         McGrath.
2367
2368 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2369
2370         * crypt/crypt-entry.c: Include fips-private.h.
2371         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2372         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2373         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2374         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2375
2376 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2377
2378         * crypt/crypt-private.h: Include stdbool.h.
2379         (_ufc_setup_salt_r): Return bool.
2380         * crypt/crypt-entry.c: Include errno.h.
2381         (__crypt_r): Return NULL with EINVAL for bad salt.
2382         * crypt/crypt_util.c (bad_for_salt): New.
2383         (_ufc_setup_salt_r): Check that salt is long enough and within
2384         the specified alphabet.
2385         * crypt/badsalttest.c: New file.
2386         * crypt/Makefile (tests): Add it.
2387         ($(objpfx)badsalttest): New.
2388
2389 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2390
2391         * NEWS: Add entry for BZ #14602.
2392
2393 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2394
2395         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2396         type-generic.
2397         * math/libm-test.inc: Update comment listing what functions and
2398         macros are tested.
2399         (isgreater_test): New function.
2400         (isgreaterequal_test): Likewise.
2401         (isless_test): Likewise.
2402         (islessequal_test): Likewise.
2403         (islessgreater_test): Likewise.
2404         (isunordered_test): Likewise.
2405         (main): Call the new functions.
2406
2407 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2408
2409         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2410         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2411         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2412         * sysdeps/i386/configure: Regenerated.
2413         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2414         * sysdeps/mach/configure: Regenerated.
2415         * sysdeps/mach/hurd/configure: Regenerated.
2416         * sysdeps/powerpc/configure: Regenerated.
2417         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2418         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2419         * sysdeps/s390/s390-32/configure: Regenerated.
2420         * sysdeps/s390/s390-64/configure: Regenerated.
2421         * sysdeps/sh/configure: Regenerated.
2422         * sysdeps/sparc/configure: Regenerated.
2423         * sysdeps/unix/sysv/linux/configure: Regenerated.
2424         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2425         * sysdeps/x86_64/configure: Regenerated.
2426
2427         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2428         defined.  Don't check if MAP is NULL.
2429
2430 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2431
2432         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2433         (_G_stat64): Likewise.
2434         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2435         (_G_stat64): Likewise.
2436         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2437         instead of struct _G_stat64.
2438         * libio/fileops.c (mmap_remap_check): Likewise.
2439         (decide_maybe_mmap): Likewise.
2440         (_IO_new_file_seekoff): Likewise.
2441         (_IO_file_stat): Likewise.
2442         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2443         _G_off64_t.
2444         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2445         instead of struct _G_stat64.
2446         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2447
2448 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2449
2450         [BZ #14602]
2451         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2452         Replace with ...
2453         (CHECK_EOL): New macro.
2454         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2455         CHECK_EOL.
2456         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2457         Replace with CHECK_EOL.
2458         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2459         Replace with CHECK_EOL.
2460
2461 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2462
2463         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2464         type-generic.
2465         * math/libm-test.inc: Update comment listing what functions and
2466         macros are tested.
2467         (finite_test): New function.
2468         (isinf_test): Likewise.
2469         (isnan_test): Likewise.
2470         (fpclassify_test): Test subnormal input.
2471         (isfinite_test): Likewise.
2472         (isnormal_test): Likewise.
2473         (main): Call the new functions.
2474
2475 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2476
2477         [BZ #14660]
2478         * Makerules (%.dynsym): Force C locale when running
2479         $(OBJDUMP) --dynamic-syms.
2480
2481 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2482
2483         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2484         <stdint.h>.
2485
2486 2012-10-06  David S. Miller  <davem@davemloft.net>
2487
2488         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2489         upper 32-bits of the length value in %o2 since we use branch-on-register
2490         tests which consider the entire 64-bit register.
2491
2492 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2493
2494         * string/test-strstr.c (check2): Add a test for page boundary.
2495
2496 2012-10-05  David S. Miller  <davem@davemloft.net>
2497
2498         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2499         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2500         file.
2501         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2502         sysdep_routines.
2503         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2504         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2505         and bzero when HWCAP_SPARC_CRYPTO is present.
2506
2507 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2508
2509         [BZ #14602]
2510         * string/test-strstr.c (check2): New function.
2511         (test_main): Call check2.
2512
2513         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2514         and bug-strchr1.
2515         * string/bug-strcasestr1.c (do_test): Moved to ...
2516         * string/test-strcasestr.c (check1): Here.  New function.
2517         (do_one_test): Break out result checking code into ...
2518         (check_result): This.  New function.
2519         (do_one_test): Call check_result.
2520         (test_main): Call check1.
2521         * string/bug-strchr1.c (do_test): Moved to ...
2522         * string/test-strchr.c (check1): Here.  New function.
2523         (do_one_test): Break out result checking code into ...
2524         (check_result): This.  New function.
2525         (do_one_test): Call check_result.
2526         (test_main): Call check1.
2527         * string/bug-strstr1.c (main): Moved to ...
2528         * string/test-strchr.c (check1): Here.  New function.
2529         (do_one_test): Break out result checking code into ...
2530         (check_result): This.  New function.
2531         (do_one_test): Call check_result.
2532         (test_main): Call check1.
2533         * string/bug-strcasestr1.c: Removed.
2534         * string/bug-strchr1.c: Likewise.
2535         * string/bug-strstr1.c: Likewise.
2536
2537         * elf/Makefile (dl-routines): Add hwcaps.
2538         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2539         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2540         (_dl_important_hwcaps): Moved to ...
2541         * elf/dl-hwcaps.c: Here.  New file.
2542         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2543
2544         [BZ #14557]
2545         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2546         if IS_IN_rtld isn't defined.
2547
2548         * elf/dl-support.c (_dl_sysinfo_map): New.
2549         Include "get-dynamic-info.h" and "setup-vdso.h".
2550         (_dl_non_dynamic_init): Call setup_vdso.
2551         * elf/dynamic-link.h: Don't include <assert.h>.
2552         (elf_get_dynamic_info): Moved to ...
2553         * elf/get-dynamic-info.h: Here.  New file.
2554         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2555         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2556         * elf/setup-vdso.h: Here.  New file.
2557         * elf/rtld.c: Include "setup-vdso.h".
2558         (dl_main): Call setup_vdso.
2559
2560 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2561
2562         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2563         creal in comment listing functions tested.  List finite, isinf,
2564         isnan, isless, islessequal, isgreater, isgreaterequal,
2565         islessgreater, isunordered, lgamma_r and pow10 as functions and
2566         macros not tested.  Mention which functions not tested are aliases
2567         for other functions.  Fix typo.  Note that signs of NaNs are not
2568         tested.
2569
2570         * scripts/config.guess: Update from config.git.
2571         * scripts/config.sub: Likewise.
2572
2573 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2574
2575         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2576         * misc/madvise.c (madvise): Renamed to __madvise.
2577         Make madvise a weak alias.
2578         * include/sys/mman.h: Declare __madvise.
2579         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2580         * sysdeps/unix/syscalls.list
2581         (madvise): Make __madvise the strong name, and madvise a weak alias.
2582         * sysdeps/unix/sysv/linux/syscalls.list
2583         (madvise, mmap): Remove redundant entries.
2584         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2585         * malloc/malloc.c (mtrim): Likewise.
2586         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2587
2588 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2589
2590         * sysdeps/mach/hurd/dl-cache.c: File removed.
2591         * config.h.in (USE_LDCONFIG): New #undef.
2592         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2593         * configure: Regenerated.
2594         * elf/Makefile (dl-routines): Add dl-cache only under
2595         [$(use-ldconfig) = yes].
2596         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2597         cache on [USE_LDCONFIG].
2598         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2599         [USE_LDCONFIG].
2600         * elf/rtld.c (dl_main): Likewise.
2601
2602 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2603
2604         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2605         _SC_LEVEL4_CACHE_LINESIZE.
2606
2607 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2608
2609         * sysdeps/unix/bsd/confstr.h: File removed.
2610
2611 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2612
2613         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2614         sys/sdt-config.h.
2615
2616 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2617
2618         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2619         Make 'mapoff' field ElfW(Off) rather than off_t.
2620
2621 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2622
2623         * nscd/Makefile: Remove nscd-cflags and all its users.
2624         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2625         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2626
2627         [BZ #10631]
2628         * malloc.c (malloc_printerr): Clarify error message.
2629
2630 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2631
2632         [BZ #14648]
2633         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2634         Set bit_FMA_Usable if FMA is supported.
2635         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2636         macro.
2637         (bit_FMA4_Usable): Updated.
2638         (index_FMA_Usable): New macro.
2639         (CPUID_FMA): Likewise
2640         (HAS_FMA): Defined with bit_FMA_Usable.
2641
2642 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2643
2644         * bits/types.h (__swblk_t): Type removed.
2645         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2646         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2647         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2648         (__SWBLK_T_TYPE): Likewise.
2649         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2650         (__SWBLK_T_TYPE): Likewise.
2651         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2652         (__SWBLK_T_TYPE): Likewise.
2653         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2654         (__SWBLK_T_TYPE): Likewise.
2655
2656 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2657             Honza Horak <hhorak@redhat.com>
2658
2659         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2660         (xdr_mapname): Use YPMAXMAP as maxsize.
2661         (xdr_peername): Use YPMAXPEER as maxsize.
2662         (xdr_keydat): Use YPAXRECORD as maxsize.
2663         (xdr_valdat): Use YPMAXRECORD as maxsize.
2664
2665 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2666
2667         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2668
2669         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2670         * csu/init-first.c: ... here.
2671         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2672         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2673         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2674         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2675         * sysdeps/i386/init-first.c: File removed.
2676         * sysdeps/sh/init-first.c: File removed.
2677
2678 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2679
2680         [BZ #14645]
2681         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2682         if x * y might underflow to zero and z is zero.
2683         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2684         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2685         * math/libm-test.inc (min_subnorm_value): New variable.
2686         (fma_test): Add more tests.
2687         (fma_test_towardzero): Likewise.
2688         (fma_test_downward): Likewise
2689         (fma_test_upward): Likewise.
2690         (initialize): Set min_subnorm_value.
2691
2692 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2693
2694         [BZ #14638]
2695         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2696         0 + 0.
2697         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2698         mode for addition resulting in exact zero.
2699         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2700         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2701         exact 0 + 0.
2702         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2703         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2704         * math/libm-test.inc (fma_test): Add more tests.
2705         (fma_test_towardzero): New function.
2706         (fma_test_downward): Likewise.
2707         (fma_test_upward): Likewise.
2708         (main): Call the new functions.
2709
2710 2012-09-28  David S. Miller  <davem@davemloft.net>
2711
2712         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2713
2714 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2715
2716         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2717         instead of SIGALRM.
2718
2719         * sysdeps/gnu/_G_config.h: Moved to ...
2720         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2721         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2722         * sysdeps/generic/_G_config.h: ... here.
2723
2724         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2725
2726         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2727
2728         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2729         Conditionalize target on [libnss_test1.so-version].
2730
2731         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2732
2733         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2734         (elfobjdir): Move out of conditionals.
2735
2736         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2737         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2738         (__nss_lookup_function): Conditionalize label remove_from_tree on
2739         [!DO_STATIC_NSS || SHARED], matching its only use.
2740
2741 2012-09-28  David S. Miller  <davem@davemloft.net>
2742
2743         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2744         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2745         file.
2746         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2747         sysdep_routines.
2748         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2749         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2750         when HWCAP_SPARC_CRYPTO is present.
2751
2752 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2753
2754         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2755
2756 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2757
2758         [BZ #6530]
2759         * stdio-common/vfprintf.c (process_string_arg): Revert
2760         2000-07-22 change.
2761
2762 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2763
2764         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2765         for testcase.
2766         * stdio-common/tst-sprintf.c: Include <locale.h>
2767         (main): Test sprintf's handling of incomplete multibyte
2768         characters.
2769
2770 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2771
2772         * elf/dl-runtime.c (VERSYMIDX): Removed.
2773         * elf/dl-version.c (VERSYMIDX): Likewise.
2774         * elf/do-rel.h (VERSYMIDX): Likewise.
2775         (VALIDX): Likewise.
2776         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2777         * elf/rtld.c (VALIDX): Likewise.
2778         (ADDRIDX): Likewise.
2779         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2780         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2781         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2782         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2783         (VALIDX): Likewise.
2784         (ADDRIDX): Likewise.
2785
2786 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2787
2788         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2789
2790 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2791
2792         [BZ #11438]
2793         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2794         to global scope.
2795         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2796         addresses are in the same scope as 192.0.2/24.
2797         * posix/gai.conf: Document new scope table defaults.
2798
2799 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2800
2801         [BZ #5298]
2802         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2803         for ftell.  Compute offsets from write pointers instead.
2804         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2805
2806 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2807
2808         [BZ #14543]
2809         * libio/Makefile (tests): New test case tst-fseek.
2810         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2811         combination works in wide mode.
2812         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2813         state when the external buffer state changes.
2814
2815 2012-09-27  David S. Miller  <davem@davemloft.net>
2816
2817         [BZ #14376]
2818         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2819         pass reloc->r_addend in as the 'high' argument to
2820         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2821
2822         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2823
2824 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2825
2826         * rt/tst-aio2.c: Include <pthread.h>.
2827         * rt/tst-aio3.c: Likewise.
2828
2829 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2830
2831         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2832
2833 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2834
2835         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2836         contents on [SHARED].
2837
2838 2012-09-26  Marek Polacek  <polacek@redhat.com>
2839
2840         [BZ #14530]
2841         [BZ #13741]
2842         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2843         for C++ and GCC <4.3 as well as for non GCC compilers.
2844
2845 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2846
2847         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2848
2849 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2850
2851         * Makefile.in (all, install): Declare with .PHONY.
2852         Reported by Michael Hope <michael.hope@linaro.org>.
2853
2854 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2855
2856         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2857         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2858         system header.
2859         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2860         Likewise.
2861         (sydep_routines): Add the new and the internal functions.
2862         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2863         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2865         (GLIBC_2.17): Add the new function.
2866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2867         (GLIBC_2.17): Likewise.
2868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2869         (GLIBC_2.17): Likewise.
2870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2871         (GLIBC_2.17): Likewise.
2872         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2873
2874 2012-09-25  Alan Modra  <amodra@gmail.com>
2875
2876         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2877         Add release barrier before setting once_control to say
2878         initialisation is done.  Add hints on lwarx.  Use macro in
2879         place of isync.
2880         (clear_once_control): Add release barrier.
2881
2882 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2883
2884         [BZ #13629]
2885         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2886         specially.
2887         * math/s_clog10.c (__clog10): Likewise.
2888         * math/s_clog10f.c (__clog10f): Likewise.
2889         * math/s_clog10l.c (__clog10l): Likewise.
2890         * math/s_clogf.c (__clogf): Likewise.
2891         * math/s_clogl.c (__clogl): Likewise.
2892         * math/Makefile (libm-calls): Add x2y2m1.
2893         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2894         (__x2y2m1): Likewise.
2895         (__x2y2m1l): Likewise.
2896         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2897         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2898         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2899         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2900         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2901         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2902         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2903         * sysdeps/i386/fpu/libm-test-ulps: Update.
2904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2905
2906         [BZ #14621]
2907         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2908         int as type of variable DEPTH.
2909         (glob): Use size_t instead of int as type of variables NEWCOUNT
2910         and OLD_PATHC.
2911
2912 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2913
2914         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2915         Add s_sincosf-sse2.
2916         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2917         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2918         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2919         macros for using routine as __sincosf_ia32.
2920         Use macro for function declaration and weak_alias.
2921         * sysdeps/i386/fpu/libm-test-ulps: Update.
2922
2923         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2924         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2925
2926         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2927         subnormal argument.
2928         * math/s_cexpf.c (__cexpf): Likewise.
2929         * math/s_csinf.c (__csinf): Likewise.
2930         * math/s_csinhf.c (__csinhf): Likewise.
2931         * math/s_ctanf.c (__ctanf): Likewise.
2932         * math/s_ctanhf.c (__ctanhf): Likewise.
2933         * math/s_ccosh.c (__ccoshf): Likewise.
2934         * math/s_cexp.c (__cexpl): Likewise.
2935         * math/s_csin.c (__csin): Likewise.
2936         * math/s_csinh.c (__csinh): Likewise.
2937         * math/s_ctan.c (__ctan): Likewise.
2938         * math/s_ctanh.c (ctanh): Likewise.
2939         * math/s_ccoshl.c (__ccoshl): Likewise.
2940         * math/s_cexpl.c (__cexpl): Likewise.
2941         * math/s_csinl.c (__csinl): Likewise.
2942         * math/s_csinhl.c (__csinhl): Likewise.
2943         * math/s_ctanl.c (__ctanl): Likewise.
2944         * math/s_ctanhl.c (__ctanhl): Likewise.
2945
2946 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2947
2948         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2949         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2950         (_IO_off_t): Define to __off_t, not _G_off_t.
2951         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2952         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2953         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2954         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2955         type of __dummy and __dummy2 fields.
2956         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2957         (_G_ssize_t): Likewise.
2958         (_G_off_t): Likewise.
2959         (_G_pid_t): Likewise.
2960         (_G_uid_t): Likewise.
2961         (_G_wchar_t): Likewise.
2962         (_G_wint_t): Likewise.
2963         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2964         (_G_ssize_t): Likewise.
2965         (_G_off_t): Likewise.
2966         (_G_pid_t): Likewise.
2967         (_G_uid_t): Likewise.
2968         (_G_wchar_t): Likewise.
2969         (_G_wint_t): Likewise.
2970         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2971         (_G_ssize_t): Likewise.
2972         (_G_off_t): Likewise.
2973         (_G_pid_t): Likewise.
2974         (_G_uid_t): Likewise.
2975         (_G_wchar_t): Likewise.
2976         (_G_wint_t): Likewise.
2977
2978 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2979
2980         * malloc/arena.c: Include malloc-sysdep.h.
2981         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2982         is sufficient to shrink the heap or an unmap is needed.
2983         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2984         new function check_may_shrink_heap.
2985         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2986         new function check_may_shrink_heap.
2987
2988 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2989
2990         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2991         comments.
2992
2993 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2994
2995         * catgets/test-gencat.sh: Add "set -e".
2996         * elf/tst-pathopt.sh: Likewise.
2997         * grp/tst_fgetgrent.sh: Likewise.
2998         * iconvdata/run-iconv-test.sh: Likewise.
2999         * intl/tst-gettext.sh: Likewise.
3000         * intl/tst-gettext2.sh: Likewise.
3001         * intl/tst-gettext4.sh: Likewise.
3002         * intl/tst-gettext6.sh: Likewise.
3003         * intl/tst-translit.sh: Likewise.
3004         * io/ftwtest-sh: Likewise.
3005         * libio/test-freopen.sh: Likewise.
3006         * malloc/tst-mtrace.sh: Likewise.
3007         * posix/globtest.sh: Likewise.
3008         * posix/tst-getconf.sh: Likewise.
3009         * posix/wordexp-tst.sh: Likewise.
3010         * stdio-common/tst-printf.sh: Likewise.
3011         * stdio-common/tst-unbputc.sh: Likewise.
3012         * stdlib/tst-fmtmsg.sh: Likewise.
3013         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3014         * catgets/Makefile: Do not specify -e option when running
3015         testsuite shell scripts.
3016         * elf/Makefile: Likewise.
3017         * grp/Makefile: Likewise.
3018         * iconvdata/Makefile: Likewise.
3019         * intl/Makefile: Likewise.
3020         * io/Makefile: Likewise.
3021         * libio/Makefile: Likewise.
3022         * malloc/Makefile: Likewise.
3023         * posix/Makefile: Likewise.
3024         * stdio-common/Makefile: Likewise.
3025         * stdlib/Makefile: Likewise.
3026         * sysdeps/x86_64/Makefile: Likewise.
3027
3028         * io/ftwtest-sh: Add copyright header.
3029         * posix/globtest.sh: Likewise.
3030         * posix/tst-getconf.sh: Likewise.
3031         * posix/wordexp-tst.sh: Likewise.
3032         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3033
3034 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3035
3036         [BZ #13679]
3037         * Makeconfig (+link): Defined as $(+link-static) if
3038         $(build-shared) isn't yes.
3039         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
3040         isn't yes.
3041         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
3042
3043         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
3044
3045         [BZ #14562]
3046         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
3047         new chunk size with MALLOC_ALIGN_MASK.
3048
3049 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
3050
3051         [BZ #5044]
3052         * stdio-common/printf_fphex.c: Include <stdbool.h> and
3053         <rounding-mode.h>.
3054         (__printf_fphex): Determine rounding using get_rounding_mode and
3055         round_away.
3056         * stdio-common/tst-printf-round.c (struct hex_test): New
3057         structure.
3058         (hex_tests): New variable.
3059         (test_hex_in_one_mode): New function.
3060         (do_test): Also run tests for hex float output.
3061
3062 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
3063
3064         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3065         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3066         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
3067         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3068         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3069         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
3070         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3071         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3072
3073 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
3074
3075         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3076         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3077         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3078         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3079
3080 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
3081
3082         [BZ #14579]
3083         * elf/rtld.c (dl_main): Limit the check for self loading to normal
3084         mode only.
3085         * elf/tst-rtld-load-self.sh: New test.
3086         * elf/Makefile: Run it.
3087
3088 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3089
3090         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3091         (tst-writev-ENV): Remove.
3092         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3093
3094 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3095
3096         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3097
3098 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3099
3100         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3101         unconditional.
3102         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3103         Likewise.
3104         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3105         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3106         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3107         Likewise.
3108
3109 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3110
3111         [BZ #14587]
3112         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3113         * config.make.in (have-cpp-asm-debuginfo): Removed.
3114         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3115         * configure: Regenerated.
3116
3117 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3118
3119         [BZ #5044]
3120         * stdio-common/printf_fp.c: Include <stdbool.h> and
3121         <rounding-mode.h>.
3122         (___printf_fp): Determine rounding using get_rounding_mode and
3123         round_away.
3124         * stdio-common/tst-printf-round.c: New file.
3125         * stdio-common/Makefile (tests): Add tst-printf-round.
3126         (link-libm): New variable.
3127         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3128
3129 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3130
3131         [BZ #14576]
3132         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3133         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3134         Likewise.
3135         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3136         Likewise.
3137
3138 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3139
3140         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3141         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3142         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3143         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3144
3145 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3146
3147         [BZ #14518]
3148         * include/rounding-mode.h: New file.
3149         * sysdeps/generic/get-rounding-mode.h: Likewise.
3150         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3151         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3152         (MAX_VALUE): New macro.
3153         (MIN_VALUE): Likewise.
3154         (overflow_value): New function.
3155         (underflow_value): Likewise.
3156         (round_and_return): Use overflow_value and underflow_value to
3157         determine return values in overflow and underflow cases.  Use
3158         round_away to determine rounding depending on rounding mode.
3159         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3160         determine return values in overflow and underflow cases.
3161         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3162         (struct test_results): New structure.
3163         (struct test): Use struct test_results to store expected results
3164         for all rounding modes.
3165         (TEST): Include expected results for all rounding modes.
3166         (test_in_one_mode): New function.
3167         (do_test): Use test_in_one_mode to compute and check results.
3168         Check results for all rounding modes.
3169         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3170         $(link-libm).
3171
3172 2012-12-09  Allan McRae  <allan@archlinux.org>
3173
3174         * sysdeps/i386/fpu/libm-test-ulps: Update
3175
3176 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3177
3178         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3179         (_G_int32_t): Likewise.
3180         (_G_uint16_t): Likewise.
3181         (_G_uint32_t): Likewise.
3182         (_G_HAVE_BOOL): Likewise.
3183         (_G_HAVE_ATEXIT): Likewise.
3184         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3185         (_G_HAVE_IO_FILE_OPEN): Likewise.
3186         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3187         (_G_int32_t): Likewise.
3188         (_G_uint16_t): Likewise.
3189         (_G_uint32_t): Likewise.
3190         (_G_HAVE_BOOL): Likewise.
3191         (_G_HAVE_ATEXIT): Likewise.
3192         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3193         (_G_HAVE_IO_FILE_OPEN): Likewise.
3194         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3195         (_G_int32_t): Likewise.
3196         (_G_uint16_t): Likewise.
3197         (_G_uint32_t): Likewise.
3198         (_G_HAVE_BOOL): Likewise.
3199         (_G_HAVE_ATEXIT): Likewise.
3200         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3201         (_G_HAVE_IO_FILE_OPEN): Likewise.
3202
3203 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3204
3205         * csu/libc-tls.c: Update copyright years.
3206
3207 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3208
3209         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3210         [!_G_USING_THUNKS]: Remove conditional code.
3211         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3212         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3213
3214         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3215         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3216         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3217         (_G_VTABLE_LABEL_PREFIX): Likewise.
3218         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3219         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3220         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3221         (_G_VTABLE_LABEL_PREFIX): Likewise.
3222         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3223         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3224         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3225         (_G_VTABLE_LABEL_PREFIX): Likewise.
3226         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3227
3228 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3229
3230         * libio/Makefile: Include ../Makeconfig before tests.
3231         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3232         only if $(build-shared) is yes.
3233
3234         * iconv/gconv_db.c: Update copyright years.
3235
3236 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3237
3238         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3239         unwind info if defined PIC. Fix special cases description.
3240         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3241
3242         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3243         DP_HI_MASK entry.
3244         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3245
3246 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3247
3248         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3249
3250         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3251         is NULL.
3252
3253         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3254         (LDLIBS-tst-chk4): This.
3255         (LDFLAGS-tst-chk5): Renamed to ...
3256         (LDLIBS-tst-chk5): This.
3257         (LDFLAGS-tst-chk6): Renamed to ...
3258         (LDLIBS-tst-chk6): This.
3259         (LDFLAGS-tst-lfschk4): Renamed to ...
3260         (LDLIBS-tst-lfschk4): This.
3261         (LDFLAGS-tst-lfschk5): Renamed to ...
3262         (LDLIBS-tst-lfschk5): This.
3263         (LDFLAGS-tst-lfschk6): Renamed to ...
3264         (LDLIBS-tst-lfschk6): This.
3265
3266         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3267         on $(common-objpfx)soversions.mk.
3268
3269 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
3270
3271         [BZ #10014]
3272         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3273         example host name.
3274
3275 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3276
3277         * malloc/arena.c (arena_get_retry): New function that gets
3278         another arena for the caller to try its request on.
3279         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3280         current arena cannot fulfill the request.
3281         (__libc_memalign): Likewise.
3282         (__libc_memalign): Likewise.
3283         (__libc_pvalloc): Likewise.
3284         (__libc_calloc): Likewise.
3285
3286 2012-09-05  John Tobey  <john.tobey@gmail.com>
3287
3288         [BZ #13542]
3289         * manual/arith.texi (Operations on Complex): Fix description
3290         of carg branch cut.
3291
3292 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3293
3294         [BZ #10014]
3295         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3296         host name.
3297
3298         [BZ #10038]
3299         * manual/memory.texi (Memory): Make order of menu items match
3300         order of sections.
3301
3302 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3303
3304         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3305         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3306         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3307
3308 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3309
3310         * csu/libc-tls.c (static_dtv): Renamed to ...
3311         (_dl_static_dtv): This.  Make it global.
3312         (_dl_initial_dtv): Removed.
3313         (__libc_setup_tls): Updated.
3314         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3315         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3316         DL_INITIAL_DTV.
3317
3318 2012-09-06  Petr Machata  <pmachata@redhat.com>
3319
3320         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3321         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3322         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3323         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3324
3325 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3326
3327         [BZ #14545]
3328         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3329         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3330         freeing dtv[-1].
3331
3332 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3333
3334         [BZ #14544]
3335         * Makeconfig (link-static-before-libc): Replace $(+prector)
3336         with $(+prectorT).
3337         (link-static-after-libc): Replace $(+postctor) with
3338         $(+postctorT).
3339         (link-bounded): Replace $(+prector)/$(+postctor) with
3340         $(+prectorT)/$(+postctorT).
3341         (+prectorT): New macro.
3342         (+postctorT): Likewise.
3343
3344 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3345
3346         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3347         (round_str): Handle values above the maximum for IBM long double
3348         as inexact.
3349         * stdlib/tst-strtod-round.c (tests): Regenerated.
3350
3351 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3352
3353         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3354         assembler flag.
3355         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3356         zarch_nohighgprs around the zarch optimized routines.
3357         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3358         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3359         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3360         for zarch.
3361
3362 2012-09-05  David S. Miller  <davem@davemloft.net>
3363
3364         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3365
3366         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3367         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3368         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3369         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3370         entries.
3371
3372 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3373
3374         * malloc/arena.c: Fold copyright years.
3375         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3376
3377 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3378
3379         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3380
3381 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3382
3383         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3384
3385 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3386
3387         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3388         change internal state upon failure.
3389
3390 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3391
3392         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3393         * malloc/memusage.c (mmap): Likewise.
3394         (mmap64, mremap): Likewise.  Adjust name in comment.
3395
3396 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3397
3398         * libio/fileops.c: Fix typos in comments.
3399         * libio/oldfileops.c: Likewise.
3400         * libio/wfileops.c: Likewise.
3401
3402 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3403
3404         [BZ #1349]
3405         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3406         (tst-malloc-usable-ENV): Set environment for test case.
3407         * malloc/hooks.c (malloc_check_get_size): New function to get
3408         requested size.
3409         * malloc/malloc.c (musable): Use malloc_check_get_size.
3410         * malloc/tst-malloc-usable.c: New test case.
3411
3412 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3413
3414         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3415
3416 2012-09-05  Allan McRae  <allan@archlinux.org>
3417
3418         [BZ #13966]
3419         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3420         determine header location.
3421         * configure: Regenerated.
3422
3423 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3424
3425         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3426         float format.
3427         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3428         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3429         format.
3430         (test): Regenerate.
3431
3432 2012-09-04  David S. Miller  <davem@davemloft.net>
3433
3434         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3435         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3436         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3437
3438 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3439
3440         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3441         failures.
3442
3443         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3444
3445 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3446
3447         [BZ #9914]
3448         * libio/iogetdelim.c: Include <limits.h>.
3449         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3450         + len + 1 would overflow.
3451
3452 2012-09-03  Andreas Jaeger  <aj@suse.de>
3453
3454         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3455         * sysdeps/i386/fpu/libm-test-ulps: Update.
3456
3457 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3458
3459         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3460         Add s_sinf-sse2, s_conf-sse2.
3461
3462         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3463         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3464         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3465         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3466
3467         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3468         for using routine as __sinf_ia32.
3469         Use macro for function declaration and weak_alias.
3470         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3471         for using routine as __cosf_ia32.
3472         Use macro for function declaration and weak_alias.
3473
3474         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3475         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3476
3477         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3478         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3479         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3480
3481         * math/libm-test.inc (cos_test): Add more test cases.
3482         (sin_test): Likewise.
3483         (sincos_test): Likewise.
3484
3485 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3486
3487         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3488         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3489         hidden.
3490         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3491
3492 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3493
3494         [BZ #14538]
3495         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3496         first element of the GOT.
3497         (elf_machine_load_address): Return the difference between
3498         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3499
3500 2012-09-01  Allan McRae  <allan@archlinux.org>
3501
3502         [BZ #13412]
3503         * configure.in (AWK): Require gawk version 3.0 or later.
3504         * configure: Regenerated.
3505
3506 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3507
3508         * sysdeps/unix/sysv/linux/kernel-features.h
3509         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3510         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3511         [__NR_clock_getres]: Make code unconditional.
3512         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3513         (clock_getcpuclockid): Remove code left unreachable by removal of
3514         conditionals.
3515         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3516         code unconditional.
3517         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3518         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3519         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3520         Make code unconditional.
3521         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3522         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3523         * sysdeps/unix/sysv/linux/clock_settime.c
3524         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3525         conditional code.
3526         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3527         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3528
3529 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3530
3531         [BZ #14476]
3532         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3533         scripts/test-installation.pl.
3534
3535         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3536         and $ld_so_version if it is set.
3537
3538 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3539
3540         [BZ #14516]
3541         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3542         failure if reading from procfs failed.
3543         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3544
3545 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3546
3547         * sysdeps/unix/sysv/linux/kernel-features.h
3548         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3549         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3550         Remove conditional code.
3551         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3552         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3553         Remove conditional code.
3554         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3555         * sysdeps/unix/sysv/linux/i386/fxstat.c
3556         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3557         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3558         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3559         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3560         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3561         * sysdeps/unix/sysv/linux/i386/lxstat.c
3562         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3563         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3564         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3565         Remove conditional code.
3566         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3567         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3568         Remove conditional code.
3569         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3570         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3571         <kernel-features.h>.
3572         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3573         Remove.
3574         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3575         Remove conditional code.
3576         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3577         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3578         Remove conditional.
3579
3580 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3581
3582         [BZ #5400]
3583         * NEWS: Add fixed bug number.
3584
3585 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3586
3587         [BZ #14519]
3588         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3589         underflowing exponent in case of negative sign.
3590         * stdlib/tst-strtod-round-data: Add more tests.
3591         * stdlib/tst-strtod-round.c (tests): Regenerated.
3592
3593         [BZ #3479]
3594         * stdlib/strtod_l.c (NDIG): Remove.
3595         (HEXNDIG): Likewise.
3596         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3597         smallest representable value.
3598         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3599         lie within an exact representation of 1/2 ulp of the result.
3600         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3601         unconditionally.
3602         (TENS_P9_IDX): Define unconditionally.
3603         (TENS_P9_SIZE): Likewise.
3604         (TENS_P10_IDX): Likewise.
3605         (TENS_P10_SIZE): Likewise.
3606         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3607         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3608         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3609         entries for 10^2^13 and 10^2^14.
3610         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3611         (TENS_P13_IDX): Define.
3612         (TENS_P13_SIZE): Likewise.
3613         (TENS_P14_IDX): Likewise.
3614         (TENS_P14_SIZE): Likewise.
3615         (_fpioconst_pow10): Change array size to
3616         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3617         unconditional.
3618         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3619         1024]: Add entries for 10^2^13 and 10^2^14.
3620         [LAST_POW10 > _LAST_POW10]: Remove #error.
3621         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3622         (_fpioconst_pow10): Change array size to
3623         FPIOCONST_POW10_ARRAY_SIZE.
3624         * stdlib/gen-fpioconst.c: New file.
3625         * stdlib/gen-tst-strtod-round.c: Likewise.
3626         * stdlib/tst-strtod-round-data: Likewise.
3627         * stdlib/tst-strtod-round.c: Likewise.
3628         * stdlib/Makefile (tests): Add tst-strtod-round.
3629
3630         [BZ #14459]
3631         * stdlib/strtod_l.c: Include <stdint.h>.
3632         (NDEBUG): Do not define.
3633         (round_and_return): Change EXPONENT parameter to type intmax_t.
3634         Rearrange calculations to avoid internal overflow possibilities.
3635         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3636         Rearrange calculations to avoid internal overflow possibilities.
3637         Assert that number fits inside MPNSIZE limbs.
3638         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3639         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3640         calculations and add assertions to avoid internal overflow
3641         possibilities.  Add casts to avoid signed/unsigned operations.
3642         * stdlib/tst-strtod-overflow.c: New file.
3643         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3644
3645 2012-08-25  Marek Polacek  <polacek@redhat.com>
3646
3647         * time/time.h: Fix some typos in comments.
3648
3649 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3650
3651         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3652         * posix/tst-rfc3484-2.c: Likewise.
3653         * posix/tst-rfc3484-3.c: Likewise.
3654
3655 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3656
3657         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3658         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3659
3660 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3661
3662         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3663         #include of fxstatat64.c.
3664
3665 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3666
3667         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3668         * shadow/getspent_r.c: Likewise.
3669         * shadow/getspnam.c: Likewise.
3670         * shadow/getspnam_r.c: Likewise.
3671         * gshadow/getsgent.c: Likewise.
3672         * gshadow/getsgent_r.c: Likewise.
3673         * gshadow/getsgnam.c: Likewise.
3674         * gshadow/getsgnam_r.c: Likewise.
3675         * inet/getnetbyad.c: Likewise.
3676         * inet/getnetbyad_r.c: Likewise.
3677         * inet/getnetbynm.c: Likewise.
3678         * inet/getnetbynm_r.c: Likewise.
3679         * inet/getnetent.c: Likewise.
3680         * inet/getnetent_r.c: Likewise.
3681         * inet/getproto.c: Likewise.
3682         * inet/getproto_r.c: Likewise.
3683         * inet/getprtent.c: Likewise.
3684         * inet/getprtent_r.c: Likewise.
3685         * inet/getprtname.c: Likewise.
3686         * inet/getprtname_r.c: Likewise.
3687         * inet/getrpcbyname.c: Likewise.
3688         * inet/getrpcbyname_r.c: Likewise.
3689         * inet/getrpcbynumber.c: Likewise.
3690         * inet/getrpcbynumber_r.c: Likewise.
3691         * inet/getrpcent.c: Likewise.
3692         * inet/getrpcent_r.c: Likewise.
3693         * inet/getaliasent.c: Likewise.
3694         * inet/getaliasent_r.c: Likewise.
3695         * inet/getaliasname.c: Likewise.
3696         * inet/getaliasname_r.c: Likewise.
3697         * nscd/getgrgid_r.c: Likewise.
3698         * nscd/getgrnam_r.c: Likewise.
3699         * nscd/gethstbyad_r.c: Likewise.
3700         * nscd/gethstbynm3_r.c: Likewise.
3701         * nscd/getpwnam_r.c: Likewise.
3702         * nscd/getpwuid_r.c: Likewise.
3703         * nscd/getsrvbynm_r.c: Likewise.
3704         * nscd/getsrvbypt_r.c: Likewise.
3705         * nscd/gai.c: Likewise.
3706
3707         * configure.in (build_nscd): New substituted variable, set
3708         by --disable-build-nscd and defaults to $use_nscd.
3709         * configure: Regenerated.
3710         * config.make.in (build-nscd): New substituted variable.
3711         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3712         Change conditional to require [$(build-nscd) = yes] as well.
3713         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3714
3715         [BZ# 13696]
3716         * configure.in (use_nscd): New substituted variable, set by
3717         --disable-nscd.  If enabled, define USE_NSCD.
3718         * configure: Regenerated.
3719         * config.h.in: Add USE_NSCD.
3720         * config.make.in (use-nscd): New substituted variable.
3721         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3722         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3723         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3724         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3725         (CFLAGS-getgrnam_r.c): Likewise.
3726         (CFLAGS-initgroups.c): Likewise.
3727         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3728         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3729         Variables removed.
3730         * inet/getnetgrent_r.c
3731         (nscd_setnetgrent): New function, broken out of ...
3732         (setnetgrent): ... here.  Call it.
3733         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3734         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3735         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3736         * nscd/Makefile (routines, aux): Move definitions after include of
3737         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3738         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3739         Conditionalize on [USE_NSCD].
3740         (is_nscd, nscd_init_cb): Likewise.
3741         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3742         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3743         * nss/nss_db/db-init.c: Likewise.
3744         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3745         [USE_NSCD].
3746         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3747         (make_request): Use it.
3748         (cache_valid_p): New function.
3749         (__check_pf): Use it.
3750         * NEWS: Add item for --disable-nscd.
3751
3752 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3753
3754         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3755         to support sed >= 4.2.1-20-ga9bf076.
3756         * configure: Regenerated.
3757
3758 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3759
3760         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3761         Conditionalize whole body on [IREL].
3762
3763 2012-08-22  Jeff Law <law@redhat.com>
3764
3765         [BZ #14505]
3766         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3767         if the family is PF_UNSPEC.
3768
3769 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3770
3771         * Makerules (lib-version): Rename from V.
3772         (install-lib-nosubdir): Change V to lib-version.
3773
3774 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3775
3776         [BZ #14252]
3777         * powerpc32/power6/wcschr.c: New file.
3778         * powerpc32/power6/wcscpy.c: New file.
3779         * powerpc32/power6/wcsrchr.c: New file.
3780         * powerpc64/power6/wcschr.c: New file.
3781         * powerpc64/power6/wcscpy.c: New file.
3782         * powerpc64/power6/wcsrchr.c: New file.
3783
3784 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3785
3786         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3787         (two_way_short_needle): Use it.
3788         * string/strstr.c (AVAILABLE1_USES_J): Define.
3789         * string/strcasestr.c: Likewise.
3790
3791         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3792         array references.
3793         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3794
3795         [BZ #11607]
3796         * NEWS: Add an entry.
3797         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3798         define their defaults.
3799         (two_way_short_needle): Detect end-of-string on-the-fly.
3800         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3801         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3802         * string/bug-strcasestr1.c: New test.
3803         * string/Makefile: Run it.
3804
3805 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3806
3807         [BZ #11607]
3808         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3809         the first character.
3810
3811 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3812
3813         * csu/elf-init.c (__libc_csu_irel): Function removed.
3814         * csu/libc-start.c (apply_irel): New function.
3815         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3816
3817 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3818
3819         * sysdeps/unix/sysv/linux/kernel-features.h
3820         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3821         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3822         <kernel-features.h>.
3823         [__NR_fadvise64_64]: Make code unconditional.
3824         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3825         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3826         !__NR_fadvise64_64)]: Likewise.
3827         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3828         !__NR_fadvise64_64))]: Likewise.
3829         [__NR_fadvise64]: Make code unconditional.
3830         [!__NR_fadvise64]: Remove conditional code.
3831         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3832         <kernel-features.h>.
3833         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3834         unconditional.
3835         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3836         conditional code.
3837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3838         not include <kernel-features.h>.
3839         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3840         unconditional.
3841         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3842         conditional code.
3843         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3844         include <kernel-features.h>.
3845         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3846         unconditional.
3847         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3848         conditional code.
3849
3850 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3851
3852         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3853         slight instruction rearrangements per scrollpipe analysis.
3854         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3855
3856 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3857
3858         * manual/syslog.texi (syslog; vsyslog, closelog):
3859         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3860         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3861
3862         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3863         DSOCAPS to match condition on defining it.
3864
3865 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3866
3867         * sysdeps/unix/sysv/linux/kernel-features.h
3868         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3870         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3871         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3873         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3874         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3876         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3877         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3878
3879         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3880         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3881
3882         * sysdeps/unix/sysv/linux/kernel-features.h
3883         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3884         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3885         unconditional.
3886         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3887         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3888         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3889         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3890         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3891         Make code unconditional.
3892         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3893         (__mmap64) [!__NR_mmap2]: Likewise.
3894         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3895         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3896         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3897         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3898         [__NR_mmap2]: Make code unconditional.
3899         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3900         (__mmap64) [!__NR_mmap2]: Likewise.
3901
3902 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3903
3904         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3905
3906 2012-08-18  Andreas Jaeger  <aj@suse.de>
3907
3908         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3909
3910 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3911
3912         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3913         * include/unistd.h (__have_sock_cloexec): Likewise.
3914         (__have_pipe2): Likewise.
3915         (__have_dup3): Likewise.
3916
3917 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3918
3919         [BZ #9685]
3920         * include/unistd.h (__have_pipe2): Change define into an extern int.
3921         (__have_dup3): Likewise.
3922         * socket/have_sock_cloexec.c: Include fcntl.h.
3923         (__have_pipe2): New variable.
3924         (__have_dup3): Likewise.
3925
3926 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3927
3928         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3929
3930 2012-08-17  Marek Polacek  <polacek@redhat.com>
3931
3932         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3933         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3934
3935 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3936
3937         * configure.in: Add AC_SUBST for sysheaders.
3938         * configure: Regenerated.
3939         * config.make.in (sysheaders): New substituted variable.
3940
3941         * sysdeps/unix/mkfifo.c: Moved ...
3942         * sysdeps/posix/mkfifo.c: ... here.
3943         * sysdeps/unix/mkfifoat.c: Moved ...
3944         * sysdeps/posix/mkfifoat.c: ... here.
3945
3946         * sysdeps/unix/utime.c: Moved ...
3947         * sysdeps/posix/utime.c: ... here.
3948
3949         * sysdeps/unix/time.c: Moved ...
3950         * sysdeps/posix/time.c: ... here.
3951         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3952         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3953
3954         * sysdeps/unix/nice.c: Moved ...
3955         * sysdeps/posix/nice.c: ... here.
3956
3957         * sysdeps/unix/alarm.c: Moved ...
3958         * sysdeps/posix/alarm.c: ... here.
3959
3960         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3961
3962 2012-08-17  Jeff Law <law@redhat.com>
3963
3964         * intl/Makefile (codeset_mo): New variable.
3965         ($(codeset_mo)): New target.
3966         (tst-codeset.out): Depend on that.  Remove explicit rule.
3967         (tst-gettext3.out, tst-gettext5.out): Likewise.
3968         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3969         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3970         * intl/tst-codeset.sh: Remove.
3971         * intl/tst-gettext3.sh: Likewise.
3972         * intl/tst-gettext5.sh: Likewise.
3973
3974 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3975
3976         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3977         * sysdeps/unix/syscalls.list: ... here.
3978
3979         * sysdeps/posix/getaddrinfo.c
3980         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3981         (gaiconf_init, gaiconf_reload): Use them.
3982         [!_STATBUF_ST_NSEC]
3983         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3984         Define using time_t rather than struct timespec.
3985
3986         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3987         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3988         Macros removed.
3989         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3990         [!NO_THREADS].
3991         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3992         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3993         Likewise.
3994
3995         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
3996         __libc_cleanup_push argument.
3997
3998         * bits/param.h: New file.
3999         * misc/sys/param.h: New file.
4000         * include/sys/param.h: New file.
4001         * misc/Makefile (headers): Add bits/param.h.
4002         * sysdeps/generic/sys/param.h: File removed.
4003         * sysdeps/unix/sysv/linux/bits/param.h: New file.
4004         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
4005         * sysdeps/mach/hurd/bits/param.h: New file.
4006         * sysdeps/mach/hurd/sys/param.h: File removed.
4007
4008         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
4009         last change.
4010
4011         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
4012         [_IO_MTSAFE_IO].
4013         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
4014         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
4015         New macros.
4016
4017         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
4018         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
4019         rather than -D_IO_MTSAFE_IO conditionally.
4020         * stdio-common/Makefile (CPPFLAGS): Likewise.
4021         * wcsmbs/Makefile (CPPFLAGS): Likewise.
4022         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
4023         Use $(libio-mtsafe).
4024         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
4025         of -D_IO_MTSAFE_IO.
4026         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
4027         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
4028         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
4029         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
4030         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
4031         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
4032         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
4033         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
4034         (CFLAGS-fread_u_chk.c): Likewise.
4035         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
4036         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
4037         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
4038         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
4039         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
4040         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
4041         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
4042         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
4043         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
4044
4045         * libio/Makefile: Test [$(libc-reentrant) = yes]
4046         instead of [$(filter %REENTRANT, $(defines)) nonempty].
4047
4048         * Makeconfig
4049         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
4050         * sysdeps/pthread/configure: File removed.
4051         * sysdeps/pthread/Makeconfig: New file.
4052         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
4053         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
4054
4055 2012-08-16  Gary Benson  <gbenson@redhat.com>
4056
4057         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
4058         unmapping the first object in a namespace.
4059
4060 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4061
4062         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
4063         (__internal_setnetgrent): ... this.  Add internal_function to
4064         definition.  Add libc_hidden_def.
4065         (setnetgrent): Update caller.
4066         (internal_endnetgrent): Renamed to ...
4067         (__internal_endnetgrent): ... this.  Add internal_function to
4068         definition.  Add libc_hidden_def.
4069         (endnetgrent): Update caller.
4070         (internal_getnetgrent_r): Renamed to ...
4071         (__internal_getnetgrent_r): ... this.  Add internal_function to
4072         definition.  Add libc_hidden_def.
4073         (__getnetgrent_r): Update caller.
4074         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
4075
4076 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4077
4078         * stdlib/longlong.h: Update from GCC.
4079
4080 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4081
4082         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4083         on _QL, which is set by umul_ppmm but never used.
4084         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4085         variables, which are set by GMP macros but never used.
4086         * stdio-common/_itowa.c (_itowa): Likewise.
4087         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4088         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4089
4090 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4091
4092         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4093         struct La_sh_regs is not constant.
4094         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4095         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4096         and struct La_sparc64_regs are not constant.
4097
4098 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4099
4100         * sysdeps/unix/sysv/linux/kernel-features.h
4101         (__ASSUME_POSIX_TIMERS): Remove.
4102         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4103         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4104         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4105         Make code unconditional.
4106         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4107         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4108         Make code unconditional.
4109         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4110         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4111         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4112         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4113         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4114         Make code unconditional.
4115         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4116         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4117         (__libc_missing_posix_timers): Remove.
4118
4119 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4120
4121         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4122         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4123
4124         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4125
4126         * elf/dl-sym.c: Include <stdlib.h>.
4127
4128         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4129         constants, which avoids warnings in 32-bit builds.
4130
4131         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4132         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4133
4134         * misc/lseek.c: File moved to ...
4135         * io/lseek.c: ... here.
4136
4137         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4138
4139         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4140         shifting LEN more than 31 bits at once.
4141
4142 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4143
4144         [BZ #14195]
4145         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4146         segmentation fault for a case of two empty input strings.
4147         * string/test-strncasecmp.c (check1): Renamed to...
4148         (bz12205): ...this.
4149         (bz14195): Add new testcase for two empty input strings and N > 0.
4150         (test_main): Call new testcase, adapt for renamed function.
4151
4152 2012-08-15  Andreas Jaeger  <aj@suse.de>
4153
4154         [BZ #14090]
4155         * crypt/md5test2.c: New test, based on test supplied by Serge
4156         Belyshev <belyshev@depni.sinp.msu.ru>.
4157         * crypt/Makefile (xtests): Add md5test-giant..
4158         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4159
4160 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4161
4162         [BZ #14090]
4163         * crypt/md5.c (md5_process_block): Don't assume the buffer
4164         length is less than 2**32.
4165         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4166         length is less than 2**64.
4167
4168 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4169
4170         * string/str-two-way.h: Include <sys/param.h>.
4171         (MAX): Macro removed.
4172
4173         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4174         Move #define and #undef of memmove to just before and after
4175         including <string.h>.
4176
4177         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4178         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4179         and after including <string.h>.  Move declarations of
4180         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4181         to before #include "string/memmove.c".
4182
4183         * include/dirent.h: Declare __getdirentries.
4184
4185         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4186         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4187
4188 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4189
4190         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4191         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4192         * sysdeps/i386/configure: Regenerated.
4193         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4194         STABS_CURRENT_FILE, and STABS_FUN.
4195         (END): Remove call to STABS_FUN_END.
4196         (STABS_CURRENT_FILE1): Delete.
4197         (STABS_CURRENT_FILE): Likewise.
4198         (STABS_FUN): Likewise.
4199         (STABS_FUN_END): Likewise.
4200         (STABS_FUN2): Likewise.
4201         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4202         * sysdeps/x86_64/configure: Regenerated.
4203
4204 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4205
4206         * elf/dl-open.c: Include <atomic.h>.
4207         * elf/dl-lookup.c: Likewise.
4208
4209 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4210
4211         * sysdeps/unix/sysv/linux/kernel-features.h
4212         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4213         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4214         unconditionally.
4215         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4216         unconditionally.
4217         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4218         condition on __ASSUME_CLONE_THREAD_FLAGS.
4219
4220 2012-08-14  Andreas Jaeger  <aj@suse.de>
4221
4222         * sysdeps/i386/fpu/libm-test-ulps: Update.
4223
4224 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4225
4226         * include/atomic.h (atomic_exchange_and_add): Split into ...
4227         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4228         New atomic macros.
4229
4230 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4231
4232         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4233
4234 2012-08-13  Jeff Law <law@redhat.com>
4235
4236         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4237         null byte in the output string.
4238
4239 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4240
4241         * sysdeps/unix/sysv/linux/kernel-features.h
4242         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4243         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4244         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4245         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4246         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4247         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4248         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4249
4250 2012-08-09  Jeff Law <law@redhat.com>
4251
4252         [BZ #13939]
4253         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4254         When avoid_arena is set, don't retry in the that arena.  Pick the
4255         next one, whatever it might be.
4256         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4257         (arena_lock): Pass in new parameter to arena_get2.
4258         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4259         arena_get2.
4260         (__libc_malloc): Unify retrying after main arena failure with
4261         __libc_memalign version.
4262         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4263
4264 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4265
4266         [BZ #14166]
4267         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4268         to __redirect_strstr.
4269         (__strstr_sse42): Use typeof __redirect_strstr.
4270         (__strstr_ia32): Likewise.
4271         (__libc_strstr): New prototype.
4272         (strstr): Renamed to ...
4273         (__libc_strstr): This.
4274         (strstr): New strong alias of __libc_strstr.
4275         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4276         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4277         __redirect_time.
4278         Include <time.h>.
4279         (__libc_time): New prototype.
4280         (time_ifunc): Replace time with __libc_time.
4281         (time): New strong alias and hidden definition of __libc_time.
4282         (__GI_time): Remove strong alias.
4283         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4284         Include <stddef.h>.
4285         (memmove): Redefined to __redirect_memmove.
4286         (__memmove_sse2): Use typeof __redirect_memmove.
4287         (__memmove_ssse3): Likewise.
4288         (__memmove_ssse3_back): Likewise.
4289         (__libc_memmove): New prototype.
4290         (memmove): Renamed to ...
4291         (__libc_memmove): This.
4292         (memmove): New strong alias of __libc_memmove.
4293
4294 2012-08-08  Mark Salter  <msalter@redhat.com>
4295
4296         * elf/elf.h
4297         (R_MN10300_TLS_GD): Define.
4298         (R_MN10300_TLS_LD): Likewise.
4299         (R_MN10300_TLS_LDO): Likewise.
4300         (R_MN10300_TLS_GOTIE): Likewise.
4301         (R_MN10300_TLS_IE): Likewise.
4302         (R_MN10300_TLS_LE): Likewise.
4303         (R_MN10300_TLS_DTPMOD): Likewise.
4304         (R_MN10300_TLS_DTPOFF): Likewise.
4305         (R_MN10300_TLS_TPOFF): Likewise.
4306         (R_MN10300_SYM_DIFF): Likewise.
4307         (R_MN10300_ALIGN): Likewise.
4308         (R_MN10300_NUM): Update.
4309
4310 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4311
4312         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4313         Remove.
4314
4315 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4316
4317         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4318
4319         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4320         sysdeps/unix -> sysdeps/posix move.
4321         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4322
4323 2012-08-07      Allan McRae     <allan@archlinux.org>
4324
4325         [BZ #14303]
4326         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4327         (SUNOS_CPP): Likewise.
4328         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4329         not found.
4330         (open_input): Call CPP using execvp.
4331
4332 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4333
4334         * sysdeps/unix/sysv/linux/kernel-features.h
4335         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4336         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4337         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4338         (__ASSUME_WAITID_SYSCALL): Likewise.
4339         * sysdeps/unix/sysv/linux/dl-execstack.c
4340         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4341         code unconditional.
4342         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4343         conditional code.
4344         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4345         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4346         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4347         code.
4348         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4349         unconditional.
4350         [__ASSUME_WAITID_SYSCALL]: Likewise.
4351         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4352
4353 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4354
4355         * sysdeps/unix/closedir.c: Renamed to ...
4356         * sysdeps/posix/closedir.c: ... here.
4357         * sysdeps/unix/dirfd.c: Renamed to ...
4358         * sysdeps/posix/dirfd.c: ... here.
4359         * sysdeps/unix/dirstream.h: Renamed to ...
4360         * sysdeps/posix/dirstream.h: ... here.
4361         * sysdeps/unix/fdopendir.c: Renamed to ...
4362         * sysdeps/posix/fdopendir.c: ... here.
4363         * sysdeps/unix/opendir.c: Renamed to ...
4364         * sysdeps/posix/opendir.c: ... here.
4365         * sysdeps/unix/readdir.c: Renamed to ...
4366         * sysdeps/posix/readdir.c: ... here.
4367         * sysdeps/unix/readdir_r.c: Renamed to ...
4368         * sysdeps/posix/readdir_r.c: ... here.
4369         * sysdeps/unix/rewinddir.c: Renamed to ...
4370         * sysdeps/posix/rewinddir.c: ... here.
4371         * sysdeps/unix/seekdir.c: Renamed to ...
4372         * sysdeps/posix/seekdir.c: ... here.
4373         * sysdeps/unix/telldir.c: Renamed to ...
4374         * sysdeps/posix/telldir.c: ... here.
4375         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4376         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4377         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4378         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4379
4380         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4381         * bits/fcntl.h: ... here.
4382
4383         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4384         not 0.
4385         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4386         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4387         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4388         (struct flock): Move l_start, l_len to the beginning.
4389         Use __pid_t for l_pid.
4390         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4391         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4392         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4393         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4394         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4395         [__USE_LARGEFILE64] (struct flock64): New type.
4396         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4397
4398         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4399         * bits/dirent.h: ... here.
4400
4401         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4402         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4403
4404 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4405
4406         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4407         Change from 2.6.0 to 2.6.16.
4408         * sysdeps/unix/sysv/linux/configure: Regenerated.
4409         * sysdeps/unix/sysv/linux/kernel-features.h
4410         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4411         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4412         version.
4413         (__ASSUME_UTIMES): Likewise.
4414         (__ASSUME_CLONE_STOPPED): Remove.
4415         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4416         architectures, not kernel version.
4417         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4418         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4419         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4420         (__ASSUME_WAITID_SYSCALL): Likewise.
4421         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4422         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4423         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4424         refer to older versions.
4425
4426 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4427
4428         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4429         Define alphasort64 as an alias.
4430         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4431         Define versionsort64 as an alias.
4432         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4433         Define scandir64 as an alias.
4434         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4435         Define scandirat64 as an alias.
4436         * dirent/alphasort64.c (alphasort64):
4437         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4438         * dirent/versionsort64.c: Likewise.
4439         * dirent/scandir64.c: Likewise.
4440         * dirent/scandirat64.c: Likewise.
4441         * sysdeps/wordsize-64/alphasort.c: File removed.
4442         * sysdeps/wordsize-64/alphasort64.c: File removed.
4443         * sysdeps/wordsize-64/scandir.c: File removed.
4444         * sysdeps/wordsize-64/scandir64.c: File removed.
4445         * sysdeps/wordsize-64/scandirat.c: File removed.
4446         * sysdeps/wordsize-64/scandirat64.c: File removed.
4447         * sysdeps/wordsize-64/versionsort.c: File removed.
4448         * sysdeps/wordsize-64/versionsort64.c: File removed.
4449         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4450         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4451         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4452         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4453         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4454         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4455         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4456         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4457
4458         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4459         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4460         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4461         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4462         [defined __arch64__ || defined __sparcv9]
4463         (__INO_T_MATCHES_INO64_T): New macro.
4464         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4465         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4466         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4467         * sysdeps/unix/sysv/linux/bits/dirent.h
4468         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4469         (_DIRENT_MATCHES_DIRENT64): New macro.
4470
4471         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4472         Define lockf64 as an alias.
4473         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4474         Define fseeko64 as an alias.
4475         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4476         Define ftello64 as an alias.
4477         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4478         Define _IO_fgetpos64 and fgetpos64 as aliases.
4479         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4480         Define _IO_fsetpos64 and fsetpos64 as aliases.
4481         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4482         Conditionalize body on this.
4483         * libio/fseeko64.c: Likewise.
4484         * libio/ftello64.c: Likewise.
4485         * libio/iofgetpos64.c: Likewise.
4486         * libio/iofsetpos64.c: Likewise.
4487         * sysdeps/wordsize-64/lockf.c: File removed.
4488         * sysdeps/wordsize-64/lockf64.c: File removed.
4489         * sysdeps/wordsize-64/fseeko.c: File removed.
4490         * sysdeps/wordsize-64/fseeko64.c: File removed.
4491         * sysdeps/wordsize-64/ftello.c: File removed.
4492         * sysdeps/wordsize-64/ftello64.c: File removed.
4493         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4494         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4495         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4496         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4497         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4498         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4499         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4500         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4501         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4502         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4503         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4504         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4505         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4506         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4507
4508         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4509         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4510         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4511         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4512         [defined __arch64__ || defined __sparcv9]
4513         (__OFF_T_MATCHES_OFF64_T): New macro.
4514         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4515         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4516         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4517         (__OFF_T_MATCHES_OFF64_T): New macro.
4518
4519 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4520
4521         * stdlib/secure-getenv.c (__secure_getenv): Replace
4522         GLIBC_2_16 with GLIBC_2_17.
4523
4524 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4525
4526         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4527         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4528
4529 2012-08-03  David S. Miller  <davem@davemloft.net>
4530
4531         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4532
4533 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4534
4535         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4536         Remove.
4537         (__ASSUME_CORRECT_SI_PID): Likewise.
4538         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4539         (__ASSUME_TMPFS_NAME): Likewise.
4540         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4541         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4542         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4543         (HAVE_AUX_SECURE): Make definition unconditional.
4544         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4545         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4546
4547 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4548
4549         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4550         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4551         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4552         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4553         __eloop_threshold instead of SYMLOOP_MAX.
4554
4555         * sysdeps/generic/eloop-threshold.h: New file.
4556         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4557         of MAXSYMLINKS.
4558         * elf/chroot_canon.c (chroot_canon): Likewise.
4559
4560 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4561
4562         [BZ #13717]
4563         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4564         Change to 2.6.0 everywhere.
4565         * sysdeps/unix/sysv/linux/configure: Regenerated.
4566         * sysdeps/unix/sysv/linux/kernel-features.h
4567         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4568         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4569         kernel versions.
4570         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4571         (__ASSUME_FUTEX_REQUEUE): Remove.
4572         (__ASSUME_STATFS64): Define unconditionally.
4573         (__ASSUME_AT_SECURE): Likewise.
4574         (__ASSUME_CORRECT_SI_PID): Likewise.
4575         (__ASSUME_TGKILL): Define without depending on kernel version for
4576         i386.
4577         (__ASSUME_UTIMES): Likewise.
4578         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4579         kernel version.
4580         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4581         (__ASSUME_TMPFS_NAME): Likewise.
4582         * README: Update reference to Linux kernel versions.
4583
4584 2012-08-02  Marek Polacek  <polacek@redhat.com>
4585
4586         [BZ# 14150]
4587         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4588         libc_cv_asm_type_prefix with %.
4589         * configure: Regenerated.
4590         * include/libc-symbols.h: Remove comment about
4591         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4592         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4593         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4594         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4595         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4596         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4597         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4598         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4599         * elf/tst-unique2mod1.c: Likewise.
4600         * elf/tst-unique1mod2.c: Likewise.
4601         * elf/tst-unique1mod1.c: Likewise.
4602         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4603         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4604         Replace ASM_TYPE_DIRECTIVE with .type.
4605         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4606         * sysdeps/i386/sysdep.h: Likewise.
4607         * sysdeps/x86_64/sysdep.h: Likewise.
4608         * sysdeps/sh/sysdep.h: Likewise.
4609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4610         Do not define ASM_TYPE_DIRECTIVE.
4611         * sysdeps/powerpc/sysdep.h: Likewise.
4612         * sysdeps/powerpc/powerpc32/sysdep.h:
4613         Replace ASM_TYPE_DIRECTIVE with .type.
4614         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4615         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4616         * sysdeps/i386/fpu/e_powf.S: Likewise.
4617         * sysdeps/i386/fpu/e_expl.S: Likewise.
4618         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4619         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4620         * sysdeps/i386/fpu/e_pow.S: Likewise.
4621         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4622         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4623         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4624         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4625         * sysdeps/i386/fpu/e_log2.S: Likewise.
4626         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4627         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4628         * sysdeps/i386/fpu/e_powl.S: Likewise.
4629         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4630         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4631         * sysdeps/i386/fpu/e_logl.S: Likewise.
4632         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4633         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4634         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4635         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4636         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4637         * sysdeps/i386/fpu/e_log.S: Likewise.
4638         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4639         * sysdeps/i386/fpu/e_logf.S: Likewise.
4640         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4641         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4642         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4643         * sysdeps/i386/fpu/e_log10.S: Likewise.
4644         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4645         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4646         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4647         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4648         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4649         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4650         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4651         * sysdeps/i386/i686/strtok.S: Likewise.
4652         * sysdeps/i386/i386-mcount.S: Likewise.
4653         * sysdeps/i386/strtok.S: Likewise.
4654         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4655         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4656         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4657         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4658         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4659         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4660         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4661         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4662         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4663         * sysdeps/x86_64/_mcount.S: Likewise.
4664         * sysdeps/x86_64/strtok.S: Likewise.
4665         * sysdeps/sh/_mcount.S: Likewise.
4666
4667 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4668
4669         * libio/iofopen.c: Include <fcntl.h>.
4670         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4671         (_IO_fopen64, fopen64): Define as aliases.
4672         * libio/iofopen64.c: Include <fcntl.h>.
4673         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4674         Conditionalize body on this.
4675         * sysdeps/wordsize-64/iofopen.c: File removed.
4676         * sysdeps/wordsize-64/iofopen64.c: File removed.
4677
4678 2012-08-01  Marek Polacek  <polacek@redhat.com>
4679
4680         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4681         Use dlfcn directly instead of a variable.
4682         (binfmt-subdir): Do not define.
4683         (dlfcn): Likewise.
4684
4685 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4686
4687         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4688         Remove all definitions.
4689         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4690         <kernel-features.h>.
4691         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4692         (miss_F_GETOWN_EX): Remove all definitions.
4693         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4694         macro definition.
4695         [!__ASSUME_FCNTL64]: Remove conditional code.
4696         [__ASSUME_FCNTL64]: Make code unconditional.
4697         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4698         <kernel-features.h>.
4699         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4700         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4701         (lockf64) [__NR_fcntl64]: Make code unconditional.
4702         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4703
4704         * sysdeps/unix/sysv/linux/kernel-features.h
4705         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4706         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4707         Make code unconditional.
4708         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4709         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4711         [__NR_vfork]: Make code unconditional.
4712         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4713         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4715         [__NR_vfork]: Make code unconditional.
4716         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4717         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4718
4719 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4720
4721         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4722         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4723
4724         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4725         Define mkstemp64 as an alias.
4726         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4727         Define mkstemps64 as an alias.
4728         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4729         Define mkostemp64 as an alias.
4730         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4731         Define mkostemps64 as an alias.
4732         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4733         Conditionalize body on this.
4734         * misc/mkostemp64.c: Likewise.
4735         * misc/mkostemps64.c: Likewise.
4736         * misc/mkstemps64.c: Likewise.
4737         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4738         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4739         * sysdeps/wordsize-64/mkostemp.c: File removed.
4740         * sysdeps/wordsize-64/mkstemp.c: File removed.
4741         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4742         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4743         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4744         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4745
4746         [BZ #14138]
4747         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4748         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4749         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4750         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4751
4752         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4753         compat_symbol macros from <shlib-compat.h> rather than the underlying
4754         default_symbol_version and symbol_version macros, so that DEFAULT
4755         lines in shlib-versions are respected.
4756         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4757
4758 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4759
4760         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4761         Declare with warn_unused_result.
4762         (setgid, setregid, setegid, setresgid): Likewise.
4763         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4764         Likewise.
4765         * WUR-REPORT: Remove set*id functions.
4766
4767 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4768
4769         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4770
4771 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4772
4773         * include/sys/socket.h (__libc_accept, __libc_accept4):
4774         Add attribute_hidden.
4775         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4776
4777         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4778         use of PTR_MANGLE.
4779         * inet/getnetgrent_r.c (setup): Likewise.
4780
4781         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4782
4783 2012-07-31  David S. Miller  <davem@davemloft.net>
4784
4785         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4786
4787 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4788
4789         [BZ #13629]
4790         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4791         value between 1.0 and 2.0 and smaller part has absolute value less
4792         than 1.0.
4793         * math/s_clog10.c (__clog10): Likewise.
4794         * math/s_clog10f.c (__clog10f): Likewise.
4795         * math/s_clog10l.c (__clog10l): Likewise.
4796         * math/s_clogf.c (__clogf): Likewise.
4797         * math/s_clogl.c (__clogl): Likewise.
4798         * math/libm-test.inc (clog_test): Add more tests.
4799         (clog10_test): Likewise.
4800         * sysdeps/i386/fpu/libm-test-ulps: Update.
4801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4802
4803 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4804
4805         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4806         Exit with zero in case no suitable GID is found, and write a
4807         message to standard error.
4808
4809 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4810
4811         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4812         rather than to 1.
4813         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4814         (MAXPATHLEN): Removed.
4815         (NOGROUP, NODEV): New macros.
4816         (setbit, clrbit, isset, isclr): New macros.
4817         (howmany, roundup, powerof2): New macros.
4818         (DEV_BSIZE): New macro.
4819
4820         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4821         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4822
4823         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4824         definition on [!__NO_LONG_DOUBLE_MATH].
4825
4826         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4827         PTR_MANGLE and PTR_DEMANGLE.
4828
4829         * socket/accept4.c (accept4): Rename to __libc_accept4.
4830         Define accept4 as a weak alias.
4831
4832         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4833         on [_DIRENT_HAVE_D_TYPE].
4834         * io/ftw.c (ftw_dir): Likewise.
4835
4836         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4837
4838         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4839
4840         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4841         Use the BSD numbers rather than the arbitrary ones we had.
4842         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4843         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4844         (SIGXCPU, SIGXFSZ): New macros.
4845         (_NSIG): Now 32.
4846
4847         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4848         initializer on [_LIBC_REENTRANT].
4849
4850         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4851         definitions inside [_POSIX_MAPPED_FILES].
4852
4853         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4854
4855         * dirent/opendir.c: Include <fcntl.h>.
4856
4857         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4858         (__libc_getspecific): Likewise.
4859         (__libc_key_create): Likewise.
4860
4861         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4862         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4863         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4864         (tmpfile64): Define as alias.
4865         * sysdeps/wordsize-64/tmpfile.c: File removed.
4866         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4867         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4868         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4869
4870         * stdio-common/vfscanf.c: Include <stdbool.h>.
4871         * nss/makedb.c: Likewise.
4872         * stdio-common/_i18n_number.h: Likewise.
4873         * argp/argp-help.c: Likewise.
4874         * posix/wordexp.c: Likewise.
4875         * sysdeps/posix/spawni.c: Likewise.
4876         * nss/nss_files/files-initgroups.c: Likewise.
4877         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4878         * nss/nss_files/files-initgroups.c: Likewise.
4879         * nss/nss_db/db-netgrp.c: Likewise.
4880         * nss/nss_db/db-initgroups.c: Likewise.
4881         * io/fchmodat.c: Include <sys/stat.h>.
4882
4883         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4884         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4885
4886         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4887         [HAVE_MMAP].
4888
4889         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4890         Add multiple inclusion protection.
4891
4892 2012-07-27  David S. Miller  <davem@davemloft.net>
4893
4894         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4895
4896 2012-07-27  Gary Benson  <gbenson@redhat.com>
4897
4898         [BZ #14298]
4899         * elf/rtld.c: Include <stap-probe.h>.
4900         (dl_main): Added static probes "init_start" and "init_complete".
4901         * elf/dl-load.c: Include <stap-probe.h>.
4902         (lose): Take new parameter "nsid".
4903         Added static probe "map_failed".
4904         (_dl_map_object_from_fd): Pass namespace id to lose.
4905         Added static probe "map_start".
4906         (open_verify): Pass namespace id to lose.
4907         * elf/dl-open.c: Include <stap-probe.h>.
4908         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4909         and "reloc_complete".
4910         * elf/dl-close.c: Include <stap-probe.h>.
4911         (_dl_close_worker): Added static probes "unmap_start" and
4912         "unmap_complete".
4913         * elf/rtld-debugger-interface.txt: New file documenting the above.
4914
4915 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4916
4917         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4918         rather than a string variable.
4919         * sunrpc/rpc_main.c (h_output): Likewise.
4920         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4921
4922 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4923
4924         * inet/check_native.c: New file.
4925
4926 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4927
4928         [BZ #13629]
4929         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4930         if larger part has absolute value 1.0.
4931         * math/s_clog10.c (__clog10): Likewise.
4932         * math/s_clog10f.c (__clog10f): Likewise.
4933         * math/s_clog10l.c (__clog10l): Likewise.
4934         * math/s_clogf.c (__clogf): Likewise.
4935         * math/s_clogl.c (__clogl): Likewise.
4936         * math/libm-test.inc (clog_test): Add more tests.
4937         (clog10_test): Likewise.
4938         * sysdeps/i386/fpu/libm-test-ulps: Update.
4939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4940
4941         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4942         (pltexit): Likewise.
4943         (La_regs): Likewise.
4944         (La_retval): Likewise.
4945         (int_retval): Likewise.
4946         Update #error for removed macros to refer only to definitions in
4947         tst-audit.h.
4948         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4949         macro.
4950         (pltexit): Likewise.
4951         (La_regs): Likewise.
4952         (La_retval): Likewise.
4953         (int_retval): Likewise.
4954         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4955         macro.
4956         (pltexit): Likewise.
4957         (La_regs): Likewise.
4958         (La_retval): Likewise.
4959         (int_retval): Likewise.
4960         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4961         macro.
4962         (pltexit): Likewise.
4963         (La_regs): Likewise.
4964         (La_retval): Likewise.
4965         (int_retval): Likewise.
4966         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4967         macro.
4968         (pltexit): Likewise.
4969         (La_regs): Likewise.
4970         (La_retval): Likewise.
4971         (int_retval): Likewise.
4972         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4973         macro.
4974         (pltexit): Likewise.
4975         (La_regs): Likewise.
4976         (La_retval): Likewise.
4977         (int_retval): Likewise.
4978         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4979         macro.
4980         (pltexit): Likewise.
4981         (La_regs): Likewise.
4982         (La_retval): Likewise.
4983         (int_retval): Likewise.
4984         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4985         macro definitions in tst-audit.h.
4986         * sysdeps/i386/tst-audit.h: New file.
4987         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4988         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4989         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4990         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4991         * sysdeps/sh/tst-audit.h: Likewise.
4992         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4993         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4994         * sysdeps/x86_64/tst-audit.h: Likewise.
4995
4996 2012-07-26  Andreas Jaeger  <aj@suse.de>
4997
4998         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
4999         ptrace.
5000
5001         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
5002         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
5003         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
5004         PTRACE_O_MASK.
5005         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
5006         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
5007         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
5008
5009         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
5010         value.
5011
5012         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
5013         _sigsys.
5014         (si_call_addr, si_syscall, si_arch): Define new macro.
5015         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
5016         _sigsys.
5017         (si_call_addr, si_syscall, si_arch): Define new marcro.
5018         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
5019         _sigsys.
5020         (si_call_addr, si_syscall, si_arch): Define new macro.
5021         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
5022         _sigsys.
5023         (si_call_addr, si_syscall, si_arch): Define new macro.
5024
5025 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5026
5027         [BZ #13717]
5028         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5029         Change to 2.4.21 where previously 2.4.1.
5030         * sysdeps/unix/sysv/linux/configure: Regenerated.
5031         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
5032         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
5033         Linux kernel version.
5034         (__ASSUME_STD_AUXV): Remove.
5035         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
5036         kernel version.
5037         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
5038         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
5039         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
5040         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
5041         (__ASSUME_NETLINK_SUPPORT): Likewise.
5042         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
5043         (__no_netlink_support): Remove conditional definition.
5044         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
5045         Remove.
5046         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5047         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
5048         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
5049         (if_nameindex_ioctl): Remove.
5050         (if_nameindex_netlink): Do not handle __no_netlink_support.
5051         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5052         code.
5053         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
5054         Remove conditional code.
5055         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5056         code.
5057         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
5058         unconditional.
5059         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5060         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
5061         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
5062         Remove.
5063         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5064         [!__ASSUME_STD_AUXV]: Remove conditional code.
5065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
5066         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
5067         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
5068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
5069         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
5070         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5071         code.
5072         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5074         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5075         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5076         conditional code.
5077         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5079         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5080         code.
5081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5082         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5083         conditional code.
5084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5085         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5086         code unconditional.
5087         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5088         conditional code.
5089         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5090         unconditional.
5091         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5092         conditional code.
5093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5094         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5095         unconditional.
5096         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5097         conditional code.
5098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5099         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5100         code unconditional.
5101         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5102         conditional code.
5103         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5104         unconditional.
5105         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5106         conditional code.
5107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5108         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5109         code unconditional.
5110         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5111         conditional code.
5112         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5113         unconditional.
5114         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5115         conditional code.
5116
5117 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5118
5119         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5120         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5121         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5122         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5123         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5124         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5125         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5126         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5127         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5128         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5129         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5130         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5131         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5132         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5133         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5134         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5135         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5136         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5137         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5138         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5139         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5140         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5141         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5142
5143 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5144
5145         * Versions.def: Add GLIBC_2.17.
5146         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5147         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5148         Introduce __libc_secure_getenv.
5149         * stdlib/Versions (2.17): Add secure_getenv
5150         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5151         * stdlib/secure-getenv.c: Rename __secure_getenv to
5152         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5153         symbol __secure_getenv for GLIBC_2.0.
5154         * stdlib/tst-secure-getenv.c: New.
5155         * stdlib/Makefile (tests): Add testcase.
5156         * manual/startup.texi (Environment Access): Document
5157         secure_getenv.
5158         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5159         __libc_secure_getenv.
5160         * inet/ruserpass.c (ruserpass): Likewise.
5161         * malloc/mtrace.c (mtrace): Likewise.
5162         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5163         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5164         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5165         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5166         HAVE_SECURE_GETENV.
5167         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5168         __secure_getenv to __libc_secure_getenv.
5169         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5171         Likewise.
5172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5173         Likewise.
5174         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5175         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5176         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5177         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5178         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5179         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5180         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5181
5182 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5183
5184         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5185         (struct La_i86_retval): Likewise.
5186         (struct La_x86_64_regs): Likewise.
5187         (struct La_x86_64_retval): Likewise.
5188         (struct La_x32_regs): Likewise.
5189         (struct La_x32_retval): Likewise.
5190         (struct La_ppc32_regs): Likewise.
5191         (struct La_ppc32_retval): Likewise.
5192         (struct La_ppc64_regs): Likewise.
5193         (struct La_ppc64_retval): Likewise.
5194         (struct La_sh_regs): Likewise.
5195         (struct La_sh_retval): Likewise.
5196         (struct La_s390_32_regs): Likewise.
5197         (struct La_s390_32_retval): Likewise.
5198         (struct La_s390_64_regs): Likewise.
5199         (struct La_s390_64_retval): Likewise.
5200         (struct La_sparc32_regs): Likewise.
5201         (struct La_sparc32_retval): Likewise.
5202         (struct La_sparc64_regs): Likewise.
5203         (struct La_sparc64_retval): Likewise.
5204         (struct audit_ifaces): Remove architecture-specific pltenter and
5205         pltexit members.
5206         * sysdeps/i386/ldsodefs.h: New file.
5207         * sysdeps/powerpc/ldsodefs.h: Likewise.
5208         * sysdeps/s390/ldsodefs.h: Likewise.
5209         * sysdeps/sh/ldsodefs.h: Likewise.
5210         * sysdeps/sparc/ldsodefs.h: Likewise.
5211         * sysdeps/x86_64/ldsodefs.h: Likewise.
5212
5213 2012-07-25  Marek Polacek  <polacek@redhat.com>
5214
5215         [BZ #6808]
5216         * math/libm-test.inc (yn_test): Add another test.
5217         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5218         to ERANGE when the result is +-Inf.
5219         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5220         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5221         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5222         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5223
5224 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5225
5226         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5227         equal to 0.
5228         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5229         clock_t.
5230         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5231
5232 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5233
5234         * configure.in <sysdeps resolving>: Correct printing
5235         Implies_before.
5236         * configure: Regenerate.
5237
5238 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5239
5240         * math/w_ilogb.c: Include <limits.h>.
5241         * math/w_ilogbl.c: Likewise.
5242
5243 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5244
5245         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5246         va_copy.  Document allowing for unavailable va_copy only as
5247         pre-C99 compatibility.
5248         * manual/string.texi (Copying and Concatenation): Use va_copy
5249         instead of __va_copy in concat example.
5250
5251 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5252
5253         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5254         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5255         it if not null.
5256
5257         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5258         with O_NOLINK passed to __file_name_lookup.
5259
5260         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5261         with O_NOLINK passed to __file_name_lookup.
5262
5263         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5264         negative N or less than NGIDS.
5265
5266         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5267         type to string_t.  Set ERANGE as errno and return it if NAME is not big
5268         enough.  Use memcpy instead of strncpy.
5269
5270 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5271
5272         * elf/Makefile (check-data): Remove.
5273         (localplt.data): New vpath directive.
5274         ($(objpfx)check-localplt.out): Use localplt.data from vpath
5275         instead of $(check-data).
5276         * scripts/data/localplt-generic.data: Move to ...
5277         * sysdeps/generic/localplt.data: ... here.
5278         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5279         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5280         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5282         ... here.
5283         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5285         ... here.
5286         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5287         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5288         ... here.
5289         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5290         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5291         ... here.
5292         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5293         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5294         ... here.
5295         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5296         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5297         ... here.
5298
5299 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5300
5301         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5302         PPC32 and PPC64 files.
5303         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5304         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5305
5306 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5307
5308         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5309         __makecontext_ret to ...
5310         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5311         ... here and call exit if uc_link is NULL.  New file.
5312         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5313         __makecontext_ret.S.
5314         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5315         __makecontext_ret to ...
5316         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5317         ... here and call exit if uc_link is NULL.  New file.
5318         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5319         __makecontext_ret.S.
5320
5321 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5322
5323         * elf/elf.h (R_390_IRELATIVE): New definition.
5324         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5325         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5326         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5327         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5328         (elf_machine_lazy_rel): Likewise.
5329         * sysdeps/s390/dl-irel.h: New file.
5330         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5331         * sysdeps/s390/s390-64/memset.S: New asm code.
5332         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5333         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5334         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5335         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5336         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5337         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5338         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5339         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5340         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5341         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5342         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5343         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5344         * sysdeps/s390/s390-32/memset.S: New asm code.
5345         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5346
5347 2012-07-17  Marek Polacek  <polacek@redhat.com>
5348
5349         [BZ #14349]
5350         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5351         * sysdeps/s390/s390-64/configure.in: Likewise.
5352         * sysdeps/sparc/configure.in: Likewise.
5353         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5354         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5355         * sysdeps/i386/configure.in: Likewise.
5356         * sysdeps/x86_64/configure.in: Likewise.
5357         * sysdeps/sh/configure.in: Likewise.
5358         * sysdeps/s390/s390-32/configure: Regenerated.
5359         * sysdeps/s390/s390-64/configure: Likewise.
5360         * sysdeps/x86_64/configure: Likewise.
5361         * sysdeps/sh/configure: Likewise.
5362         * sysdeps/powerpc/powerpc64/configure: Likewise.
5363         * sysdeps/powerpc/powerpc32/configure: Likewise.
5364         * sysdeps/sparc/configure: Likwise.
5365         * sysdeps/i386/configure: Likewise.
5366
5367         * elf/dl-open.c: Comment fixes.
5368
5369 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5370
5371         * Makefile [CXX] (check-data): Remove.
5372         [CXX] (c++-types.data): New vpath directive.
5373         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5374         vpath.  Do not allow for C++ type data being missing.
5375         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5376         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5377         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5378         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5379         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5380         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5381         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5383         ... here.
5384         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5386         ... here.
5387         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5388         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5389         ... here.
5390         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5391         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5392         ... here.
5393         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5394         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5395         ... here.
5396         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5397         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5398         ... here.
5399         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5400         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5401         ... here.
5402         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5403         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5404
5405         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5406         definitions to architecture-specific files.
5407         (TLS_IE): Likewise.
5408         (TLS_LD): Likewise.
5409         (TLS_GD): Likewise.
5410         * sysdeps/i386/tls-macros.h: New file.
5411         * sysdeps/powerpc/tls-macros.h: Likewise.
5412         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5413         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5414         * sysdeps/sh/tls-macros.h: Likewise.
5415         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5416         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5417         * sysdeps/x86_64/tls-macros.h: Likewise.
5418
5419 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5420
5421         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5422         zero value for regular exit case.
5423
5424         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5425         (__start_context): Preserve zero value for regular exit case.
5426
5427 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5428             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5429
5430         * manual/setjmp.texi (setcontext): Clarify normal process
5431         termination when uc_link is the null pointer.
5432         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5433         exit call.
5434
5435 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5436
5437         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5438         preprocessor.  Test for each exception mask separately.
5439
5440 2012-07-16  Andreas Jaeger  <aj@suse.de>
5441
5442         * po/ru.po: Update from translation team.
5443
5444 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5445
5446         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5447         equal to 0.
5448         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5449         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5450         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5451         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5452         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5453
5454 2012-07-13  Andreas Jaeger  <aj@suse.de>
5455
5456         * po/fr.po: Update from translation team.
5457
5458 2012-07-12  Marek Polacek  <polacek@redhat.com>
5459
5460         [BZ #14173]
5461         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5462         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5463         loop condition.
5464
5465 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5466
5467         [BZ #13717]
5468         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5469         Change to 2.4.1 where previously 2.4.0.
5470         * sysdeps/unix/sysv/linux/configure: Regenerated.
5471         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5472         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5473         version.
5474         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5475         (__ASSUME_AT_CLKTCK): Remove.
5476         (__ASSUME_AT_PAGESIZE): Likewise.
5477         (__ASSUME_AT_XID): Likewise.
5478         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5479         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5480         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5481         unconditionally.
5482         (HAVE_AUX_PAGESIZE): Likewise.
5483         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5484         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5485         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5486
5487 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5488
5489         [BZ #14307]
5490         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5491         the temporary buffer used to invoke __gethostbyname2_r,
5492         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5493         host_data / struct gaih_addrtuple.
5494         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5495         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5496         header file nss/nsswitch.h.
5497         * nss/nsswitch.h (global scope): Add definition of implementation
5498         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5499         resolv/nss_dns/dns-host.c).
5500
5501 2012-07-11  Andreas Jaeger  <aj@suse.de>
5502
5503         * po/fr.po: Update from translation team.
5504
5505         * po/sv.po: Update from translation team
5506         * po/fr.po: Another update from translation team.
5507
5508 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5509
5510         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5511         for subnormals or multiply small sinh result by itself.
5512         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5513         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5514
5515 2012-07-11  David S. Miller  <davem@davemloft.net>
5516
5517         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5518
5519 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5520
5521         [BZ #14347]
5522         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5523         (INTERNAL_MARK): Shift it here.
5524
5525 2012-07-10  Marek Polacek  <polacek@redhat.com>
5526
5527         [BZ #14151]
5528         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5529         libc_cv_asm_global_directive with .globl.
5530         * configure: Regenerated.
5531         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5532         with .globl.
5533         * sysdeps/i386/configure: Regenerated.
5534         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5535         with .globl.
5536         * sysdeps/x86_64/configure: Regenerated.
5537         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5538         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5539         * elf/tst-unique2mod2.c: Likewise.
5540         * elf/tst-unique2mod1.c: Likewise.
5541         * elf/tst-unique1mod2.c: Likewise.
5542         * elf/tst-unique1mod1.c: Likewise.
5543         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5544         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5545         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5546         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5547         * sysdeps/mach/sysdep.h: Likewise.
5548         * sysdeps/i386/sysdep.h: Likewise.
5549         * sysdeps/i386/i386-mcount.S: Likewise.
5550         * sysdeps/x86_64/_mcount.S: Likewise.
5551         * sysdeps/x86_64/sysdep.h: Likewise.
5552         * sysdeps/sh/_mcount.S: Likewise.
5553         * sysdeps/sh/sysdep.h: Likewise.
5554         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5555         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5556         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5557         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5558         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5559         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5560         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5561         * locale/localeinfo.h: Likewise.
5562         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5563         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5564
5565 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5566
5567         [BZ #14336]
5568         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5569         system".
5570         * manual/message.texi (The Uniforum approach): Likewise.
5571         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5572         (glibc iconv Implementation): Likewise.
5573
5574 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5575
5576         [BZ #14337]
5577         * math/s_clog.c (__clog): Avoid scaling a value down where that
5578         could result in underflow.
5579         * math/s_clog10.c (__clog10): Likewise.
5580         * math/s_clog10f.c (__clog10f): Likewise.
5581         * math/s_clog10l.c (__clog10l): Likewise.
5582         * math/s_clogf.c (__clogf): Likewise.
5583         * math/s_clogl.c (__clogl): Likewise.
5584         * math/libm-test.inc (clog_test): Add more tests.
5585         (clog10_test): Likewise.
5586         * sysdeps/i386/fpu/libm-test-ulps: Update.
5587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5588
5589 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5590
5591         [BZ #14283]
5592         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5593         by 7 not 8 to examine high bit of fractional part.
5594
5595         [BZ #14042]
5596         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5597         for call to __mcount_internal.
5598         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5599         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5600         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5601
5602 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5603
5604         [BZ #14154]
5605         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5606         approximation for values within 0x1p-13f of an odd multiple of
5607         pi/4.
5608         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5609         exception.  Add more tests.
5610         * sysdeps/i386/fpu/libm-test-ulps: Update.
5611
5612         [BZ #6778]
5613         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5614         inputs and return -1 for them.  Do not check for +Inf in case not
5615         reachable for +Inf.
5616         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5617         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5618         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5619         and return -1 for them.  Do not check for +Inf in case not
5620         reachable for +Inf.
5621         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5622         define.
5623         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5624         and return -1 for them.  Do not check for +Inf in case not
5625         reachable for +Inf.
5626         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5627         spurious underflow.
5628         * sysdeps/i386/fpu/libm-test-ulps: Update.
5629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5630
5631 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5632
5633         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5634
5635 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5636
5637         [BZ #14157]
5638         [BZ #14331]
5639         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5640         could result in spurious underflow.  Scale down values above
5641         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5642         * math/s_csqrtf.c (__csqrtf): Likewise.
5643         * math/s_csqrtl.c (__csqrtl): Likewise.
5644         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5645         spurious underflow.
5646         * sysdeps/i386/fpu/libm-test-ulps: Update.
5647         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5648
5649 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5650
5651         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5652         xopen-msg.sed.
5653         * catgets/xopen-msg.awk: New file.
5654         * catgets/xopen-msg.sed: Removed.
5655
5656         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5657         po2text.sed.
5658         * intl/po2test.awk: New file.
5659         * intl/po2test.sed: Removed.
5660
5661 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5662
5663         [BZ #14328]
5664         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5665         or multiply small sinh result by itself.
5666         * math/s_ctanf.c (__ctanf): Likewise.
5667         * math/s_ctanh.c (__ctanh): Likewise.
5668         * math/s_ctanhf.c (__ctanhf): Likewise.
5669         * math/s_ctanhl.c (__ctanhl): Likewise.
5670         * math/s_ctanl.c (__ctanl): Likewise.
5671         * math/libm-test.inc (ctan_test_tonearest): New function.
5672         (ctan_test_towardzero): Likewise.
5673         (ctan_test_downward): Likewise.
5674         (ctan_test_upward): Likewise.
5675         (ctanh_test_tonearest): Likewise.
5676         (ctanh_test_towardzero): Likewise.
5677         (ctanh_test_downward): Likewise.
5678         (ctanh_test_upward): Likewise.
5679         (main): Call these new functions.
5680         * sysdeps/i386/fpu/libm-test-ulps: Update.
5681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5682
5683 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5684
5685         * .gitignore: Delete /ports entry.
5686
5687 2012-07-03  Andreas Jaeger  <aj@suse.de>
5688
5689         * po/bg.po: Update from translation team.
5690         * po/cs.po: Likewise.
5691         * po/de.po: Likewise.
5692         * po/hr.po: Likewise.
5693         * po/nl.pl: Likewise.
5694         * po/pl.po: Likewise.
5695         * po/vi.po: Likewise.
5696
5697 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5698
5699         * Makeconfig [!+link] (+link-before-libc): New variable.
5700         [!+link] (+link-after-libc): Likewise.
5701         [!+link] (+link-tests): Likewise.
5702         [!+link] (+link): Define in terms of $(+link-before-libc) and
5703         $(+link-after-libc).
5704         [!+link-static] (+link-static-before-libc): New variable.
5705         [!+link-static] (+link-static-after-libc): Likewise.
5706         [!+link-static] (+link-static-tests): Likewise.
5707         [!+link-static] (+link-static): Define in terms of
5708         $(+link-static-before-libc) and $(+link-static-after-libc).
5709         [build-shared] (link-libc-before-gnulib): New variable.
5710         [build-shared] (link-libc-tests): Likewise.
5711         [build-shared] (link-libc): Define in terms of
5712         $(link-libc-before-gnulib).
5713         [!build-shared] (link-libc-tests): New variable.
5714         (link-libc-static-tests): New variable.
5715         [!gnulib] (gnulib-arch): New variable.
5716         [!gnulib] (gnulib-tests): Likewise.
5717         [!gnulib] (static-gnulib-arch): Likewise.
5718         [!gnulib] (static-gnulib-tests): Likewise.
5719         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5720         Define with "=" instead of ":=".
5721         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5722         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5723         * Rules (binaries-all-notests): New variable.
5724         (binaries-all-tests): Likewise.
5725         (binaries-static-notests): Likewise.
5726         (binaries-static-tests): Likewise.
5727         (binaries-all): Define using $(binaries-all-notests) and
5728         $(binaries-all-tests).
5729         (binaries-static): Define using $(binaries-static-notests) and
5730         $(binaries-static-tests).
5731         (binaries-shared-tests): New variable.
5732         (binaries-shared-notests): Likewise.
5733         (binaries-shared): Remove variable.
5734         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5735         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5736         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5737         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5738         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5739         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5740         * elf/Makefile (sln-modules): New variable.
5741         (extra-objs): Add $(sln-modules:=.o).
5742         (ldconfig-modules): Add static-stubs.
5743         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5744         * elf/static-stubs.c: New file.
5745
5746         [BZ #14283]
5747         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5748         by 7 not 8 to examine high bit of fractional part.  Use volatile
5749         variables when splitting into final array of floats if
5750         __FLT_EVAL_METHOD__ != 0.
5751         * math/libm-test.inc (cos_test): Add another test.
5752         (sin_test): Likewise.
5753         * sysdeps/i386/fpu/libm-test-ulps: Update.
5754
5755         [BZ #14273]
5756         * math/libm-test.inc (cosh_test): Add more tests.
5757
5758         * version.h (RELEASE): Set to "development".
5759         (VERSION): Set to "2.16.90".
5760
5761 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5762
5763         * NEWS: Update copyright. Remove last-updated date.
5764         Mention math library bug fixes and timezone data changes.
5765         * README: Mention GNU/Hurd, x32, and HPPA support status.
5766
5767 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5768
5769         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5770
5771 2012-06-27  Andreas Jaeger  <aj@suse.de>
5772
5773         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5774
5775 2012-06-25  Andreas Jaeger  <aj@suse.de>
5776
5777         * sysdeps/s390/fpu/libm-test-ulps: Update.
5778
5779 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5780             Thomas Schwinge  <thomas@codesourcery.com>
5781
5782         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5783         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5784         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5785         fanotify_mark.
5786
5787 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5788
5789         * sysdeps/mach/start.c: Remove file.
5790         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5791         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5792         * sysdeps/sh/init-first.c: Likewise.
5793
5794         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5795         registers for frame unwinding purposes, add CFI directives.
5796         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5797         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5798         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5799         Likewise.
5800
5801         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5802         __fortify_fail returning.
5803         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5804
5805         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5806         sysdeps/sh/____longjmp_chk.S.
5807         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5808         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5809         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5810         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5811
5812         * sysdeps/sh/abort-instr.h: New file.
5813         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5814         process in case exit returns.
5815
5816         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5817         initialize the GOT register before use.
5818
5819         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5820         calculation of ARGC > 4.
5821
5822         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5823         meaningful names to some local labels.
5824
5825 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5826             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5827
5828         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5829         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5830         (__arch_compare_and_exchange_val_16_acq): Likewise.
5831         (__arch_compare_and_exchange_val_32_acq): Likewise.
5832         (atomic_exchange_and_add): Fix gUSA sequence.
5833         (atomic_add): Likewise.
5834         (atomic_add_negative): Likewise.
5835         (atomic_add_zero): Likewise.
5836         (atomic_bit_test_set): Likewise.
5837
5838 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5839
5840         [BZ #13579]
5841         * include/link.h (struct link_map): Add l_free_initfini.
5842         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5843         l_initfini.
5844         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5845         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5846         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5847         set.
5848
5849 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5850
5851         * configure.in: Use AC_LANG_SOURCE.
5852         * configure: Regenerate.
5853
5854 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5855
5856         * configure.in (libc_cv_localstatedir): New substituted variable.
5857         * configure: Regenerated.
5858         * config.make.in (localstatedir): New variable, substituted from
5859         libc_cv_localstatedir.
5860         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5861         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5862         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5863         * sysdeps/gnu/configure: Regenerated.
5864
5865 2012-06-21  Jeff Law  <law@redhat.com>
5866
5867         [BZ #14277]
5868         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5869         free.  Simplify list management for _LIBC case.
5870
5871 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5872
5873         [BZ #14273]
5874         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5875         Clear sign bit of 64-bit integer value before comparing against
5876         overflow value.
5877
5878         * sysdeps/mach/configure: Regenerated.
5879
5880 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5881
5882         [BZ #14278]
5883         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5884
5885 2012-06-21  Jeff Law  <law@redhat.com>
5886
5887         [BZ #13882]
5888         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5889         uint16_t for elements in the "seen" array to avoid char overflows.
5890         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5891         * elf/dl-open.c (dl_open_worker): Likewise.
5892
5893 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5894
5895         * scripts/list-sources.sh: Scan PORTS for translations.
5896         * po/libc.pot: Regenerated.
5897
5898 2012-06-21  Andreas Jaeger  <aj@suse.de>
5899
5900         [BZ #12194]
5901         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5902         warning.
5903         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5904         * bits/byteswap-16.h (__bswap_16): Likewise.
5905         * bits/byteswap.h (__bswap_constant_16): Likewise.
5906
5907 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5908
5909         [BZ #14117]
5910         * sysdeps/i386/fpu_control.h: Removed.
5911         * sysdeps/x86_64/fpu_control.h: Moved to ...
5912         * sysdeps/x86/fpu_control.h: Here.
5913
5914         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5915         (_FPU_SETCW): Likewise.
5916
5917 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5918
5919         [BZ #14117]
5920         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5921         * sysdeps/x86/fpu/bits/mathinline.h: This.
5922         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5923
5924         [BZ #14050]
5925         [BZ #14117]
5926         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5927         functions if __x86_64__ is defined.
5928
5929 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5930
5931         * string/endian.h: Add !__ASSEMBLER__ condition for including
5932         conversion interfaces.
5933
5934 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5935
5936         [BZ #14241]
5937         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5938         of ABS(x) in calculating zero to negative powers other than odd
5939         integers.
5940         * math/libm-test.inc (pow_test): Add more tests.
5941
5942 2012-06-15  Andreas Jaeger  <aj@suse.de>
5943
5944         * manual/contrib.texi (Contributors): Update entry of Liubov
5945         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5946         Machado Filho.
5947
5948 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5949
5950         * string/string.h: Add __wur to GNU version of strerror_r.
5951
5952 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5953
5954         [BZ #14229]
5955         * string/Makefile (tests): Add tst-strtok_r.
5956         * string/tst-strtok_r.c: New file.
5957         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5958         RAX_LP/RDX_LP on SAVE_PTR.
5959
5960 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5961
5962         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5963
5964 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5965
5966         * libm_test.inc (csqrt_test): Allow more spurious underflow
5967         exceptions.
5968         (j0_test): Likewise.
5969         (j1_test): Likewise.
5970         (y0_test): Likewise.
5971         (y1_test): Likewise.
5972
5973 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5974
5975         * po/Makefile (libc.pot): Use UTF-8 charset.
5976
5977 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5978
5979         [BZ #14210]
5980         Suppress sign-conversion warning from FD_SET.
5981         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5982         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5983         not unsigned long int.
5984         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5985
5986 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5987
5988         [BZ #14050]
5989         [BZ #14117]
5990         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5991         __extern_always_inline instead of __extern_inline.
5992         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5993         (__signbit): Likewise.
5994         (__signbitl): Support C++ namespace.
5995         (lrintf): New inline function.
5996         (lrint): Likewise.
5997         (llrintf): Likewise.
5998         (llrint): Likewise.
5999         (fmaxf): Likewise.
6000         (fmax): Likewise.
6001         (fminf): Likewise.
6002         (fmin): Likewise.
6003         (rint): Likewise.
6004         (rintf): Likewise.
6005         (ceil): Likewise.
6006         (ceilf): Likewise.
6007         (floor): Likewise.
6008         (floorf): Likewise.
6009         (nearbyint): Likewise.
6010         (nearbyintf): Likewise.
6011
6012 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
6013
6014         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
6015         non-default versions.
6016
6017 2012-06-11  Roland McGrath  <roland@hack.frob.com>
6018
6019         [BZ #14218]
6020         * manual/argp.texi (Argp): Reword argp_parse description slightly.
6021
6022 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
6023
6024         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
6025         (FE_UPWARD, FE_DOWNWARD): Don't define.
6026         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
6027         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6028
6029         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
6030         reading it.
6031         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6032         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6033
6034 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6035
6036         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6037         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
6038         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
6039         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
6040
6041 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
6042
6043         [BZ #14117]
6044         * sysdeps/i386/fpu/bits/fenv.h: Removed.
6045         * sysdeps/i386/fpu/Implies: New file.
6046         * sysdeps/x86_64/fpu/Implies: Likewise.
6047         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
6048         * sysdeps/x86/fpu/bits/fenv.h: This.
6049
6050         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
6051         __SSE_MATH__.
6052
6053 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6054
6055         [BZ #14134]
6056         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
6057         character 0xffff that matches the last element of the
6058         conversion table.
6059
6060 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6061
6062         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
6063         fmodl commit.
6064
6065 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6066
6067         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
6068         values higher than 25.6283.
6069
6070 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6071
6072         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
6073         subnormal exponent extraction and add some __builtin_expect.
6074         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6075         Fix for subnormal mantissa calculation.
6076
6077 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
6078
6079         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6080         cpu2 is -1 and errno is not ENOSYS.
6081
6082 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6083
6084         [BZ #14117]
6085         * sysdeps/i386/i486/bits/string.h: Renamed to ...
6086         * sysdeps/x86/bits/string.h: This.
6087         * sysdeps/x86_64/bits/string.h: Removed.
6088
6089         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6090         if not compiling for x86-64, but compiling for >= i486.
6091
6092         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6093         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6094
6095         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6096         New macro from Linux kernel 3.4.0.
6097         (FP_XSTATE_MAGIC2): Likewise.
6098         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6099         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6100         (struct _fpx_sw_bytes): New struct.
6101         (struct _xsave_hdr): Likewise.
6102         (struct _ymmh_state): Likewise.
6103         (struct _xstate): Likewise.
6104
6105         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6106         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6107         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6108         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6109         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6110         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6111
6112         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6113         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6114         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6115         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6116         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6117         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6118
6119 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6120
6121         [BZ #13743]
6122         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6123         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6124         (sysdep_headers): Include sys/platform/ppc.h.
6125         * sysdeps/powerpc/test-gettimebase.c: Test for
6126         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6127         * manual/Makefile (appendices): Include platform.texi.
6128         * manual/contrib.texi (Contributors): Update @node pointers.
6129         * manual/maint.texi (Maintenance): Likewise.
6130         (Platform): New node.
6131         * manual/platform.texi: New file.  Document the new features.
6132
6133 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6134             Jakub Jelinek  <jakub@redhat.com>
6135
6136         [BZ #14188]
6137         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6138         where __builtin_expect is unavailable.
6139
6140 2012-06-03  David S. Miller  <davem@davemloft.net>
6141
6142         * stdlib/longlong.h: Updated from GCC.
6143
6144 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6145
6146         [BZ #14042]
6147         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6148         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6149         __mcount_internal.
6150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6151         (GLIBC_2.16): Likewise.
6152
6153 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6154
6155         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6156
6157 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6158
6159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6160         (default-abi): New variable.
6161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6162         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6163         variable.
6164         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6165         Likewise.
6166         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6167         Likewise.
6168         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6169         Likewise.
6170
6171         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6172         definition.  Document in comment.
6173
6174 2012-06-01  David S. Miller  <davem@davemloft.net>
6175
6176         * stdlib/longlong.h: Updated from GCC.
6177
6178 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6179
6180         [BZ #14117]
6181         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6182         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6183         sys/debugreg.h sys/io.h here.
6184         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6185         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6186         sys/io.h.
6187         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6188         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6189         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6190         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6191         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6192         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6193
6194         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6195         Define only if __x86_64__ is defined.
6196
6197 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6198
6199         [BZ #14048]
6200         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6201         Use int64_t for variable i.
6202         * math/libm-test.inc (fmod_test): Add more tests.
6203
6204         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6205         z computation is not scheduled after fetestexcept.
6206         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6207         Use math_force_eval instead of asm to ensure calculation scheduled
6208         before exception test.
6209         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6210         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6211
6212 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6213
6214         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6215         computation is not scheduled after fetestexcept.
6216
6217 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6218
6219         [BZ #14117]
6220         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6221         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6222
6223 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6224
6225         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6226         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6227
6228 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6229
6230         [BZ #14117]
6231         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6232         <bits/wordsize.h>.
6233         (__WCHAR_MIN): Support __WORDSIZE == 64.
6234         (__WCHAR_MAX): Likewise.
6235
6236         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6237         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6238
6239         [BZ #14183]
6240         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6241         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6242
6243         [BZ #14117]
6244         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6245         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6246
6247         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6248         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6249
6250         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6251         Defined to 1 if __x86_64__ isn't defined.
6252         (_STAT_VER_LINUX_OLD): New.
6253         (st_atime): Remove duplicate.
6254         (st_mtime): Likewise.
6255         (st_ctime): Likewise.
6256
6257 2012-05-31  David S. Miller  <davem@davemloft.net>
6258
6259         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6260         entries.
6261
6262 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6263
6264         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6265         gen-libm-test.pl.
6266
6267         [BZ #14132]
6268         * elf/dl-reloc.c: Include <_itoa.h>.
6269         (_dl_reloc_bad_type): Remove use of INTUSE.
6270         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6271         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6272         * stdio-common/psiginfo.c (psiginfo): Likewise.
6273         * stdio-common/psignal.c (psignal): Likewise.
6274         * string/strsignal.c (strsignal): Likewise.
6275         * include/signal.h (_sys_siglist): Declare hidden proto.
6276         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
6277         INTVARDEF with libc_hidden_data_def.
6278         * stdio-common/itoa-udigits.c: Likewise.
6279         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6280         (_itoa_lower_digits_internal): Remove declaration.
6281         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6282         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6283         (_sys_sigabbrev_internal): Remove aliases.
6284         (_sys_siglist): Define hidden alias.
6285
6286 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6287
6288         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6289         bits/sysctl.h.
6290
6291 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6292
6293         [BZ #14117]
6294         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6295         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6296
6297         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6298         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6299         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6300         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6301         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6302         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6303
6304         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6305         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6306         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6307
6308         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6309         with __addr.
6310         (insw): Likewise.
6311         (insl): Likewise.
6312         (outsb): Likewise.
6313         (outsw): Likewise.
6314         (outsl): Likewise.
6315
6316         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6317         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6318         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6319
6320         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6321         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6322         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6323         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6324         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6325         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6326
6327         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6328         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6329
6330         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6331         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6332
6333         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6334         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6335         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6336
6337         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6338         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6339         to ...
6340         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6341
6342         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6343         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6344         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6345
6346         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6347         for x86-64.
6348         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6349
6350 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6351
6352         * math/math.h (M_El): Use two more decimal places.
6353         (M_LOG2El): Likewise.
6354         (M_LOG10El): Likewise.
6355         (M_LN2l): Likewise.
6356         (M_LN10l): Likewise.
6357         (M_PIl): Likewise.
6358         (M_PI_2l): Likewise.
6359         (M_PI_4l): Likewise.
6360         (M_1_PIl): Likewise.
6361         (M_2_PIl): Likewise.
6362         (M_2_SQRTPIl): Likewise.
6363         (M_SQRT2l): Likewise.
6364         (M_SQRT1_2l): Likewise.
6365
6366 2012-05-31  David S. Miller  <davem@davemloft.net>
6367
6368         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6369         values between float registers.
6370         * sysdeps/sparc/sparc64/memset.S: Likewise.
6371         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6372
6373 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6374
6375         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6376         -D_FORTIFY_SOURCE=1.
6377         (CPPFLAGS-tst-longjmp_chk.c): Define.
6378         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6379         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6380         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6381         CFLAGS-tst-wchar-h.c.
6382
6383 2012-05-31  Marek Polacek  <polacek@redhat.com>
6384
6385         [BZ #14132]
6386         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6387         __endmntent_internal): Remove declaration.
6388         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6389         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6390         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6391
6392 2012-05-30  David S. Miller  <davem@davemloft.net>
6393
6394         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6395         (___Q_simulate_exceptions): Use real FP ops rather than writing
6396         into the %fsr.
6397         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6398         Likewise.
6399
6400 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6401
6402         [BZ #14117]
6403         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6404         * sysdeps/x86/bits/xtitypes.h: This.
6405
6406         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6407         * sysdeps/x86/bits/wordsize.h: This.
6408
6409         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6410         * sysdeps/x86/bits/huge_vall.h: This.
6411
6412         * sysdeps/i386/bits/select.h: Removed.
6413         * sysdeps/x86_64/bits/select.h: Renamed to ...
6414         * sysdeps/x86/bits/select.h: This.
6415
6416         * sysdeps/i386/bits/setjmp.h: Removed.
6417         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6418         * sysdeps/x86/bits/setjmp.h: This.
6419
6420         * sysdeps/i386/bits/mathdef.h: Removed.
6421         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6422         * sysdeps/x86/bits/mathdef.h: This.
6423
6424 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6425
6426         [BZ #14132]
6427         * include/sys/socket.h (__connect_internal)
6428         (__libc_sa_len_internal): Remove declaration.
6429         (__connect, __libc_sa_len): Declare hidden_proto.
6430         (SA_LEN): Remove use of INTUSE.
6431         * socket/connect.c: Add libc_hidden_def.
6432         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6433         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6434         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6435         alias.
6436         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6437         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6438         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6439         of adding _internal alias.
6440
6441 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6442
6443         [BZ #14117]
6444         * sysdeps/i386/bits/link.h: Removed.
6445         * sysdeps/i386/bits/linkmap.h: Likewise.
6446         * sysdeps/x86_64/bits/link.h: Renamed to ...
6447         * sysdeps/x86/bits/link.h: This.
6448         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6449         * sysdeps/x86/bits/linkmap.h: This.
6450
6451         * sysdeps/i386/bits/endian.h: Removed.
6452         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6453         * sysdeps/x86/bits/endian.h: This.
6454
6455         * sysdeps/i386/bits/byteswap.h: Removed.
6456         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6457         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6458         * sysdeps/x86/bits/byteswap.h: This.
6459         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6460         * sysdeps/x86/bits/byteswap-16.h: This.
6461         * sysdeps/i386/Implies: Add x86.
6462         * sysdeps/x86_64/Implies: Likewise.
6463
6464 2012-05-30  David S. Miller  <davem@davemloft.net>
6465
6466         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6467         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6468         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6469         (FP_TRAPPING_EXCEPTIONS): Define.
6470         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6471         (FP_TRAPPING_EXCEPTIONS): Define.
6472         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6473         subnormals only when inexact has been signalled or underflow
6474         exceptions are enabled.
6475         (_FP_PACK_CANONICAL): Likewise.
6476
6477 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6478
6479         [BZ #14183]
6480         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6481         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6482
6483 2012-05-30  Richard Henderson  <rth@twiddle.net>
6484
6485         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6486         with #ifndef NOT_IN_libc.
6487
6488         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6489         marked to avoid plt entry.
6490
6491 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6492
6493         [BZ #14112]
6494         * Makeconfig (default-abi): New macro.
6495         (abi-includes): Likewise.
6496         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6497         $(abi-$(default-abi)-lib-soname) for soname if defined.
6498         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6499         abi-variants.
6500         * Makefile (installed-stubs): Likewise.
6501         * include/stubs-biarch.h: Removed.
6502         * scripts/lib-names.awk: Only handle one library at a time.
6503         * scripts/soversions.awk: Remove WORDSIZE support.
6504         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6505         entries.
6506         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6507         Removed.
6508         (syscall-list-default-condition): Likewise.
6509         (syscall-list-default-condition): Likewise.
6510         (syscall-list-includes): Likewise.
6511         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6512         syscall-list-* with abi-*.  Handle undefined abi-variants.
6513         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6514         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6515         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6516         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6517         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6518         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6519         Removed.
6520         (syscall-list-32-options): Likewise.
6521         (syscall-list-32-condition): Likewise.
6522         (syscall-list-64-options): Likewise.
6523         (syscall-list-64-condition): Likewise.
6524         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6525         macro.
6526         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6527         Renamed to ...
6528         (abi-*): This.
6529         (abi-64-ld-soname): New macro.
6530         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6531         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6532         Renamed to ...
6533         (abi-*): This.
6534         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6535         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6536
6537 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6538
6539         * sysdeps/unix/sysv/linux/kernel-features.h
6540         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6541         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6542         include <kernel-features.h>.
6543         [!__NR_ftruncate64]: Remove conditional code.
6544         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6545         [__NR_ftruncate64]: Make code unconditional.
6546         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6547         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6548         include <kernel-features.h>.
6549         [!__NR_ftruncate64]: Remove conditional code.
6550         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6551         [__NR_ftruncate64]: Make code unconditional.
6552         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6554         include <kernel-features.h>.
6555         [!__NR_ftruncate64]: Remove conditional code.
6556         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6557         [__NR_ftruncate64]: Make code unconditional.
6558         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6560         include <kernel-features.h>.
6561         [!__NR_ftruncate64]: Remove conditional code.
6562         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6563         [__NR_ftruncate64]: Make code unconditional.
6564         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6565
6566         * configure.in (libc_cv_fpie): Weaken to a compile test using
6567         LIBC_TRY_CC_OPTION.
6568         * configure: Regenerated.
6569
6570 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6571
6572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6573         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6574         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6575         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6576         Refreshed.
6577         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6578         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6579         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6580         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6581         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6582         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6583         Refreshed.
6584
6585 2012-05-27  David S. Miller  <davem@davemloft.net>
6586
6587         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6588         (___Q_zero): New.
6589         (__Q_simulate_exceptions): Return void.  Change to simulate
6590         exceptions by writing into the %fsr.
6591         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6592         (__Qp_handle_exceptions): Likewise.
6593         (numbers): Delete.
6594         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6595         __Qp_handle_exceptions.
6596         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6597         __Qp_handle_exceptions.
6598         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6599         as unused and give dummy FP_RND_NEAREST initializer.
6600         (FP_INHIBIT_RESULTS): Define.
6601         (___Q_simulate_exceptions): Update declaration.
6602         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6603         formatting.
6604         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6605         as unused and give dummy FP_RND_NEAREST initializer.
6606         (__Qp_handle_exceptions): Update declaration.
6607         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6608         formatting.
6609
6610 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6611
6612         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6613         the temporary FPU control word.
6614         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6615         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6616         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6617         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6618         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6619         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6620         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6621         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6622         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6623         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6624         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6625
6626 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6627
6628         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6629         fields.
6630
6631 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6632
6633         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6634         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6635         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6636         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6637         Likewise.
6638         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6639         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6640         Likewise.
6641
6642 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6643
6644         * po/h.po: Update from translation team.
6645
6646 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6647
6648         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6649
6650         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6651         handling of denormals.
6652         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6653         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6654         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6655         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6656         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6657         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6658         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6659         Likewise.
6660
6661 2012-05-26  Marek Polacek  <polacek@redhat.com>
6662
6663         [BZ #14152]
6664         * math/libm-test.inc (fma_test): Don't always expect underflow
6665         exception.
6666
6667 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6668
6669         [BZ #12416]
6670         * elf/tst-execstack.c: Include stackinfo.h.
6671         (do_test): Adjust test case to ensure that pthread_getattr_np
6672         behaviour remains the same after marking stack executable.
6673
6674 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6675
6676         * sysdeps/unix/sysv/linux/kernel-features.h
6677         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6678         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6679         kernel-features.h.
6680         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6681         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6682         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6683         kernel-features.h.
6684         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6685         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6686
6687 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6688
6689         * configure.in: Define the default includes to being none.
6690         * configure: Regenerated.
6691
6692 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6693
6694         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6695         * sysdeps/x86_64/setjmp.S: Likewise.
6696         * sysdeps/i386/bsd-setjmp.S: Likewise.
6697         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6698         * sysdeps/i386/setjmp.S: Likewise.
6699         * sysdeps/i386/__longjmp.S: Likewise.
6700         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6701         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6702
6703         * include/stap-probe.h: New file.
6704         * configure.in: Handle --enable-systemtap.
6705         * configure: Regenerated.
6706         * config.h.in (USE_STAP_PROBE): New #undef.
6707         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6708         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6709         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6710
6711 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6712
6713         [BZ #13717]
6714         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6715         to 2.4.0 where earlier.
6716         * sysdeps/unix/sysv/linux/configure: Regenerated.
6717         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6718         <kernel-features.h>.
6719         [__ASSUME_32BITUIDS]: Make code unconditional.
6720         [!__ASSUME_32BITUIDS]: Remove conditional code.
6721         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6722         <kernel-features.h>.
6723         [__ASSUME_32BITUIDS]: Make code unconditional.
6724         [!__ASSUME_32BITUIDS]: Remove conditional code.
6725         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6726         [__ASSUME_32BITUIDS]: Make code unconditional.
6727         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6728         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6729         <kernel-features.h>.
6730         [__ASSUME_32BITUIDS]: Make code unconditional.
6731         [!__ASSUME_32BITUIDS]: Remove conditional code.
6732         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6733         <kernel-features.h>.
6734         [__ASSUME_32BITUIDS]: Make code unconditional.
6735         [!__ASSUME_32BITUIDS]: Remove conditional code.
6736         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6737         <kernel-features.h>.
6738         [__ASSUME_32BITUIDS]: Make code unconditional.
6739         [!__ASSUME_32BITUIDS]: Remove conditional code.
6740         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6741         <kernel-features.h>.
6742         [__ASSUME_32BITUIDS]: Make code unconditional.
6743         [!__ASSUME_32BITUIDS]: Remove conditional code.
6744         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6745         <kernel-features.h>.
6746         [__ASSUME_32BITUIDS]: Make code unconditional.
6747         [!__ASSUME_32BITUIDS]: Remove conditional code.
6748         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6749         <kernel-features.h>.
6750         [__ASSUME_32BITUIDS]: Make code unconditional.
6751         [!__ASSUME_32BITUIDS]: Remove conditional code.
6752         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6753         <kernel-features.h>.
6754         [__ASSUME_32BITUIDS]: Make code unconditional.
6755         [!__ASSUME_32BITUIDS]: Remove conditional code.
6756         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6757         <kernel-features.h>.
6758         [__ASSUME_32BITUIDS]: Make code unconditional.
6759         [!__ASSUME_32BITUIDS]: Remove conditional code.
6760         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6761         <kernel-features.h>.
6762         [__ASSUME_32BITUIDS]: Make code unconditional.
6763         [!__ASSUME_32BITUIDS]: Remove conditional code.
6764         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6765         <kernel-features.h>.
6766         [__ASSUME_32BITUIDS]: Make code unconditional.
6767         [!__ASSUME_32BITUIDS]: Remove conditional code.
6768         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6769         <kernel-features.h>.
6770         [__NR_setresgid] (__setresgid): Do not declare.
6771         [__ASSUME_32BITUIDS]: Make code unconditional.
6772         [!__ASSUME_32BITUIDS]: Remove conditional code.
6773         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6774         <kernel-features.h>.
6775         [__NR_setresuid] (__setresuid): Do not declare.
6776         [__ASSUME_32BITUIDS]: Make code unconditional.
6777         [!__ASSUME_32BITUIDS]: Remove conditional code.
6778         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6779         <kernel-features.h>.
6780         [__ASSUME_32BITUIDS]: Make code unconditional.
6781         [!__ASSUME_32BITUIDS]: Remove conditional code.
6782         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6783         <kernel-features.h>.
6784         [__ASSUME_32BITUIDS]: Make code unconditional.
6785         [!__ASSUME_32BITUIDS]: Remove conditional code.
6786         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6787         <kernel-features.h>.
6788         [__ASSUME_32BITUIDS]: Make code unconditional.
6789         [!__ASSUME_32BITUIDS]: Remove conditional code.
6790         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6791         <kernel-features.h>.
6792         [__ASSUME_32BITUIDS]: Make code unconditional.
6793         [!__ASSUME_32BITUIDS]: Remove conditional code.
6794         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6795         <kernel-features.h>.
6796         [__ASSUME_32BITUIDS]: Make code unconditional.
6797         [!__ASSUME_32BITUIDS]: Remove conditional code.
6798         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6799         <kernel-features.h>.
6800         [__ASSUME_32BITUIDS]: Make code unconditional.
6801         [!__ASSUME_32BITUIDS]: Remove conditional code.
6802         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
6803         <kernel-features.h>.
6804         [__ASSUME_32BITUIDS]: Make code unconditional.
6805         [!__ASSUME_32BITUIDS]: Remove conditional code.
6806         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
6807         <kernel-features.h>.
6808         [__ASSUME_32BITUIDS]: Make code unconditional.
6809         [!__ASSUME_32BITUIDS]: Remove conditional code.
6810         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6811         <kernel-features.h>.
6812         [__ASSUME_32BITUIDS]: Make code unconditional.
6813         [!__ASSUME_32BITUIDS]: Remove conditional code.
6814         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6815         <kernel-features.h>.
6816         [__ASSUME_32BITUIDS]: Make code unconditional.
6817         [!__ASSUME_32BITUIDS]: Remove conditional code.
6818         * sysdeps/unix/sysv/linux/kernel-features.h
6819         (__ASSUME_SETRESUID_SYSCALL): Remove.
6820         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6821         (__ASSUME_32BITUIDS): Likewise.
6822         (__ASSUME_LDT_WORKS): Likewise.
6823         (__ASSUME_O_DIRECTORY): Likewise.
6824         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6825         architecture but not kernel version.
6826         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6827         (__ASSUME_MMAP2_SYSCALL): Likewise.
6828         (__ASSUME_STAT64_SYSCALL): Likewise.
6829         (__ASSUME_IPC64): Likewise.
6830         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6831         <kernel-features.h>.
6832         [__ASSUME_32BITUIDS]: Make code unconditional.
6833         [!__ASSUME_32BITUIDS]: Remove conditional code.
6834         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6835         <kernel-features.h>.
6836         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6837         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6838         132096]: Remove conditional code.
6839         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6840         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6841         <kernel-features.h>.
6842         [__ASSUME_32BITUIDS]: Make code unconditional.
6843         [!__ASSUME_32BITUIDS]: Remove conditional code.
6844         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6845         <kernel-features.h>.
6846         [__ASSUME_32BITUIDS]: Make code unconditional.
6847         [!__ASSUME_32BITUIDS]: Remove conditional code.
6848         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6849         <kernel-features.h>.
6850         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6851         unconditional.
6852         (__setresgid): Do not declare.
6853         [__ASSUME_32BITUIDS]: Make code unconditional.
6854         [!__ASSUME_32BITUIDS]: Remove conditional code.
6855         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6856         <kernel-features.h>.
6857         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6858         unconditional.
6859         (__setresuid): Do not declare.
6860         [__ASSUME_32BITUIDS]: Make code unconditional.
6861         [!__ASSUME_32BITUIDS]: Remove conditional code.
6862         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6863         <kernel-features.h>.
6864         [__ASSUME_32BITUIDS]: Make code unconditional.
6865         [!__ASSUME_32BITUIDS]: Remove conditional code.
6866         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6867         <kernel-features.h>.
6868         [__ASSUME_32BITUIDS]: Make code unconditional.
6869         [!__ASSUME_32BITUIDS]: Remove conditional code.
6870
6871 2012-05-25  Richard Henderson  <rth@twiddle.net>
6872
6873         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6874         dl_hwcap to ifunc resolver.
6875         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6876         elf_ifunc_invoke.
6877         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6878         dl_hwcap to ifunc resolver.
6879         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6880
6881 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6882
6883         [BZ #14153]
6884         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6885         for |x| <= 2**-26, not 2**-57.
6886         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6887         exception.
6888
6889 2012-05-24  Jeff Law  <law@redhat.com>
6890
6891         * stdio-common/Makefile (tests): Add bug25.
6892         * stdio-common/bug25.c: New test.
6893
6894 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6895
6896         [BZ #13576]
6897         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6898         multiple of MALLOC_ALIGNMENT in size.
6899         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6900
6901 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6902
6903         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6904         Require >= 256.
6905         (FILENAME_MAX): Use macro-int-constant.
6906         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6907         (_IOFBF): Use macro-int-constant.
6908         (_IOLBF): Likewise.
6909         (_IONBF): Likewise.
6910         (SEEK_CUR): Likewise.
6911         (SEEK_END): Likewise.
6912         (SEEK_SET): Likewise.
6913         (TMP_MAX): Likewise.
6914         (EOF): Use macro-int-constant.  Require < 0.
6915         (NULL): Use macro-constant.  Require == 0.
6916         (stdin): Require type to be FILE *.
6917         (stdout): Likewise.
6918         (stderr): Likewise.
6919         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6920         macro-int-constant.
6921         (EXIT_SUCCESS): Likewise.
6922         (NULL): Use macro-constant.  Require == 0.
6923         (RAND_MAX): Use macro-int-constant.
6924         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6925         [C99-based standards] (strtof): Require function.
6926         [C99-based standards] (strtold): Likewise.
6927         [C99-based standards] (strtoll): Likewise.
6928         [C99-based standards] (strtoull): Likewise.
6929         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6930         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6931         [ISO || ISO99 || ISO11] (math.h): Likewise.
6932         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6933         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6934         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6935
6936 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6937
6938         [BZ #14132]
6939         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6940         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6941         * intl/dgettext.c (DCGETTEXT): Likewise.
6942         * intl/gettext.c (DCGETTEXT): Likewise.
6943         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6944         * posix/regex_internal.h (gettext): Likewise.
6945         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6946         Remove declaration.
6947         * include/argz.h (__argz_count_internal)
6948         (__argz_stringify_internal): Remove declaration.
6949         (__argz_count, __argz_stringify): Declare hidden proto.
6950         * intl/dcgettext.c: Remove use of INTDEF.
6951         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6952         * string/argz-stringify.c: Likewise.
6953         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6954         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6955         Declare hidden proto.
6956         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6957         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6958         Declare hidden proto.
6959         * include/stdio.h (__asprintf_internal): Don't declare.
6960         (__asprintf): Don't define as macro.  Declare hidden proto.
6961         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6962         (__fsetlocking): Declare hidden proto.
6963         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6964         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6965         hidden proto.
6966         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6967         (_IO_setlinebuf): Remove use of INTUSE.
6968         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6969         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6970         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6971         Remove declaration.
6972         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6973         (_IO_do_flush): Remove use of INTUSE.
6974         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6975         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6976         (_IO_adjust_column, _IO_least_wmarker)
6977         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6978         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6979         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6980         (_IO_default_doallocate, _IO_wdefault_doallocate)
6981         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6982         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6983         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6984         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6985         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6986         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6987         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6988         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6989         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6990         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6991         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6992         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6993         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6994         proto.
6995         (_IO_flush_all_internal, _IO_adjust_column_internal)
6996         (_IO_default_uflow_internal, _IO_default_finish_internal)
6997         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
6998         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
6999         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
7000         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
7001         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
7002         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
7003         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
7004         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
7005         (_IO_file_close_internal, _IO_file_close_it_internal)
7006         (_IO_file_underflow_internal, _IO_file_overflow_internal)
7007         (_IO_file_init_internal, _IO_file_attach_internal)
7008         (_IO_file_fopen_internal, _IO_file_read_internal)
7009         (_IO_file_sync_internal, _IO_file_seek_internal)
7010         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
7011         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
7012         (_IO_str_underflow_internal, _IO_str_overflow_internal)
7013         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
7014         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
7015         (_IO_list_all_internal, _IO_link_in_internal)
7016         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
7017         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
7018         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
7019         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
7020         (_IO_do_write_internal, _IO_padn_internal)
7021         (_IO_getline_info_internal, _IO_getline_internal)
7022         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
7023         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
7024         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
7025         (_IO_vfscanf_internal, _IO_vfprintf_internal)
7026         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
7027         (_IO_init_internal, _IO_un_link_internal): Don't declare.
7028         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
7029         with libc_hidden_ver, remove use of INTUSE.
7030         * libio/genops.c: Likewise.
7031         * libio/freopen.c: Likewise.
7032         * libio/freopen64.c: Likewise.
7033         * libio/iofclose.c: Likewise.
7034         * libio/iofdopen.c: Likewise.
7035         * libio/iofflush.c: Likewise.
7036         * libio/iofflush_u.c: Likewise.
7037         * libio/iofgets.c: Likewise.
7038         * libio/iofgets_u.c: Likewise.
7039         * libio/iofopen.c: Likewise.
7040         * libio/iofopncook.c: Likewise.
7041         * libio/iofread.c: Likewise.
7042         * libio/iofread_u.c: Likewise.
7043         * libio/ioftell.c: Likewise.
7044         * libio/iofwrite.c: Likewise.
7045         * libio/iogetline.c: Likewise.
7046         * libio/iogets.c: Likewise.
7047         * libio/iogetwline.c: Likewise.
7048         * libio/iopadn.c: Likewise.
7049         * libio/iopopen.c: Likewise.
7050         * libio/ioseekoff.c: Likewise.
7051         * libio/ioseekpos.c: Likewise.
7052         * libio/iosetbuffer.c: Likewise.
7053         * libio/iosetvbuf.c: Likewise.
7054         * libio/ioungetc.c: Likewise.
7055         * libio/ioungetwc.c: Likewise.
7056         * libio/iovdprintf.c: Likewise.
7057         * libio/iovsprintf.c: Likewise.
7058         * libio/iovsscanf.c: Likewise.
7059         * libio/memstream.c: Likewise.
7060         * libio/obprintf.c: Likewise.
7061         * libio/oldfileops.c: Likewise.
7062         * libio/oldiofclose.c: Likewise.
7063         * libio/oldiofdopen.c: Likewise.
7064         * libio/oldiofopen.c: Likewise.
7065         * libio/oldiopopen.c: Likewise.
7066         * libio/oldstdfiles.c: Likewise.
7067         * libio/putc.c: Likewise.
7068         * libio/setbuf.c: Likewise.
7069         * libio/setlinebuf.c: Likewise.
7070         * libio/stdfiles.c: Likewise.
7071         * libio/strops.c: Likewise.
7072         * libio/vasprintf.c: Likewise.
7073         * libio/vscanf.c: Likewise.
7074         * libio/vsnprintf.c: Likewise.
7075         * libio/vswprintf.c: Likewise.
7076         * libio/wfiledoalloc.c: Likewise.
7077         * libio/wfileops.c: Likewise.
7078         * libio/wgenops.c: Likewise.
7079         * libio/wmemstream.c: Likewise.
7080         * libio/wstrops.c: Likewise.
7081         * libio/__fpurge.c: Likewise.
7082         * libio/__fsetlocking.c: Likewise.
7083         * assert/assert.c: Likewise.
7084         * debug/fgets_chk.c: Likewise.
7085         * debug/fgets_u_chk.c: Likewise.
7086         * debug/fread_chk.c: Likewise.
7087         * debug/fread_u_chk.c: Likewise.
7088         * debug/gets_chk.c: Likewise.
7089         * debug/obprintf_chk.c: Likewise.
7090         * debug/vasprintf_chk.c: Likewise.
7091         * debug/vdprintf_chk.c: Likewise.
7092         * debug/vsnprintf_chk.c: Likewise.
7093         * debug/vsprintf_chk.c: Likewise.
7094         * malloc/mtrace.c: Likewise.
7095         * misc/error.c: Likewise.
7096         * misc/syslog.c: Likewise.
7097         * stdio-common/asprintf.c: Likewise.
7098         * stdio-common/fxprintf.c: Likewise.
7099         * stdio-common/getw.c: Likewise.
7100         * stdio-common/isoc99_fscanf.c: Likewise.
7101         * stdio-common/isoc99_scanf.c: Likewise.
7102         * stdio-common/isoc99_vfscanf.c: Likewise.
7103         * stdio-common/isoc99_vscanf.c: Likewise.
7104         * stdio-common/isoc99_vsscanf.c: Likewise.
7105         * stdio-common/printf-prs.c: Likewise.
7106         * stdio-common/printf_fp.c: Likewise.
7107         * stdio-common/printf_fphex.c: Likewise.
7108         * stdio-common/printf_size.c: Likewise.
7109         * stdio-common/putw.c: Likewise.
7110         * stdio-common/scanf.c: Likewise.
7111         * stdio-common/sprintf.c: Likewise.
7112         * stdio-common/tmpfile.c: Likewise.
7113         * stdio-common/vfprintf.c: Likewise.
7114         * stdio-common/vfscanf.c: Likewise.
7115         * stdlib/strfmon_l.c: Likewise.
7116         * sunrpc/openchild.c: Likewise.
7117         * sunrpc/xdr_stdio.c: Likewise.
7118         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7119         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7120
7121 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7122
7123         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7124
7125         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7126         in the third column, to generate for the shared library an IFUNC
7127         that uses _dl_vdso_vsym.
7128         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7129         * Makeconfig (object-suffixes-noshared): New variable.
7130
7131         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7132         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7133         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7134         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7135
7136         [BZ #14132]
7137         * include/sys/time.h (__gettimeofday): Remove macro.
7138         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7139         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7140         Remove INTDEF.
7141         (__gettimeofday): Add libc_hidden_def.
7142         (gettimeofday): Add libc_hidden_weak.
7143         * sysdeps/mach/gettimeofday.c: Likewise.
7144         * sysdeps/posix/gettimeofday.c: Likewise.
7145         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7146         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7147         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7148         (__gettimeofday_internal): Remove strong_alias.
7149         (__gettimeofday): Add libc_hidden_def.
7150         (gettimeofday): Add libc_hidden_weak.
7151         * sysdeps/unix/syscalls.list (gettimeofday):
7152         Remove __gettimeofday_internal alias.
7153
7154 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7155             H.J. Lu  <hongjiu.lu@intel.com>
7156
7157         [BZ #12495]
7158         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7159         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7160         (largebin_index_32_big): New.
7161         (largebin_index): Use it for 16-byte alignment.
7162         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7163         correction with front_misalign.
7164
7165 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7166
7167         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7168         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7169         Likewise.
7170         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7171         Likewise.
7172         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7173         Likewise.
7174         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7175         Likewise.
7176         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7177         Likewise.
7178         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7179         Likewise.
7180         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7181         Likewise.
7182         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7183         Likewise.
7184         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7185         Likewise.
7186         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7187         Likewise.
7188         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7189         Likewise.
7190         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7191         Likewise.
7192
7193         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7194         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7195
7196 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7197
7198         [BZ #10846]
7199         [BZ #14036]
7200         * math/libm-test.inc (exp_test): Add test from bug 14036.
7201         (pow_test): Add test from bug 10846.
7202
7203         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7204         and other flags.
7205         (special_function): Do not include flags in test name.
7206         (parse_args): Likewise.
7207         * sysdeps/i386/fpu/libm-test-ulps: Update.
7208         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7209         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7210         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7211         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7212
7213         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7214         exceptions.
7215         * math/libm-test.inc ("Philosophy"): Update comment about
7216         exception testing.
7217         (UNDERFLOW_EXCEPTION): New macro.
7218         (UNDERFLOW_EXCEPTION_OK): Likewise.
7219         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7220         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7221         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7222         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7223         (INVALID_EXCEPTION_OK): Update value.
7224         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7225         (OVERFLOW_EXCEPTION_OK): Likewise.
7226         (IGNORE_ZERO_INF_SIGN): Likewise.
7227         (test_exceptions): Handle underflow exceptions.
7228         (acos_test): Update for underflow exception expectations.
7229         (cexp_test): Likewise.
7230         (clog_test): Likewise.
7231         (clog10_test): Likewise.
7232         (csqrt_test): Likewise.
7233         (ctan_test): Likewise.
7234         (ctanh_test): Likewise.
7235         (exp_test): Likewise.
7236         (exp10_test): Likewise.
7237         (exp2_test): Likewise.
7238         (expm1_test): Likewise.
7239         (fma_test): Likewise.
7240         (j0_test): Likewise.
7241         (jn_test): Likewise.
7242         (nexttoward_test): Likewise.
7243         (pow_test): Likewise.
7244         (scalbn_test): Likewise.
7245         (scalbln_test): Likewise.
7246         (tan_test): Likewise.
7247         (y1_test): Likewise.
7248         * sysdeps/i386/fpu/libm-test-ulps: Update.
7249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7250
7251 2012-05-23  David S. Miller  <davem@davemloft.net>
7252
7253         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7254         (__libc_sigaction): Remove unused local variables.
7255
7256 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7257
7258         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7259
7260 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7261
7262         mktime: avoid signed integer overflow
7263         * time/mktime.c (__mktime_internal): Do not mishandle the case
7264         where diff == INT_MIN.
7265
7266         mktime: simplify computation of average
7267         * time/mktime.c (ranged_convert): Use new time_t_avg function
7268         instead of rolling our own (probably-slower) code.
7269
7270         mktime: do not assume signed right shift propagates sign bit
7271         * time/mktime.c (isdst_differ): New static function.
7272         (__mktime_internal): No need to normalize tm_isdst now.
7273         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7274         tm_isdst values.
7275
7276         mktime: merge another wrapv change from gnulib
7277         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7278         from some compilers.
7279
7280         mktime: remove incorrect attempt at unusual arithmetics
7281         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7282         The code didn't really work on such machines anyway.
7283         (TYPE_MINIMUM): Assume two's complement.
7284         (twos_complement_arithmetic): Verify that long_int and time_t
7285         are two's complement (or unsigned, in the latter case).
7286
7287         mktime: check signed shifts on long_int and time_t, too
7288         * time/mktime.c (SHR): Check that shifts work as desired
7289         on the types long_int and time_t too, as SHR is used on
7290         such types.
7291
7292         mktime: do not assume 'long' is wide enough
7293         * time/mktime.c (verify): Move decl up.
7294         (long_int): New type.
7295         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7296         to remove assumption in the code that 'long' is wide enough to
7297         store year values.  This assumption is not true on x32 and on
7298         some non-glibc platforms.
7299
7300         mktime: merge wrapv change from gnulib
7301         * time/mktime.c (WRAPV): New macro.
7302         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7303         (guess_time_tm, __mktime_internal): Do not assume that signed
7304         integer overflow wraps around; modern compilers generate code
7305         where this assumption is no longer valid.
7306
7307 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7308
7309         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7310         Replace "jmp L(pseudo_end)" with "ret".
7311         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7312         Likewise.
7313
7314 2012-05-23  Andreas Jaeger  <aj@suse.de>
7315
7316         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7317         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7318
7319 2012-05-23  Andreas Jaeger  <aj@suse.de>
7320             Maximilian Attems  <max@stro.at>
7321
7322         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7323         New macros.
7324
7325 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7326
7327         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7328         code so that pseudo_end is just ret and the stack pointer is
7329         correct also for static library in error case.
7330
7331 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7332
7333         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7334         move to syscalls.list.
7335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7339
7340         * manual/install.texi (Running make install): Do not mention Linux
7341         kernel version for which pt_chown is not needed.
7342         (Linux): Do not mention problems with nscd with 2.0 kernels.
7343         * INSTALL: Regenerated.
7344
7345 2012-05-23  Andreas Jaeger  <aj@suse.de>
7346
7347         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7348         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7349         macro.
7350         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7351         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7352         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7353         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7354         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7355         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7356         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7357         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7358         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7359         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7360         * sysdeps/unix/sysv/linux/bits/in.h
7361         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7362
7363 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7364
7365         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7366         (PREPARE_VERSION): Just use assert instead, it will be elided
7367         under [NDEBUG] anyway.
7368
7369 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7370
7371         * sysdeps/unix/sysv/linux/Makefile: Include
7372         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7373         (sysdep_routines): Remove sysctl.
7374         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7375         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7376         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7377         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7378         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7379
7380 2012-05-22  Andreas Jaeger  <aj@suse.de>
7381
7382         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7383         that pseudo_end is just ret and the stack pointer is correct also
7384         for static library in error case.
7385
7386 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7387
7388         [BZ #14122]
7389         * nss/nsswitch.c (defconfig_entries): New variable.
7390         (__nss_database_lookup): Don't leak defconfig entries.
7391         (nss_parse_service_list): Don't leak on error paths.
7392         (free_database_entries): New function.
7393         (free_defconfig): New function.
7394         (free_mem): Move common code to free_database_entries.
7395
7396 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7397
7398         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7399         Add arch_prctl.
7400         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7401
7402         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7403         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7404         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7405         New macro.
7406         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7407         (INTERNAL_SYSCALL_TYPES): Likewise.
7408         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7409         (LOAD_REGS_TYPES_[1-6]): Likewise.
7410         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7411         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7412
7413 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7414
7415         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7416         copysignl for GLIBC_2_0.
7417         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7418         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7419         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7420         logbl for GLIBC_2_0.
7421         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7422         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7423
7424 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7425
7426         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7427         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7428
7429         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7430         Use "neg %eax".
7431
7432         * time/mktime.c: Update copyright years.
7433
7434 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7435
7436         mktime: merge comment-quoting-style change from gnulib
7437         * time/mktime.c: Quote 'like this' in comments.
7438         The GNU coding standards suggest that we no longer quote `like this',
7439         as "`" and "'" are typically rendered asymmetrically nowadays.
7440         The typical gnulib style is to quote 'like this' when quoting
7441         code, and "like this" when quoting English.
7442
7443         * time/mktime.c (compile-command): Add "-I.".
7444
7445         mktime: merge mktime-internal.h change from gnulib
7446         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7447
7448         mktime: merge time_r change from gnulib
7449         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7450
7451         mktime: merge DEBUG change from gnulib
7452         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7453         case system <time.h> has a #define.
7454
7455         mktime: merge <sys/types.h> change from gnulib
7456         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7457         since <time.t> is now guaranteed to define time_t.
7458
7459         mktime: merge HAVE_CONFIG_H change from gnulib
7460         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7461
7462 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7463
7464         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7465         Use "neg %eax".
7466
7467         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7468         __rlim_t cast.
7469         (struct rusage): Use anonymous union to pad each field to
7470         __syscall_slong_t.
7471
7472 2012-05-21  David S. Miller  <davem@davemloft.net>
7473
7474         * Makefules (o-iterator): Remove .s cases.
7475         (compile-command.s): Delete.
7476         (COMPILE.s): Delete.
7477         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7478
7479 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7480
7481         * configure.in (libc_cv_predef_stack_protector): Only consider
7482         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7483         * configure: Regenerated.
7484
7485 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7486
7487         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7488         New macro.  Use R*LP on int and pointer.
7489         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7490         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7491         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7492         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7493
7494         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7495         [__WORDSIZE_TIME64_COMPAT32] instead of
7496         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7497         (struct utmp): Likewise.
7498         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7499         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7500         Renamed to ...
7501         (__WORDSIZE_TIME64_COMPAT32): This.
7502         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7503         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7504         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7505         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7506         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7507         (__WORDSIZE_TIME64_COMPAT32): New macro.
7508
7509 2012-05-21  Andreas Jaeger  <aj@suse.de>
7510
7511         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7512         only if [SHARED]. Add prototype for __wcschr_ia32.
7513
7514 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7515
7516         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7517         of %rbp unmolested in the jmp_buf while mangling the low bits.
7518         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7519         unmolested high bits of %rbp while demangling the low bits.
7520         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7521
7522 2012-05-21  Andreas Jaeger  <aj@suse.de>
7523
7524         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7525         * sunrpc/svc_simple.c: Use it for registerrpc.
7526         * sunrpc/xcrypt.c: Use it for passwd2des.
7527
7528         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7529
7530 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7531
7532         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7533         Don't define if [__SYSCALL_WORDSIZE != 32].
7534         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7535         New macro.
7536
7537 2012-05-21  Bruno Haible  <bruno@clisp.org>
7538             Andreas Jaeger  <aj@suse.de>
7539
7540         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7541         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7542         inptr and inend for must_buffer_ch.
7543         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7544         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7545         * stdio-common/Makefile (tests): Remove bug15.
7546         (bug15-ENV): Remove macro.
7547         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7548         anymore.
7549
7550 2012-05-19  Andreas Jaeger  <aj@suse.de>
7551             Roland McGrath  <roland@hack.frob.com>
7552
7553         * manual/contrib.texi: Completely rewritten. It contains now an
7554         alphabetical list of contributors and their contributions.
7555
7556 2012-05-21  Richard Henderson  <rth@twiddle.net>
7557
7558         * misc/getauxval.c (__getauxval): Use unsigned long int.
7559         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7560         (getauxval): Use unsigned long int.
7561
7562 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7563
7564         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7565
7566 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7567
7568         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7569         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7570         __alignof__ (long double).
7571
7572 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7573
7574         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7575
7576 2012-05-20  Richard Henderson  <rth@twiddle.net>
7577
7578         * misc/getauxval.c: New file.
7579         * misc/sys/auxv.h: New file.
7580         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7581         (routines): Add getauxval.
7582         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7583         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7584         * elf/dl-sysdep.c (_dl_auxv): Remove.
7585         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7586         * elf/dl-support.c (_dl_auxv): New variable.
7587         (_dl_aux_init): Initialize it.
7588         * manual/startup.texi (Auxiliary Vector): New node.
7589         * sysdeps/generic/bits/hwcap.h: New file.
7590         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7591         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7592         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7593         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7594         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7595         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7597         Update.
7598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7599         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7600         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7601         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7602         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7603         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7604         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7605         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7606
7607 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7608
7609         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7610
7611 2012-05-19  David S. Miller  <davem@davemloft.net>
7612
7613         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7614
7615 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7616
7617         [BZ #14123]
7618         * math/s_ccosh.c: Include <float.h>
7619         (__ccosh): Avoid internal overflow calculating sinh and cosh
7620         values before multiplying by sin and cos values.
7621         * math/s_ccoshf.c: Likewise.
7622         * math/s_ccoshl.c: Likewise.
7623         * math/s_csin.c: Likewise.
7624         * math/s_csinf.c: Likewise.
7625         * math/s_csinl.c: Likewise.
7626         * math/s_csinh.c: Likewise.
7627         * math/s_csinhf.c: Likewise.
7628         * math/s_csinhl.c: Likewise.
7629         * math/libm-test.inc (ccos_test): Add more tests.
7630         (ccosh_test): Likewise.
7631         (csin_test): Likewise.
7632         (csinh_test): Likewise.
7633         * sysdeps/i386/fpu/libm-test-ulps: Update.
7634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7635
7636 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7637
7638         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7639         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7640
7641         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7642
7643 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7644
7645         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7646         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7647         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7648         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7649         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7650         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7651         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7652         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7653         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7654         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7655         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7656         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7657         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7658         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7659         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7660         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7661         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7662         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7663         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7664         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7665         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7666         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7667         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7668         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7669         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7670         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7671         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7672         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7673         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7674         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7675         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7676
7677 2012-05-18  Andreas Jaeger  <aj@suse.de>
7678
7679         * csu/.gitignore: Delete.
7680
7681 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7682
7683         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7684         (timex): Use __syscall_slong_t.
7685
7686 2012-05-18  Andreas Jaeger  <aj@suse.de>
7687             Carlos O'Donell  <carlos_odonell@mentor.com>
7688
7689         * manual/install.texi (Configuring and compiling): Update
7690         description about files modified in the source directory.
7691         * INSTALL: Regenerated.
7692
7693 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7694
7695         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7696         value.  Use "or" to set return value to -1.
7697         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7698         negate return value.
7699
7700 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7701
7702         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7703         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7704         failure if the compiler has Graphite support disabled.
7705         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7706         Likewise.
7707         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7708         CFLAGS-memmove.c): Likewise.
7709         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7710         Likewise.
7711
7712 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7713
7714         * sysdeps/x86_64/x32/_itoa.h: New file.
7715
7716         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7717         getdents system call only if kernel and user dirents have the
7718         same d_ino and d_off.
7719
7720         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7721         LLONG_MAX != LONG_MAX.
7722         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7723         (_fitoa_word): Likewise.
7724
7725         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7726         years.
7727         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7728         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7729         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7730
7731         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7732         include <bits/wordsize.h>.  Check __x86_64__ instead of
7733         __WORDSIZE.
7734         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7735         if __x86_64__ is defined.  Use anonymous union on fpstate.
7736
7737         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7738         anonymous union.
7739
7740 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7741
7742         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7743         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7744         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7745         Refer to _rtld_local_ro instead of _rtld_global_ro.
7746         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7747         Likewise.
7748         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7749         Likewise.
7750         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7751         Likewise.
7752         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7753         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7754         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7755
7756         * sysdeps/powerpc/powerpc32/dl-machine.c
7757         (__elf_machine_runtime_setup) [PROF]: Don't reference
7758         _dl_prof_resolve.
7759
7760 2012-05-18  Andreas Jaeger  <aj@suse.de>
7761
7762         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7763         function only available for GCCs before 3.4 since GCC 3.4
7764         introduced a builtin.
7765         (lrint): Likewise.
7766         (llrintf): Likewise.
7767         (llrint): Likewise.
7768         (fmaxf): Likewise.
7769         (fmax): Likewise.
7770         (fminf): Likewise.
7771         (fmin): Likewise.
7772         (rint): Likewise.
7773         (rintf): Likewise.
7774         (nearbyint): Likewise.
7775         (nearbyintf): Likewise.
7776         (ceil): Likewise.
7777         (ceilf): Likewise.
7778         (floor): Likewise.
7779         (floorf): Likewise.
7780
7781 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7782
7783         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7784         on both fields and cast pointer to __syscall_ulong_t.
7785
7786         * bits/types.h (__fsword_t): New type.
7787         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7788         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7789         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7790         (__FSWORD_T_TYPE): Likewise.
7791         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7792         (__FSWORD_T_TYPE): Likewise.
7793         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7794         (__FSWORD_T_TYPE): Likewise.
7795         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7796         (__FSWORD_T_TYPE): Likewise.
7797         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7798         __SWORD_TYPE with __fsword_t.
7799         (statfs64): Likewise.
7800
7801 2012-05-17  David S. Miller  <davem@davemloft.net>
7802
7803         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7804
7805 2012-05-17  Andreas Jaeger  <aj@suse.de>
7806
7807         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7808         warning.
7809
7810 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7811
7812         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7813
7814 2012-05-17  Andreas Jaeger  <aj@suse.de>
7815
7816         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7817         when it is used.
7818
7819 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7820
7821         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7822
7823 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7824
7825         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7826         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7827
7828 2012-05-17  Andreas Jaeger  <aj@suse.de>
7829             Carlos O'Donell  <carlos_odonell@mentor.com>
7830
7831         [BZ #14059]
7832         * sysdeps/x86_64/multiarch/init-arch.h
7833         (bit_YMM_Usable): Rename to...
7834         (bit_AVX_Usable): ... this.
7835         (bit_FMA4_Usable): New macro.
7836         (bit_XMM_state): New macro.
7837         (bit_YMM_state): New macro.
7838         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7839         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7840         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7841         (CPUID_OSXSAVE): New macro.
7842         (CPUID_AVX): New macro.
7843         (CPUID_FMA4): New macro.
7844         (index_YMM_Usable): Rename to...
7845         (index_AVX_Usable): ... this.
7846         (HAS_AVX): Use HAS_ARCH_FEATURE.
7847         (HAS_FMA4): Likewise.
7848         (HAS_YMM_USABLE): Remove.
7849         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7850         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7851         are present.
7852         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7853         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7854         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7855         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7856         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7857
7858 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7859
7860         * math/libm-test.c: Support platforms without multiple rounding modes.
7861         * math/bug-nextafter.c: Support platforms without FP exceptions.
7862         * math/bug-nexttoward.c: Likewise.
7863         * math/test-fenv.c: Likewise.
7864         * math/test-misc.c: Likewise.
7865         * stdlib/bug-getcontext.c: Likewise.
7866
7867 2012-05-17  Andreas Jaeger  <aj@suse.de>
7868
7869         * manual/examples/search.c (critter_cmp): Change signature to
7870         avoid warnings.
7871         * manual/string.texi (Collation Functions): Likewise.
7872
7873 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7874
7875         * bits/types.h: Fold copyright years.
7876         * bits/typesizes.h: Likewise.
7877         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7878         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7879         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7880         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7881         * time/time.h: Likewise.
7882
7883 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7884
7885         [BZ #208]
7886         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7887         in instead of returning them.  Return void.
7888         (__libc_mallinfo): Accumulate over all arenas.
7889         (__malloc_stats): Adjust for change in int_mallinfo interface.
7890
7891 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7892
7893         [BZ #10375]
7894         * configure.in (NM): Add AC_CHECK_TOOL for it.
7895         (libc_extra_cflags): New substituted variable.
7896         Check for -fstack-protector being used implicitly.
7897         * configure: Regenerated.
7898         * config.make.in (config-extra-cflags): New variable,
7899         gets @libc_extra_cflags@.
7900         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7901
7902         [BZ #10375]
7903         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7904         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7905         * configure: Regenerated.
7906         * config.make.in (CPPUNDEFS): New substituted variable.
7907         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7908         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7909         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7910
7911 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7912
7913         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7914         (mq_attr): Use __syscall_slong_t.
7915
7916 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7917
7918         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7919         Check __x86_64__ instead of __WORDSIZE.
7920         (_STAT_VER_LINUX): Likewise.
7921         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7922         __syscall_ulong_t and __syscall_slong_t.
7923         (stat64): Likewise.
7924
7925 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7926
7927         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7928
7929 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7930
7931         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7932
7933 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7934
7935         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7936         __syscall_ulong_t.
7937
7938         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7939         include <bits/wordsize.h>.  Check __x86_64__ instead of
7940         __WORDSIZE.
7941         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7942         defined.
7943         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7944
7945         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7946         include <bits/wordsize.h>.  Check __x86_64__ instead of
7947         __WORDSIZE.
7948         (user_regs_struct): Use "__extension__ unsigned long long"
7949         instead of "unsigned long" if __x86_64__ is defined.
7950         (user): Likewise.  Pad after pointer field if __ILP32__ is
7951         defined.
7952
7953 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7954
7955         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7956         versions 5 to 9.
7957         * configure: Regenerated.
7958         * manual/install.texi (texinfo): Increase version requirement to
7959         4.5 or later.
7960         * INSTALL: Regenerated.
7961
7962         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7963
7964 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7965
7966         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7967
7968         * sysdeps/x86_64/x32/ffs.c: New file.
7969
7970         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7971         __syscall_ulong_t.
7972         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7973         defined.  Use __syscall_ulong_t.
7974         (shminfo): Use __syscall_ulong_t.
7975         (shm_info): Likewise.
7976
7977         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7978         __syscall_ulong_t.
7979
7980         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7981         <bits/wordsize.h>.
7982         (msgqnum_t): Use __syscall_ulong_t.
7983         (msglen_t): Likewise.
7984         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7985         __syscall_ulong_t.
7986
7987         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7988         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7989
7990         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7991
7992         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7993         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7994
7995         * sysvipc/sys/msg.h (msgbuf): Replace long int with
7996         __syscall_slong_t.
7997
7998         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
7999         include <bits/wordsize.h>.  Check __x86_64__ instead of
8000         __WORDSIZE.
8001
8002         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
8003         "unsigned long long int" if __x86_64__ is defined.
8004         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
8005
8006         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
8007         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8008         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
8009
8010         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
8011         <stdint.h>.
8012         (GET_PC): Cast to uintptr_t first.
8013         (GET_FRAME): Likewise.
8014         (GET_STACK): Likewise.
8015
8016         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
8017         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
8018         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
8019         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
8020         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
8021         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
8022         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
8023         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
8024         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
8025         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
8026         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
8027         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
8028         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8029         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
8030         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
8031         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
8032         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
8033         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
8034         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
8035         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
8036         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
8037         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
8038         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
8039         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
8040         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
8041         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
8042         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
8043         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
8044         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
8045
8046 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
8047
8048         * Makerules (+depfiles): Also collect depfiles from .oS in
8049         $(extra-objs).
8050         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
8051         .oS, $(libnldbl-routines)).
8052
8053         * Makerules (native-compile-mkdep-flags): Define.
8054         * sunrpc/Makefile (extra-objs): Add $(addprefix
8055         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
8056         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
8057         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
8058         calling $(make-target-directory).
8059
8060 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8061
8062         * bits/types.h (__snseconds_t): Removed.
8063         * time/time.h (struct timespec): Replace __snseconds_t with
8064         __syscall_slong_t.
8065         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
8066         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
8067         Likewise.
8068         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8069         (__SNSECONDS_T_TYPE): Likewise.
8070         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8071         (__SNSECONDS_T_TYPE): Likewise.
8072         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8073         (__SNSECONDS_T_TYPE): Likewise.
8074
8075 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8076
8077         * sysdeps/mach/hurd/bits/typesizes.h
8078         (__SYSCALL_SLONG_TYPE): New macro.
8079         (__SYSCALL_ULONG_TYPE): Likewise.
8080
8081 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8082
8083         * bits/types.h (__syscall_slong_t): New type.
8084         (__syscall_ulong_t): Likewise.
8085
8086         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8087         (__SYSCALL_ULONG_TYPE): Likewise.
8088         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8089         (__SYSCALL_SLONG_TYPE): Likewise.
8090         (__SYSCALL_ULONG_TYPE): Likewise.
8091         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8092         (__SYSCALL_SLONG_TYPE): Likewise.
8093         (__SYSCALL_ULONG_TYPE): Likewise.
8094         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8095         (__SYSCALL_SLONG_TYPE): Likewise.
8096         (__SYSCALL_ULONG_TYPE): Likewise.
8097
8098 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8099
8100         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8101         Add sigaltstack-offsets.sym.
8102         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8103         <sigaltstack-offsets.h>.
8104         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8105         longjmp_msg pointer.
8106         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8107         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8108         signal stack.
8109         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8110
8111 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8112
8113         * elf/stackguard-macros.h: Remove file.
8114         * sysdeps/generic/stackguard-macros.h: New file.
8115         * sysdeps/i386/stackguard-macros.h: Likewise.
8116         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8117         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8118         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8119         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8120         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8121         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8122         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8123         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8124         <elf/stackguard-macros.h>.
8125
8126         [BZ #14109]
8127         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8128         __aligned__ in attribute.
8129         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8130         (gregset_t): Likewise.
8131
8132 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8133
8134         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8135         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8136         * sysdeps/x86_64/x32/Implies-after: New file.
8137
8138 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8139
8140         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8141         and access return value for _dl_profile_fixup.  Use R10_LP to
8142         load frame size.
8143
8144 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8145
8146         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8147
8148 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8149
8150         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8151         * sysdeps/x86_64/x32/sysdep.h: New file.
8152
8153 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8154
8155         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8156         * sysdeps/x86_64/setjmp.S: Likewise.
8157
8158 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8159
8160         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8161         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8162         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8163         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8164         remove unused global constant.
8165
8166 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8167
8168         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8169         include of <not-cancel.h>.
8170
8171 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8172
8173         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8174
8175 2012-05-15  Jeff Law  <law@redhat.com>
8176             Andreas Jaeger  <aj@suse.de>
8177
8178         [BZ #13594]
8179         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8180         out from...
8181         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8182         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8183         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8184         code changing __hst_map_handle.map.
8185
8186 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8187
8188         * configure.in (sysnames): Look for Implies-before and Implies-after
8189         files.
8190         * configure: Regenerated.
8191
8192 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8193
8194         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8195         8-byte data alignment with LP_SIZE alignment.
8196
8197 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8198
8199         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8200         into R10_LP.
8201
8202 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8203
8204         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8205
8206 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8207
8208         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8209         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8210         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8211         Likewise.
8212         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8213
8214 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8215
8216         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8217         (stackinfo_sub_sp): Likewise.
8218
8219 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8220
8221         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8222         RAX_LP.
8223
8224 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8225
8226         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8227         into R*_LP.
8228
8229 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8230
8231         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8232         sizes into R*_LP.
8233
8234 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8235
8236         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8237
8238 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8239
8240         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8241         into R11_LP and load __x86_64_shared_cache_size_half into
8242         R8_LP.
8243
8244 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8245
8246         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8247         R8_LP.
8248
8249 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8250
8251         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8252         logb for POWER7.
8253         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8254         logbf for POWER7.
8255         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8256         logbl for POWER7.
8257         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8258         powerpc32/power7/fpu/s_logb.c via #include.
8259         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8260         powerpc32/power7/fpu/s_logbf.c via #include.
8261         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8262         powerpc32/power7/fpu/s_logbl.c via #include.
8263
8264 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8265
8266         * README.libm: Remove file.
8267
8268 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8269
8270         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8271         count for x32.  Use R*_LP and omit operand-size suffix.
8272
8273 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8274
8275         * shlib-versions: Move x86_64-.*-linux.* entries to ...
8276         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
8277         * sysdeps/x86_64/x32/shlib-versions: New file.
8278
8279 2012-05-14  Roland McGrath  <roland@hack.frob.com>
8280
8281         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8282         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8283         Use _dl_fatal_printf instead.
8284
8285 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8286
8287         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8288         set if not set by the user.  Do not allow for being unset.
8289         * sysdeps/unix/sysv/linux/configure: Regenerated.
8290
8291 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8292
8293         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8294         the `q' suffix from lea and replace .quad with ASM_ADDR.
8295
8296 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8297
8298         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8299         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8300         instead of $17.
8301         (PTR_DEMANGLE): Likewise.
8302
8303 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8304
8305         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8306         (LP_OP): Likewise.
8307         (ASM_ADDR): Likewise.
8308         (RAX_LP): Likewise.
8309         (RBP_LP): Likewise.
8310         (RBX_LP): Likewise.
8311         (RCX_LP): Likewise.
8312         (RDI_LP): Likewise.
8313         (RSI_LP): Likewise.
8314         (RSP_LP): Likewise.
8315         (R8_LP): Likewise.
8316         (R9_LP): Likewise.
8317         (R10_LP): Likewise.
8318         (R10_LP): Likewise.
8319         (R11_LP): Likewise.
8320         (R12_LP): Likewise.
8321         (R13_LP): Likewise.
8322         (R14_LP): Likewise.
8323         (R15_LP): Likewise.
8324
8325 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8326
8327         * sysdeps/x86_64/x32/dl-machine.h: New file.
8328
8329 2012-05-14  Andreas Jaeger  <aj@suse.de>
8330
8331         * manual/Makefile (subdir): Remove export of subdir.
8332         (all): Remove target.
8333         (.PHONY): Remove all from list.
8334         (mkinstalldirs): Remove.
8335         (.PHONY): Remove installdirs from list.
8336         ($(inst_infodir)/libc.info): Use make-target-directory.
8337         (installdirs): Remove.
8338         (subdir_%): Remove.
8339         (glibc-targets): Remove.
8340         (lib): Remove.
8341         (stubs): Remove.
8342         ($(objpfx)stubs ../po/manual.pot): Remove.
8343         ($(objpfx)stamp%): Remove.
8344         (make-target-directory): Remove.
8345         (subdir_install): Remove.
8346         (routines): Remove.
8347         (aux): Remove.
8348         (sources): Remove.
8349         (objects): Remove.
8350         (headers): Remove.
8351
8352         [BZ #13750]
8353         * manual/.gitignore: Remove, it's not needed anymore.
8354         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8355         all files in it.
8356         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8357         directory.
8358         (texis): Renamed to $(objpfx)texis.
8359         (texis-path): New, contains path to generated files.
8360         (chapters.%): Use texis-path for complete path, add extra argument
8361         libc-texinfo.sh.
8362         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8363         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8364         (summary,texi, stamp-summary): Use complete path of
8365         files. Generate files in build dir.
8366         (dir-add.texi): Build in build dir.
8367         (libm-err.texi,stamp-libm-err): Likewise.
8368         (version.texi, stamp-version): Likewise.
8369         (.%c.texi): Likewise.
8370         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8371         (mostlyclean): Remove target.
8372         (realclean): Remove target.
8373         (generated): Add new variable with contents from mostlyclean and
8374         realclean, remove entries duplicated in common-mostlyclean, add
8375         stamp-libm-err and stamp-version.
8376         (generated-dirs): Add libc directory.
8377         ($(inst_infodir)/libc.info): Install files from build dir.
8378
8379         * manual/install.texi (Configuring and compiling): Adjust since
8380         the info files are not part of the tar ball anymore.
8381
8382 2012-05-14  Andreas Jaeger  <aj@suse.de>
8383
8384         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8385         variable.
8386
8387 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8388
8389         [BZ #13717]
8390         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8391         to 2.2.0 where earlier.
8392         * sysdeps/unix/sysv/linux/configure: Regenerated.
8393         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8394         Remove conditional code.
8395         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8396         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8397         Remove conditional code.
8398         [!__NR_lchown]: Likewise.
8399         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8400         [__NR_lchown]: Likewise.
8401         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8402         comment referencing __ASSUME_LCHOWN_SYSCALL.
8403         * sysdeps/unix/sysv/linux/i386/sigaction.c
8404         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8405         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8406         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8407         Remove conditional code.
8408         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8409         (__protocol_available): Remove #if 0 code.
8410         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8411         conditional code.
8412         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8413         * sysdeps/unix/sysv/linux/kernel-features.h
8414         (__ASSUME_GETCWD_SYSCALL): Don't define.
8415         (__ASSUME_REALTIME_SIGNALS): Likewise.
8416         (__ASSUME_PREAD_SYSCALL): Likewise.
8417         (__ASSUME_PWRITE_SYSCALL): Likewise.
8418         (__ASSUME_POLL_SYSCALL): Likewise.
8419         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8420         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8421         non-SPARC.
8422         (__ASSUME_SIOCGIFNAME): Don't define.
8423         (__ASSUME_MSG_NOSIGNAL): Likewise.
8424         (__ASSUME_SENDFILE): Define unconditionally.
8425         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8426         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8427         conditional code.
8428         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8429         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8430         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8431         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8432         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8433         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8434         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8436         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8437         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8439         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8440         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8442         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8443         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8445         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8446         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8448         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8449         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8451         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8452         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8454         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8455         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8457         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8458         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8459         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8460         Remove conditional code.
8461         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8462         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8463         Remove conditional code.
8464         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8465         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8466         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8467         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8468         Remove conditional code.
8469         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8470         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8471         Remove conditional code.
8472         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8473         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8474         Remove conditional code.
8475         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8476         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8477         Remove conditional code.
8478         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8479         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8480         Remove conditional code.
8481         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8482         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8483         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8484         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8485         * sysdeps/unix/sysv/linux/sigaction.c
8486         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8487         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8488         * sysdeps/unix/sysv/linux/sigpending.c
8489         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8490         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8491         * sysdeps/unix/sysv/linux/sigprocmask.c
8492         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8493         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8494         * sysdeps/unix/sysv/linux/sigsuspend.c
8495         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8496         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8497         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8498         (__libc_missing_rt_sigs): Remove.
8499         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8500         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8501         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8502         Remove conditional code.
8503         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8504         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8505         return 1.
8506         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8507         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8508         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8509         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8510
8511 2012-05-14  Andreas Jaeger  <aj@suse.de>
8512
8513         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8514         it's not used in glibc.
8515         (__coshm1): Likewise.
8516         (__acosh1p): Likewise.
8517         (__sgn): Likewise.
8518
8519         * manual/string.texi (Copying and Concatenation): Add missing
8520         variable in concat example.
8521         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8522
8523 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8524
8525         [BZ #14103]
8526         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8527         __builtin_clzl with __builtin_clzll.
8528
8529 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8530
8531         [BZ #14104]
8532         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8533         libc_freeres_ptr.
8534
8535 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8536
8537         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8538         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8539         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8540         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8541
8542 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8543
8544         * NEWS: Update ia64 info.
8545
8546 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8547
8548         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8549         used as bcopy.
8550
8551 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8552
8553         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8554         * sysdeps/unix/syscalls.list (dup3): Likewise.
8555         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8556         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8557
8558 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8559
8560         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8561         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8562
8563 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8564
8565         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8566         thread pointer.
8567         (TLS_IE): Use mov/add instead of movq/addq to load thread
8568         pointer.
8569         (TLS_GD_PREFIX): New.
8570         (TLS_GD): Use it.
8571
8572 2012-05-11  David S. Miller  <davem@davemloft.net>
8573
8574         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8575         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8576         (_FPU_SETCW): Likewise.
8577
8578 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8579
8580         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8581         is 32-byte aligned.
8582
8583 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8584
8585         [BZ #11837]
8586         * iconvdata/gb18030.c: Update tables.
8587         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8588         characters specially.
8589         (BODY for TO_LOOP): Add encoding of missing ranges.
8590
8591 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8592
8593         [BZ #13673]
8594         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8595         * sysdeps/mach/hurd/dup3.c: Likewise.
8596         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8597         * sysdeps/powerpc/memmove.c:: Likewise.
8598
8599 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8600
8601         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8602         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8603
8604 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8605
8606         * elf/elf.h (R_X86_64_RELATIVE64): New.
8607         (R_X86_64_NUM): Updated.
8608         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8609         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8610         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8611         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8612         tst-quad1pie tst-quad2pie
8613         (modules-names): Add tst-quadmod1 tst-quadmod2.
8614         ($(objpfx)tst-quad1): New dependency.
8615         ($(objpfx)tst-quad2): Likewise.
8616         ($(objpfx)tst-quad1pie): Likewise.
8617         ($(objpfx)tst-quad2pie): Likewise.
8618         * sysdeps/x86_64/tst-quad1.c: New file.
8619         * sysdeps/x86_64/tst-quad1pie.c: New file.
8620         * sysdeps/x86_64/tst-quad2.c: Likewise.
8621         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8622         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8623         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8624         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8625         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8626
8627 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8628
8629         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8630         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8631         * streams/stropts.h (t_scalar_t): Define type.
8632
8633         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8634         (_PATH_PRESERVE): Set to "/var/lib".
8635         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8636
8637         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8638         instead of int.
8639
8640         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8641         if __dir_mkfile succeeded.
8642
8643         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8644         checking for _hurd_dtablesize.  Unlock it right after having
8645         finished _hurd_dtable allocation.
8646
8647 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8648
8649         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8650         * sysdeps/mach/hurd/configure: Regenerated.
8651         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8652         special-casing to...
8653         * sysdeps/gnu/configure.in: ... this new file.
8654         * sysdeps/unix/sysv/linux/configure: Regenerated.
8655         * sysdeps/gnu/configure: New generated file.
8656
8657         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8658         for Linux: use nsec instead of usec, as well as:
8659         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8660         members of type struct timespec.
8661         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8662         New macros.
8663         (struct stat64): Likewise.
8664         (_STATBUF_ST_NSEC): New macro.
8665         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8666
8667         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8668         __strtoul_internal rather than strtoul.
8669
8670 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8671
8672         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8673         and reject them.
8674
8675 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8676
8677         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8678         which preserves existing values.
8679         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8680
8681 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8682
8683         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8684         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8685         greater than FD_SETSIZE.
8686
8687 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8688
8689         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8690         allocated, call __vm_protect to finish enabling the existing space, and
8691         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8692         allocate the remainder.
8693
8694 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8695
8696         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8697         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8698
8699 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8700
8701         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8702         sysdeps/mach/hurd/readlink.c.
8703
8704         * posix/tst-sysconf.c (posix_options): Only use
8705         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8706         _POSIX_SYNCHRONIZED_IO when they are defined
8707         * sysdeps/mach/hurd/bits/posix_opt.h:
8708         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8709         (_XOPEN_REALTIME): Undefine macro.
8710         (_XOPEN_REALTIME_THREADS): Undefine macro.
8711         (_XOPEN_SHM): Undefine macro.
8712         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8713         macro to -1.
8714         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8715         macro to -1.
8716         (_POSIX_ASYNC_IO): Undefine macro.
8717         (_POSIX_PRIORITIZED_IO): Undefine macro.
8718         (_POSIX_SPIN_LOCKS): Define macro to -1.
8719
8720         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8721         SA_NODEFER, SA_RESETHAND.
8722         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8723         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8724         F_DUPFD_CLOEXEC.
8725
8726 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8727
8728         * elf/Makefile (pldd-modules): Define unconditionally.
8729
8730 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8731
8732         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8733
8734 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8735
8736         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8737         Return ENOENT when name is empty.
8738         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8739
8740 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8741
8742         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8743
8744         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8745
8746 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8747
8748         Fix mlock in all cases except non-readable pages.
8749         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8750         instead of VM_PROT_ALL as parameter to __vm_wire function.
8751
8752         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8753         (__mkdir): When path is `/', just fail with EEXIST.
8754         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8755
8756 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8757
8758         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8759         <sys/uio.h> (for writev).
8760         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8761         and <sys/param.h> (for MIN).
8762
8763 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8764
8765         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8766         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8767         if interrupted.
8768
8769 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8770
8771         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8772         Depend on against $(link-rpcuserlibs).
8773
8774 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8775
8776         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8777         (__libc_stack_end): Do not use attribute_relro.
8778         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8779         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8780         to libthread-provided value.
8781         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8782         attribute_relro.
8783
8784 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8785
8786         [BZ #3748]
8787         * bits/libc-lock.h (__libc_once_get): New macro.
8788         * sysdeps/mach/bits/libc-lock.h: Likewise.
8789         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8790         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8791         instead of using implementation details.
8792
8793         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8794         * libio/freopen.c: Likewise.
8795         * libio/freopen64.c: Likewise.
8796         * misc/syslog.c: Likewise.
8797         * nscd/connections.c: Likewise.
8798         * nscd/netgroupcache.c: Likewise.
8799         * sysdeps/posix/getcwd.c: Likewise.
8800
8801 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8802
8803         * math/w_ilogbf.c: Add #include <limits.h>.
8804
8805 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8806
8807         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8808         path instead of returning without unlocking.
8809
8810         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8811         immediate-write ioctls.
8812         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8813
8814 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8815
8816         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8817         __builtin_frame_address instead of making assumptions about the
8818         location of the return address relative to DATA.  Force early load of
8819         the return address.
8820         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8821         __builtin_frame_address.
8822
8823         dup3 for GNU Hurd.
8824         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8825         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8826         implement dup3 and do some further code clean-ups.
8827         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8828         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8829
8830 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8831
8832         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8833
8834         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8835         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8836         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8837         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8838         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8839         d->port.lock.
8840
8841         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8842         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8843         when handler == SIG_ERR, not when handler != SIG_ERR.
8844
8845 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8846
8847         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8848         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8849         definitions.
8850
8851         accept4 for GNU Hurd.
8852         * include/sys/socket.h (__libc_accept4): New prototype.
8853         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8854         to implement __libc_accept4.
8855         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8856         __libc_accept4.
8857         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8858
8859         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8860         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8861         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8862         signal-defines.sym.
8863
8864 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8865
8866         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8867
8868 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8869
8870         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8871         assertion on O_CLOEXEC flag.
8872         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8873         * hurd/intern-fd.c: Likewise.
8874         * hurd/port2fd.c: Likewise.
8875
8876 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8877
8878         [BZ #3906]
8879         * bits/in.h (IPV6_PKTINFO): Define new macro.
8880         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8881
8882 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8883
8884         [BZ #13954]
8885         [BZ #13955]
8886         [BZ #13956]
8887         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8888         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8889         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8890         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8891         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8892         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8893         * math/libm-test.inc (logb_test) : Additional logb tests.
8894
8895 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8896             Andreas Jaeger  <aj@suse.de>
8897
8898         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8899         * configure: Regenerated.
8900         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8901         * config.make.in (link-obsolete-rpc): New substituted variable.
8902         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8903         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8904         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8905         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8906         so that libc.a contains the symbols.
8907         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8908         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8909         * sunrpc/auth_none.c: Likewise.
8910         * sunrpc/auth_unix.c: Likewise.
8911         * sunrpc/authdes_prot.c: Likewise.
8912         * sunrpc/authuxprot.c: Likewise.
8913         * sunrpc/clnt_gen.c: Likewise.
8914         * sunrpc/clnt_perr.c: Likewise.
8915         * sunrpc/clnt_raw.c: Likewise.
8916         * sunrpc/clnt_simp.c: Likewise.
8917         * sunrpc/clnt_tcp.c: Likewise.
8918         * sunrpc/clnt_udp.c: Likewise.
8919         * sunrpc/clnt_unix.c: Likewise.
8920         * sunrpc/des_crypt.c: Likewise.
8921         * sunrpc/des_soft.c: Likewise.
8922         * sunrpc/get_myaddr.c: Likewise.
8923         * sunrpc/key_call.c: Likewise.
8924         * sunrpc/key_prot.c: Likewise.
8925         * sunrpc/netname.c: Likewise.
8926         * sunrpc/pm_getmaps.c: Likewise.
8927         * sunrpc/pm_getport.c: Likewise.
8928         * sunrpc/pmap_clnt.c: Likewise.
8929         * sunrpc/pmap_prot.c: Likewise.
8930         * sunrpc/pmap_prot2.c: Likewise.
8931         * sunrpc/pmap_rmt.c: Likewise.
8932         * sunrpc/publickey.c: Likewise.
8933         * sunrpc/rpc_cmsg.c: Likewise.
8934         * sunrpc/rpc_common.c: Likewise.
8935         * sunrpc/rpc_dtable.c: Likewise.
8936         * sunrpc/rpc_prot.c: Likewise.
8937         * sunrpc/rpc_thread.c: Likewise.
8938         * sunrpc/rtime.c: Likewise.
8939         * sunrpc/svc.c: Likewise.
8940         * sunrpc/svc_auth.c: Likewise.
8941         * sunrpc/svc_raw.c: Likewise.
8942         * sunrpc/svc_run.c: Likewise.
8943         * sunrpc/svc_tcp.c: Likewise.
8944         * sunrpc/svc_udp.c: Likewise.
8945         * sunrpc/svc_unix.c: Likewise.
8946         * sunrpc/svcauth_des.c: Likewise.
8947         * sunrpc/xcrypt.c: Likewise.
8948         * sunrpc/xdr.c: Likewise.
8949         * sunrpc/xdr_array.c: Likewise.
8950         * sunrpc/xdr_float.c: Likewise.
8951         * sunrpc/xdr_intXX_t.c: Likewise.
8952         * sunrpc/xdr_mem.c: Likewise.
8953         * sunrpc/xdr_rec.c: Likewise.
8954         * sunrpc/xdr_ref.c: Likewise.
8955         * sunrpc/xdr_sizeof.c: Likewise.
8956         * sunrpc/xdr_stdio.c: Likewise.
8957
8958 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8959
8960         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8961         change.  Update copyright years.
8962
8963 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8964
8965         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8966
8967 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8968             Joseph Myers  <joseph@codesourcery.com>
8969             Paul Pluzhnikov  <ppluzhnikov@google.com>
8970
8971         [BZ #14012]
8972         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8973         requiring rpcgen.
8974         [cross-compiling] (extra-libs): Likewise.
8975         [cross-compiling] (extra-libs-others): Likewise.
8976         [cross-compiling] (librpcsvc-routines): Likewise.
8977         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8978         [cross-compiling] (omit-deps): Likewise.
8979         (sunrpc-CPPFLAGS): New variable.
8980         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8981         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8982         (cross-rpcgen-objs): New variable.
8983         (extra-objs): Append $(cross-rpcgen-objs).
8984         ($(cross-rpcgen-objs)): New rule.
8985         ($(objpfx)cross-rpcgen): Likewise.
8986         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8987         comment.
8988         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8989         ($(objpfx)x%.stmp): Likewise.
8990         * sunrpc/proto.h [IS_IN_build] (_): Define.
8991         [IS_IN_build] (_libc_intl_domainname): Likewise.
8992
8993 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8994
8995         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
8996         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
8997         and R_X86_64_TPOFF64.
8998
8999 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
9000
9001         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
9002         sysdeps/unix/sysv/syscalls.list.
9003         (stime): Likewise.
9004         (utime): Likewise.
9005         * sysdeps/unix/sysv/syscalls.list: Remove file.
9006
9007 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
9008
9009         [BZ #3440]
9010         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
9011         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
9012         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
9013         (__LC_IDENTIFICATION): Make these macros useful in #if
9014         expressions, as required by C99.
9015
9016 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
9017
9018         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
9019         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
9020         after this.
9021
9022 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9023
9024         * stdlib/longlong.h: Updated from GCC.
9025
9026 2012-05-09  Andreas Jaeger  <aj@suse.de>
9027
9028         * nscd/nscd.c (run_modes): Make named enum, reorder so that
9029         default is first entry.
9030         (run_mode): Set type.
9031         (main): Remove informal message about syslog.
9032         (options): Fix typo.
9033
9034         [BZ #14053]
9035         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
9036         to asm.
9037         (lrint): Likewise.
9038         (llrintf): Likewise.
9039         (llrint): Likewise.
9040         (rint): Likewise.
9041         (rintf): Likewise.
9042         (nearbyint): Likewise.
9043         (nearbyintf): Likewise.
9044
9045 2012-05-09  Andreas Jaeger  <aj@suse.de>
9046             Pedro Alves  <palves@redhat.com>
9047
9048         * nscd/nscd.c (run_mode): Use enum.
9049         (main): Cleanup coding style issue.
9050
9051 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
9052             Andreas Jaeger  <aj@suse.de>
9053
9054         * nscd/nscd.c (go_background): Replaced with...
9055         (run_mode): ... this.
9056         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
9057         (options): Add -F --foreground.
9058         (main): Implement it.
9059         (parse_opt): Parse it.
9060
9061 2012-05-09  Andreas Jaeger  <aj@suse.de>
9062
9063         [BZ #14083]
9064         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
9065         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
9066         -Wconversion warning.
9067         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
9068         Likewise.
9069
9070 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
9071
9072         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
9073         == 0.
9074         (LC_ALL): Use macro-int-constant.
9075         (LC_COLLATE): Likewise.
9076         (LC_CTYPE): Likewise.
9077         (LC_MESSAGES): Likewise.
9078         (LC_MONETARY): Likewise.
9079         (LC_NUMERIC): Likewise.
9080         (LC_TIME): Likewise.
9081         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9082         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9083         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9084         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9085         Specify type.
9086         [C99-based standards] (float_t): Expect type.
9087         [C99-based standards] (double_t): Expect type.
9088         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9089         type.
9090         [C99-based standards] (HUGE_VALL): Likewise.
9091         [C99-based standards] (INFINITY): Likewise.
9092         [C99-based standards] (NAN): Likewise.
9093         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9094         [C99-based standards] (FP_NAN): Likewise.
9095         [C99-based standards] (FP_NORMAL): Likewise.
9096         [C99-based standards] (FP_SUBNORMAL): Likewise.
9097         [C99-based standards] (FP_ZERO): Likewise.
9098         [C99-based standards] (FP_FAST_FMA): Use
9099         optional-macro-int-constant.  Specify type.  Require == 1.
9100         [C99-based standards] (FP_FAST_FMAF): Likewise.
9101         [C99-based standards] (FP_FAST_FMAL): Likewise.
9102         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9103         [C99-based standards] (FP_ILOGBNAN): Likewise.
9104         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9105         Specify type.
9106         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9107         [C99-based standards] (math_errhandling): Specify type.
9108         [ISO99 || ISO11] (signgam): Do not allow.
9109         [non-C99-based standards] (copysignf): Do not allow.
9110         [non-C99-based standards] (exp2f): Likewise.
9111         [non-C99-based standards] (log2f): Likewise.
9112         [non-C99-based standards] (modff): Allow.
9113         [non-C99-based standards] (erff): Do not allow.
9114         [non-C99-based standards] (erfcf): Likewise.
9115         [non-C99-based standards] (gammaf): Likewise.
9116         [non-C99-based standards] (hypotf): Likewise.
9117         [non-C99-based standards] (j0f): Likewise.
9118         [non-C99-based standards] (j1f): Likewise.
9119         [non-C99-based standards] (jnf): Likewise.
9120         [non-C99-based standards] (lgammaf): Likewise.
9121         [non-C99-based standards] (tgammaf): Likewise.
9122         [non-C99-based standards] (y0f): Likewise.
9123         [non-C99-based standards] (y1f): Likewise.
9124         [non-C99-based standards] (ynf): Likewise.
9125         [non-C99-based standards] (isnanf): Likewise.
9126         [non-C99-based standards] (acoshf): Likewise.
9127         [non-C99-based standards] (asinhf): Likewise.
9128         [non-C99-based standards] (atanhf): Likewise.
9129         [non-C99-based standards] (cbrtf): Likewise.
9130         [non-C99-based standards] (expm1f): Likewise.
9131         [non-C99-based standards] (ilogbf): Likewise.
9132         [non-C99-based standards] (log1pf): Likewise.
9133         [non-C99-based standards] (logbf): Likewise.
9134         [non-C99-based standards] (nextafterf): Likewise.
9135         [non-C99-based standards] (remainderf): Likewise.
9136         [non-C99-based standards] (rintf): Likewise.
9137         [non-C99-based standards] (scalbf): Likewise.
9138         [non-C99-based standards] (copysignl): Likewise.
9139         [non-C99-based standards] (exp2l): Likewise.
9140         [non-C99-based standards] (log2l): Likewise.
9141         [non-C99-based standards] (modfl): Allow.
9142         [non-C99-based standards] (erfl): Do not allow.
9143         [non-C99-based standards] (erfcl): Likewise.
9144         [non-C99-based standards] (gammal): Likewise.
9145         [non-C99-based standards] (hypotl): Likewise.
9146         [non-C99-based standards] (j0l): Likewise.
9147         [non-C99-based standards] (j1l): Likewise.
9148         [non-C99-based standards] (jnl): Likewise.
9149         [non-C99-based standards] (lgammal): Likewise.
9150         [non-C99-based standards] (tgammal): Likewise.
9151         [non-C99-based standards] (y0l): Likewise.
9152         [non-C99-based standards] (y1l): Likewise.
9153         [non-C99-based standards] (ynl): Likewise.
9154         [non-C99-based standards] (isnanl): Likewise.
9155         [non-C99-based standards] (acoshl): Likewise.
9156         [non-C99-based standards] (asinhl): Likewise.
9157         [non-C99-based standards] (atanhl): Likewise.
9158         [non-C99-based standards] (cbrtl): Likewise.
9159         [non-C99-based standards] (expm1l): Likewise.
9160         [non-C99-based standards] (ilogbl): Likewise.
9161         [non-C99-based standards] (log1pl): Likewise.
9162         [non-C99-based standards] (logbl): Likewise.
9163         [non-C99-based standards] (nextafterl): Likewise.
9164         [non-C99-based standards] (remainderl): Likewise.
9165         [non-C99-based standards] (rintl): Likewise.
9166         [non-C99-based standards] (scalbl): Likewise.
9167         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9168         [non-C99-based standards] (FP_*): Do not allow.
9169         [C99-based standards] (FP_*): Change to
9170         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9171         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9172         allow.
9173         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9174         (SIG_ERR): Likewise.
9175         [X/Open-based standards] (SIG_HOLD): Likewise.
9176         (SIG_IGN): Likewise.
9177         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9178         positive value.
9179         (SIGFPE): Likewise.
9180         (SIGILL): Likewise.
9181         (SIGINT): Likewise.
9182         (SIGSEGV): Likewise.
9183         (SIGTER): Likewise.
9184         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9185         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9186         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9187         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9188         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9189         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9190         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9191         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9192         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9193         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9194         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9195         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9196         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9197         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9198         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9199         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9200         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9201         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9202         [X/Open-based standards] (SIGTRAP): Likewise.
9203         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9204         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9205         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9206         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9207         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9208         allow.
9209
9210 2012-05-08  Ian Wienand  <ianw@vmware.com>
9211
9212         [BZ #14080]
9213         * time/tzset.c (__tzset_parse_tz): Update default rules for
9214         daylight time changes in the Energy Policy Act of 2005.
9215
9216 2012-05-09  Andreas Jaeger  <aj@suse.de>
9217
9218         [BZ #13983]
9219         * elf/ldconfig.c (parse_conf): Change string to make clear that
9220         ldconfig only issued a warning if ld.so.conf does not exist.
9221
9222 2012-05-08  David S. Miller  <davem@davemloft.net>
9223
9224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9225         movxtod instead of popping the value on the stack.
9226
9227         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9228
9229 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9230
9231         * config.h.in: Add HAVE_ARM_PCS_VFP.
9232
9233 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9234
9235         [BZ #13979]
9236         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9237         checking but the checks are disabled for any reason.
9238
9239 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9240
9241         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9242         and ELF64_R_TYPE with ELFW(R_TYPE).
9243
9244 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9245
9246         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9247         (ulimit): Likewise.
9248
9249         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9250         (settimeofday): Likewise.
9251
9252 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9253
9254         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9255         a struct th_u2 inside the union, and move tu_block/tu_code into
9256         a new th_u3 union of tu_block/tu_code inside of that.  Move
9257         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9258         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9259         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9260         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9261         (th_stuff): Change to th_u1.tu_stuff.
9262         (th_data): Define.
9263         (th_msg): Change to th_u1.th_u2.tu_data.
9264
9265 2012-05-07  David S. Miller  <davem@davemloft.net>
9266
9267         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9268
9269         [BZ #14074]
9270         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9271         (SETUP_PIC_REG): Use it.
9272         (SETUP_PIC_REG_LEAF): Use it.
9273
9274 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
9275
9276         [BZ #13885]
9277         [BZ #13923]
9278         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9279         USE_AS_EXPM1L.
9280         (EXPL_FINITE): Likewise.
9281         (FLDLOG): Likewise.
9282         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9283         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9284         e_expl.S.
9285         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9286         USE_AS_EXPM1L.
9287         (EXPL_FINITE): Likewise.
9288         (FLDLOG): Likewise.
9289         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9290         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9291         e_expl.S.
9292         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9293         test of -max_value argument for long double.
9294         * sysdeps/i386/fpu/libm-test-ulps: Update.
9295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9296
9297 2012-05-06  David S. Miller  <davem@davemloft.net>
9298
9299         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9300         quad soft-float symbols whose references which are compiler
9301         generated.
9302         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9303
9304 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9305
9306         [BZ #13884]
9307         [BZ #13914]
9308         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9309         USE_AS_EXP10L.
9310         (EXPL_FINITE): Likewise.
9311         (FLDLOG): Likewise.
9312         (c0): Likewise.
9313         (c1): Likewise.
9314         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9315         Adjust comments for base varying.
9316         (__expl_finite): Change alias to EXPL_FINITE.
9317         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9318         e_expl.S.
9319         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9320         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9321         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9322         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9323         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9324         USE_AS_EXP10L.
9325         (EXPL_FINITE): Likewise.
9326         (FLDLOG): Likewise.
9327         (c0): Likewise.
9328         (c1): Likewise.
9329         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9330         Adjust comments for base varying.
9331         (__expl_finite): Change alias to EXPL_FINITE.
9332         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9333         tests for bugs.
9334         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9335
9336         [BZ #14064]
9337         * math/libm-test.inc (check_float_internal): Correct ulp
9338         calculation for subnormal expected results.
9339
9340 2012-05-06  Andreas Jaeger  <aj@suse.de>
9341
9342         * Makeconfig (+math-flags): New, set to -frounding-math.
9343         (+cflags): Add +math-flags so that all of glibc gets compiled with
9344         it.
9345
9346         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9347
9348 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9349
9350         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9351         Disable one test.
9352
9353         [BZ #13787]
9354         [BZ #13922]
9355         [BZ #14036]
9356         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9357         (__ieee754_expl): Allow for and saturate large arguments.
9358         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9359         (u_threshold): Likewise.
9360         (__exp): Call __ieee754_exp before checking for overflow and
9361         underflow.
9362         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9363         (u_threshold): Likewise.
9364         (__expf): Call __ieee754_expf before checking for overflow and
9365         underflow.
9366         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9367         (u_threshold): Likewise.
9368         (__expl): Call __ieee754_expl before checking for overflow and
9369         underflow.
9370         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9371         (__ieee754_expl): Allow for and saturate large arguments.
9372         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9373         missing overflow exception on overflow.
9374         (expm1_test): Do not allow missing overflow exception on overflow.
9375
9376         * sysdeps/i386/fpu/e_expl.c: Move to ...
9377         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9378         rather than using inline asm.
9379         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9380         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9381         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9382
9383         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9384         (nice): Likewise.
9385         (poll): Likewise.
9386         (signal): Likewise.
9387         (time): Likewise.
9388         (times): Likewise.
9389
9390 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9391
9392         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9393         sysdeps/unix/common/syscalls.list.
9394         (fchmod): Likewise.
9395         (fchown): Likewise.
9396         (ftruncate): Likewise.
9397         (getrusage): Likewise.
9398         (gettimeofday): Likewise.
9399         (setpgid): Likewise.
9400         (setregid): Likewise.
9401         (setreuid): Likewise.
9402         (sigaction): Likewise.
9403         (truncate): Likewise.
9404         (vhangup): Likewise.
9405         * sysdeps/unix/common/syscalls.list: Remove file.
9406         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9407         * sysdeps/unix/sysv/linux/Implies: Likewise.
9408
9409 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9410
9411         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9412         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9413         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9414         Moved to ...
9415         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9416         Here.
9417         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9418         to ...
9419         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9420         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9421         to ...
9422         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9423         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9424         to ...
9425         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9426         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9427         to ...
9428         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9429         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9430         to ...
9431         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9432         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9433         to ...
9434         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9435         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9436         to ...
9437         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9438         Here.
9439         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9440         to ...
9441         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9442         Here.
9443         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9444         to ...
9445         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9446         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9447         Moved to ...
9448         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9449         Here.
9450         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9451         to ...
9452         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9453
9454 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9455
9456         * sysdeps/unix/common/bits/dirent.h: Remove file.
9457         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9458
9459         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9460         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9461         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9462         * sysdeps/unix/bsd/isatty.c: Likewise.
9463         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9464         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9465         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9466
9467 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9468
9469         [BZ #13563]
9470         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9471         long double comparison inaccuracies.
9472         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9473         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9474
9475 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9476
9477         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9478         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9479
9480 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9481
9482         [BZ #14049]
9483         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9484         nonzero digits before rounding a hex value.
9485         * stdlib/tst-strtod.c (tests): Add another test.
9486
9487 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9488
9489         * sysdeps/s390/fpu/libm-test-ulps: Update.
9490
9491 2012-05-03  Andreas Jaeger  <aj@suse.de>
9492
9493         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9494         does not get optimized out.
9495         (malloc_opt_barrier): New.
9496
9497 2012-05-03  Andreas Jaeger  <aj@suse.de>
9498             Roland McGrath  <roland@hack.frob.com>
9499
9500         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9501         intermediate file deletion.
9502         (generated): Add .symlist files.
9503
9504 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9505
9506         [BZ #13775]
9507         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9508         Redirect under this condition.
9509         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9510         [__USE_GNU] (__dprintf_chk): Not under this condition.
9511         [__USE_GNU] (__vdprintf_chk): Likewise.
9512         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9513         under this condition.
9514         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9515         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9516         [__USE_XOPEN2K8] (vdprintf): Likewise.
9517         [__USE_GNU] (__dprintf_chk): Not under this condition.
9518         [__USE_GNU] (__vdprintf_chk): Likewise.
9519         [__USE_GNU] (dprintf): Likewise.
9520         [__USE_GNU] (vdprintf): Likewise.
9521
9522 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9523
9524         * elf/Makefile (common-generated): Set this instead of generated for
9525         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9526         $(all-built-dso)-derived lists.
9527
9528 2012-05-03  Andreas Jaeger  <aj@suse.de>
9529
9530         * sysdeps/i386/fpu/libm-test-ulps: Update.
9531
9532         * FAQ: Removed.
9533         * FAQ.in: Likewise.
9534         * scripts/gen-FAQ.pl: Likewise.
9535         * manual/install.texi (Installation): Point to online location of
9536         FAQ.
9537         * Makefile (files-for-dist): Remove FAQ.
9538         (FAQ): Remove.
9539
9540 2012-05-02  Allan McRae  <allan@archlinux.org>
9541
9542         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9543         (LDFLAGS-reldepmod5.so): Likewise.
9544         (LDFLAGS-reldep6mod1.so): Likewise.
9545         (LDFLAGS-reldep6mod4.so): Likewise.
9546         (LDFLAGS-reldep8mod3.so): Likewise.
9547         (LDFLAGS-unload4mod1.so): Likewise.
9548         (LDFLAGS-unload4mod2.so): Likewise.
9549         (LDFLAGS-tst-initorder): Likewise.
9550         (LDFLAGS-tst-initordera2.so): Likewise.
9551         (LDFLAGS-tst-initordera3.so): Likewise.
9552         (LDFLAGS-tst-initordera4.so): Likewise.
9553         (LDFLAGS-tst-initorderb2.so): Likewise.
9554         (LDFLAGS-noload): Likewise.
9555         (LDFLAGS-next): Likewise.
9556         (LDFLAGS-order2mod1.so): Likewise.
9557         (LDFLAGS-order2mod2.so): Likewise.
9558         (LDFLAGS-tst-initorder2): Likewise.
9559         (LDFLAGS-tst-initorder2a.so): Likewise.
9560         (LDFLAGS-tst-initorder2b.so): Likewise.
9561         (LDFLAGS-tst-initorder2c.so): Likewise.
9562         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9563
9564 2012-05-02  David S. Miller  <davem@davemloft.net>
9565
9566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9567
9568 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9569
9570         [BZ #14055]
9571         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9572
9573 2012-05-02  Andreas Jaeger  <aj@suse.de>
9574
9575         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9576         since we manipulate rounding mode.
9577         (CPPFLAGS-test-idouble.c): Likewise.
9578         (CPPFLAGS-test-ifloat.c): Likewise.
9579         (CFLAGS-test-ldouble.c): Likewise.
9580         (CFLAGS-test-double.c): Likewise.
9581         (CFLAGS-test-float.c): Likewise.
9582         (CFLAGS-test-misc.c): Likewise.
9583         (CFLAGS-test-test-fenv.c): Likewise.
9584
9585 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9586
9587         [BZ #2550]
9588         [BZ #2570]
9589         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9590         comparisons to determine direction to adjust input.
9591
9592 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9593
9594         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9595         output to the target.
9596
9597         * scripts/localplt.awk: New file.
9598         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9599         (check-localplt-CFLAGS): Variable removed.
9600         ($(all-built-dso:=.jmprel)): New static pattern rule.
9601         (generated): Add those targets.
9602         (localplt-built-dso): New variable.
9603         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9604
9605         * elf/check-localplt.c: File removed.
9606
9607         * scripts/check-execstack.awk: New file.
9608         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9609         (check-execstack-CFLAGS): Variable removed.
9610         ($(objpfx)check-execstack.h): Target removed.
9611         ($(objpfx)execstack-default): New target.
9612         (generated): Add that instead of check-execstack.h.
9613         ($(all-built-dso:=.phdr)): New static pattern rule.
9614         (generated): Add those targets.
9615         * elf/check-execstack.c: File removed.
9616
9617         * scripts/check-textrel.awk: New file.
9618         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9619         (check-textrel-CFLAGS): Variable removed.
9620         (all-built-dso): Use := to define.o
9621         ($(all-built-dso:=.dyn)): New static pattern rule.
9622         (generated): Add those targets.
9623         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9624         * config.make.in (READELF): New substituted variable.
9625         * elf/check-textrel.c: File removed.
9626
9627 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9628
9629         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9630         allow.
9631         * conform/data/ctype.h-data [C99-based standards] (isblank):
9632         Expect function.
9633         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9634         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9635         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9636         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9637         Specify type.  Require positive value.
9638         (EILSEQ): Likewise.
9639         (ERANGE): Likewise.
9640         [ISO || POSIX] (EILSEQ): Do not expect.
9641         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9642         Specify type.  Require positive value.
9643         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9644         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9645         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9646         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9647         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9648         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9649         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9650         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9651         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9652         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9653         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9654         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9655         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9656         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9657         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9658         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9659         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9660         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9661         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9662         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9663         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9664         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9665         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9666         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9667         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9668         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9669         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9670         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9671         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9672         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9673         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9674         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9675         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9676         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9677         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9678         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9679         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9680         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9681         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9682         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9683         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9684         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9685         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9686         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9687         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9688         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9689         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9690         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9691         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9692         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9693         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9694         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9695         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9696         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9697         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9698         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9699         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9700         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9701         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9702         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9703         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9704         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9705         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9706         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9707         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9708         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9709         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9710         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9711         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9712         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9713         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9714         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9715         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9716         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9717         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9718         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9719         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9720         Require >= 2.
9721         (FLT_ROUNDS): Expect as macro, not constant.
9722         (FLT_MANT_DIG): Use macro-int-constant.
9723         (DBL_MANT_DIG): Likewise.
9724         (LDBL_MANT_DIG): Likewise.
9725         (FLT_DIG): Likewise.
9726         (DBL_DIG): Likewise.
9727         (LDBL_DIG): Likewise.
9728         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9729         (DBL_MIN_EXP): Likewise.
9730         (LDBL_MIN_EXP): Likewise.
9731         (FLT_MAX_EXP): Use macro-int-constant.
9732         (DBL_MAX_EXP): Likewise.
9733         (LDBL_MAX_EXP): Likewise.
9734         (FLT_MAX_10_EXP): Likewise.
9735         (DBL_MAX_10_EXP): Likewise.
9736         (LDBL_MAX_10_EXP): Likewise.
9737         (FLT_MAX): Use macro-constant.
9738         (DBL_MAX): Likewise.
9739         (LDBL_MAX): Likewise.
9740         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9741         (DBL_EPSILON): Likewise.
9742         (LDBL_EPSILON): Likewise.
9743         (FLT_MIN): Likewise.
9744         (DBL_MIN): Likewise.
9745         (LDBL_MIN): Likewise.
9746         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9747         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9748         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9749         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9750         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9751         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9752         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9753         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9754         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9755         [ISO11] (FLT_TRUE_MIN): Likewise.
9756         [ISO11] (LDBL_TRUE_MIN): Likewise.
9757         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9758         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9759         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9760         (SCHAR_MAX): Likewise.
9761         (UCHAR_MAX): Likewise.
9762         (CHAR_MIN): Likewise.
9763         (CHAR_MAX): Likewise.
9764         (MB_LEN_MAX): Use macro-int-constant.
9765         (SHRT_MIN): Use macro-int-constant.  Specify type.
9766         (SHRT_MAX): Likewise.
9767         (USHRT_MAX): Likewise.
9768         (INT_MAX): Likewise.
9769         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9770         bound negative.
9771         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9772         bound with "U".
9773         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9774         bound with "L".
9775         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9776         bound negative.  Suffix upper bound with "L".
9777         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9778         bound with "UL".
9779         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9780         Specify type.
9781         [C99-based standards] (LLONG_MAX): Likewise.
9782         [C99-based standards] (ULLONG_MAX): Likewise.
9783         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9784         == 0.
9785         [ISO11] (max_align_t): Require type.
9786         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9787
9788         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9789         from $CFLAGS, without defining away __attribute__ calls.
9790         (checknamespace): Use $CFLAGS_namespace.
9791
9792         * conform/conformtest.pl (@keywords): Only include C99 keywords
9793         for standards based on C99 or C11.
9794
9795         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9796         Disable tests.
9797         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9798         UNIX98]: Likewise.
9799
9800         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9801         usability of symbols in #if.
9802
9803         * conform/conformtest.pl: If macro or constant types start
9804         "promoted:", expect the symbol to be of the following type
9805         promoted by the integer promotions.
9806
9807         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9808         in one place.  Also handle "macro-constant".
9809
9810         * conform/conformtest.pl: Only accept expected macro values with
9811         "==".  Parse all "macro" lines in one place.
9812         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9813
9814         * conform/conformtest.pl: Handle braced types on "constant" lines
9815         instead of handling "typed-constant".
9816         * conform/data/signal.h-data: Use "constant" instead of
9817         "typed-constant".
9818
9819         * conform/conformtest.pl: Handle "optional-" at start of lines in
9820         one place rather than duplicating several cases.  Handle each
9821         format of "macro" line with initial "optional-".
9822
9823         * conform/conformtest.pl: Only accept expected constant or
9824         optional-constant values with "==".  Parse all "constant" lines in
9825         one place.  Parse all "optional-constant" lines in one place.
9826         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9827         * conform/data/fmtmsg.h-data: Likewise.
9828         * conform/data/netinet/in.h-data: Likewise.
9829         * conform/data/tar.h-data: Likewise.
9830         * conform/data/limits.h-data: Use "==" form on "constant" and
9831         "optional-constant" lines.
9832
9833         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9834         Use -std=c99 for XOPEN2K.
9835         (@knownproblems): Remove.
9836         (newtoken): Don't check %isknown.
9837
9838         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9839         Do not expect macro.
9840         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9841         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9842         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9843         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9844         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9845         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9846         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9847         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9848         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9849         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9850         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9851         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9852         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9853         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9854         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9855         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9856         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9857         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9858         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9859         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9860         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9861         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9862         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9863         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9864         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9865         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9866         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9867         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9868         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9869         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9870         [XPG3] (acosh): Likewise.
9871         [XPG3] (asinh): Likewise.
9872         [XPG3] (atanh): Likewise.
9873         [XPG3] (cbrt): Likewise.
9874         [XPG3] (expm1): Likewise.
9875         [XPG3] (ilogb): Likewise.
9876         [XPG3] (log1p): Likewise.
9877         [XPG3] (logb): Likewise.
9878         [XPG3] (nextafter): Likewise.
9879         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9880         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9881         [XPG3] (remainder): Likewise.
9882         [XPG3] (rint): Likewise.
9883         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9884         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9885         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9886         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9887         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9888         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9889         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9890         [UNIX98 || XOPEN2K] (scalb): Expect.
9891         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9892         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9893         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9894         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9895         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9896         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9897         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9898         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9899         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9900         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9901         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9902         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9903         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9904         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9905         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9906         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9907         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9908         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9909         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9910         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9911         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9912         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9913         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9914         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9915         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9916         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9917         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9918         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9919         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9920         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9921         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9922         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9923         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9924         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9925         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9926         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9927         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9928         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9929         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9930         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9931         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9932         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9933         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9934         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9935         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9936         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9937         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9938         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9939         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9940         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9941         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9942         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9943         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9944         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9945         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9946         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9947         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9948         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9949         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9950         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9951         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9952         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9953         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9954         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9955         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9956         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9957         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9958         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9959         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9960         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9961         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9962         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9963         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9964         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9965         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9966         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9967         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9968         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9969         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9970         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9971         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9972         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9973         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9974         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9975         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9976         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9977         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9978         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9979         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9980         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9981         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9982         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9983         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9984         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9985         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9986         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9987         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9988         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9989         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9990         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9991         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9992         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9993         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9994         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9995         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
9996         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
9997         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
9998         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
9999         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
10000         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
10001         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
10002         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
10003         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
10004         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
10005         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
10006         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
10007         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
10008         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
10009         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
10010         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
10011         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
10012         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
10013         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
10014         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
10015         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
10016         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
10017         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
10018         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
10019         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
10020         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
10021         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
10022         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
10023         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
10024         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
10025         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
10026         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
10027         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
10028
10029         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
10030         _XOPEN_SOURCE_EXTENDED for XPG4.
10031
10032         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
10033
10034         * Makeconfig (localtime): Remove variable.
10035         (inst_localtime-file): Likewise.
10036
10037 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10038
10039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
10040         Update.
10041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10042         Update.
10043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
10044         Update.
10045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
10046         Update.
10047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
10048         Update.
10049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
10050         Update.
10051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10052         Update.
10053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
10054         Update.
10055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10056         Update.
10057
10058 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10059
10060         [BZ #2550]
10061         [BZ #2570]
10062         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
10063         comparisons to determine direction to adjust input.
10064         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10065         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
10066         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10067         Likewise.
10068         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10069         Likewise.
10070         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10071         Likewise.
10072         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10073         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10074         Likewise.
10075         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10076         Likewise.
10077         * math/libm-test.inc (nexttoward_test): Add more tests.
10078
10079 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10080
10081         [BZ #14040]
10082         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10083         in version GLIBC_2.1, not GLIBC_2.0.
10084         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10085         Likewise.
10086
10087 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10088
10089         [BZ #13942]
10090         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10091         (1 - x) * (1 + x).
10092         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10093         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10094         * math/libm-test.inc (acos_test): Add more tests.
10095         (asin_test): Likewise.
10096         * sysdeps/i386/fpu/libm-test-ulps: Update.
10097         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10098
10099         [BZ #14034]
10100         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10101         of square root.
10102         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10103         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10104         * math/libm-test.inc (acos_test_tonearest): New function.
10105         (acos_test_towardzero): Likewise.
10106         (acos_test_downward): Likewise.
10107         (acos_test_upward): Likewise.
10108         (asin_test_tonearest): Likewise.
10109         (asin_test_towardzero): Likewise.
10110         (asin_test_downward): Likewise.
10111         (asin_test_upward): Likewise.
10112         (main): Call the new functions.
10113         * sysdeps/i386/fpu/libm-test-ulps: Update.
10114         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10115
10116         [BZ #13884]
10117         [BZ #13924]
10118         * math/e_exp10.c: Include <float.h>.
10119         (__ieee754_exp10): Handle underflow here rather than multiplying
10120         large negative argument by M_LN10.
10121         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10122         of __ieee754_expf.
10123         * math/e_exp10l.c: Include <float.h>.
10124         (__ieee754_exp10l): Handle underflow here rather than multiplying
10125         large negative argument by M_LN10l.
10126         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10127         spurious overflow exception on underflow.
10128
10129 2012-04-29  Marek Polacek  <polacek@redhat.com>
10130
10131         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10132         (__fortify_function): New macro.
10133         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10134         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10135         __extern_always_inline.
10136         * libio/bits/stdio2.h: Likewise.
10137         * libio/bits/stdio.h: Likewise.
10138         * string/string.h: Likewise.
10139         * string/bits/string3.h: Likewise.
10140         * include/stdio.h: Likewise.
10141         * stdlib/bits/stdlib.h: Likewise.
10142         * stdlib/stdlib.h: Likewise.
10143         * rt/bits/mqueue2.h: Likewise.
10144         * rt/mqueue.h: Likewise.
10145         * posix/bits/unistd.h: Likewise.
10146         * posix/unistd.h: Likewise.
10147         * io/bits/poll2.h: Likewise.
10148         * io/bits/fcntl2.h: Likewise.
10149         * io/fcntl.h: Likewise.
10150         * io/sys/poll.h: Likewise.
10151         * misc/bits/syslog.h: Likewise.
10152         * misc/bits/syslog-ldbl.h: Likewise.
10153         * misc/sys/syslog.h: Likewise.
10154         * socket/bits/socket2.h: Likewise.
10155         * socket/sys/socket.h: Likewise.
10156         * debug/tst-chk1.c: Likewise.
10157         * wcsmbs/bits/wchar2.h: Likewise.
10158         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10159         * wcsmbs/wchar.h: Likewise.
10160
10161 2012-04-29  Andreas Jaeger  <aj@suse.de>
10162
10163         * Makerules (tests): Remove enable-check-abi protection.
10164         (check-abi-warn): Remove.
10165         (check-abi-%): Remove check-abi-warn usage.
10166
10167         * configure.in: Remove check-abi configure option.
10168         * configure: Regenerated.
10169         * config.make.in (enable-check-abi): Remove.
10170
10171 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10172
10173         [BZ #14033]
10174         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10175         double functions to double *_finite functions.
10176
10177         [BZ #13941]
10178         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10179         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10180         LDBL_MIN_EXP.
10181         * stdio-common/Makefile (tests): Add tst-sprintf3.
10182         * stdio-common/tst-sprintf3.c: New file.
10183
10184         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10185         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10186
10187 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10188
10189         * conform/conformtest.pl: Remove duplicate typed-constant
10190         handling.
10191
10192 2012-04-28  David S. Miller  <davem@davemloft.net>
10193
10194         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10195         (check-abi-%): Remove AWK script prerequisite and explicit
10196         abilist directory.
10197         (check-abi): Rewrite to just diff the symlist with the abilist.
10198         (config-tls, config-abi-config): Delete, no longer used.
10199         (update-abi-%): Remove AWK script and explicit abilist directory.
10200         (update-abi): Rewrite to simply compare and conditionally copy the
10201         symlist and the sysdep abilist file.  Remove update-abi-config
10202         checks.
10203         * abilist/ld.abilist: Remove.
10204         * abilist/libBrokenLocale.abilist: Remove.
10205         * abilist/libanl.abilist: Remove.
10206         * abilist/libcrypt.abilist: Remove.
10207         * abilist/libdl.abilist: Remove.
10208         * abilist/librt.abilist: Remove.
10209         * abilist/libthread_db.abilist: Remove.
10210         * abilist/libutil.abilist: Remove.
10211         * scripts/extract-abilist.awk: Remove.
10212         * scripts/merge-abilist.awk: Remove.
10213         * sysdeps/generic/libcidn.abilist: New file.
10214         * sysdeps/generic/libnss_compat.abilist: New file.
10215         * sysdeps/generic/libnss_db.abilist: New file.
10216         * sysdeps/generic/libnss_dns.abilist: New file.
10217         * sysdeps/generic/libnss_files.abilist: New file.
10218         * sysdeps/generic/libnss_hesiod.abilist: New file.
10219         * sysdeps/generic/libnss_nis.abilist: New file.
10220         * sysdeps/generic/libnss_nisplus.abilist: New file.
10221         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10222         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10223         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10224         file.
10225         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10226         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10227         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10228         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10229         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10230         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10231         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10232         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10233         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10234         file.
10235         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10236         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10237         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10238         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10239         file.
10240         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10241         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10242         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10243         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10244         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10245         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10246         file.
10247         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10248         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10249         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10250         file.
10251         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10252         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10253         New file.
10254         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10255         New file.
10256         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10257         New file.
10258         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10259         New file.
10260         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10261         New file.
10262         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10263         New file.
10264         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10265         New file.
10266         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10267         New file.
10268         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10269         New file.
10270         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10271         New file.
10272         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10273         New file.
10274         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10275         New file.
10276         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10277         New file.
10278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10279         file.
10280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10281         New file.
10282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10283         New file.
10284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10285         file.
10286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10287         New file.
10288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10289         New file.
10290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10291         file.
10292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10293         New file.
10294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10295         New file.
10296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10297         New file.
10298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10299         New file.
10300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10301         New file.
10302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10303         New file.
10304         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10305         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10306         file.
10307         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10308         New file.
10309         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10310         file.
10311         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10312         file.
10313         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10314         file.
10315         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10316         file.
10317         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10318         file.
10319         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10320         New file.
10321         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10322         file.
10323         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10324         file.
10325         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10326         New file.
10327         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10328         file.
10329         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10330         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10331         file.
10332         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10333         New file.
10334         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10335         file.
10336         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10337         file.
10338         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10339         file.
10340         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10341         file.
10342         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10343         file.
10344         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10345         New file.
10346         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10347         file.
10348         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10349         file.
10350         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10351         New file.
10352         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10353         file.
10354         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10355         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10356         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10357         file.
10358         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10359         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10360         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10361         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10362         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10363         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10364         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10365         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10366         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10367         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10368         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10369         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10370         file.
10371         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10372         New file.
10373         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10374         file.
10375         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10376         file.
10377         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10378         file.
10379         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10380         file.
10381         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10382         file.
10383         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10384         New file.
10385         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10386         New file.
10387         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10388         file.
10389         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10390         New file.
10391         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10392         file.
10393         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10394         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10395         file.
10396         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10397         New file.
10398         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10399         file.
10400         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10401         file.
10402         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10403         file.
10404         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10405         file.
10406         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10407         file.
10408         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10409         New file.
10410         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10411         New file.
10412         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10413         file.
10414         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10415         New file.
10416         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10417         file.
10418
10419 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10420
10421         * conform/conformtest.pl: Fix typo in handling typed-constant from
10422         allow-header.
10423
10424 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10425
10426         * README: Cut down references to pre-2.6 Linux kernels and
10427         Linuxthreads.  Update lists of configurations in libc and ports
10428         and sort alphabetically.  Say "or newer" with Linux kernel version
10429         requirements.
10430
10431         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10432
10433 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10434
10435         [BZ #887]
10436         * math/libm-test.inc (logb_test_downward): New test to expose
10437         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10438         rounding mode.
10439
10440 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10441
10442         [BZ #14027]
10443         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10444         to be done.
10445         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10446         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10447
10448 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10449
10450         * sysdeps/unix/i386/brk.S: Remove file.
10451         * sysdeps/unix/i386/dl-brk.S: Likewise.
10452         * sysdeps/unix/i386/pipe.S: Likewise.
10453         * sysdeps/unix/i386/sigreturn.S: Likewise.
10454         * sysdeps/unix/i386/syscall.S: Likewise.
10455         * sysdeps/unix/i386/vfork.S: Likewise.
10456         * sysdeps/unix/i386/wait.S: Likewise.
10457
10458         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10459         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10460
10461         * configure.in (arm*-none*): Do not allow without
10462         --enable-hacker-mode.
10463         (netbsd*): Remove case setting base_os.
10464         (386bsd*): Likewise.
10465         (freebsd*): Likewise.
10466         (bsdi*): Likewise.
10467         (osf*): Likewise.
10468         (sunos*): Likewise.
10469         (ultrix*): Likewise.
10470         (newsos*): Likewise.
10471         (dynix*): Likewise.
10472         (*bsd*): Likewise.
10473         (sysv*): Likewise.
10474         (isc*): Likewise.
10475         (esix*): Likewise.
10476         (sco*): Likewise.
10477         (minix*): Likewise.
10478         (irix4*): Likewise.
10479         (irix6*): Likewise.
10480         (solaris[2-9]*): Likewise.
10481         (none): Likewise.
10482         * configure: Regenerated.
10483
10484 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10485
10486         [BZ #11521]
10487         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10488         overflow or cancellation in calculating denominator.
10489         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10490         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10491         down expression to avoid unexpected rounding in newer GCCs.
10492         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10493
10494 2012-04-26  David S. Miller  <davem@davemloft.net>
10495
10496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10497         long-double compat symbols.
10498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10503         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10504         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10505         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10506         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10507         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10508         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10510         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10511
10512 2012-04-25  David S. Miller  <davem@davemloft.net>
10513
10514         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10515         HWCAP_* values only after the memory barriers have been defined.
10516         (atomic_full_barrier): Define.
10517         (atomic_read_barrier): Define.
10518         (atomic_write_barrier): Define.
10519
10520 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10521
10522         * shlib-versions: Add libgcc_s version information.
10523         * sysdeps/generic/libgcc_s.h: Remove.
10524         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10525         libgcc_s.h.
10526         * sysdeps/gnu/unwind-resume.c: Likewise.
10527         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10528
10529 2012-04-25  David S. Miller  <davem@davemloft.net>
10530
10531         * sysdeps/unix/sparc/brk.S: Delete.
10532         * sysdeps/unix/sparc/dl-brk.S: Delete.
10533         * sysdeps/unix/sparc/pipe.S: Delete.
10534         * sysdeps/unix/sparc/sysdep.S: Delete.
10535         * sysdeps/unix/sparc/sysdep.h: Delete.
10536         * sysdeps/unix/sparc/vfork.S: Delete.
10537         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10538         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10539         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10540         ret_ERRVAL, r0, r1, MOVE): Define.
10541         (JUMPTARGET): Remove.
10542         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10543         sysdeps/unix/sparc/sysdep.h
10544         (ENTRY, END): Remove.
10545         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10546
10547 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10548
10549         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10550         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10551         -DIS_IN_build.
10552
10553         * timezone/README: Update upstream location and email address for
10554         tzcode and tzdata.
10555         * timezone/zdump.c: Update from tzcode 2012b.
10556         * timezone/zic.c: Likewise.
10557
10558         * configure.in (libc_cv_as_needed): Remove test.
10559         * configure: Regenerated.
10560         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10561         conditional definition.
10562         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10563         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10564         * config.make.in (have-as-needed): Remove variable.
10565
10566 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10567             Paul Pluzhnikov  <ppluzhnikov@google.com>
10568
10569         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10570         strings correctly.
10571
10572 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10573
10574         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10575         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10576         * sysdeps/sh/strlen.S: Likewise.
10577
10578 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10579
10580         * sysdeps/unix/fork.S: Remove file.
10581         * sysdeps/unix/i386/fork.S: Likewise.
10582         * sysdeps/unix/sparc/fork.S: Likewise.
10583
10584         * sysdeps/unix/system.c: Remove file.
10585         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10586
10587         * sysdeps/unix/getegid.S: Remove file.
10588         * sysdeps/unix/geteuid.S: Likewise.
10589
10590 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10591
10592         * scripts/check-localplt.awk: New file.
10593         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10594         of diff.
10595         * scripts/data/localplt-generic.data: Add a comment.
10596
10597         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10598         NODE when __dir_mkfile failed.
10599         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10600         Reported by Ludovic Courtès <ludo@gnu.org>.
10601
10602 2012-04-24  Andreas Jaeger  <aj@suse.de>
10603
10604         * Makerules (common-clean): Also remove gen-as-const-headers
10605         files.
10606
10607 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10608
10609         * Makerules (native-compile): Do not change working directory for
10610         build.  Use $(OUTPUT_OPTION) in command.
10611         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10612
10613 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10614
10615         [BZ #13886]
10616         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10617         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10618         * math/libm-test.inc (floor_test): Add more tests.
10619         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10620
10621 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10622
10623         * sysdeps/unix/getdents.c: Remove file.
10624         * sysdeps/unix/sysv/getdents.c: Likewise.
10625         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10626
10627         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10628         sysdeps/unix/mman/syscalls.list.
10629         (mmap): Likewise.
10630         (mprotect): Likewise.
10631         (msync): Likewise.
10632         (munmap): Likewise.
10633         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10634         * sysdeps/unix/mman/syscalls.list: Remove.
10635         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10636
10637         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10638         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10639         * configure: Regenerated.
10640         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10641         $(libgcc_s_suffix).
10642         * config.make.in (libgcc_s_suffix): Remove variable.
10643
10644 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10645
10646         * sysdeps/unix/sysv/gethostname.c: Move to ...
10647         * sysdeps/posix/gethostname.c: ... here.
10648
10649         * sysdeps/unix/execve.S: Remove file.
10650
10651         * sysdeps/unix/_exit.S: Remove file.
10652
10653 2012-04-23  Andreas Jaeger  <aj@suse.de>
10654
10655         [BZ #13739]
10656         * manual/Makefile: Remove make dist support, there's no
10657         need for a stand-alone documentation tar ball.
10658         (TEXI2DVI): Define always, it's not in Makeconfig.
10659         (dist): Removed.
10660         (tar-it): Removed.
10661         (edition): Removed.
10662         (glibc-doc-$(edition).tar): Removed
10663         (%.Z): Removed.
10664         (%.gz): Removed.
10665         (%.uu): Removed.
10666         (ETAGS): Remove, it's in Makeconfig.
10667         (move-if-change): Remove, it's in Makeconfig.
10668
10669 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10670
10671         [BZ #13970]
10672         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10673         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10674         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10675         (strtod_l, strtof_l, strtold_l): Remove __wur.
10676         It is not necessarily an error to ignore strtol's return value.
10677         One can reliably look at the stored endptr to decide whether
10678         the number had valid syntax.
10679
10680 2012-04-21  Andreas Jaeger  <aj@suse.de>
10681
10682         [BZ #13739]
10683         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10684
10685 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10686
10687         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10688         * sysdeps/unix/sysv/Versions: Remove file.
10689
10690 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10691
10692         [BZ #13927]
10693         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10694
10695 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10696
10697         [BZ #7064]
10698         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10699         version from __vm86.
10700
10701 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10702
10703         * sysdeps/unix/common/lxstat.c: Remove file.
10704         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10705
10706         * sysdeps/unix/sysv/Makefile: Remove file.
10707
10708         * sysdeps/unix/sysv/direct.h: Remove file.
10709
10710         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10711         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10712         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10713         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10714         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10715         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10716         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10717
10718         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10719
10720         * sysdeps/unix/xmknod.c: Remove file.
10721         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10722
10723         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10724
10725         * sysdeps/unix/sysv/i386/time.S: Remove file.
10726
10727         * sysdeps/unix/fxstat.c: Remove file.
10728         * sysdeps/unix/xstat.c: Likewise.
10729         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10730
10731         * sysdeps/unix/sysv/sigaction.c: Remove file.
10732
10733         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10734         (sysdep_headers): Remove variable.
10735         [termio.h not in sysdep_headers] (generated): Likewise.
10736         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10737         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10738         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10739         * sysdeps/unix/sysv/tcflow.c: Likewise.
10740         * sysdeps/unix/sysv/tcflush.c: Likewise.
10741         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10742         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10743         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10744         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10745         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10746
10747         * sysdeps/unix/siglist.c: Remove file.
10748
10749         * sysdeps/unix/getppid.S: Remove file.
10750
10751         * sysdeps/unix/mkdir.c: Remove file.
10752         * sysdeps/unix/rmdir.c: Likewise.
10753
10754 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10755
10756         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10757         ERR_MAX value.
10758         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10759         errlist-compat value.
10760
10761 2012-04-18  David S. Miller  <davem@davemloft.net>
10762
10763         * sysdeps/generic/memcopy.h (reg_char): Delete.
10764         * debug/strcat_chk.c: Use char, not reg_char.
10765         * debug/strcpy_chk.c: Likewise.
10766         * debug/strncat_chk.c: Likewise.
10767         * debug/strncpy_chk.c: Likewise.
10768         * string/memchr.c: Likewise.
10769         * string/memrchr.c: Likewise.
10770         * string/rawmemchr.c: Likewise.
10771         * string/strcat.c: Likewise.
10772         * string/strchr.c: Likewise.
10773         * string/strchrnul.c: Likewise.
10774         * string/strcmp.c: Likewise.
10775         * string/strcpy.c: Likewise.
10776         * string/strncat.c: Likewise.
10777         * string/strncmp.c: Likewise.
10778         * string/strncpy.c: Likewise.
10779
10780 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10781
10782         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10783         __builtin_memcopy is called when src and dest ranges are known to not
10784         overlap.
10785
10786 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10787
10788         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10789         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10790         fwd_align_merge macro call.
10791         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10792         bwd_align_merge macro call.
10793         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10794
10795 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10796
10797         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10798         bwd_align_merge macros.
10799         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10800         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10801         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10802
10803 2012-04-18  David S. Miller  <davem@davemloft.net>
10804
10805         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10806
10807 2012-04-18  Andreas Jaeger  <aj@suse.de>
10808
10809         [BZ# 6794]
10810         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10811         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10812         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10813
10814         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10815         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10816         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10817
10818         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10819         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10820         Adjust for changed ldbl-128 files.
10821
10822         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10823         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10824         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10825
10826 2012-04-17  David S. Miller  <davem@davemloft.net>
10827
10828         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10829
10830 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10831
10832         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10833         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10834         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10835         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10836         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10837         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10838
10839 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10840
10841         [BZ #6794]
10842         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10843         * math/libm-test.inc: Add ilogb errno and exception tests.
10844         * math/w_ilogb.c: New file: ilogb wrapper.
10845         * math/w_ilogbf.c: New file: ilogbf wrapper.
10846         * math/w_ilogbl.c: New file: ilogbl wrapper.
10847         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10848         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10849         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10850         exception being thrown with 0.0 as argument.
10851         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10852         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10853         exception being thrown with 0.0 as argument.
10854         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10855         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10856         exception being thrown with 0.0 as argument.
10857         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10858         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10859         exception being thrown with 0.0 as argument.
10860         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10861         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10862         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10863         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10864         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10865         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10866         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10867         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10868         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10869
10870 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10871
10872         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10873         with altivec.
10874
10875 2012-04-16  Marek Polacek  <polacek@redhat.com>
10876
10877         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10878
10879 2012-04-16  Marek Polacek  <polacek@redhat.com>
10880
10881         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10882         operands of fdivp instruction.
10883
10884 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10885
10886         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10887         * elf/tst-auditmod3b.c: Likewise.
10888         * elf/tst-auditmod4b.c: Likewise.
10889         * elf/tst-auditmod5b.c: Likewise.
10890         * elf/tst-auditmod6b.c: Likewise.
10891         * elf/tst-auditmod6c.c: Likewise.
10892         * elf/tst-auditmod7b.c: Likewise.
10893         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10894         * sysdeps/x86_64/preconfigure.in: Likewise.
10895         * sysdeps/x86_64/preconfigure: Regenerated.
10896
10897 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10898
10899         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10900         __ILP32__.
10901
10902 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10903
10904         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10905         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10906
10907 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10908
10909         [BZ #13973]
10910         * locale/iso-639.def: Fix gl language name. Spotted by
10911         Yaron Shahrabani.
10912
10913 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10914
10915         [BZ #2074]
10916         * libio/libio.h (__io_write_fn): Update comment.
10917
10918 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10919
10920         [BZ #2074]
10921         * stdio.texi (Hook Functions): The user provided writer function
10922         is not allowed to return -1.
10923
10924 2012-04-11  David S. Miller  <davem@davemloft.net>
10925
10926         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10927
10928 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10929
10930         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10931         Add a leading slash to rtkaio.
10932
10933 2012-04-11  Jim Meyering  <meyering@redhat.com>
10934
10935         [BZ #11959]
10936         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10937         It is not necessarily an error to ignore fwrite's return
10938         value.  One can reliably use ferror to test for errors after
10939         the fact.
10940
10941 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10942
10943         * bits/types.h (__snseconds_t): New type.
10944         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10945
10946         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10947         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10948         (__SNSECONDS_T_TYPE): Likewise.
10949         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10950         (__SNSECONDS_T_TYPE): Likewise.
10951         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10952         (__SNSECONDS_T_TYPE): Likewise.
10953
10954 2012-04-10  Andreas Jaeger  <aj@suse.de>
10955
10956         [BZ #2636]
10957         * manual/time.texi (Processor Time): Return type of times is
10958         elapsed real time since an arbitrary point in the past.
10959         (CPU Time): Move CLK_TCK from here...
10960         (Processor Time): ...to here.  Correct description.
10961         * manual/conf.texi (Constants for Sysconf): Correct description of
10962         _SC_CLK_TCK.
10963
10964 2012-04-10  David S. Miller  <davem@davemloft.net>
10965
10966         [BZ #13967]
10967         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10968         where the is a gap between DT_REL(A) and DT_JMPREL.
10969
10970 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10971
10972         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10973         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10974         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10975
10976 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10977
10978         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10979         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10980         (dl_main): Handle --inhibit-cache.
10981         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10982         _dl_inhibit_cache.
10983         * elf/dl-load.c (_dl_map_object): Use it.
10984         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10985
10986 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10987
10988         [BZ #13872]
10989         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10990         (__ieee754_powl): Saturate large exponents rather than testing for
10991         overflow of y*log2(x).
10992         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10993         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10994         exceptions.
10995
10996         [BZ #11521]
10997         * math/s_ctan.c: Include <float.h>.
10998         (__ctan): Avoid internal overflow or cancellation in calculating
10999         denominator.
11000         * math/s_ctanf.c: Likewise.
11001         * math/s_ctanl.c: Likewise.
11002         * math/s_ctanh.c: Likewise.
11003         * math/s_ctanhf.c: Likewise.
11004         * math/s_ctanhl.c: Likewise.
11005         * math/libm-test.inc (ctan_test): Add more tests.
11006         (ctanh_test): Likewise.
11007         * sysdeps/i386/fpu/libm-test-ulps: Update.
11008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11009
11010 2012-04-09  Andreas Jaeger  <aj@suse.de>
11011
11012         [BZ #6894]
11013         * manual/filesys.texi (Directory Entries): Mention that d_namlen
11014         is an optional BSD extension.
11015
11016         [BZ #10254]
11017         * manual/stdio.texi (Opening Streams): Document additional fopen
11018         parameters.
11019
11020 2012-04-09  Roland McGrath  <roland@hack.frob.com>
11021
11022         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
11023         %eax without telling the compiler.
11024
11025 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
11026
11027         [BZ # 13963]
11028         * manual/install.texi: Use sourceware.org.
11029
11030 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11031
11032         [BZ #13873]
11033         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
11034         (__ieee754_pow): Generate overflow and underflow using huge*huge
11035         and tiny*tiny rather than just returning constant infinity or zero
11036         for large exponents.
11037         * math/libm-test.inc (pow_test): Require overflow exceptions for
11038         applicable cases of large exponents.
11039
11040         [BZ #706]
11041         * sysdeps/i386/fpu/e_pow.S (p10): New object.
11042         (__ieee754_pow): Use iterative multiplication algorithm only for
11043         integer exponents with absolute value below 1024.  Check for odd
11044         integer exponents when using algorithm for real exponents.
11045         * math/libm-test.inc (pow_test): Add more tests.
11046         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11047
11048 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
11049
11050         [BZ #13705]
11051         * math/libm-test.inc (exp_test): Do not allow overflow exception
11052         on underflow test.
11053
11054 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
11055
11056         [BZ #13705]
11057         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
11058         instead of __kernel_standard_f.
11059
11060 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
11061
11062         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
11063         * sysdeps/x86_64/memset_chk.S: Likewise.
11064
11065 2012-04-08  Andreas Jaeger  <aj@suse.de>
11066
11067         [BZ #10153]
11068         * manual/startup.texi (Environment Access): Describe return value
11069         for putenv and setenv.
11070
11071         [BZ #6895]
11072         * manual/filesys.texi (Directory Entries): Add description for
11073         DT_LNK.
11074
11075         [BZ #6890]
11076         * manual/filesys.texi (Directory Entries): Clarify that it's file
11077         system not operating system in the description of DT_UNKNOWN.
11078
11079         [BZ #6578]
11080         * manual/syslog.texi (closelog): Fix reference, it's openlog.
11081
11082 2012-04-08  Stephen Compall  <s11@member.fsf.org>
11083
11084         [BZ #6649]
11085         * manual/llio.texi (Opening and Closing Files): Add cross
11086         reference to explain mode argument.
11087
11088 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11089
11090         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11091         * sysdeps/x86_64/memset_chk.S: Likewise.
11092
11093 2012-04-07  David S. Miller  <davem@davemloft.net>
11094
11095         * elf/elf.h (R_SPARC_WDISP10): Define.
11096         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11097         R_SPARC_SIZE32.
11098         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11099         R_SPARC_SIZE64 and R_SPARC_H34.
11100
11101 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11102
11103         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11104         conditions and remove no longer applicable assertion.
11105
11106 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11107
11108         * bits/byteswap.h: Include <features.h>.
11109         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11110         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11111
11112 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11113
11114         * bits/byteswap.h (__bswap_16): Removed.
11115         Include <bits/byteswap-16.h> to get __bswap_16.
11116         * sysdeps/i386/bits/byteswap.h: Likewise.
11117         * sysdeps/s390/bits/byteswap.h: Likewise.
11118         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11119         * bits/byteswap-16.h: New file.
11120         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11121         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11122         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11123         * string/Makefile (headers): Add bits/byteswap-16.h.
11124
11125 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11126
11127         [BZ #13895]
11128         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11129         extra indirection.
11130         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11131         * nss/tst-nss-static.c: New.
11132
11133 2012-04-06  Robert Millan  <rmh@gnu.org>
11134
11135         [BZ #6486]
11136         * manual/llio.texi (File Position Primitive): lseek
11137         refers to WHENCE when it really means OFFSET.
11138
11139 2012-04-06  Andreas Jaeger  <aj@suse.de>
11140
11141         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11142         strncmp declarations.
11143
11144         * abilist/libc.abilist: Add __poll and __ppoll.
11145
11146 2012-04-05  David S. Miller  <davem@davemloft.net>
11147
11148         * scripts/check-local-headers.sh: Accept a host triplet in the
11149         path matched by the exclude regexp.
11150
11151         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11152         definition.
11153         * sysdeps/powerpc/powerpc32/dl-machine.h
11154         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11155         * sysdeps/s390/s390-32/dl-machine.h
11156         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11157         * sysdeps/sparc/sparc32/dl-machine.h
11158         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11159         * sysdeps/sparc/sparc64/dl-machine.h
11160         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11161
11162         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11163         lazy binding.
11164         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11165         undefined symbol errors.
11166
11167         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11168         DT_NEEDED entries.
11169
11170 2012-04-05  Michael Matz  <matz@suse.de>
11171
11172         [BZ #13592]
11173         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11174
11175 2012-04-05  Andreas Jaeger  <aj@suse.de>
11176
11177         [BZ #13908]
11178         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11179         comment.
11180
11181 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11182
11183         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11184         which ROUND is no valid rounding mode.
11185
11186 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11187
11188         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11189         read again.
11190         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11191
11192 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11193
11194         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11195         an exception using FPU order intentionally.
11196
11197 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11198
11199         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11200         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11201         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11202         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11203
11204 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11205
11206         [BZ #12340]
11207         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11208         EINVAL when BUFLEN is too smal.
11209
11210 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11211
11212         [BZ #13553]
11213         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11214         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11215
11216 2012-04-03  Andreas Jaeger  <aj@suse.de>
11217
11218         [BZ #13938]
11219         * manual/setjmp.texi (System V contexts): Fix sentence.
11220
11221         [BZ #13926]
11222         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11223         New macro for this case.
11224         [!__GNUC__] (__bswap_64): New inline function for this case.
11225         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11226         * bits/byteswap.h: Likewise.
11227         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11228         ull, guard with __GLIBC_HAVE_LONG_LONG.
11229
11230         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11231         __GLIBC_HAVE_LONG_LONG.
11232
11233         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11234         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11235
11236 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11237
11238         [BZ #13691]
11239         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11240         inptr and inend, rather than using last_ch.
11241
11242 2012-04-02  David S. Miller  <davem@davemloft.net>
11243
11244         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11245         * stdio-common/printf-parse.h (read_int): Change return type to
11246         'int', return -1 on INT_MAX overflow.
11247         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11248         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11249         overflows INT_MAX.  Check for overflow of in-format-string precision
11250         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11251         SIZE_MAX not INT_MAX for integer overflow test.
11252         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11253         skip the construct in the format string but do not record anything.
11254         * stdio-common/bug22.c: Adjust to test both width/prevision
11255         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11256         explicitly for proper errno values.
11257
11258 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11259
11260         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11261         CHAR_MAX.
11262         * string/test-strcmp.c [! WIDE]: Likewise.
11263         * time/tst-mktime2.c: Likewise for INT_MAX.
11264         * string/test-string.h: #include <sys/param.h> for MIN.
11265
11266         * csu/init-first.c (__libc_init_first): Call __ctype_init.
11267         * sysdeps/i386/init-first.c (init): Likewise.
11268         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11269         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11270         * sysdeps/sh/init-first.c (init): Likewise.
11271
11272 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
11273
11274         * po/ru.po: Update from translation team.
11275         * po/vi.po: Likewise.
11276
11277 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11278
11279         * resolv/nss_dns/dns-host.c: Merge copyright years.
11280
11281 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11282
11283         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11284         Optimize memcpy with prefetch if
11285         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
11286         src, dst pointers have unequal 16 byte alignments.
11287
11288 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11289
11290         [BZ #13928]
11291         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11292         from a CNAME entry and return the minimum ttl for the query.
11293         (gaih_getanswer_slice): Likewise.
11294
11295 2012-03-30  Jeff Law  <law@redhat.com>
11296
11297         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11298         due to long keys.
11299         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11300         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11301
11302         * resolv/nss_dns/dns-host.c: Update copyright year.
11303
11304 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11305
11306         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11307         requests to save a system call.  Fix check that all bytes are sent.
11308
11309         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11310         comments for sendmmsg.
11311
11312 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11313
11314         [BZ #13691]
11315         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11316         with only 1 character between 0x0041 and 0x01b0.
11317         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11318         * wcsmbs/tst-mbsnrtowcs.c: New file.
11319
11320 2012-03-29  David S. Miller  <davem@davemloft.net>
11321
11322         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11323         small copies by hand.
11324
11325 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11326
11327         [BZ #13761]
11328         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11329         _nss_compat_initgroups_dyn): Fall back to malloc/free
11330         for large group memberships.
11331
11332 2012-03-28  David S. Miller  <davem@davemloft.net>
11333
11334         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11335         that branches into memcpy.
11336         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11337         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11338         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11339         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11340         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11341         bits.
11342         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11343         implementation too.
11344         * sysdeps/sparc/mempcpy.S: New file.
11345
11346         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11347         the IFUNC routine in the libc case.
11348         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11349
11350         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11351         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11352         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11353         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11354         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11355         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11356         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11357         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11358
11359         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11360         loop to 256 bytes instead of 64 bytes and fix test signedness.
11361
11362         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11363         * sysdeps/sparc/sparc32/Makefile: rather than here...
11364         * sysdeps/sparc/sparc64/Makefile: and here.
11365
11366 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11367
11368         * malloc/mallocbug.c: Avoid warnings about unused variables.
11369
11370 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11371
11372         [BZ #13760]
11373         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11374         in the right place. Discard and retry query if response is
11375         larger than input buffer size.
11376
11377 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11378
11379         [BZ #369]
11380         [BZ #2678]
11381         [BZ #3866]
11382         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11383         x for large integer exponent.
11384         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11385         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11386         sign of result as needed afterwards.
11387         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11388         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11389         result for underflowing pow the same as for overflow.
11390         (__kernel_standard_l): Handle powl overflow and underflow here
11391         rather than calling __kernel_standard.
11392         * math/libm-test.inc (pow_test): Add more tests.
11393
11394         [BZ #3868]
11395         [BZ #13879]
11396         [BZ #13910]
11397         [BZ #13911]
11398         [BZ #13912]
11399         [BZ #13913]
11400         [BZ #13915]
11401         [BZ #13916]
11402         [BZ #13917]
11403         [BZ #13918]
11404         [BZ #13919]
11405         [BZ #13920]
11406         [BZ #13921]
11407         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11408         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11409         (__kernel_standard_l): New function.
11410         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11411         __kernel_standard.
11412         * math/w_acosl.c (__acosl): Likewise.
11413         * math/w_asinl.c (__asinl): Likewise.
11414         * math/w_atan2l.c (__atan2l): Likewise.
11415         * math/w_atanhl.c (__atanhl): Likewise.
11416         * math/w_coshl.c (__coshl): Likewise.
11417         * math/w_exp10l.c (__exp10l): Likewise.
11418         * math/w_exp2l.c (__exp2l): Likewise.
11419         * math/w_fmodl.c (__fmodl): Likewise.
11420         * math/w_hypotl.c (__hypotl): Likewise.
11421         * math/w_j0l.c (__j0l, __y0l): Likewise.
11422         * math/w_j1l.c (__j1l, __y1l): Likewise.
11423         * math/w_jnl.c (__jnl, __ynl): Likewise.
11424         * math/w_lgammal.c (__lgammal): Likewise.
11425         * math/w_log10l.c (__log10l): Likewise.
11426         * math/w_log2l.c (__log2l): Likewise.
11427         * math/w_logl.c (__logl): Likewise.
11428         * math/w_powl.c (__powl): Likewise.
11429         * math/w_remainderl.c (__remainderl): Likewise.
11430         * math/w_scalbl.c (sysv_scalbl): Likewise.
11431         * math/w_sinhl.c (__sinhl): Likewise.
11432         * math/w_sqrtl.c (__sqrtl): Likewise.
11433         * math/w_tgammal.c (__tgammal): Likewise.
11434         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11435         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11436         * math/libm-test.inc (acos_test): Add more tests.
11437         (acosh_test): Likewise.
11438         (asin_test): Likewise.
11439         (atanh_test): Likewise.
11440         (exp_test): Likewise.
11441         (exp10_test): Likewise.
11442         (exp2_test): Likewise.
11443         (expm1_test): Likewise.
11444         (lgamma_test): Likewise.
11445         (log_test): Likewise.
11446         (log10_test): Likewise.
11447         (log1p_test): Likewise.
11448         (log2_test): Likewise.
11449         (pow_test): Do not allow some spurious overflow exceptions.
11450         (sqrt_test): Add more tests.
11451         (tgamma_test): Likewise.
11452         (y0_test): Likewise.
11453         (y1_test): Likewise.
11454         (yn_test): Likewise.
11455
11456 2012-03-27  Anton Blanchard  <anton@samba.org>
11457
11458         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11459         MAP_HUGETLB.
11460         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11461         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11462         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11463
11464 2012-03-27  David S. Miller  <davem@davemloft.net>
11465
11466         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11467
11468         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11469         have-as-vis3 check.
11470
11471 2012-03-27  Andreas Jaeger  <aj@suse.de>
11472
11473         * sysdeps/x86_64/elf/configure.in: Moved to ...
11474         * sysdeps/x86_64/configure.in: ... here.
11475         * sysdeps/x86_64/elf/start.S: Moved to ...
11476         * sysdeps/x86_64/start.S: ... here.
11477         * sysdeps/x86_64/elf/configure: Delete.
11478
11479         * sysdeps/x86_64/configure.in: Merge contents from
11480         sysdeps/i386/configure.in (without i686 check).
11481
11482         * sysdeps/i386/elf/Versions: Merge into ...
11483         * sysdeps/i386/Versions: ... this.
11484         * sysdeps/i386/elf/Versions: Delete file.
11485         * sysdeps/i386/elf/start.S: Moved to ...
11486         * sysdeps/i386/start.S: ...here.
11487         * sysdeps/i386/elf/configure.in: Merge into...
11488         * sysdeps/i386/configure.in: ...here.
11489         * sysdeps/i386/elf/configure.in: Delete file.
11490         * sysdeps/i386/elf/configure: Delete file.
11491
11492         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11493         * debug/backtracesyms.c: ... here.
11494         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11495         * debug/backtracesymsfd.c: ... here.
11496         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11497         * sysdeps/generic/ifunc-sel.h: ... here.
11498
11499         * sysdeps/unix/i386/start.c: Delete file.
11500         * sysdeps/unix/sparc/start.c: Delete file.
11501         * sysdeps/unix/start.c: Delete file.
11502
11503         * sysdeps/sh/elf/configure.in: Moved to ...
11504         * sysdeps/sh/configure.in: ... here.
11505         * sysdeps/sh/elf/start.S: Moved to ...
11506         * sysdeps/sh/start.S: ... here.
11507         * sysdeps/sh/elf/configure: Delete file.
11508
11509         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11510         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11511         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11512         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11513         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11514         * sysdeps/powerpc/powerpc64/start.S: here.
11515         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11516         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11517         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11518         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11519         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11520
11521         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11522         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11523         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11524         * sysdeps/powerpc/powerpc32/start.S: ... here.
11525         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11526         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11527         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11528
11529         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11530         * sysdeps/powerpc/ifunc-sel.h: ... here.
11531         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11532         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11533
11534         * sysdeps/sparc/elf/configure.in: Moved to ...
11535         * sysdeps/sparc/configure.in: ... here.
11536         * sysdeps/sparc/elf/configure: Delete file.
11537         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11538         * sysdeps/sparc/sparc32/start.S: ... here.
11539         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11540         * sysdeps/sparc/sparc64/start.S: ... here.
11541         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11542         * sysdeps/sparc/sparc32/Makefile: ... this.
11543         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11544         * sysdeps/sparc/sparc64/Makefile: ... this.
11545
11546         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11547         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11548         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11549         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11550         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11551         * sysdeps/s390/s390-32/setjmp.S: ... here.
11552         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11553         * sysdeps/s390/s390-32/configure.in: ... here.
11554         * sysdeps/s390/s390-32/elf/configure: Delete file.
11555         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11556         * sysdeps/s390/s390-32/start.S: ... here.
11557
11558         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11559         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11560         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11561         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11562         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11563         * sysdeps/s390/s390-64/setjmp.S: ... here.
11564         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11565         * sysdeps/s390/s390-64/configure.in: ... here
11566         * sysdeps/s390/s390-64/elf/configure: Delete file.
11567         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11568         * sysdeps/s390/s390-64/start.S: ... here.
11569         * sysdeps/s390/s390-64/elf/configure: Delete.
11570
11571         * configure.in: Remove support for elf directories in sysdeps.
11572
11573         * configure: Regenerated.
11574         * sysdeps/i386/configure: Regenerated.
11575         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11576         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11577         * sysdeps/s390/s390-32/configure: Regenerated.
11578         * sysdeps/s390/s390-64/configure: Regenerated.
11579         * sysdeps/sh/configure: Regenerated.
11580         * sysdeps/sparc/configure: Regenerated.
11581         * sysdeps/x86_64/configure: Regenerated.
11582
11583 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11584
11585         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11586
11587         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11588         denormal result into account.
11589
11590 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11591
11592         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11593         Reported by Allan McRae <allan@archlinux.org>.
11594
11595 2012-03-23  Jeff Law  <law@redhat.com>
11596
11597         * nss/getnssent.c (__nss_getent): Fix typo.
11598
11599 2012-03-23  David S. Miller  <davem@davemloft.net>
11600
11601         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11602
11603 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11604
11605         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11606         to pad to uint64_t for each field.
11607         (dl_tls_index): Replace unsigned long with uint64_t.
11608
11609 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11610         Paul Pluzhnikov  <ppluzhnikov@google.com>
11611
11612         [BZ #6528]
11613         * grp/Makefile (otherlibs): Don't set it.
11614         * inet/Makefile (otherlibs): Likewise.
11615         * login/Makefile (otherlibs): Likewise.
11616         * nscd/Makefile (otherlibs): Likewise.
11617         * posix/Makefile (otherlibs): Likewise.
11618         * pwd/Makefile (otherlibs): Likewise.
11619         * rt/Makefile (otherlibs): Likewise.
11620         * sunrpc/Makefile (otherlibs): Likewise.
11621         * nss/Makefile (otherlibs): Likewise.
11622         Add libnss_files to routines and static-only-routines.
11623         ($(objpfx)getent): Remove rule.
11624         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11625         static-only-routines.
11626
11627 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11628
11629         [BZ #13892]
11630         * math/s_cexp.c: Include <float.h>.
11631         (__cexp): Handle exp result overflowing not necessarily
11632         overflowing both real and imaginary parts of result.
11633         * math/s_cexpf.c: Likewise.
11634         * math/s_cexpl.c: Likewise.
11635         * math/libm-test.inc (cexp_test): Add more tests.
11636         * sysdeps/i386/fpu/libm-test-ulps: Update.
11637         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11638
11639 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11640
11641         * include/link.h (ELFW): New macro.
11642         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11643         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11644
11645 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11646
11647         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11648         with uint64_t.
11649
11650 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11651
11652         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11653         declaration.
11654         (struct La_x32_retval): Likewise.
11655
11656 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11657
11658         * sysdeps/x86_64/preconfigure.in: New file.
11659         * sysdeps/x86_64/preconfigure: New generated file.
11660
11661 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11662
11663         [BZ #13824]
11664         * math/e_exp2l.c: Include <float.h>.
11665         (__ieee754_exp2l): Handle overflow and underflow cases
11666         separately.  Only pass fractional part of argument to
11667         __ieee754_expl.
11668         * math/libm-test.inc (exp2_test): Add more tests.
11669
11670         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11671         negating x to take absolute value.
11672         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11673         Likewise.
11674         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11675         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11676         Likewise.
11677         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11678         computing low part if x was negated.
11679         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11680
11681 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11682
11683         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11684         la_x32_gnu_pltexit.
11685         (pltexit): Cast int_retval to ptrdiff_t.
11686         * elf/tst-auditmod3b.c: Likewise.
11687         * elf/tst-auditmod4b.c: Likewise.
11688         * elf/tst-auditmod5b.c: Likewise.
11689         * elf/tst-auditmod6b.c: Likewise.
11690         * elf/tst-auditmod6c.c: Likewise.
11691         * elf/tst-auditmod7b.c: Likewise.
11692
11693         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11694         and x32_gnu_pltexit.
11695
11696         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11697         __ELF_NATIVE_CLASS.
11698         (La_x32_regs): New macro.
11699         (La_x32_retval): Likewise.
11700         (la_x32_gnu_pltenter): New function prototype.
11701         (la_x32_gnu_pltexit): Likewise.
11702
11703 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11704
11705         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11706         exponent.
11707
11708         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11709
11710         * configure.in (libc_cv_cc_nofma): Check for option to disable
11711         generation of FMA instructions.
11712         * configure: Regenerate.
11713         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11714         * sysdeps/ieee754/dbl-64/Makefile: New file.
11715         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11716         Remove brandred-fma4.
11717         (CFLAGS-brandred-fma4.c): Remove.
11718         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11719         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11720         define.
11721         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11722         define.
11723
11724 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11725
11726         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11727         LLONG_MAX != LONG_MAX.
11728         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11729         (_fitoa_word): Likewise.
11730         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11731         LLONG_MAX != LONG_MAX.
11732         * stdio-common/_itowa.h: Include <_itoa.h>.
11733         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11734         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11735         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11736         only if not defined.
11737         (_ITOA_WORD_TYPE): Likewise.
11738         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11739         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11740
11741 2012-03-21  David S. Miller  <davem@davemloft.net>
11742
11743         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11744
11745 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11746
11747         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11748         of x86_64 when setting libc_cv_slibdir, libdir and
11749         libc_cv_localedir.
11750         * sysdeps/unix/sysv/linux/configure: Regenerated.
11751
11752 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11753
11754         * manual/lang.texi (Old Varargs): Remove section.
11755         (How Variadic): Update menu.
11756         (va_start): Do not mention varargs.h.
11757
11758 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11759             Joseph Myers  <joseph@codesourcery.com>
11760
11761         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11762         link test.
11763         * configure: Regenerated.
11764
11765 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11766
11767         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11768         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11769         conformtest.pl
11770
11771 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11772
11773         * NOTES: Remove.
11774         * Makefile (files-for-dist): Remove NOTES.
11775         (NOTES): Remove rule.
11776         * README: Don't refer to NOTES.
11777         * manual/creature.texi: Don't include macros.texi.
11778         * manual/intro.texi (creature.texi): Remove comment referring to
11779         NOTES.
11780
11781         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11782         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11783         * configure: Regenerated.
11784         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11785         LIBC_TRY_CC_OPTION.
11786         (libc_cv_as_i686): Likewise.
11787         (libc_cv_cc_avx): Likewise.
11788         (libc_cv_cc_sse2avx): Likewise.
11789         (libc_cv_cc_fma4): Likewise.
11790         (libc_cv_cc_novzeroupper): Likewise.
11791         * sysdeps/i386/configure: Regenerated.
11792
11793         [BZ #13883]
11794         * sysdeps/i386/fpu/s_cexp.S: Remove.
11795         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11796         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11797         * math/libm-test.inc (cexp_test): Add more tests.
11798         * sysdeps/i386/fpu/libm-test-ulps: Update.
11799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11800
11801 2012-03-21  Allan McRae  <allan@archlinux.org>
11802
11803         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11804
11805 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11806
11807         [BZ #13871]
11808         * math/w_exp2.c: Do not include <float.h>.
11809         (o_threshold, u_threshold): Remove.
11810         (__exp2): Calculate result before checking finiteness and calling
11811         __kernel_standard.
11812         * math/w_exp2f.c: Likewise.
11813         * math/w_exp2l.c: Likewise.
11814         * math/libm-test.inc (exp2_test): Require overflow exception for
11815         1e6 input.
11816
11817         [BZ #3866]
11818         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11819         range of signed 64-bit integers before using fistpll.  Remove
11820         checks for whether integers fit in mantissa bits.
11821         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11822         the range of signed 32-bit integers before using fistpl.  Remove
11823         checks for whether integers fit in mantissa bits.
11824         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11825         (__ieee754_powl): Test for y outside the range of signed 64-bit
11826         integers before using fistpll.  Reduce 64-bit values to 63-bit
11827         ones as needed.
11828         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11829         divide-by-zero is raised for zero to large negative powers.
11830         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11831         (__ieee754_powl): Test for y outside the range of signed 64-bit
11832         integers before using fistpll.  Reduce 64-bit values to 63-bit
11833         ones as needed.
11834         * math/libm-test.inc (pow_test): Add more tests.
11835
11836 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11837
11838         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11839         <stdio-common/_itoa.h>.
11840         * debug/segfault.c: Likewise.
11841         * elf/dl-cache.c: Likewise.
11842         * elf/dl-minimal.c: Likewise.
11843         * elf/dl-misc.c: Likewise.
11844         * elf/dl-sysdep.c: Likewise.
11845         * elf/dl-version.c: Likewise.
11846         * elf/rtld.c: Likewise.
11847         * hurd/hurdsock.c: Likewise.
11848         * hurd/lookup-retry.c: Likewise.
11849         * malloc/malloc.c: Likewise.
11850         * malloc/mtrace.c: Likewise.
11851         * nscd/nscd_getgr_r.c: Likewise.
11852         * nscd/nscd_getpw_r.c: Likewise.
11853         * nscd/nscd_getserv_r.c: Likewise.
11854         * posix/getopt_init.c: Likewise.
11855         * posix/wordexp.c: Likewise.
11856         * stdio-common/_itoa.c: Likewise.
11857         * stdio-common/printf_fphex.c: Likewise.
11858         * stdio-common/vfprintf.c: Likewise.
11859         * string/_strerror.c: Likewise.
11860         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11861         * sysdeps/i386/i686/hp-timing.h: Likewise.
11862         * sysdeps/mach/_strerror.c: Likewise.
11863         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11864         * sysdeps/mach/hurd/sethostid.c: Likewise.
11865         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11866         * sysdeps/mach/xpg-strerror.c: Likewise.
11867         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11868         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11869         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11870         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11871         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11872         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11873         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11874         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11875         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11876         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11877         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11878         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11879         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11880         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11881         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11882         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11883         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11884         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11885         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11886         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11887         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11888
11889         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11890
11891         * stdio-common/_itoa.h: Moved to ...
11892         * sysdeps/generic/_itoa.h: Here.
11893
11894         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11895
11896         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11897         instead of "_itoa.h" and "_itowa.h".
11898         * stdio-common/vfprintf.: Likewise.
11899
11900 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11901
11902         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11903         <bits/wordsize.h>.
11904         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11905         (__signbit): Likwise.
11906         (llrintf): Likwise.
11907         (llrint): Likwise.
11908
11909 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11910
11911         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11912         __WORDSIZE != 64.
11913
11914 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11915
11916         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11917         OVERFLOW_EXCEPTION_OK.
11918         * math/libm-test.inc ("Philosophy"): Update comment about
11919         exception testing.
11920         (OVERFLOW_EXCEPTION): Define.
11921         (OVERFLOW_EXCEPTION_OK): Likewise.
11922         (INVALID_EXCEPTION_OK): Renumber.
11923         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11924         (IGNORE_ZERO_INF_SIGN): Likewise.
11925         (test_exceptions): Handle FE_OVERFLOW.
11926         (exp10_test): Expect overflow exceptions.
11927         (exp2_test): Likewise.
11928         (expm1_test): Likewise.
11929         (nextafter_test): Likewise.
11930         (pow_test): Likewise.
11931         (scalbn_test): Likewise.
11932         (scalbln_test): Likewise.
11933
11934 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11935
11936         * sysdeps/x86_64/bits/atomic.h
11937         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11938         64bit integer.
11939         (atomic_exchange_acq): Likewise.
11940         (__arch_exchange_and_add_body): Likewise.
11941         (__arch_add_body): Likewise.
11942         (atomic_add_negative): Likewise.
11943         (atomic_add_zero): Likewise.
11944
11945 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11946
11947         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11948         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11949
11950 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11951
11952         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11953         Check __x86_64__ instead of __WORDSIZE.
11954
11955 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11956
11957         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11958
11959 2012-03-19  David S. Miller  <davem@davemloft.net>
11960
11961         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11962
11963         * sysdeps/sparc/fpu/fenv_private.h: New file.
11964         * sysdeps/sparc/fpu/math_private.h: Use it.
11965         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11966         Remove.
11967         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11968         (libc_feholdexcept_setroundl): Remove.
11969         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11970         Remove.
11971         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11972         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11973
11974 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11975
11976         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11977         int64_t instead of long int.
11978         (INSERT_WORDS64): Likwise.
11979
11980 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11981
11982         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11983         _Unwind_GetCFA return to _Unwind_Ptr first.
11984
11985 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11986
11987         [BZ #13629]
11988         * math/s_clog.c: Include <float.h>.
11989         (__clog): Scale large or subnormal inputs.
11990         * math/s_clogf.c: Likewise.
11991         * math/s_clogl.c: Likewise.
11992         * math/s_clog10.c: Include <float.h>.
11993         (M_LOG10_2): Define.
11994         (__clog10): Scale large or subnormal inputs.
11995         * math/s_clog10f.c: Likewise.
11996         * math/s_clog10l.c: Likewise.
11997         * math/libm-test.inc (clog_test): Add more tests.
11998         (clog10_test): Likewise.
11999         * sysdeps/i386/fpu/libm-test-ulps: Update.
12000         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12001
12002         [BZ #11451]
12003         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
12004         x and y.
12005         * math/libm-test.inc (atan2_test): Add another test.
12006
12007         * Makerules (common-objdir-compile): Remove.
12008         * sysdeps/unix/Makefile (config-generated): Do not add
12009         $(unix-generated) to variable.
12010         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
12011         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
12012         Remove rule.
12013         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
12014         Likewise.
12015         [generic bits/local_lim.h] (before-compile): Do not append to
12016         variable.
12017         [generic bits/local_lim.h] (common-generated): Likewise.
12018         [generic sys/param.h] (before-compile): Do not append to variable.
12019         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
12020         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
12021         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
12022         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
12023         include.
12024         [generic sys/param.h] (sys/param.h-includes): Remove variable.
12025         [generic sys/param.h] (sys/param.h-includes): Remove rule.
12026         [generic sys/param.h] ($(addprefix
12027         $(common-objpfx),$(sys/param.h-includes))): Likewise.
12028         [generic sys/param.h] (common-generated): Do not append to
12029         variable.
12030         [generic sys/param.h] (sysdep_headers): Likewise.
12031         [generic bits/errno.h] (before-compile): Do not append to
12032         variable.
12033         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
12034         rule.
12035         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
12036         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
12037         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
12038         [generic bits/errno.h] (common-generated): Do not append to
12039         variable.
12040         [generic bits/ioctls.h] (before-compile): Do not append to
12041         variable.
12042         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
12043         rule.
12044         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
12045         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
12046         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
12047         rule.
12048         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
12049         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
12050         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
12051         [generic bits/ioctls.h] (common-generated): Do not append to
12052         variable.
12053         [generic sys/syscall.h] (syscall.h): Remove variable.
12054         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
12055         rule.
12056         [generic sys/syscall.h] (before-compile): Do not append to
12057         variable.
12058         [generic sys/syscall.h] (common-generated): Likewise.
12059         * sysdeps/unix/errnos-tmpl.c: Remove file.
12060         * sysdeps/unix/errnos.awk: Likewise.
12061         * sysdeps/unix/ioctls-tmpl.c: Likewise.
12062         * sysdeps/unix/ioctls.awk: Likewise.
12063         * sysdeps/unix/mk-local_lim.c: Likewise.
12064         * sysdeps/unix/snarf-ioctls: Likewise.
12065
12066 2012-03-19  Richard Henderson  <rth@twiddle.net>
12067
12068         * sysdeps/i386/fpu/fenv_private.h: New file.
12069         * sysdeps/i386/fpu/math_private.h: Use it.
12070         (math_opt_barrier, math_force_eval): Remove.
12071         (libc_feholdexcept_setround_53bit): Remove.
12072         (libc_feupdateenv_53bit): Remove.
12073         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12074         (math_opt_barrier, math_force_eval): Remove.
12075         (libc_feholdexcept): Remove.
12076         (libc_feholdexcept_setround): Remove.
12077         (libc_fetestexcept, libc_fesetenv): Remove.
12078         (libc_feupdateenv_test): Remove.
12079         (libc_feupdateenv, libc_feholdsetround): Remove.
12080         (libc_feresetround): Remove.
12081
12082         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12083         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12084
12085         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12086         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12087         (libc_feupdateenv_testl): New.
12088         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12089         (libc_feupdateenv_testf): New.
12090         (libc_feupdateenv): Use libc_feupdateenv_test.
12091         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12092         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12093
12094         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12095         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12096         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12097         (libc_feresetround_noex): New.
12098         (libc_feresetround_noexf): New.
12099         (libc_feresetround_noexl): New.
12100         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12101         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12102         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12103         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12104         SET_RESTORE_ROUND.
12105         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12106         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12107         (__cos): Likewise.
12108         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12109         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12110         SET_RESTORE_ROUND_NOEX.
12111         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12112         SET_RESTORE_ROUND_NOEXF.
12113         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12114         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12115         (libc_feholdsetroundf): New.
12116         (libc_feresetround, libc_feresetroundf): New.
12117
12118         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12119         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12120         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12121
12122         * sysdeps/generic/math_private.h: Include <fenv.h>.
12123         (default_libc_feholdexcept): New.
12124         (default_libc_feholdexcept_setround): New.
12125         (default_libc_fesetenv, default_libc_feupdateenv): New.
12126         (libc_feholdexcept): Only define if undefined.
12127         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12128         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12129         (libc_feholdexcept_setroundl): Likewise.
12130         (libc_feholdexcept_setround_53bit): Likewise.
12131         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12132         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12133         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12134         (libc_feupdateenv_53bit): Likewise.
12135         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12136         (libc_feholdexcept): Convert from macro to inline function.
12137         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12138         (libc_fesetenv, libc_feupdateenv): Likewise.
12139
12140         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12141         not previously defined.
12142         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12143         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12144         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12145         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12146         * sysdeps/ieee754/flt-32/math_private.h: New file.
12147         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12148         math_private.h below SET_FLOAT_WORD.
12149         (__isnan, __isinf_ns, __finite): Remove.
12150         (__isnanf, __isinf_nsf, __finitef): Remove.
12151
12152 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12153
12154         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12155
12156 2012-03-17  David S. Miller  <davem@davemloft.net>
12157
12158         [BZ #6471]
12159         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12160         for 2.16.
12161
12162 2012-03-16  David S. Miller  <davem@davemloft.net>
12163
12164         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12165         warnings.
12166
12167         [BZ #6471]
12168         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12169         properly.
12170         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12171         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12172         sysdep_routines when subdir is sysvipc.
12173         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12174         __getshmlba helper.
12175
12176         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12177
12178 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12179
12180         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12181         [__LP64__].
12182
12183 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12184
12185         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12186         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12187         (__lround): Renamed to ...
12188         (__llround): This.  Replace long int with long long int.
12189         Define lround functions as aliases of llround functions.
12190         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12191
12192 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12193
12194         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12195         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12196         adresses to uintptr_t.  Replace "long int" and "unsigned long
12197         int" with "greg_t" on va_arg.
12198
12199 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12200
12201         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12202         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12203
12204         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12205         Move e_machine check before EI_CLASS check.  Handle x32
12206         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12207         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12208         SKIP_EM_IA_64 and include
12209         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12210
12211         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12212         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12213         (add_system_dir): New macro.
12214
12215         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12216         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12217
12218 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12219
12220         [BZ #2551]
12221         [BZ #2552]
12222         [BZ #2553]
12223         [BZ #2554]
12224         [BZ #2562]
12225         [BZ #2563]
12226         [BZ #2565]
12227         [BZ #2566]
12228         [BZ #2576]
12229         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12230         (y0): Likewise.
12231         * math/w_j0f.c (j0f): Likewise.
12232         (y0f): Likewise.
12233         * math/w_j0l.c (__j0l): Likewise.
12234         (__y0l): Likewise.
12235         * math/w_j1.c (j1): Likewise.
12236         (y1): Likewise.
12237         * math/w_j1f.c (j1f): Likewise.
12238         (y1f): Likewise.
12239         * math/w_j1l.c (__j1l): Likewise.
12240         (__y1l): Likewise.
12241         * math/w_jn.c (jn): Likewise.
12242         (yn): Likewise.
12243         * math/w_jnf.c (jnf): Likewise.
12244         (ynf): Likewise.
12245         * math/w_jnl.c (__jnl): Likewise.
12246         (__ynl): Likewise.
12247         * math/libm-test.inc (j0_test): Add more tests.
12248         (j1_test): Likewise.
12249         (jn_test): Likewise.  Add trailing semicolon to existing test.
12250         (y0_test): Likewise.
12251         (y1_test): Likewise.
12252         * sysdeps/i386/fpu/libm-test-ulps: Update.
12253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12254
12255         [BZ #13851]
12256         [BZ #13854]
12257         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12258         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12259         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12260         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12261         (__tanl): Set errno for infinite argument.
12262         * sysdeps/i386/fpu/mptan.c: Remove.
12263         * sysdeps/i386/fpu/s_tan.S: Likewise.
12264         * sysdeps/i386/fpu/s_tanl.S: Likewise.
12265         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12266         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12267         * math/libm-test.inc (tan_test): Add more tests and enable more
12268         tests for double and long double.
12269         * sysdeps/i386/fpu/libm-test-ulps: Update.
12270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12271
12272 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12273
12274         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12275         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12276
12277 2012-03-16  Roland McGrath  <roland@hack.frob.com>
12278
12279         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12280         * configure.in: Use it for both main tree and add-ons.
12281         * configure: Regenerated.
12282
12283 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12284
12285         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12286
12287 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12288
12289         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12290         in comment.
12291
12292         [BZ #13851]
12293         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12294         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12295         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12296         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12297         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12298         infinite argument.
12299         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12300         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12301         != 0 for prec == 2.
12302         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12303         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12304         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12305         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12306         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12307         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12308         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12309         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12310         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12311         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12312         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12313         * math/libm-test.inc (cos_test): Add more tests and enable more
12314         tests for long double.
12315         (sin_test): Likewise.
12316         (sincos_test): Likewise.
12317         * sysdeps/i386/fpu/libm-test-ulps: Update.
12318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12319
12320 2012-03-16  David S. Miller  <davem@davemloft.net>
12321
12322         * sysdeps/sparc/fpu/math_private.h: New file.
12323
12324 2012-03-15  David S. Miller  <davem@davemloft.net>
12325
12326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12327         file.
12328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12330         file.
12331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12332         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12333         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12334         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12335         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12336         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12337         sysdep routines.
12338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12339
12340         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12341         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12342
12343         * sysdeps/sparc/sparc-ifunc.h: New file.
12344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12345         sparc-ifunc.h
12346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12348         Likewise.
12349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12350         Likewise.
12351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12355         Likewise.
12356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12361         Likewise.
12362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12363         Likewise.
12364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12368         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12369         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12370         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12371         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12372         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12373         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12374         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12375         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12376         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12377         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12378         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12379         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12380         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12381         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12382         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12383         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12384         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12385         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12386         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12387         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12388
12389 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12390
12391         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12392         scaling.
12393         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12394
12395 2012-03-15  Andreas Jaeger  <aj@suse.de>
12396
12397         [BZ #13852]
12398         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12399         ieee754/flt-32 implementation for sin, cos and sincos.
12400         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12401         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12402         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12403         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12404         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12405         ieee754/flt-32 implementation for tan.
12406
12407         * math/libm-test.inc (cos_test): Enable some large input tests for
12408         float as well
12409         (sin_test): Likewise.
12410         (sincos_test): Likewise.
12411         (tan_test): Add tests for large input.
12412
12413         * sysdeps/i386/fpu/libm-test-ulps: Update.
12414
12415 2012-03-15  Andreas Jaeger  <aj@suse.de>
12416
12417         [BZ #13658]
12418         * math/libm-test.inc (cos_test): Add more test cases.
12419         (sin_test): Likewise.
12420         (sincos_test): Likewise.
12421
12422 2012-03-15  Andreas Jaeger  <aj@suse.de>
12423
12424         [BZ #13837]
12425         * math/libm-test.inc (cos_test): Add a test case for large input
12426         value.
12427         (sin_test): Likewise.
12428         (sincos_test): Likewise.
12429
12430 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12431         Joseph Myers  <joseph@codesourcery.com>
12432
12433         [BZ #13658]
12434         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12435         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12436         * sysdeps/i386/fpu/branred.c: Likewise.
12437         * sysdeps/i386/fpu/dosincos.c: Likewise.
12438         * sysdeps/i386/fpu/mpa.c: Likewise.
12439         * sysdeps/i386/fpu/s_cos.S: Likewise.
12440         * sysdeps/i386/fpu/s_sin.S: Likewise.
12441         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12442         * sysdeps/i386/fpu/sincos32.c: Likewise.
12443
12444         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12445         Define.
12446         (libc_feupdateenv_53bit): Define.
12447         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12448         Define.
12449         (libc_feupdateenv_53bit): Define.
12450
12451         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12452         53 bit (without extend i386 double precision).
12453
12454         * math/libm-test.inc (sincos_test): Add tests for large input.
12455         (sin): Likewise.
12456         (cos): Likewise.
12457
12458         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12459
12460 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12461
12462         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12463
12464 2012-03-15  David S. Miller  <davem@davemloft.net>
12465
12466         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12467         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12468         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12469         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12470         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12471         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12472         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12474         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12475         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12476         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12477         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12478         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12479         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12480         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12482         file.
12483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12485         file.
12486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12488         file.
12489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12491         file.
12492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12493         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12494         fmin/fmax sysdep routines.
12495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12496
12497 2012-03-14  David S. Miller  <davem@davemloft.net>
12498
12499         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12500         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12501         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12502         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12503         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12504         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12505         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12506         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12507         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12508         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12509         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12510         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12511         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12512         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12513         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12514         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12515         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12516         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12517         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12518         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12519         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12520         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12521         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12522         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12523         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12524         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12525         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12526         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12527         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12528         routines.
12529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12530         file.
12531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12533         file.
12534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12536         file.
12537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12539         file.
12540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12542         file.
12543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12545         file.
12546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12547         file.
12548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12549         file.
12550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12551         file.
12552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12553         New file.
12554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12555         file.
12556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12557         file.
12558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12560         file.
12561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12563         file.
12564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12566         file.
12567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12569         VIS3 routines.
12570
12571         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12572         New file.
12573
12574         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12575
12576         * sysdeps/sparc/configure.in: New file.
12577         * sysdeps/sparc/configure: Generate.
12578         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12579         * configure: Regenerate.
12580         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12581         * config.make.in (have-as-vis3): New.
12582         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12583         available use -Av9d instead of -Av9a.
12584         * sysdeps/sparc/sparc64/Makefile: Likewise.
12585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12587         New file.
12588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12589         file.
12590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12591         New file.
12592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12593         file.
12594         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12595         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12596         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12597         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12598         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12599
12600         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12601         fzeros/fnegs to load 0x80000000 into a float register instead of
12602         using the stack.
12603         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12604
12605 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12606
12607         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12608         bits/syscall.h.
12609         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12610         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12611         ($(inst_includedir)/bits/syscall.h): Remove rule.
12612         ($(objpfx)bits/syscall.d): Include instead of
12613         $(objpfx)syscall-list.d.
12614         (generated): Change syscall-list.h and syscall-list.d to
12615         bits/syscall.h and bits/syscall.d.
12616
12617 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12618
12619         [BZ #13846]
12620         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12621
12622 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12623
12624         [BZ #13841]
12625         * math/s_csqrt.c: Include <float.h>.
12626         (__csqrt): Scale large or subnormal inputs.
12627         * math/s_csqrtf.c: Likewise.
12628         * math/s_csqrtl.c: Likewise.
12629         * math/libm-test.inc (csqrt_test): Add more tests.
12630         * sysdeps/i386/fpu/libm-test-ulps: Update.
12631         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12632
12633         [BZ #13840]
12634         * math/libm-test.inc (hypot_test): Add more tests.
12635
12636 2012-03-13  David S. Miller  <davem@davemloft.net>
12637
12638         [BZ #13840]
12639         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12640         double-precision for the calculation instead of scaling.
12641
12642 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12643
12644         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12645         manipulate bits before adding and subtracting TWO52[sx].
12646         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12647         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12648         Likewise.
12649         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12650
12651 2012-03-13  David S. Miller  <davem@davemloft.net>
12652
12653         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12654         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12655         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12656         rtld-global-offsets.h
12657         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12658
12659         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12660         large parameters.
12661
12662         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12663
12664         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12665         'err' in the ifdef scope in which it is actually used.
12666
12667         * nss/nss_db/db-init.c: Include string.h
12668
12669 2012-03-12  David S. Miller  <davem@davemloft.net>
12670
12671         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12672         masking out of the most significant byte of random value used.
12673         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12674         Fix coding style in previous change.
12675
12676         * sysdeps/unix/sysv/linux/kernel-features.h
12677         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12678         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12679         expression.
12680         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12681         later.
12682
12683 2012-03-11  David S. Miller  <davem@davemloft.net>
12684
12685         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12686         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12687         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12688         for 'resultvar' otherwise things get truncated on 64-bit.
12689
12690         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12691         Fix masking out of the most significant byte of random value used.
12692
12693         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12694
12695 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12696
12697         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12698
12699 2012-03-09  David S. Miller  <davem@davemloft.net>
12700
12701         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12702         variables with appropriate CPP guards.
12703         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12704         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12705         on resulting framesize and the management of the outregs buffer for pltexit.
12706         Preserve floating point return values across _dl_call_pltexit call.
12707         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12708         framesize and the management of the outregs buffer for pltexit.
12709         Preserve floating point return values across _dl_call_pltexit
12710         call.
12711         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12712         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12713         (print_exit): Fix format string for return register value.
12714
12715 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12716
12717         * sunrpc/Makefile (others): Add rpcgen.
12718         ($(objpfx)rpcgen): Remove special build rule and dependency on
12719         libc.
12720         * sunrpc/rpcgen.c: New file.
12721
12722 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12723
12724         [BZ #13673]
12725         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12726         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12727         * sysdeps/i386/crti.S: Likewise.
12728         * sysdeps/i386/crtn.S: Likewise.
12729         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12730         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12731         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12732         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12733         * sysdeps/sh/crti.S: Likewise.
12734         * sysdeps/sh/crtn.S: Likewise.
12735         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12736
12737         [BZ #13673]
12738         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12739         with URL.
12740         * locale/programs/locfile-kw.gperf: Likewise.
12741         * locale/programs/charmap-kw.h: Regenerated.
12742         * locale/programs/locfile-kw.h: Likewise.
12743
12744         [BZ #13673]
12745         * intl/plural.y: Replace FSF snail mail address with URL.
12746         * intl/plural.c: Regenerated.
12747
12748 2012-03-09  Richard Henderson  <rth@twiddle.net>
12749
12750         * include/math_private.h: Remove file.
12751         * math/math_private.h: Move file ...
12752         * sysdeps/generic/math_private.h: ... here.
12753
12754         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12755         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12756         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12757
12758         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12759         and <math_private.h>.
12760         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12761         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12762         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12763         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12764         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12765         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12766         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12767         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12768         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12769         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12770         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12771         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12772         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12773         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12774         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12775         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12776         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12777         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12778         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12779         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12780         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12781         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12782         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12783         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12784         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12785         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12786         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12787         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12788         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12789         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12790         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12791         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12792         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12793         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12794         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12795         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12796         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12797         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12798         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12799         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12800         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12801         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12802         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12803         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12804         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12805         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12806         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12807         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12808         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12809         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12810         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12811         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12812         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12813         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12814         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12815         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12816         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12817         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12818         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12819         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12820         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12821         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12822         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12823         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12824         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12825         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12826         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12827         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12828         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12829         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12830         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12831         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12832         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12833         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12834         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12835         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12836         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12837         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12838         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12839         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12840         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12841         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12842         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12843         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12844         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12845         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12846         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12847         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12848         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12849         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12850         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12851         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12852         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12853         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12854         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12855         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12856         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12857         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12858         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12859         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12860         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12861         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12862         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12863         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12864         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12865         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12866         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12867         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12868         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12869         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12870         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12871         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12872         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12873         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12874         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12875         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12876         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12877         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12878         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12879         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12880         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12881         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12882         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12883         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12884         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12885         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12886         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12887         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12888         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12889         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12890         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12891         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12892         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12893         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12894         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12895         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12896         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12897         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12898         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12899         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12900         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12901         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12902         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12903         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12904         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12905         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12906         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12907         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12908         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12909         * sysdeps/ieee754/k_standard.c: Likewise.
12910         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12911         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12912         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12913         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12914         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12915         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12916         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12917         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12918         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12919         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12920         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12921         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12922         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12923         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12924         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12925         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12926         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12927         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12928         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12929         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12930         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12931         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12932         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12933         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12934         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12935         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12936         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12937         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12938         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12939         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12940         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12941         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12942         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12943         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12944         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12945         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12946         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12947         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12948         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12949         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12950         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12951         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12952         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12953         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12954         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12955         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12956         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12957         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12958         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12959         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12960         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12961         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12962         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12963         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12964         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12965         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12966         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12967         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12968         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12969         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12970         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12971         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12972         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12973         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12974         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12975         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12976         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12977         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12978         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12979         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12980         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12981         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12982         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12983         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12984         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12985         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12986         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12987         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12988         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12989         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12990         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12991         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12992         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12993         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12994         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12995         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12996         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
12997         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
12998         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
12999         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13000         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
13001         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13002         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
13003         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
13004         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13005         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13006         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
13007         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
13008         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
13009         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
13010         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13011         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13012         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13013         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13014         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
13015         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13016         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13017         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
13018         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
13019         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13020         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13021         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13022         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13023         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13024         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13025         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13026         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13027         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13028         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13029         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13030         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13031         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13032         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13033         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13034         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
13036         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13037         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13038         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13039         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13040         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13041         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13042         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13043         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13044         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13045         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13046         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
13047         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13048         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13049         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13050         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13051         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13052         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13053         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13054         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13055         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13056         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13057         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13058         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13059         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
13060         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13061         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13062         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13063         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13064         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
13065         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
13066         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13067         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13068         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13069         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13070         * sysdeps/ieee754/s_lib_version.c: Likewise.
13071         * sysdeps/ieee754/s_matherr.c: Likewise.
13072         * sysdeps/ieee754/s_signgam.c: Likewise.
13073         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13074         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13075         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13076         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13077         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13078         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13079         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13080         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13081         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13082         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13083         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13084         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13085         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13086         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13087         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13088         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13089         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13090         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13091         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13092         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13093         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13094
13095 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13096
13097         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13098         * sunrpc/rpc_main.c: Likewise.
13099         * sunrpc/rpc_svcout.c: Likewise.
13100
13101 2012-03-09  David S. Miller  <davem@davemloft.net>
13102
13103         * include/math_private.h: New file.
13104
13105 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13106
13107         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13108         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13109         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13110         from <bits/socket_type.h>.
13111         (enum __socket_type): Don't define here.
13112         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13113         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13114         bits/socket_type.h.
13115
13116         [BZ #13566]
13117         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13118         checking __USE_GNU.
13119
13120         * Makerules ($(inst_includedir)/%.h): New rule.
13121         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13122         (install-others): Remove variable setting.
13123         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13124
13125 2012-03-08  Richard Henderson  <rth@twiddle.net>
13126
13127         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13128         from macro to inline function; merge with the
13129         !__LIBC_INTERNAL_MATH_INLINES version.
13130         (__ieee754_sqrtf): Likewise.
13131
13132         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13133         to inline function.
13134         (__rintf, __floor, __floorf): Likewise.
13135
13136         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13137         macro to inline function.
13138         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13139
13140         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13141         not <math/math_private.h>.
13142
13143 2012-03-08  David S. Miller  <davem@davemloft.net>
13144
13145         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13146         copyright year.
13147         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13148
13149 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13150
13151         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13152         normalization.
13153         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13154         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13155
13156 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13157
13158         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13159         be defined individually, they must be defined as a block.  Define
13160         S for printing a string instead of hidint the different by using a
13161         macro for adding the 'l'.
13162         * stdio-common/tst-fphex-wide.c: Adjust.
13163
13164 2012-03-07  Marek Polacek  <polacek@redhat.com>
13165
13166         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13167
13168 2012-03-08  Marek Polacek  <polacek@redhat.com>
13169
13170         [BZ #13806]
13171         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13172         * stdio-common/tst-fphex.c: Define a few macros to make the
13173         test reusable.  Use them.
13174         * stdio-common/tst-fphex-wide.c: New file.
13175
13176 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13177
13178         [BZ #6911]
13179         * manual/macros.texi (gnusystems): New macro.
13180         (nongnusystems): Likewise.
13181         (gnulinuxhurdsystems): Likewise.
13182         (gnuhurdsystems): Likewise..
13183         (gnulinuxsystems): Likewise.
13184         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13185         variants of the GNU system, not "GNU system".
13186         * manual/conf.texi: Likewise.
13187         * manual/errno.texi: Likewise.  Update example of errno macro
13188         expansion.
13189         * manual/filesys.texi: Likewise.
13190         (getumask): Document as specific to GNU/Hurd.
13191         * manual/install.texi: Likewise.  Reword some references to
13192         GNU/Linux.
13193         * manual/intro.texi: Likewise.
13194         * manual/io.texi: Likewise.
13195         (File Name Portability): Detail which constraints are inapplicable
13196         to all GNU systems and which are only inapplicable to GNU/Hurd.
13197         * manual/job.texi: Likewise.
13198         * manual/llio.texi: Likewise.
13199         (O_NOCTTY): Document as present on GNU/Linux.
13200         * manual/maint.texi: Likewise.
13201         * manual/memory.texi: Likewise.
13202         * manual/pattern.texi: Likewise.
13203         * manual/pipe.texi: Likewise.
13204         * manual/process.texi: Likewise.
13205         * manual/resource.texi: Likewise.
13206         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13207         child on GNU/Hurd.
13208         * manual/setjmp.texi: Likewise.
13209         * manual/signal.texi: Likewise.
13210         * manual/startup.texi: Likewise.
13211         * manual/stdio.texi: Likewise.
13212         * manual/terminal.texi: Likewise.
13213         (ONLCR): Document as POSIX.
13214         (OXTABS): Document availability on GNU/Linux as XTABS.
13215         (ONOEOT): Document availability separately from other bits.
13216         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13217         * manual/time.texi: Likewise.
13218         * manual/users.texi: Likewise.
13219         * INSTALL: Regenerated.
13220         * sysdeps/gnu/errlist.c: Regenerated.
13221
13222         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13223         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13224         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13225         puts.
13226         * configure: Regenerated.
13227
13228 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13229
13230         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13231         default includes instead of AC_HEADER_CHECK.
13232         * sysdeps/i386/configure: Regenerated.
13233
13234         [BZ #10716]
13235         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13236         * math/s_cacoshf.c (__cacoshf): Likewise.
13237         * math/s_cacoshl.c (__cacoshl): Likewise.
13238         * math/s_casinh.c (__casinh): Set signs of result from argument.
13239         * math/s_casinhf.c (__casinhf): Likewise.
13240         * math/s_casinhl.c (__casinhl): Likewise.
13241         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13242         (casinh_test): Add more tests.
13243         * sysdeps/i386/fpu/libm-test-ulps: Update.
13244         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13245
13246 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13247
13248         * po/zh_TW.po: Update from translation team.
13249
13250         * login/Makefile (distribute): Remove variable.
13251         * catgets/Makefile: Likewise.
13252         * mach/Makefile: Likewise.
13253         * malloc/Makefile: Likewise.
13254         * misc/Makefile: Likewise.
13255         * iconv/Makefile: Likewise.
13256         * nscd/Makefile: Likewise.
13257         * hurd/Makefile: Likewise.
13258         * manual/Makefile: Likewise.
13259         * locale/Makefile: Likewise.
13260         * intl/Makefile: Likewise.
13261         * conform/Makefile: Likewise.
13262         * nss/Makefile: Likewise.
13263         * time/Makefile: Likewise.
13264         * soft-fp/Makefile: Likewise.
13265         * dirent/Makefile: Likewise.
13266         * gmon/Makefile: Likewise.
13267         * po/Makefile: Likewise.
13268         * rt/Makefile: Likewise.
13269         * socket/Makefile: Likewise.
13270         * math/Makefile: Likewise.
13271         * signal/Makefile: Likewise.
13272         * debug/Makefile: Likewise.
13273         * elf/Makefile: Likewise.
13274         * timezone/Makefile: Likewise.
13275         * stdlib/Makefile: Likewise.
13276         * iconvdata/Makefile: Likewise.
13277         * sunrpc/Makefile: Likewise.
13278         * io/Makefile: Likewise.
13279         * argp/Makefile: Likewise.
13280         * inet/Makefile: Likewise.
13281         * hesiod/Makefile: Likewise.
13282         * grp/Makefile: Likewise.
13283         * csu/Makefile: Likewise.
13284         * wctype/Makefile: Likewise.
13285         * crypt/Makefile: Likewise.
13286         * libio/Makefile: Likewise.
13287         * string/Makefile: Likewise.
13288         * nis/Makefile: Likewise.
13289         * resolv/Makefile: Likewise.
13290         * stdio-common/Makefile: Likewise.
13291         * wcsmbs/Makefile: Likewise.
13292         * dlfcn/Makefile: Likewise.
13293         * posix/Makefile: Likewise.
13294
13295         [BZ #6959]
13296         * timezone/Makefile: Don't install timezone files, just the programs
13297         and scripts.
13298
13299 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13300
13301         * nss/databases.def: Add missing gshadow entry.
13302
13303         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13304
13305 2012-03-06  Marek Polacek  <polacek@redhat.com>
13306
13307         [BZ #13726]
13308         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13309         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13310         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13311         * stdio-common/tst-long-dbl-fphex.c: New file.
13312
13313 2012-03-06  David S. Miller  <davem@davemloft.net>
13314
13315         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13316         (set_obp_int): New function.
13317         (get_obp_int): New function.
13318         (__get_clockfreq_via_dev_openprom): Likewise.
13319         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13320         Avoid unused variable warnings on 'val' and use builtin_expect.
13321         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13322         __builtin_expect.
13323         (INLINE_CLONE_SYSCALL): Likewise.
13324
13325 2012-03-05  David S. Miller  <davem@davemloft.net>
13326
13327         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13328
13329 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13330
13331         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13332
13333         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13334         only for |x| >= 40.
13335         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13336
13337 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13338
13339         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13340         Replace gettimeofday with __vdso_gettimeofday.
13341
13342         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13343         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13344         __vdso_clock_gettime and __vdso_getcpu.
13345
13346         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13347         time with __vdso_time.
13348
13349 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13350
13351         * manual/lang.texi (size_t): Note types to which size_t may be
13352         equivalent with the GNU C Library, but do not describe when
13353         differences between them are significant.
13354
13355 2012-03-05  Andreas Jaeger  <aj@suse.de>
13356
13357         * sysdeps/i386/fpu/libm-test-ulps: Update.
13358
13359 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13360
13361         [BZ #3976]
13362         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13363         (__ieee754_pow): Save and restore rounding mode and use
13364         round-to-nearest for main computations.
13365         * math/libm-test.inc (pow_test_tonearest): New function.
13366         (pow_test_towardzero): Likewise.
13367         (pow_test_downward): Likewise.
13368         (pow_test_upward): Likewise.
13369         (main): Call the new functions.
13370         * sysdeps/i386/fpu/libm-test-ulps: Update.
13371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13372
13373         [BZ #3976]
13374         * math/libm-test.inc (cosh_test_tonearest): New function.
13375         (cosh_test_towardzero): Likewise.
13376         (cosh_test_downward): Likewise.
13377         (cosh_test_upward): Likewise.
13378         (sinh_test_tonearest): Likewise.
13379         (sinh_test_towardzero): Likewise.
13380         (sinh_test_downward): Likewise.
13381         (sinh_test_upward): Likewise.
13382         (main): Call the new functions.
13383         * sysdeps/i386/fpu/libm-test-ulps: Update.
13384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13385
13386 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13387
13388         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13389         default stack guard is set in last bytes.
13390         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13391
13392 2012-03-05  Kees Cook  <keescook@chromium.org>
13393
13394         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13395
13396         [BZ #13656]
13397         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13398         possibly allocate from heap instead of stack.
13399         * stdio-common/bug-vfprintf-nargs.c: New file.
13400         * stdio-common/Makefile (tests): Add nargs overflow test.
13401
13402 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13403
13404         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13405
13406 2012-03-03  Marek Polacek  <polacek@redhat.com>
13407
13408         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13409         * math/math_private.h: Likewise.
13410         * stdlib/tst-strtod.c: Likewise.
13411         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13412         * sysdeps/x86_64/bits/atomic.h: Likewise.
13413
13414 2012-03-02  David S. Miller  <davem@davemloft.net>
13415
13416         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13417         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13418         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13419         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13420         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13421         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13422         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13423         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13424
13425 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13426
13427         [BZ #13792]
13428         * manual/examples/README: New file, says the example source files
13429         can be used under GPL>=2.
13430         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13431         line containing just "*/".
13432         * manual/examples/add.c: Add copyright header (GPL>=2).
13433         * manual/examples/argp-ex1.c: Likewise.
13434         * manual/examples/argp-ex2.c: Likewise.
13435         * manual/examples/argp-ex3.c: Likewise.
13436         * manual/examples/argp-ex4.c: Likewise.
13437         * manual/examples/atexit.c: Likewise.
13438         * manual/examples/db.c: Likewise.
13439         * manual/examples/dir.c: Likewise.
13440         * manual/examples/dir2.c: Likewise.
13441         * manual/examples/execinfo.c: Likewise.
13442         * manual/examples/filecli.c: Likewise.
13443         * manual/examples/filesrv.c: Likewise.
13444         * manual/examples/fmtmsgexpl.c: Likewise.
13445         * manual/examples/genpass.c: Likewise.
13446         * manual/examples/inetcli.c: Likewise.
13447         * manual/examples/inetsrv.c: Likewise.
13448         * manual/examples/isockad.c: Likewise.
13449         * manual/examples/longopt.c: Likewise.
13450         * manual/examples/memopen.c: Likewise.
13451         * manual/examples/memstrm.c: Likewise.
13452         * manual/examples/mkfsock.c: Likewise.
13453         * manual/examples/mkisock.c: Likewise.
13454         * manual/examples/mygetpass.c: Likewise.
13455         * manual/examples/pipe.c: Likewise.
13456         * manual/examples/popen.c: Likewise.
13457         * manual/examples/rprintf.c: Likewise.
13458         * manual/examples/search.c: Likewise.
13459         * manual/examples/select.c: Likewise.
13460         * manual/examples/setjmp.c: Likewise.
13461         * manual/examples/sigh1.c: Likewise.
13462         * manual/examples/sigusr.c: Likewise.
13463         * manual/examples/stpcpy.c: Likewise.
13464         * manual/examples/strdupa.c: Likewise.
13465         * manual/examples/strftim.c: Likewise.
13466         * manual/examples/strncat.c: Likewise.
13467         * manual/examples/subopt.c: Likewise.
13468         * manual/examples/swapcontext.c: Likewise.
13469         * manual/examples/termios.c: Likewise.
13470         * manual/examples/testopt.c: Likewise.
13471         * manual/examples/testpass.c: Likewise.
13472         * manual/examples/timeval_subtract.c: Likewise.
13473
13474         [BZ #13792]
13475         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13476         function to ...
13477         * manual/timeval_subtract.c.texi: ... here, new file.
13478
13479 2012-03-02  David S. Miller  <davem@davemloft.net>
13480
13481         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13482
13483 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13484
13485         [BZ #3976]
13486         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13487         (__sin): Save and restore rounding mode and use round-to-nearest
13488         for all computations.
13489         (__cos): Save and restore rounding mode and use round-to-nearest
13490         for all computations.
13491         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13492         <fenv.h>.
13493         (tan): Save and restore rounding mode and use round-to-nearest for
13494         all computations.
13495         * math/libm-test.inc (cos_test_tonearest): New function.
13496         (cos_test_towardzero): Likewise.
13497         (cos_test_downward): Likewise.
13498         (cos_test_upward): Likewise.
13499         (sin_test_tonearest): Likewise.
13500         (sin_test_towardzero): Likewise.
13501         (sin_test_downward): Likewise.
13502         (sin_test_upward): Likewise.
13503         (tan_test_tonearest): Likewise.
13504         (tan_test_towardzero): Likewise.
13505         (tan_test_downward): Likewise.
13506         (tan_test_upward): Likewise.
13507         (main): Call the new functions.
13508         * sysdeps/i386/fpu/libm-test-ulps: Update.
13509         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13510
13511         [BZ #10135]
13512         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13513         small n, then large n, before computing and testing k+n.
13514         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13515         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13516         Likewise.
13517         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13518         Likewise.
13519         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13520         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13521         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13522         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13523         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13524         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13525         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13526         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13527         * math/libm-test.inc (scalbn_test): Add more tests.
13528         (scalbln_test): Likewise.
13529
13530         * manual/filesys.texi (mode_t): Describe constraints on size and
13531         signedness, not exact equivalence to a particular type.
13532         (ino_t): Likewise.
13533         (ino64_t): Likewise.
13534         (dev_t): Likewise.
13535         (nlink_t): Likewise.
13536         (blkcnt_t): Likewise.
13537         (blkcnt64_t): Likewise.
13538         * manual/llio.texi (off_t): Likewise.
13539
13540         [BZ #3976]
13541         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13542         (__ieee754_exp): Save and restore rounding mode and use
13543         round-to-nearest for all computations.
13544         * math/libm-test.inc (exp_test_tonearest): New function.
13545         (exp_test_towardzero): Likewise.
13546         (exp_test_downward): Likewise.
13547         (exp_test_upward): Likewise.
13548         (main): Call the new functions.
13549         * sysdeps/i386/fpu/libm-test-ulps: Update.
13550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13551
13552 2012-03-01  Chris Demetriou  <cgd@google.com>
13553
13554         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13555         have predictable order.
13556
13557 2012-03-01  David S. Miller  <davem@davemloft.net>
13558
13559         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13560
13561         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13562         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13563         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13564         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13565
13566         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13567         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13568         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13569         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13570         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13571         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13572         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13573         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13574         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13575
13576         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13577
13578         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13579         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13580         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13581
13582         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13583         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13584         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13585         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13586         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13587         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13588         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13589         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13590         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13591         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13592         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13593         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13594         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13595         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13596         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13597         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13598         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13599         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13600         * sysdeps/sparc/elf/configure: Regenerated.
13601
13602 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13603
13604         * configure.in (AS, LD): Require binutils 2.20 or later.
13605         * configure: Regenerated.
13606         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13607         as required minimum version.
13608         * INSTALL: Regenerated.
13609
13610         [BZ #2541]
13611         [BZ #4108]
13612         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13613         before squaring exponent.
13614         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13615         bottom long double and 27 bits of top long double before squaring
13616         exponent.
13617         * math/libm-test.inc (erfc_test): Add more tests.
13618         * sysdeps/i386/fpu/libm-test-ulps: Update.
13619         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13621
13622 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13623
13624         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13625         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13626         containing bit-fields.
13627         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13628         * soft-fp/single.h (_FP_UNION_S): Likewise.
13629         * soft-fp/double.h (_FP_UNION_D): Likewise.
13630
13631 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13632
13633         [BZ #13786]
13634         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13635         not include ../strcmp.S.
13636         [USE_AS_STRNCASECMP_L]: Likewise.
13637         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13638         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13639         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13640         (__strncasecmp_l_ia32): Define as alias to
13641         __strncasecmp_l_nonascii.
13642
13643         [BZ #5794]
13644         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13645         * sysdeps/i386/fpu/libm-test-ulps: Update.
13646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13647
13648         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13650
13651 2012-02-29  Jeff Law  <law@redhat.com>
13652
13653         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13654         out of bounds read.
13655
13656 2012-02-29  Marek Polacek  <polacek@redhat.com>
13657
13658         [BZ #13706]
13659         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13660         * elf/Makefile: Add rules to run tst-unused-dep.out.
13661
13662 2012-02-28  David S. Miller  <davem@davemloft.net>
13663
13664         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13665         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13666         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13667         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13668         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13669         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13670
13671 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13672
13673         * math/libm-test.inc (llround_test): Move one test from
13674         lround_test.  Use TEST_f_L in moved test.
13675         (lround_test): Move misplaced test to llround_test.  Add testcase
13676         from bug 2561.
13677
13678 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13679
13680         * sysdeps/x86_64/fpu/e_expf.S: New file.
13681         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13682
13683 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13684
13685         [BZ #13637]
13686         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13687         of remain_len that may cause incomplete multi-byte character and
13688         false match.
13689         * posix/bug-regex33.c: New file.
13690         * posix/Makefile (tests): Add bug-regex33.
13691
13692 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13693
13694         * manual/macros.texi: New file.
13695         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13696         * manual/libc.texinfo: Include macros.texi.
13697         * manual/creatute.texi: Likewise.
13698         * manual/install.texi: Likewise.
13699         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13700         @glibcadj{} in references to the GNU C Library.
13701         * manual/charset.texi: Likewise.
13702         * manual/conf.texi: Likewise.
13703         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13704         when not using those macros.
13705         * manual/creature.texi: Likewise.
13706         * manual/crypt.texi: Likewise.
13707         * manual/errno.texi: Likewise.
13708         * manual/filesys.texi: Likewise.
13709         * manual/header.texi: Likewise.
13710         * manual/install.texi: Likewise.
13711         * manual/intro.texi: Likewise.
13712         * manual/io.texi: Likewise.
13713         * manual/job.texi: Likewise.
13714         * manual/lang.texi: Likewise.
13715         * manual/libc.texiinfo: Likewise.
13716         * manual/llio.texi: Likewise.
13717         * manual/locale.texi: Likewise.
13718         * manual/maint.texi: Likewise.
13719         * manual/math.texi: Likewise.
13720         * manual/memory.texi: Likewise.
13721         * manual/message.texi: Likewise.
13722         * manual/nss.texi: Likewise.
13723         * manual/pattern.texi: Likewise.
13724         * manual/process.texi: Likewise.
13725         * manual/resource.texi: Likewise.
13726         * manual/search.texi: Likewise.
13727         * manual/setjmp.texi: Likewise.
13728         * manual/signal.texi: Likewise.
13729         * manual/socket.texi: Likewise.
13730         * manual/startup.texi: Likewise.
13731         * manual/stdio.texi: Likewise.
13732         * manual/string.texi: Likewise.
13733         * manual/sysinfo.texi: Likewise.
13734         * manual/syslog.texi: Likewise.
13735         * manual/terminal.texi: Likewise.
13736         * manual/time.texi: Likewise.
13737         * manual/users.texi: Likewise.
13738         * INSTALL: Regenerated.
13739         * NOTES: Regenerated.
13740         * sysdeps/gnu/errlist.c: Regenerated.
13741
13742 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13743
13744         * include/dirent.h: Include <dirstream.h> before
13745         <dirent/dirent.h>.
13746
13747 2012-02-28  David S. Miller  <davem@davemloft.net>
13748
13749         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13750         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13751         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13752         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13753
13754 2012-02-27  David S. Miller  <davem@davemloft.net>
13755
13756         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13757         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13758         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13759         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13760
13761         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13762         frame pointer instead of stack pointer relative arg slot.
13763         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13764         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13765         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13766
13767 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13768
13769         [BZ #3992]
13770         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13771
13772 2012-02-27  David S. Miller  <davem@davemloft.net>
13773
13774         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13775         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13776         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13777         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13778         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13779         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13780         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13781         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13782
13783 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13784
13785         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13786         later.  Allow versions 5-9.
13787         * configure: Regenerated.
13788         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13789         required minimum version and 4.6 as recommended version.  Do not
13790         mention bugs in GCC 2.7 and 2.8.
13791         * INSTALL: Regenerated.
13792
13793 2012-02-27  David S. Miller  <davem@davemloft.net>
13794
13795         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13796         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13797         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13798         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13799         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13800         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13801         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13802         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13803
13804         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13805         manipulate bits before adding and subtracting TWO112[sx].
13806         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13807
13808 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13809
13810         [BZ #13775]
13811         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13812         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13813         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13814         being in POSIX, because they are in 1003.1-2008.
13815
13816         * rt/tst-aio.c: Include <fcntl.h>.
13817         * rt/tst-aio7.c: Likewise.
13818         * rt/tst-aio64.c: Likewise.
13819
13820         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13821
13822 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13823
13824         * manual/install.texi (--with-headers): Describe headers as
13825         interface headers, not private headers.
13826         (Specific advice for GNU/Linux systems): Describe use of headers
13827         from "make headers_install", not private headers from older
13828         kernels.
13829         * INSTALL: Regenerated.
13830         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13831         Change to 2.6.19.
13832         * sysdeps/unix/sysv/linux/configure: Regenerated.
13833
13834         * manual/llio.texi (fclean): Remove documentation.
13835
13836         * manual/Makefile (libc-texi-generated): New variable.  Include
13837         version.texi.
13838         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13839         $(libc-texi-generated), not duplicated list of files.
13840         (version.texi, stamp-version): New rules.
13841         (realclean): Remove $(libc-texi-generated), not individual files
13842         from that list.  Do not remove dir-add.texinfo.
13843         * manual/libc.texinfo: Comment out uses of edition numbers and
13844         references to printed manual.  Remove last-updated dates.
13845         (EDITION): Comment out.
13846         (ISBN): Likewise.
13847         (VERSION, UPDATED): Remove.
13848         (version.texi): Include.
13849
13850 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13851
13852         * sysdeps/posix/spawni.c: Include <signal.h>.
13853         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13854         * sysdeps/pthread/aio_fsync.c: Likewise.
13855
13856 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13857
13858         * conform/Makefile (tests): Run only when not cross-compiling and
13859         when fast-check is not defined.
13860
13861         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13862         * conform/data/limits.h-data: Fixes for POSIX2008.
13863         * conform/run-conformtest.sh: Run all tests.
13864         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13865         headers.
13866         * include/bits/dlfcn.h: Likewise.
13867         * include/langinfo.h: Likewise.
13868         * include/monetary.h: Likewise.
13869         * include/sys/poll.h: Likewise.
13870
13871         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13872         for __USE_GNU.
13873         * posix/spawn.h: Define __need_sigset_t.
13874         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13875         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13876         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13877         to get sigevent_t only.
13878         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13879         only for __USE_GNU.
13880         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13881         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13882         process_vm_writev only for __USE_GNU.
13883         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13884
13885         * conform/Makefile: For now ignore errors from run-conformtest.
13886         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13887         POSIX to avoid namespace pollution.  Don't prepend headers.
13888         * conform/data/aio.h-data: Fixes for POSIX testing.
13889         * conform/data/fcntl.h-data: Likewise.
13890         * conform/data/glob.h-data: Likewise.
13891         * conform/data/grp.h-data: Likewise.
13892         * conform/data/pthread.h-data: Likewise.
13893         * conform/data/pwd.h-data: Likewise.
13894         * conform/data/signal.h-data: Likewise.
13895         * conform/data/spawn.h-data: Likewise.
13896         * conform/data/stdio.h-data: Likewise.
13897         * conform/data/stdlib.h-data: Likewise.
13898         * conform/data/stropts.h-data: Likewise.
13899         * conform/data/sys/mman.h-data: Likewise.
13900         * conform/data/sys/stat.h-data: Likewise.
13901         * conform/data/sys/types.h-data: Likewise.
13902         * conform/data/sys/wait.h-data: Likewise.
13903         * conform/data/time.h-data: Likewise.
13904         * conform/data/unistd.h-data: Likewise.
13905         * conform/data/utime.h-data: Likewise.
13906
13907         * io/sys/stat.h: fchmod was always in POSIX.
13908         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13909         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13910         * rt/aio.h: Define __need_timespec before including <time.h>.
13911         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13912         struct.  Add forward declaration of pthread_attr_t and use it in
13913         sigevent.
13914         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13915         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13916         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13917         always remove CLK_TCK definition.
13918
13919 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13920
13921         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13922
13923 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13924
13925         * conform/run-conformtest.sh: New file.
13926         * conform/Makefile: Run run-conformtest for tests.
13927         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13928         support.
13929
13930         * conform/data/uchar.h-data: New file.
13931         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13932         * conform/data/arpa/inet.h-data: Likewise.
13933         * conform/data/assert.h-data: Likewise.
13934         * conform/data/complex.h-data: Likewise.
13935         * conform/data/cpio.h-data: Likewise.
13936         * conform/data/ctype.h-data: Likewise.
13937         * conform/data/dirent.h-data: Likewise.
13938         * conform/data/dlfcn.h-data: Likewise.
13939         * conform/data/errno.h-data: Likewise.
13940         * conform/data/fcntl.h-data: Likewise.
13941         * conform/data/float.h-data: Likewise.
13942         * conform/data/fmtmsg.h-data: Likewise.
13943         * conform/data/fnmatch.h-data: Likewise.
13944         * conform/data/ftw.h-data: Likewise.
13945         * conform/data/glob.h-data: Likewise.
13946         * conform/data/grp.h-data: Likewise.
13947         * conform/data/iconv.h-data: Likewise.
13948         * conform/data/inttypes.h-data: Likewise.
13949         * conform/data/langinfo.h-data: Likewise.
13950         * conform/data/libgen.h-data: Likewise.
13951         * conform/data/limits.h-data: Likewise.
13952         * conform/data/locale.h-data: Likewise.
13953         * conform/data/math.h-data: Likewise.
13954         * conform/data/monetary.h-data: Likewise.
13955         * conform/data/mqueue.h-data: Likewise.
13956         * conform/data/ndbm.h-data: Likewise.
13957         * conform/data/net/if.h-data: Likewise.
13958         * conform/data/netdb.h-data: Likewise.
13959         * conform/data/netinet/in.h-data: Likewise.
13960         * conform/data/nl_types.h-data: Likewise.
13961         * conform/data/poll.h-data: Likewise.
13962         * conform/data/pthread.h-data: Likewise.
13963         * conform/data/pwd.h-data: Likewise.
13964         * conform/data/regex.h-data: Likewise.
13965         * conform/data/sched.h-data: Likewise.
13966         * conform/data/search.h-data: Likewise.
13967         * conform/data/semaphore.h-data: Likewise.
13968         * conform/data/setjmp.h-data: Likewise.
13969         * conform/data/signal.h-data: Likewise.
13970         * conform/data/spawn.h-data: Likewise.
13971         * conform/data/stdarg.h-data: Likewise.
13972         * conform/data/stdio.h-data: Likewise.
13973         * conform/data/stdlib.h-data: Likewise.
13974         * conform/data/string.h-data: Likewise.
13975         * conform/data/strings.h-data: Likewise.
13976         * conform/data/stropts.h-data: Likewise.
13977         * conform/data/sys/ipc.h-data: Likewise.
13978         * conform/data/sys/mman.h-data: Likewise.
13979         * conform/data/sys/msg.h-data: Likewise.
13980         * conform/data/sys/resource.h-data: Likewise.
13981         * conform/data/sys/select.h-data: Likewise.
13982         * conform/data/sys/sem.h-data: Likewise.
13983         * conform/data/sys/shm.h-data: Likewise.
13984         * conform/data/sys/socket.h-data: Likewise.
13985         * conform/data/sys/stat.h-data: Likewise.
13986         * conform/data/sys/statvfs.h-data: Likewise.
13987         * conform/data/sys/time.h-data: Likewise.
13988         * conform/data/sys/timeb.h-data: Likewise.
13989         * conform/data/sys/times.h-data: Likewise.
13990         * conform/data/sys/types.h-data: Likewise.
13991         * conform/data/sys/uio.h-data: Likewise.
13992         * conform/data/sys/un.h-data: Likewise.
13993         * conform/data/sys/utsname.h-data: Likewise.
13994         * conform/data/sys/wait.h-data: Likewise.
13995         * conform/data/syslog.h-data: Likewise.
13996         * conform/data/tar.h-data: Likewise.
13997         * conform/data/termios.h-data: Likewise.
13998         * conform/data/utime.h-data: Likewise.
13999         * conform/data/utmpx.h-data: Likewise.
14000         * conform/data/varargs.h-data: Likewise.
14001         * conform/data/wchar.h-data: Likewise.
14002         * conform/data/wctype.h-data: Likewise.
14003         * conform/data/wordexp.h-data: Likewise.
14004
14005         * include/stropts.h: New file.
14006         * include/uchar.h: New file.
14007         * include/aio.h: Changes to allow conformtest.pl to use the headers.
14008         * include/assert.h: Likewise.
14009         * include/ctype.h: Likewise.
14010         * include/dirent.h: Likewise.
14011         * include/dlfcn.h: Likewise.
14012         * include/fcntl.h: Likewise.
14013         * include/fnmatch.h: Likewise.
14014         * include/glob.h: Likewise.
14015         * include/grp.h: Likewise.
14016         * include/libio.h: Likewise.
14017         * include/locale.h: Likewise.
14018         * include/math.h: Likewise.
14019         * include/net/if.h: Likewise.
14020         * include/netdb.h: Likewise.
14021         * include/netinet/in.h: Likewise.
14022         * include/pthread.h: Likewise.
14023         * include/pwd.h: Likewise.
14024         * include/regex.h: Likewise.
14025         * include/sched.h: Likewise.
14026         * include/search.h: Likewise.
14027         * include/setjmp.h: Likewise.
14028         * include/signal.h: Likewise.
14029         * include/stdio.h: Likewise.
14030         * include/stdlib.h: Likewise.
14031         * include/string.h: Likewise.
14032         * include/sys/cdefs.h: Likewise.
14033         * include/sys/mman.h: Likewise.
14034         * include/sys/msg.h: Likewise.
14035         * include/sys/resource.h: Likewise.
14036         * include/sys/select.h: Likewise.
14037         * include/sys/socket.h: Likewise.
14038         * include/sys/stat.h: Likewise.
14039         * include/sys/statvfs.h: Likewise.
14040         * include/sys/time.h: Likewise.
14041         * include/sys/times.h: Likewise.
14042         * include/sys/uio.h: Likewise.
14043         * include/sys/utsname.h: Likewise.
14044         * include/sys/wait.h: Likewise.
14045         * include/termios.h: Likewise.
14046         * include/time.h: Likewise.
14047         * include/ulimit.h: Likewise.
14048         * include/unistd.h: Likewise.
14049         * include/utime.h: Likewise.
14050         * include/wchar.h: Likewise.
14051         * include/wctype.h: Likewise.
14052         * include/wordexp.h: Likewise.
14053
14054         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
14055
14056         * time/time.h: TIME_UTC must be a macro.
14057         Make timespec_get available for ISO C11 only as well.
14058
14059 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
14060
14061         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
14062         Reported by Peng Haitao <penght@cn.fujitsu.com>.
14063
14064 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14065
14066         * configure.in: Use -o not -a in test for unsupported multi-arch.
14067
14068 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14069
14070         * manual/texinfo.tex: Update to version 2012-01-19.16.
14071
14072 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14073
14074         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14075
14076 2012-02-24  Roland McGrath  <roland@hack.frob.com>
14077
14078         [BZ #13738]
14079         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14080         * manual/fdl-1.3.texi: New file.
14081         * manual/fdl-1.1.texi: File removed.
14082
14083         [BZ #13738]
14084         * manual/libc.texinfo (FDL_VERSION): New @set.
14085         Use it for mention of FDL in cover text.
14086         (Documentation License): Use it in @include file name.
14087
14088 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14089             Roland McGrath  <roland@hack.frob.com>
14090
14091         [BZ #5461]
14092         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14093         not LONG_LONG_MAX and LONG_LONG_MIN.
14094         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14095         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14096         name.
14097         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14098
14099 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14100
14101         [BZ #2547]
14102         [BZ #11365]
14103         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14104         manipulate bits before adding and subtracting TWO23[sx].
14105         * math/libm-test.inc (nearbyint_test): Add more tests.
14106
14107 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14108
14109         [BZ #2548]
14110         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14111         bits before adding and subtracting TWO23[sx].
14112         * math/libm-test.inc (rint_test): Add more tests.
14113         (rint_test_tonearest): Likewise.
14114         (rint_test_towardzero): Likewise.
14115         (rint_test_downward): Likewise.
14116         (rint_test_upward: Likewise.
14117
14118 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14119
14120         [BZ #10110]
14121         * include/stdc-predef.h: New file.  Extracted from features.h.
14122         * include/features.h: Include stdc-predef.h.
14123         * Makefile (headers): Add stdc-predef.h.
14124         * CONFORMANCE (Compiler limitations): Update.
14125
14126 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14127
14128         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14129
14130 2012-02-21  David S. Miller  <davem@davemloft.net>
14131
14132         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14133         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14134
14135 2012-02-20  David S. Miller  <davem@davemloft.net>
14136
14137         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14138         using a normal save/restore sequence, rather than allocating a
14139         dummy stack frame just to store a frame pointer and restore.
14140         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14141
14142 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14143
14144         * manual/install.texi: Fix stray word in line-wrapped comment.
14145
14146 2012-02-20  David S. Miller  <davem@davemloft.net>
14147
14148         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14149         both binutils and gcc support GOTDATA.
14150
14151         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14152         "rd %pc" in the PIC register setup sequences.
14153
14154         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14155         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14156         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14157         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14158         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14159         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14160         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14161         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14162         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14163         (SYSCALL_ERROR_HANDLER): Likewise.
14164         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14165         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14166         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14167         (SYSCALL_ERROR_HANDLER): Likewise.
14168
14169         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14170         (HAVE_GCC_GOTDATA): New.
14171         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14172         relocation support in both binutils and gcc.
14173         * sysdeps/sparc/elf/configure: Regenerate.
14174
14175         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14176         * sysdeps/sparc/sparc32/elf/configure: Delete.
14177         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14178         * sysdeps/sparc/sparc64/elf/configure: Delete.
14179         * sysdeps/sparc/elf/configure.in: New file.
14180         * sysdeps/sparc/elf/configure: Generate.
14181
14182         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14183         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14184         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14185         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14186         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14187
14188 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14189
14190         * manual/install.texi: Do not mention specific glibc version
14191         numbers.
14192         * manual/libc.texinfo (VERSION, UPDATED): Update.
14193         (@copying): Use @copyright{} and range of years.
14194
14195 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14196
14197         [BZ #13695]
14198         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14199         [crti.S not in sysdirs] (generated): Do not append.
14200         [crti.S not in sysdirs] (omit-deps): Likewise.
14201         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14202         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14203         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14204         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14205         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14206         Likewise.
14207         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14208         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14209         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14210         * csu/defs.awk: Remove file.
14211         * sysdeps/generic/initfini.c: Likewise.
14212         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14213         variable.
14214         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14215         Likewise.
14216
14217 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14218
14219         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14220         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14221         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14222         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14223         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14224         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14225         <bits/epoll.h>.
14226         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14227         (__EPOLL_PACKED): Define to empty if not defined by
14228         <bits/epoll.h>.
14229         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14230         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14231         bits/epoll.h.
14232
14233 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14234
14235         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14236         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14237         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14238         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14239         <bits/timerfd.h>.
14240         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14241         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14242         bits/timerfd.h.
14243
14244 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14245
14246         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14247         in C locale.
14248         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14249         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14250         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14251         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14252
14253 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14254
14255         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14256         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14257
14258 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14259
14260         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14261         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14262         defined.
14263         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14264         Likewise.
14265         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14266         entry for 2.16.
14267
14268 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
14269
14270         * math/w_acos.c: Use non-signaling floating-point comparisons.
14271         * math/w_acosf.c: Likewise.
14272         * math/w_acosh.c: Likewise.
14273         * math/w_acoshf.c: Likewise.
14274         * math/w_acoshl.c: Likewise.
14275         * math/w_acosl.c: Likewise.
14276         * math/w_asin.c: Likewise.
14277         * math/w_asinf.c: Likewise.
14278         * math/w_asinl.c: Likewise.
14279         * math/w_atanh.c: Likewise.
14280         * math/w_atanhf.c: Likewise.
14281         * math/w_atanhl.c: Likewise.
14282         * math/w_exp2.c: Likewise.
14283         * math/w_exp2f.c: Likewise.
14284         * math/w_exp2l.c: Likewise.
14285         * math/w_j0.c: Likewise.
14286         * math/w_j0f.c: Likewise.
14287         * math/w_j0l.c: Likewise.
14288         * math/w_j1.c: Likewise.
14289         * math/w_j1f.c: Likewise.
14290         * math/w_j1l.c: Likewise.
14291         * math/w_jn.c: Likewise.
14292         * math/w_jnf.c: Likewise.
14293         * math/w_log.c: Likewise.
14294         * math/w_log10.c: Likewise.
14295         * math/w_log10f.c: Likewise.
14296         * math/w_log10l.c: Likewise.
14297         * math/w_log2.c: Likewise.
14298         * math/w_log2f.c: Likewise.
14299         * math/w_log2l.c: Likewise.
14300         * math/w_logf.c: Likewise.
14301         * math/w_logl.c: Likewise.
14302         * math/w_sqrt.c: Likewise.
14303         * math/w_sqrtf.c: Likewise.
14304         * math/w_sqrtl.c: Likewise.
14305         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14306         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14307         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14308         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14309         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14310
14311 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14312
14313         [BZ #9739]
14314         * manual/string.texi (strnlen): Use correct parameter name in
14315         equivalent expression.
14316
14317 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14318
14319         [BZ #11174]
14320         * manual/users.texi (seteuid): Consistently use neweuid for
14321         argument name.
14322
14323 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14324
14325         [BZ #13704]
14326         * manual/nss.texi (Services in the NSS configuration): Correct
14327         list of services in example configuration file.
14328
14329 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14330
14331         [BZ #11322]
14332         * manual/arith.texi: Remove statements about negative zero
14333         behaving identically to zero.
14334
14335 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14336
14337         [BZ #5993]
14338         * manual/install.texi: Do not document upgrading from libc5.
14339
14340 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14341
14342         [BZ #4596]
14343         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14344
14345 2012-02-18  David S. Miller  <davem@davemloft.net>
14346
14347         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14348         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14349         %o7 across the call.
14350         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14351         instead.
14352         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14353         SETUP_PIC_REG_LEAF.
14354         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14355         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14356         * sysdeps/sparc/crtn.S: Likewise.
14357
14358 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14359
14360         * aout/Makefile: Remove.
14361
14362 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14363
14364         [BZ #13058]
14365         * manual/examples/argp-ex1.c (main): Format definition in GNU
14366         style.
14367         * manual/examples/argp-ex2.c (main): Likewise.
14368         * manual/examples/argp-ex3.c (main): Likewise.
14369         * manual/examples/argp-ex4.c (main): Likewise.
14370         * manual/examples/longopt.c (main): Use new-style prototype
14371         definition.
14372         * manual/examples/strncat.c (main): Specify return type and use
14373         (void) for arguments.
14374         * manual/examples/subopt.c (main): Use char **argv argument.
14375
14376 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14377
14378         [BZ #5077]
14379         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14380         rounding modes.
14381
14382 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14383
14384         [BZ #6907]
14385         * manual/string.texi (strchr): Change when strchrnul is
14386         recommended.
14387
14388 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14389
14390         [BZ #174]
14391         * manual/locale.texi (setlocale): Document LOCPATH.
14392
14393 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14394
14395         [BZ #10210]
14396         * manual/process.texi (execle): Move @dots{} before last argument.
14397
14398 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14399
14400         [BZ #12047]
14401         * manual/charset.texi (Generic Charset Conversion): Fix typo
14402         (LC_TYPE -> LC_CTYPE).
14403
14404 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14405
14406         [BZ #5805]
14407         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14408         (scalbnf): Likewise.
14409         (scalbnl): Likewise.
14410         (scalbln): Likewise.
14411         (scalblnf): Likewise.
14412         (scalblnl): Likewise.
14413         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14414         (vwarnx): Likewise.
14415         (verr): Likewise.
14416         (verrx): Likewise.
14417         * manual/filesys.texi (telldir): Use braces around return type.
14418         * manual/llio.texi (mmap): Add space after comma.
14419         (mmap64): Likewise.
14420         * manual/math.texi (jn): Use @var{} on parameter names.
14421         (jnf): Likewise.
14422         (jnl): Likewise.
14423         (yn): Likewise.
14424         (ynf): Likewise.
14425         (ynl): Likewise.
14426         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14427         line.
14428         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14429         "...".
14430         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14431         (sched_get_priority_max): Likewise.
14432         * manual/signal.texi (sigvec): Add space after comma.
14433         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14434         names.
14435         (if_indextoname): Likewise.
14436         (if_freenameindex): Likewise.
14437         (sendto): Use ',' instead of '.' in prototype.
14438         * manual/startup.texi (syscall): Use @dots{} instead of literal
14439         "...".
14440         * manual/stdio.texi (__fpending): Separate initial words of
14441         paragraph from @deftypefun line.
14442         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14443         "...".
14444         (vsyslog): Use @var{} on parameter names.
14445         * manual/terminal.texi (stty): Use @var{} on parameter names.
14446         * manual/users.texi (getutmp): Use @var{} on parameter names.
14447         (getutmpx): Likewise.
14448
14449 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14450
14451         [BZ #6884]
14452         * manual/stdio.texi (fopen): Fix typos in description of
14453         ",ccs=STRING".
14454
14455 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14456
14457         [BZ #4026]
14458         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14459         get clock_id definition.
14460
14461 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14462
14463         [BZ #4822]
14464         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14465         (madvise): Cast every argument to void on its own.
14466
14467 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14468
14469         [BZ #9902]
14470         * manual/startup.texi (Exit Status): Fix typo.
14471
14472 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14473
14474         [BZ #10140]
14475         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14476         * manual/examples/argp-ex2.c: Likewise.
14477         * manual/examples/argp-ex3.c: Likewise.
14478
14479 2012-02-16  Richard Henderson  <rth@redhat.com>
14480
14481         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14482         * sysdeps/s390/s390-32/initfini.c: Remove.
14483         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14484         * sysdeps/s390/s390-64/initfini.c: Remove.
14485
14486 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14487
14488         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14489         compiler output for sysdeps/generic/initfini.c.
14490         * sysdeps/sh/elf/initfini.c: Remove file.
14491
14492 2012-02-16  David S. Miller  <davem@davemloft.net>
14493
14494         [BZ #11494]
14495         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14496
14497         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14498         * sysdeps/sparc/crti.S: New file.
14499         * sysdeps/sparc/crtn.S: New file.
14500         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14501         * sysdeps/sparc/sparc64/Makefile: Likewise.
14502
14503 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14504
14505         [BZ #3335]
14506         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14507
14508 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14509
14510         [BZ #4822]
14511         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14512
14513         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14514         (write, read, close): Likewise.
14515         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14516
14517 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14518
14519         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14520         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14521         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14522         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14523         <bits/signalfd.h>.
14524         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14525         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14526         bits/signalfd.h.
14527
14528 2012-02-14  Marek Polacek  <polacek@redhat.com>
14529
14530         * sysdeps/x86_64/crti.S: New file.
14531         * sysdeps/x86_64/crtn.S: New file.
14532         * sysdeps/x86_64/elf/initfini.c: Remove file.
14533
14534 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14535
14536         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14537         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14538         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14539         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14540         <bits/inotify.h>.
14541         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14542         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14543         bits/inotify.h.
14544
14545 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14546
14547         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14548         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14549         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14550         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14551         <bits/eventfd.h>.
14552         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14553         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14554         bits/eventfd.h.
14555
14556 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14557
14558         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14559         __feraiseexcept instead of feraiseexcept.
14560
14561         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14562         nanosleep invocations.
14563         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14564         strings, and add error checking for a nanosleep invocations.
14565
14566 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14567
14568         Replace FSF snail mail address with URLs, as per GNU coding standards.
14569         Most of the snail mail addresses were wrong anyway, and omitting
14570         them makes the source code easier to maintain.  Almost all of the
14571         changes are to license notices and to locale LC_IDENTIFICATION
14572         addresses, except for this one:
14573         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14574         not its snail mail address.
14575
14576 2012-02-09  Richard Henderson  <rth@twiddle.net>
14577
14578         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14579         of kernel-features.h.
14580
14581         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14582
14583 2012-02-08  Marek Polacek  <polacek@redhat.com>
14584
14585         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14586         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14587         * sysdeps/gnu/_G_config.h: Likewise.
14588         * sysdeps/generic/_G_config.h: Likewise.
14589
14590 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14591
14592         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14593         tests.
14594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14595
14596         * sysdeps/powerpc/powerpc32/crti.S: New file.
14597         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14598         * sysdeps/powerpc/powerpc64/crti.S: New file.
14599         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14600
14601         * Makeconfig (have-initfini): Don't set.
14602         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14603         * configure.in (nopic_initfini): Don't substitute.
14604         * config.h.in (HAVE_INITFINI): Don't #undef.
14605         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14606         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14607
14608 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14609
14610         Support crti.S and crtn.S provided directly by architectures.
14611         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14612         [crti.S in sysdirs] (omit-deps): Likewise.
14613         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14614         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14615         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14616         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14617         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14618         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14619         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14620         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14621         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14622         compiler output for sysdeps/generic/initfini.c.
14623         * sysdeps/i386/elf/Makefile: Remove file.
14624         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14625
14626 2012-02-07  Marek Polacek  <polacek@redhat.com>
14627
14628         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14629         * sysdeps/gnu/_G_config.h: Likewise.
14630         * sysdeps/mach/hurd/_G_config.h: Likewise.
14631
14632 2012-02-07  Marek Polacek  <polacek@redhat.com>
14633
14634         * math/Makefile (tests): Add tst-CMPLX2.
14635         * math/tst-CMPLX2.c: New file.
14636
14637 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14638
14639         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14640
14641         * math/libm-test.inc (jn_test): Add missing L suffix.
14642
14643 2012-02-06  Marek Polacek  <polacek@redhat.com>
14644
14645         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14646         * sysdeps/i386/fpu/e_powf.S: Likewise.
14647         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14648         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14649         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14650         * sysdeps/i386/fpu/e_pow.S: Likewise.
14651         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14652         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14653         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14654         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14655         * sysdeps/i386/fpu/e_log2.S: Likewise.
14656         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14657         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14658         * sysdeps/i386/fpu/e_powl.S: Likewise.
14659         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14660         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14661         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14662         * sysdeps/i386/fpu/e_logl.S: Likewise.
14663         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14664         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14665         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14666         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14667         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14668         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14669         * sysdeps/i386/fpu/e_log.S: Likewise.
14670         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14671         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14672         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14673         * sysdeps/i386/fpu/e_logf.S: Likewise.
14674         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14675         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14676         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14677         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14678         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14679         * sysdeps/i386/fpu/e_log10.S: Likewise.
14680         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14681         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14682         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14683         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14684         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14685         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14686         * sysdeps/i386/asm-syntax.h: Likewise.
14687         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14688         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14689         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14690         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14691         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14692         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14693         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14694         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14695         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14696         * sysdeps/powerpc/sysdep.h: Likewise.
14697         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14698         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14699
14700 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14701
14702         [BZ #411]
14703         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14704
14705 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14706
14707         * sysdeps/i386/sysdep.h: Include <features.h>.
14708         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14709         version.
14710
14711 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14712
14713         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14714         Define.
14715         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14716         LOAD_PIC_REG_STR.
14717
14718 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14719
14720         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14721         (SETUP_PIC_REG): Use GET_PC_THUNK.
14722         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14723         macro.
14724
14725 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14726
14727         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14728         for non-PIC compilation.
14729         (SETUP_PIC_REG): Add .p2align directive.
14730         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14731         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14732         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14733         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14734         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14735         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14736         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14737         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14738         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14739         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14740         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14741         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14742         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14743         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14744         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14745         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14746         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14747         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14748         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14749         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14750         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14751         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14752         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14753         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14754         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14755         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14756         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14757         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14758         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14759         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14760         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14761         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14762         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14763         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14764         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14765         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14766         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14767         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14768         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14769         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14770         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14771
14772 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14773
14774         * math/tst-CMPLX.c: Include <stdio.h>.
14775
14776 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14777
14778         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14779         float.
14780         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14781         * sysdeps/sparc/bits/mathdef.h: Likewise.
14782
14783 2012-01-31  Marek Polacek  <polacek@redhat.com>
14784
14785         * libio/libio.h: Don't define _PARAMS.
14786         * locale/programs/config.h: Don't define PARAMS.
14787         * stdlib/strtol_l.c: Likewise.
14788         (__strtol_l): Remove PARAMS from the prototype.
14789
14790 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14791
14792         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14793         names.  Just use the correct names.  Remove unnecessary wrapper
14794         functions.
14795         * malloc/arena.c: Likewise.
14796         * malloc/hooks.c: Likewise.
14797
14798         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14799         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14800         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14801
14802 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14803
14804         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14805         into tail calls.
14806         (update_get_addr): New function.
14807         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14808         GET_ADDR_MODULE parameter.
14809
14810 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14811
14812         * crypt/cert.c: Remove __STDC__ conditionals.
14813         * crypt/crypt-entry.c: Likewise.
14814         * crypt/crypt_util.c: Likewise.
14815         * libio/filedoalloc.c: Likewise.
14816         * libio/fileops.c: Likewise.
14817         * libio/genops.c: Likewise.
14818         * libio/iofclose.c: Likewise.
14819         * libio/iofdopen.c: Likewise.
14820         * libio/iofopen.c: Likewise.
14821         * libio/iofopen64.c: Likewise.
14822         * libio/iogetdelim.c: Likewise.
14823         * libio/iopopen.c: Likewise.
14824         * libio/obprintf.c: Likewise.
14825         * libio/oldfileops.c: Likewise.
14826         * libio/oldiofclose.c: Likewise.
14827         * libio/oldiofdopen.c: Likewise.
14828         * libio/oldiofopen.c: Likewise.
14829         * libio/oldiopopen.c: Likewise.
14830         * libio/wfiledoalloc.c: Likewise.
14831         * libio/wgenops.c: Likewise.
14832         * locale/programs/xmalloc.c: Likewise.
14833         * misc/syslog.c: Likewise.
14834         * stdio-common/xbug.c: Likewise.
14835         * string/memchr.c: Likewise.
14836         * string/memcmp.c: Likewise.
14837         * string/memrchr.c: Likewise.
14838         * string/rawmemchr.c: Likewise.
14839         * sysdeps/posix/getcwd.c: Likewise.
14840         * time/strftime_l.c: Likewise.
14841
14842 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14843
14844         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14845         * config.make.in (config-cflags-sse2avx): Define.
14846         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14847         Fix typo.
14848
14849 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14850
14851         * scripts/config.guess: Update from upstream config git repository.
14852         * scripts/config.sub: Likewise.
14853
14854 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14855
14856         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14857         (EM_NUM): Update.
14858         (R_TILEPRO_*, R_TILEGX_*): New macros.
14859
14860         * scripts/firstversions.awk: Fix bug in version range handling.
14861
14862         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14863
14864         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14865
14866         * include/sys/epoll.h: New file.
14867         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14868         libc_hidden_def.
14869
14870 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14871
14872         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14873         Avoid unnecessary __WORDSIZE == 64 test.
14874         (fmaxf): Use VEX format if possible.
14875         (fmax): Likewise.
14876         (fminf): Likewise.
14877         (fmin): Likewise.
14878
14879         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14880         * math/math_private.h: Remove libc_fegetround* and
14881         libc_fesetround*.
14882         * sysdeps/i386/configure.in: Check for -msse2avx.
14883         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14884         also if SSE2AVX is defined.
14885         Remove libc_fegetround* and libc_fesetround*.
14886         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14887         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14888         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14889         of HAS_YMM_USABLE.
14890         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14891         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14892         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14893         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14894         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14895
14896         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14897
14898 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14899
14900         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14901         size is not set.
14902         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14903
14904 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14905
14906         [BZ #13618]
14907         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14908         relocation.
14909         * Makeconfig (libm): Define.
14910         * elf/Makefile: Add rules to build and run tst-relsort1.
14911         * elf/tst-relsort1.c: New file.
14912         * elf/tst-relsort1mod1.c: New file.
14913         * elf/tst-relsort1mod2.c: New file.
14914
14915 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14916
14917         * math/s_ldexp.c: Remove __STDC__ conditionals.
14918         * math/s_ldexpf.c: Likewise.
14919         * math/s_ldexpl.c: Likewise.
14920         * math/s_nextafter.c: Likewise.
14921         * math/s_nexttowardf.c: Likewise.
14922         * math/s_significand.c: Likewise.
14923         * math/s_significandf.c: Likewise.
14924         * math/s_significandl.c: Likewise.
14925         * math/w_jnl.c: Likewise.
14926         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14927         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14928         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14929         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14930         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14931         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14932         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14933         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14934         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14935         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14936         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14937         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14938         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14939         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14940         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14941         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14942         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14943         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14944         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14945         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14946         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14947         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14948         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14949         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14950         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14951         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14952         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14953         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14954         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14955         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14956         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14957         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14958         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14959         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14960         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14961         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14962         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14963         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14964         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14965         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14966         * sysdeps/ieee754/k_standard.c: Likewise.
14967         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14968         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14969         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14970         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14971         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14972         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14973         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14974         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14975         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14976         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14977         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14978         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14979         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14980         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14981         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14982         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14983         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14984         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14985         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14986         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14987         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14988         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14989         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14990         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14991         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14992         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14993         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14994         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14995         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14996         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14997         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14998         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
14999         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
15000         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
15001         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15002         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
15003         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
15004         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
15005         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
15006         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
15007         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
15008         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
15009         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
15010         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
15011         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
15012         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
15013         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15014         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15015         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15016         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
15017         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
15018         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15019         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15020         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
15021         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15022         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
15023         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
15024         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15025         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15026         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15027         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
15028         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
15029         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
15030         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15031         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
15032         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15033         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15034         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15035         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15036         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15037         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15038         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15039         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15040         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15041         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15042         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
15043         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15044         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15045         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15046         * sysdeps/ieee754/s_matherr.c: Likewise.
15047         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15048         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15049         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15050         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15051
15052 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15053
15054         * crypt/md5.h: Remove __STDC__ conditionals.
15055         * libio/libioP.h: Likewise.
15056         * locale/programs/config.h: Likewise.
15057         * sysdeps/generic/sysdep.h: Likewise.
15058         * sysdeps/i386/asm-syntax.h: Likewise.
15059         * sysdeps/s390/asm-syntax.h: Likewise.
15060         * sysdeps/unix/sysdep.h: Likewise.
15061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
15062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15063
15064 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15065
15066         * libio/libio.h: Remove __STDC__ conditionals.
15067         * malloc/obstack.h: Likewise.
15068         * math/complex.h: Likewise.
15069         * math/math.h: Likewise.
15070         * sysdeps/generic/_G_config.h: Likewise.
15071         * sysdeps/gnu/_G_config.h: Likewise.
15072         * sysdeps/mach/hurd/_G_config.h: Likewise.
15073         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15074         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15075         * sysdeps/sparc/bits/mathdef.h: Likewise.
15076
15077 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
15078
15079         [BZ #13583]
15080         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15081         Clean up HAS_* macros.
15082         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15083         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15084         possible.
15085         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15086         HAS_AVX.
15087         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15088         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15089         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15090         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15091         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15092
15093 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15094
15095         * elf/tst-unique3.cc (gets): Remove declaration.
15096         * elf/tst-unique3lib.cc (gets): Likewise.
15097         * elf/tst-unique3lib2.cc (gets): Likewise.
15098         * elf/tst-unique4.cc (gets): Likewise.
15099
15100 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15101
15102         * include/stdio.h: Add C++ protection.  Add gets declarations and
15103         definitions.
15104         * debug/tst-chk1.c: Don't declare gets here.
15105         * stdio-common/tst-gets.c: Likewise.
15106
15107 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15108
15109         * posix/glob: Remove directory.
15110
15111 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15112
15113         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15114
15115 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15116
15117         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15118         of the non-standard EPFNOSUPPORT.
15119
15120 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15121
15122         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15123         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15124         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15125
15126 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15127
15128         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15129
15130 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15131
15132         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15133         transient errors.
15134         * nscd/grpcache.c (cache_addgr): Likewise.
15135         * nscd/hstcache.c (cache_addhst): Likewise.
15136         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15137         * nscd/pwdcache.c (cache_addpw): Likewise.
15138         * nscd/servicescache.c (cache_addserv): Likewise.
15139
15140 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15141
15142         * malloc/malloc.c: Various cleanups.
15143         * malloc/hooks.c: Likewise.
15144
15145         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15146         * stdlib/bug-fmtmsg1.c: New file.
15147
15148         * stdlib/fmtmsg.c (init): Add missing unlock.
15149         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15150
15151 2012-01-12  Marek Polacek  <polacek@redhat.com>
15152
15153         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15154         and _GNU_SOURCE.
15155
15156 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15157
15158         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15159         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15160         macro to ensure uniqueness of label name.
15161         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15162         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15163
15164 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15165
15166         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15167
15168         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15169         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15170         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15171         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15172
15173 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15174
15175         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15176
15177         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15178         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15179         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15180
15181         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15182
15183         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15184         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15185         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15186         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15187
15188         * math/bits/math-finite.h: Add ldexp support.
15189
15190 2012-01-10  Marek Polacek  <polacek@redhat.com>
15191
15192         * locale/programs/localedef.h (show_archive_content): Add noreturn
15193         attribute.
15194
15195 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15196
15197         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15198
15199 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15200
15201         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15202
15203         * io/Makefile (headers): Add bits/poll2.h.
15204
15205 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15206
15207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15208         typo #include statement.
15209
15210 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15211
15212         * include/sys/cdefs.h: Define __attribute_alloc_size.
15213         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15214         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15215         * elf/pldd.c: Likewise.
15216         * iconv/iconv_charmap.c: Likewise.
15217         * iconv/iconvconfig.c: Likewise.
15218         * iconv/strtab.c: Likewise.
15219         * locale/programs/locale.c: Likewise.
15220         * locale/programs/localedef.h: Likewise.
15221         * locale/programs/simple-hash.c: Likewise.
15222         * nscd/nscd.h: Likewise.
15223         * nss/makedb.c: Likewise.
15224         * sysdeps/generic/ldconfig.h: Likewise.
15225         * locale/programs/localedef.c: Remove xmalloc prototype.
15226         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15227
15228 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15229
15230         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15231         appropriate.
15232
15233 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15234
15235         * math/Makefile (tests): Add tst-CMPLX.
15236         * math/tst-CMPLX.c: New file.
15237
15238         * math/complex.h (CMPLXL): Fix typo.
15239
15240         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15241         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15242         GLIBC_2.16.
15243         * debug/tst-chk1.c: Add poll and ppoll tests.
15244         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15245         * include/sys/poll.h: Add hidden proto for ppoll.
15246         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15247         * sysdeps/mach/hurd/ppoll.c: Likewise.
15248         * io/ppoll.c: Likewise.
15249         * debug/poll_chk.c: New file.
15250         * debug/ppoll_chk.c: New file.
15251         * include/bits/poll2.h: New file.
15252         * io/bits/poll2.h: New file.
15253
15254         [BZ #1350]
15255         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15256
15257         * configure.in: static is always set to yes.  Remove.
15258         * config.make.in: Don't set build-static.
15259         * Makeconfig: Remove use of build-static.
15260         * dlfcn/Makefile: Likewise.
15261         * elf/Makefile: Likewise.
15262         * math/Makefile: Likewise.
15263         * misc/Makefile: Likewise.
15264         * nptl/Makefile: Likewise.
15265         * sysdeps/mach/hurd/Makefile: Likewise.
15266
15267         * configure.in: PWD_P is not used anymore.
15268         * config.make.in: Remove PWD_P entry.
15269
15270         * configure.in: Remove last remnants of RANLIB.
15271         No need to check for signed size_t anymore.
15272         Don't set libc_commonpagesize and libc_relro_required here for Alpha
15273         and IA-64.
15274         Remove __builtin_expect test because we require at least gcc 3.4.
15275         * aclocal.m4: Likewise.
15276
15277         * wcsmbs/mbrtoc16.c: Implement using towc function.
15278         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15279         * wcsmbs/wcsmbsload.c: Likewise.
15280         * iconv/gconv_simple.c: Likewise.
15281         * iconv/gconv_int.h: Likewise.
15282         * iconv/gconv_builtin.h: Likewise.
15283         * iconv/iconv_prog.c: Remove CHAR16 handling.
15284
15285         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15286
15287         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15288
15289         * configure.in: Remove --with-elf and --enable-bounded options.
15290         Dont set base_machine for ia64.  More non-ELF conditions removed.
15291         Remove testing and setting of leading underscore information.
15292         * config.make.in (build-bounded): Set to no.
15293         * config.h.in: Remove NO_UNDERSCORES entry.
15294         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15295         them.
15296         * csu/start.c: Remove !NO_UNDERSCORE code.
15297         * locale/localeinfo.h: Likewise.
15298         * sysdeps/generic/machine-gmon.h: Likewise.
15299         * sysdeps/generic/sysdep.h: Likewise.
15300         * sysdeps/i386/sysdep.h: Likewise.
15301         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15302         * sysdeps/mach/sysdep.h: Likewise.
15303         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15304         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15305         * sysdeps/sh/sysdep.h: Likewise.
15306         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15307         * sysdeps/unix/i386/sysdep.S: Likewise.
15308         * sysdeps/unix/sparc/start.c: Likewise.
15309         * sysdeps/unix/sparc/sysdep.S: Likewise.
15310         * sysdeps/unix/sparc/sysdep.h: Likewise.
15311         * sysdeps/unix/start.c: Likewise.
15312         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15313         * sysdeps/x86_64/sysdep.h: Likewise.
15314
15315 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15316
15317         [BZ #13553]
15318         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15319         for non-gcc.
15320         * argp/argp-fmtstream.h: Use const instead __const.
15321         * argp/argp.h: Likewise.
15322         * assert/assert.h: Likewise.
15323         * bits/fenv.h: Likewise.
15324         * bits/sched.h: Likewise.
15325         * bits/sigset.h: Likewise.
15326         * bits/sigthread.h: Likewise.
15327         * catgets/nl_types.h: Likewise.
15328         * conform/data/pthread.h-data: Likewise.
15329         * crypt/crypt-private.h: Likewise.
15330         * crypt/crypt.h: Likewise.
15331         * crypt/crypt_util.c: Likewise.
15332         * ctype/ctype.h: Likewise.
15333         * debug/execinfo.h: Likewise.
15334         * debug/mbsnrtowcs_chk.c: Likewise.
15335         * debug/mbsrtowcs_chk.c: Likewise.
15336         * debug/wcsnrtombs_chk.c: Likewise.
15337         * debug/wcsrtombs_chk.c: Likewise.
15338         * debug/wcstombs_chk.c: Likewise.
15339         * dirent/dirent.h: Likewise.
15340         * dlfcn/dlfcn.h: Likewise.
15341         * elf/neededtest4.c: Likewise.
15342         * grp/grp.h: Likewise.
15343         * gshadow/gshadow.h: Likewise.
15344         * iconv/gconv.h: Likewise.
15345         * iconv/gconv_int.h: Likewise.
15346         * iconv/gconv_simple.c: Likewise.
15347         * iconv/iconv.h: Likewise.
15348         * iconv/loop.c: Likewise.
15349         * iconv/skeleton.c: Likewise.
15350         * include/aio.h: Likewise.
15351         * include/aliases.h: Likewise.
15352         * include/argz.h: Likewise.
15353         * include/arpa/inet.h: Likewise.
15354         * include/assert.h: Likewise.
15355         * include/dirent.h: Likewise.
15356         * include/dlfcn.h: Likewise.
15357         * include/execinfo.h: Likewise.
15358         * include/fcntl.h: Likewise.
15359         * include/fenv.h: Likewise.
15360         * include/glob.h: Likewise.
15361         * include/grp.h: Likewise.
15362         * include/libintl.h: Likewise.
15363         * include/mntent.h: Likewise.
15364         * include/netdb.h: Likewise.
15365         * include/pwd.h: Likewise.
15366         * include/rpc/netdb.h: Likewise.
15367         * include/sched.h: Likewise.
15368         * include/search.h: Likewise.
15369         * include/shadow.h: Likewise.
15370         * include/signal.h: Likewise.
15371         * include/stdio.h: Likewise.
15372         * include/stdlib.h: Likewise.
15373         * include/string.h: Likewise.
15374         * include/sys/socket.h: Likewise.
15375         * include/sys/stat.h: Likewise.
15376         * include/sys/statfs.h: Likewise.
15377         * include/sys/statvfs.h: Likewise.
15378         * include/sys/syslog.h: Likewise.
15379         * include/sys/time.h: Likewise.
15380         * include/sys/uio.h: Likewise.
15381         * include/time.h: Likewise.
15382         * include/unistd.h: Likewise.
15383         * include/utmp.h: Likewise.
15384         * include/wchar.h: Likewise.
15385         * include/wctype.h: Likewise.
15386         * inet/aliases.h: Likewise.
15387         * inet/arpa/inet.h: Likewise.
15388         * inet/netinet/ether.h: Likewise.
15389         * inet/netinet/in.h: Likewise.
15390         * intl/libintl.h: Likewise.
15391         * io/bits/fcntl2.h: Likewise.
15392         * io/fcntl.h: Likewise.
15393         * io/ftw.h: Likewise.
15394         * io/sys/poll.h: Likewise.
15395         * io/sys/stat.h: Likewise.
15396         * io/sys/statfs.h: Likewise.
15397         * io/sys/statvfs.h: Likewise.
15398         * io/utime.h: Likewise.
15399         * libio/bits/stdio.h: Likewise.
15400         * libio/bits/stdio2.h: Likewise.
15401         * libio/libio.h: Likewise.
15402         * libio/libioP.h: Likewise.
15403         * libio/stdio.h: Likewise.
15404         * locale/lc-ctype.c: Likewise.
15405         * locale/locale.h: Likewise.
15406         * login/utmp.h: Likewise.
15407         * malloc/arena.c: Likewise.
15408         * malloc/malloc.c: Likewise.
15409         * malloc/malloc.h: Likewise.
15410         * malloc/mcheck.c: Likewise.
15411         * malloc/mtrace.c: Likewise.
15412         * math/bits/mathcalls.h: Likewise.
15413         * math/fenv.h: Likewise.
15414         * math/math_private.h: Likewise.
15415         * misc/bits/error.h: Likewise.
15416         * misc/bits/syslog.h: Likewise.
15417         * misc/err.h: Likewise.
15418         * misc/error.h: Likewise.
15419         * misc/fstab.h: Likewise.
15420         * misc/mntent.h: Likewise.
15421         * misc/regexp.h: Likewise.
15422         * misc/search.h: Likewise.
15423         * misc/sgtty.h: Likewise.
15424         * misc/sys/mman.h: Likewise.
15425         * misc/sys/syslog.h: Likewise.
15426         * misc/sys/uio.h: Likewise.
15427         * misc/sys/xattr.h: Likewise.
15428         * misc/ttyent.h: Likewise.
15429         * nis/rpcsvc/ypclnt.h: Likewise.
15430         * nss/nss.h: Likewise.
15431         * posix/bits/unistd.h: Likewise.
15432         * posix/fnmatch.h: Likewise.
15433         * posix/glob.h: Likewise.
15434         * posix/sched.h: Likewise.
15435         * posix/spawn.h: Likewise.
15436         * posix/sys/wait.h: Likewise.
15437         * posix/unistd.h: Likewise.
15438         * posix/wordexp.h: Likewise.
15439         * pwd/pwd.h: Likewise.
15440         * resolv/netdb.h: Likewise.
15441         * resource/sys/resource.h: Likewise.
15442         * rt/aio.h: Likewise.
15443         * rt/bits/mqueue2.h: Likewise.
15444         * rt/mqueue.h: Likewise.
15445         * shadow/shadow.h: Likewise.
15446         * signal/signal.h: Likewise.
15447         * socket/send.c: Likewise.
15448         * socket/sendto.c: Likewise.
15449         * socket/sys/socket.h: Likewise.
15450         * stdio-common/printf.h: Likewise.
15451         * stdlib/bits/stdlib.h: Likewise.
15452         * stdlib/fmtmsg.h: Likewise.
15453         * stdlib/monetary.h: Likewise.
15454         * stdlib/stdlib.h: Likewise.
15455         * stdlib/ucontext.h: Likewise.
15456         * streams/stropts.h: Likewise.
15457         * string/argz.h: Likewise.
15458         * string/bits/string2.h: Likewise.
15459         * string/string.h: Likewise.
15460         * string/strings.h: Likewise.
15461         * sunrpc/rpc/auth.h: Likewise.
15462         * sunrpc/rpc/auth_des.h: Likewise.
15463         * sunrpc/rpc/clnt.h: Likewise.
15464         * sunrpc/rpc/netdb.h: Likewise.
15465         * sunrpc/rpc/pmap_clnt.h: Likewise.
15466         * sunrpc/rpc/xdr.h: Likewise.
15467         * sysdeps/generic/inttypes.h: Likewise.
15468         * sysdeps/generic/net/if.h: Likewise.
15469         * sysdeps/generic/sys/swap.h: Likewise.
15470         * sysdeps/gnu/net/if.h: Likewise.
15471         * sysdeps/gnu/utmpx.h: Likewise.
15472         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15473         * sysdeps/i386/i486/bits/string.h: Likewise.
15474         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15475         * sysdeps/s390/bits/string.h: Likewise.
15476         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15477         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15478         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15479         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15480         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15481         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15482         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15483         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15484         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15485         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15486         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15487         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15488         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15489         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15490         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15491         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15492         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15493         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15494         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15495         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15496         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15497         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15498         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15499         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15500         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15501         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15502         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15503         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15504         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15505         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15506         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15507         * sysvipc/sys/ipc.h: Likewise.
15508         * sysvipc/sys/msg.h: Likewise.
15509         * sysvipc/sys/sem.h: Likewise.
15510         * sysvipc/sys/shm.h: Likewise.
15511         * termios/termios.h: Likewise.
15512         * time/sys/time.h: Likewise.
15513         * time/time.h: Likewise.
15514         * wcsmbs/bits/wchar2.h: Likewise.
15515         * wcsmbs/uchar.h: Likewise.
15516         * wcsmbs/wchar.h: Likewise.
15517         * wctype/wctype.h: Likewise.
15518
15519         [BZ #13551]
15520         * Makeconfig: Remove all but ELF support including AIX support.
15521         * Makerules: Likewise.
15522         * config.h.in: Likewise.
15523         * config.make.in: Likewise.
15524         * configure: Likewise.
15525         * configure.in: Likewise.
15526         * csu/Makefile: Likewise.
15527         * csu/version.c: Likewise.
15528         * debug/Makefile: Likewise.
15529         * dlfcn/Makefile: Likewise.
15530         * elf/Makefile: Likewise.
15531         * extra-lib.mk: Likewise.
15532         * iconv/Makefile: Likewise.
15533         * include/libc-symbols.h: Likewise.
15534         * include/shlib-compat.h: Likewise.
15535         * resolv/Makefile: Likewise.
15536         * resolv/res_libc.c: Likewise.
15537         * rt/Makefile: Likewise.
15538         * sysdeps/i386/asm-syntax.h: Likewise.
15539         * sysdeps/i386/sysdep.h: Likewise.
15540         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15541         * sysdeps/mach/sysdep.h: Likewise.
15542         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15543         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15544         * sysdeps/s390/asm-syntax.h: Likewise.
15545         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15546         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15547         * sysdeps/sh/sysdep.h: Likewise.
15548         * sysdeps/unix/sparc/sysdep.h: Likewise.
15549         * sysdeps/wordsize-32/divdi3.c: Likewise.
15550         * sysdeps/x86_64/sysdep.h: Likewise.
15551
15552         * argp/Versions: Remove _argp_unlock_xxx.
15553
15554         [BZ #13559]
15555         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15556         * abilist/libBrokenLocale.abilist: Likewise.
15557         * abilist/libanl.abilist: Likewise.
15558         * abilist/libc.abilist: Likewise.
15559         * abilist/libcrypt.abilist: Likewise.
15560         * abilist/libdl.abilist: Likewise.
15561         * abilist/libm.abilist: Likewise.
15562         * abilist/libnsl.abilist: Likewise.
15563         * abilist/libpthread.abilist: Likewise.
15564         * abilist/libresolv.abilist: Likewise.
15565         * abilist/librt.abilist: Likewise.
15566         * abilist/libthread_db.abilist: Likewise.
15567         * abilist/libutil.abilist: Likewise.
15568         * abilist/libnss_db.abilist: New file.
15569
15570         * scripts/abilist.awk: Add support for indirect functions.
15571
15572         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15573
15574         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15575
15576         * shlib-versions: Remove entries for ports architectures.
15577
15578         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15579         files in ports.
15580         * elf/stackguard-macros.h: Remove support for IA-64.
15581         * elf/tst-auditmod1.c: Likewise.
15582         * sysdeps/generic/ldsodefs.h: Likewise.
15583
15584         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15585         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15586         configure files.
15587
15588         [BZ #13552]
15589         * configure.in: Remove --enable-omitfp support.
15590         * FAQ.in: Adjust.
15591         * config.make.in: Likewise.
15592         * Makeconfig: Likewise.
15593         * manual/install.texi: Likewise.
15594
15595         In case anyone cares, the IA-64 architecture could move to ports.
15596         * sysdeps/ia64/*: Removed.
15597         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15598         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15599
15600         [BZ #13555]
15601         * configure.in: Remove entries for unsupported architectures.
15602
15603         [BZ #13533]
15604         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15605         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15606         routines.
15607         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15608         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15609         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15610         fall back to using wcrtomb.
15611         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15612         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15613         renaming.
15614         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15615         * wcsmbs/tst-c16c32-1.c: New file.
15616
15617         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15618         local variable.
15619
15620         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15621
15622         * elf/tst-unique3.cc: Add explicit declaration of gets.
15623         * elf/tst-unique3lib.cc: Likewise.
15624         * elf/tst-unique3lib2.cc: Likewise.
15625         * elf/tst-unique4.cc: Likewise.
15626
15627         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15628
15629 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15630
15631         [BZ #13566]
15632         * assert/assert.h (static_assert): Don't define for C++.
15633         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15634         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15635
15636 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15637
15638         * iconv/loop.c (single loop): Fix assertion in storing of
15639         remaining bytes.
15640
15641         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15642
15643 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15644
15645         * posix/getconf.c: Update copyright year.
15646         * nss/getent.c: Likewise.
15647         * nss/makedb.c: Likewise.
15648         * iconv/iconvconfig.c: Likewise.
15649         * iconv/iconv_prog.c: Likewise.
15650         * elf/ldconfig.c: Likewise.
15651         * elf/pldd.c: Likewise.
15652         * elf/sotruss.ksh: Likewise.
15653         * catgets/gencat.c: Likewise.
15654         * csu/version.c: Likewise.
15655         * elf/ldd.bash.in: Likewise.
15656         * elf/sprof.c (print_version): Likewise.
15657         * locale/programs/locale.c: Likewise.
15658         * locale/programs/localedef.c: Likewise.
15659         * login/programs/pt_chown.c: Likewise.
15660         * nscd/nscd.c (print_version): Likewise.
15661         * debug/xtrace.sh: Likewise.
15662         * malloc/memusage.sh: Likewise.
15663         * malloc/mtrace.pl: Likewise.
15664         * debug/catchsegv.sh: Likewise.
15665
15666 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15667
15668         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15669         pure attribute.
15670
15671 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15672
15673         [BZ #13533]
15674         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15675         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15676         transformations.
15677         * iconv/gconv_int.h: Likewise.
15678         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15679         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15680         from libc for GLIBC_2.16.
15681         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15682         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15683         * wcsmbs/uchar.h: Really define mbstate_t.
15684         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15685         * wcsmbs/c16rtomb.c: New file.
15686         * wcsmbs/mbrtoc16.c: New file.
15687         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15688         for C/POSIX locale.
15689         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15690         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15691
15692         * wcsmbs/wchar.h: Add missing __restrict.
15693
15694 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15695
15696         [BZ #13532]
15697         * time/Makefile (routines): Add timespec_get.
15698         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15699         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15700         timespec for ISO C11.
15701         * time/timespec_get.c: New file.
15702         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15703         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15704
15705         [BZ #13531]
15706         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15707         * stdlib/stdlib.h: Declare aligned_alloc.
15708         * Versions.def: Add GLIBC_2.16 for libc.
15709         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15710
15711         [BZ 13527]
15712         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15713         ISO C11.
15714
15715         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15716         code.
15717
15718         [BZ #13528]
15719         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15720
15721         [BZ #13529]
15722         * assert/assert.h (static_assert): Define.
15723
15724         * version.h: Update for 2.16 development version.
15725
15726         [BZ #13526]
15727         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15728         _ISOC11_SOURCE.
15729
15730         * version.h (RELEASE): Bump for 2.15 release.
15731         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15732
15733         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15734         Patch by Marek Polacek <mpolacek@redhat.com>.
15735
15736         * bits/byteswap.h: Protect long long constants with __extension__.
15737         * sysdeps/i386/bits/byteswap.h: Likewise.
15738         * sysdeps/ia64/bits/byteswap.h: Likewise.
15739         * sysdeps/s390/bits/byteswap.h: Likewise.
15740         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15741
15742 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15743
15744         [BZ #13540]
15745         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15746         destination buffer.
15747         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15748
15749 2011-12-23  Marek Polacek  <polacek@redhat.com>
15750
15751         * elf/dl-addr.c (determine_info): Add inline keyword.
15752         * elf/tst-auditmod4b.c (check_avx): Likewise.
15753         * elf/tst-auditmod6b.c (check_avx): Likewise.
15754         * elf/tst-auditmod6c.c (check_avx): Likewise.
15755         * elf/tst-auditmod7b.c (check_avx): Likewise.
15756
15757 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15758
15759         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15760         !__SSE_MATH__.
15761
15762 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15763
15764         [BZ #13540]
15765         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15766         processing for last bytes.
15767
15768 2011-08-06  Bruno Haible  <bruno@clisp.org>
15769
15770         [BZ #13061]
15771         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15772         U+0385, not to U+1FEE.
15773
15774         [BZ #13062]
15775         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15776         entry for U+00A5 U+0301.
15777
15778 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15779
15780         [BZ #13166]
15781         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15782         buffer for the output is too small.
15783
15784         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15785         optimization.
15786
15787         [BZ #13185]
15788         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15789         SSE flags if possible.
15790
15791 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15792
15793         [BZ #13540]
15794         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15795         processing for last bytes.
15796
15797 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15798
15799         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15800         (syscall-list-default-options, syscall-list-default-condition)
15801         (syscall-list-includes): Define.
15802         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15803         list of ABIs and options and #if conditions for each ABI.  Do not
15804         handle common syscalls between ABIs specially.
15805         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15806         Remove.
15807         (syscall-list-variants, syscall-list-32bit-options)
15808         (syscall-list-32bit-condition, syscall-list-64bit-options)
15809         (syscall-list-64bit-condition): Define.
15810         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15811         (syscall-list-variants, syscall-list-32bit-options)
15812         (syscall-list-32bit-condition, syscall-list-64bit-options)
15813         (syscall-list-64bit-condition): Define.
15814         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15815         Remove.
15816         (syscall-list-variants, syscall-list-32bit-options)
15817         (syscall-list-32bit-condition, syscall-list-64bit-options)
15818         (syscall-list-64bit-condition): Define.
15819         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15820         Remove.
15821         (syscall-list-variants, syscall-list-32bit-options)
15822         (syscall-list-32bit-condition, syscall-list-64bit-options)
15823         (syscall-list-64bit-condition): Define.
15824
15825 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15826
15827         * locale/iso-639.def: Add brx entry.
15828
15829         [BZ #13328]
15830         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15831         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15832
15833         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15834         __feraiseexcept_renamed.
15835
15836 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15837
15838         [BZ #13538]
15839         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15840         EPOLLET with unsigned values.
15841         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15842         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15843
15844         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15845         to large cancellation.
15846         * math/s_cacoshf.c: Likewise.
15847         * math/s_cacoshl.c: Likewise.
15848
15849 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15850
15851         [BZ #13305]
15852         [BZ #12786]
15853         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15854         * math/s_cacoshf.c: Likewise.
15855         * math/s_cacoshl.c: Likewise.
15856
15857 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15858
15859         [BZ #13439]
15860         * iconv/gconv.h: Define __GCONV_SWAP.
15861         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15862         * iconvdata/utf-16.c: Likewise.
15863         * iconvdata/utf-32.c: Likewise.
15864
15865 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15866
15867         [BZ #13524]
15868         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15869         numerator after shifting it by one limb.
15870
15871 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15872
15873         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15874         under [__USE_EXTERN_INLINES].
15875
15876 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15877
15878         [BZ #13446]
15879         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15880
15881 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15882
15883         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15884         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15885         optimized code.
15886         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15887         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15888         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15889         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15890         for strncasecmp/strncasecmp_l compilation.
15891         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15892         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15893
15894 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15895
15896         [BZ #13484]
15897         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15898         of __asm__.
15899
15900 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15901
15902         [BZ #13506]
15903         * time/tzfile.c (__tzfile_read): Check values from file header.
15904
15905 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15906
15907         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15908         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15909         * powerpc/powerpc32/dl-start.S: Likewise.
15910         * powerpc/powerpc32/elf/start.S: Likewise.
15911         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15912         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15913         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15914         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15915         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15916         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15917         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15918         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15919         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15920         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15921         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15922         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15923         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15924         * powerpc/powerpc32/memset.S: Likewise.
15925         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15926         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15927         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15928         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15929         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15930         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15931         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15932         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15933         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15934         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15935         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15936         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15937         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15938
15939 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15940
15941         * math/libm-test.inc: Added more nearbyint tests.
15942         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15943         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15944         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15945         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15946
15947 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15948
15949         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15950         FD_CLOEXEC.
15951
15952 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15953
15954         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15955         Add wcscpy-ssse3 wcscpy-c.
15956         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15957         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15958         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15959         * sysdeps/x86_64/wcschr.S: New file.
15960         * sysdeps/x86_64/wcsrchr.S: New file.
15961         * string/test-strcmp.c: Remove checking of wcscmp function for
15962         wrong alignments.
15963         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15964         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15965         wcsrchr-sse2 wcsrchr-c.
15966         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15967         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15968         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15969         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15970         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15971         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15972         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15973         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15974         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15975         * wcsmbc/wcschr.c (WCSCHR): New macro.
15976
15977 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15978
15979         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15980         * wcsmbs/test-wcsrchr.c: New file.
15981         * string/test-strrchr.c: Add wcsrchr support.
15982         (WIDE): New macro.
15983         * wcsmbs/test-wcscpy.c: New file.
15984         * string/test-strcpy.c: Add wcscpy support.
15985         (WIDE): New macro.
15986
15987 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15988
15989         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15990         the inner loop.
15991
15992 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15993
15994         [BZ #13472]
15995         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
15996
15997 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
15998
15999         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
16000         Minor optimizations.
16001
16002         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
16003         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
16004         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
16005
16006 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
16007
16008         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
16009         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
16010         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
16011         for gcc to avoid warnings.
16012         * inet/Makefile (tests): Add tst-checks.
16013         * inet/tst-checks.c: New file.
16014
16015         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
16016         warning.
16017
16018         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
16019         __wmemcmp_sse2.
16020
16021         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
16022         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
16023
16024         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
16025
16026 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
16027
16028         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
16029         problem.
16030
16031         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
16032
16033 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
16034
16035         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
16036         conditional on GCC version.
16037         (__arch_compare_and_exchange_val_8_acq)
16038         (__arch_compare_and_exchange_val_16_acq)
16039         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
16040         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
16041         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
16042
16043 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
16044
16045         * sysdeps/sh/backtrace.c: New file.
16046
16047 2011-12-02  Andreas Schwab  <schwab@redhat.com>
16048
16049         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
16050         parenthesis.
16051
16052 2011-12-01  Andreas Schwab  <schwab@redhat.com>
16053
16054         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
16055         falling back to utime.
16056
16057 2011-11-30  Andreas Schwab  <schwab@redhat.com>
16058
16059         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
16060         expectations for float.
16061
16062 2011-11-29  Andreas Schwab  <schwab@redhat.com>
16063
16064         * locale/weight.h (findidx): Add parameter len.
16065         * locale/weightwc.h (findidx): Likewise.
16066         * posix/fnmatch_loop.c (FCT): Adjust caller.
16067         * posix/regcomp.c (build_equiv_class): Likewise.
16068         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
16069         * posix/regexec.c (check_node_accept_bytes): Likewise.
16070         * string/strcoll_l.c (STRCOLL): Likewise.
16071         * string/strxfrm_l.c (STRXFRM): Likewise.
16072
16073 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
16074
16075         * Makefile.in: Remove CVSOPT handling.
16076         * configure.in: Remove use of AC_REVISION.
16077         * iconvdata/Makefile (distribute): No need to filter out CVS.
16078         * scripts/list-sources.sh: Remove CVS, subversion and monotone
16079         handling.
16080
16081 2011-11-16  Andreas Schwab  <schwab@redhat.com>
16082
16083         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16084         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16085         [USE_AS_STRNCASECMP_L]: Likewise.
16086         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16087         NO_TLS_DIRECT_SEG_REFS.
16088         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16089         Fix argument offsets for non-PIC.
16090         [USE_AS_STRNCASECMP_L]: Likewise.
16091         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16092         NO_TLS_DIRECT_SEG_REFS.
16093
16094 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16095
16096         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16097         O_CLOEXEC.
16098         * locale/loadlocale.c (_nl_load_locale): Likewise.
16099
16100 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16101
16102         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16103         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16104         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16105         (SYSCALL_GETTIME): Set errno on error.
16106
16107         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16108         count references to noai6ai_cached.
16109
16110 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16111
16112         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16113
16114         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16115         FD_CLOEXEC for /proc/self/maps.
16116
16117         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16118         FD_CLOEXEC for /proc/meminfo.
16119
16120         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16121         gai.conf.
16122
16123         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16124         FD_CLOEXEC for given file.
16125
16126         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16127
16128         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16129         FD_CLOEXEC for /etc/hosts.
16130         (_gethtent): Likewise.
16131
16132         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16133
16134         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16135         cancellation and set FD_CLOEXEC for /etc/netgroup.
16136
16137         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16138         reading /etc/publickey.
16139
16140         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16141         allow cancellation when reading /etc/group.
16142
16143         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16144         cancellation.
16145         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16146
16147         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16148         when using data file.
16149
16150         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16151
16152         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16153         (write_nis_obj): Use "c" and "e" in fopen.
16154
16155         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16156
16157         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16158
16159         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16160
16161         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16162
16163         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16164         locale.alias.
16165
16166         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16167
16168         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16169
16170         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16171
16172         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16173         file parsing and set FD_CLOEXEC.
16174
16175 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16176
16177         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16178
16179 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16180
16181         * malloc/arena.c (arena_get2): Don't call reused_arena when
16182         _int_new_arena failed.
16183
16184 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16185
16186         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16187         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16188         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16189         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16190         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16191         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16192         to compile strcasecmp and strncasecmp.
16193         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16194         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16195
16196         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16197
16198 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16199
16200         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16201         locale-defines.sym to gen-as-const-headers.
16202         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16203         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16204         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16205         to compile strcasecmp and strncasecmp.
16206         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16207         strcasecmp_l and strncasecmp_l.
16208         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16209         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16210         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16211         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16212         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16213         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16214         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16215         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16216         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16217         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16218         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16219
16220 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16221
16222         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16223         result of SYSDEP_GETTIME_CPU to retval.
16224         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16225         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16226
16227         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16228         variable.
16229
16230         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16231         mantissa words.
16232         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16233
16234         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16235         from unused variable.
16236
16237         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16238         DWARF definitions.
16239         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16240         for assembling.
16241
16242         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16243         over namespaces.
16244
16245         * sunrpc/rpc_prot.c (rejected): Fix case value.
16246
16247         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16248         unsigned long long int to avoid warnings in shift.
16249
16250         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16251         of use of trans.
16252         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16253         variable tmp.
16254
16255         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16256         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16257         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16258
16259         * nis/nis_table.c (nis_list): Use variable of correct type for
16260         result of __follow_path call.
16261
16262 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16263
16264         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16265         of math functions ceil, trunc, floor, round, and sqrt, when
16266         avaliable on the platform.
16267         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16268         name clash.
16269         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16270         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16271         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16272
16273 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
16274
16275         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16276         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16277
16278 2011-11-11  Roland McGrath  <roland@hack.frob.com>
16279
16280         * include/unistd.h: Fix __readlink return type.
16281         Reported by Chris Metcalf <cmetcalf@tilera.com>.
16282
16283 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
16284
16285         * stdlib/ucontext.h: Undo last change for makecontext.
16286
16287 2011-11-11  Andreas Schwab  <schwab@redhat.com>
16288
16289         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16290
16291         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16292         * setjmp/setjmp.h: Mark functions as non-leaf.
16293         * setjmp/bits/setjmp2.h: Likewise.
16294         * stdlib/ucontext.h: Likewise.
16295
16296 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16297
16298         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16299         (reused_arena): Don't check arena limit.
16300         (arena_get2): Atomically check arena limit.
16301
16302 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16303
16304         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16305         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16306
16307         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16308         instructions.
16309
16310 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16311
16312         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16313         handler when locking.
16314
16315         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16316         Fix size of allocated buffer.
16317
16318 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16319
16320         [BZ #10103]
16321         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16322         declarations for long double functions.
16323         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16324
16325         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16326
16327 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16328
16329         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16330         installed.
16331
16332         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16333         is disabled.
16334
16335 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16336
16337         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16338
16339 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16340
16341         * include/alloca.h (stackinfo_alloca_round): Define.
16342         (extend_alloca): Use it.
16343         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16344         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16345         here.
16346
16347         * scripts/check-local-headers.sh: Ignore libaudit.h.
16348
16349         * nscd/Makefile (extra-objs): Make recursively expanded.
16350
16351 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16352
16353         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16354         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16355
16356         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16357         * posix/tst-rfc3484-2.c: Likewise.
16358         * posix/tst-rfc3484-3.c: Likewise.
16359
16360         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16361         process_vm_writev.
16362         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16363         process_vm_writev.
16364         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16365         process_vm_writev from libc using GLIBC_2.15 version.
16366
16367         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16368
16369 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16370
16371         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16372         stack usage.
16373
16374 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16375
16376         [BZ #13367]
16377         * nss/getent.c (initgroups_keys): Show error message in case no group
16378         names are given.
16379
16380         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16381         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16382         __bump_nl_timestamp.
16383         * nscd/connections (nscd_init): When host database is served open
16384         netlink socket and request notification about configuration changes.
16385         (main_loop_poll): Track netlink file descriptor and bump timestamp
16386         in case data becomes available.
16387         (main_loop_epoll): Likewise.
16388         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16389         (database_pers_head): Add extra_data fileds.
16390         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16391         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16392         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16393         Adjust caller.
16394         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16395         in6ai data, call __free_in6ai.
16396         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16397         Add -DHAVE_NETLINK.
16398         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16399         interface information.  Reuse previous data if netlink timestamp
16400         is not changed.
16401         (__bump_nl_timestamp): New function.
16402         (__free_in6ai): New function.
16403
16404 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16405
16406         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16407         close_not_cancel_no_status here.
16408         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16409
16410 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16411
16412         [BZ #13276]
16413         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16414         return value.
16415
16416         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16417         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16418         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16419
16420 2011-07-03  Andreas Jaeger  <aj@suse.de>
16421
16422         [BZ #10709]
16423         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16424         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16425         * math/libm-test.inc (sin_test): Add test case.
16426
16427 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16428
16429         [BZ #13337]
16430         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16431         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16432
16433         * elf/chroot_canon.c (chroot_canon): Cleanups.
16434
16435         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16436
16437         [BZ #13335]
16438         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16439         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16440
16441         * string/test-strchr.c: Make usable for strchrnul testing.
16442         * string/test-strchrnul.c: New file.
16443         * string/Makefile (strop-tests): Add strchrnul.
16444
16445         * po/it.po: Update from translation team.
16446         * po/es.po: Likewise.
16447
16448 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16449
16450         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16451         the three constants needed as parameters.  Drop the others.
16452         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16453         __m128i_strloadu_tolower.
16454         Create and initialize variable zero and use it in all the places
16455         where _mm_setzero_si128 was used.
16456
16457         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16458         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16459         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16460         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16461         anymore.
16462         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16463         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16464         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16465         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16466         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16467         __mpranred, __mptan.
16468         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16469         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16470         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16471         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16472         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16473         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16474         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16475         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16476         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16477
16478 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16479
16480         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16481         redefine if SHARED.
16482         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16483
16484         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16485         wide char related routines to wcsmbs subdir.
16486
16487 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16488
16489         [BZ #13344]
16490         * misc/sys/cdefs.h (__THROWNL): Define.
16491         * posix/unistd.h: Use __THREADNL instead of __THREAD
16492         for memory synchronization functions.
16493
16494 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16495
16496         [BZ #13349]
16497         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16498         doesn't exist.
16499         * manual/stdio.texi (Obstack Streams): Node removed.
16500
16501 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16502
16503         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16504         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16505         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16506
16507         * math/math_private.h (math_force_eval): Allow non-addressable
16508         arguments.
16509         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16510
16511 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16512
16513         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16514         file is not needed.
16515
16516         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16517         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16518         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16519         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16520         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16521         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16522         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16523         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16524         Add AVX variants.
16525         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16526         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16527         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16528         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16529         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16530         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16531         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16532         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16533         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16534         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16535         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16536         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16537         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16538         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16539         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16540         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16541         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16542         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16543         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16544
16545         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16546         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16547
16548         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16549         place.  Use VEX encoding when compiling for AVX.
16550
16551 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16552
16553         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16554         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16555
16556         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16557
16558 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16559
16560         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16561         useless if() expression.
16562         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16563         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16564         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16565         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16566         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16567         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16568         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16569         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16570         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16571         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16572         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16573         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16574         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16575         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16576         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16577         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16578         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16579         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16580         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16581
16582         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16583
16584 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16585
16586         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16587         condition.
16588         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16589
16590 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16591
16592         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16593         .text section.  Avoid duplicate constants.
16594         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16595         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16596         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16597         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16598         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16599         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16600         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16601         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16602         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16603         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16604         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16605         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16606         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16607         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16608         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16609         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16610         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16611         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16612         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16613         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16614         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16615         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16616         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16617         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16618         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16619         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16620         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16621         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16622         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16623         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16624         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16625         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16626         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16627         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16628         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16629         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16630         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16631         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16632         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16633         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16634         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16635         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16636         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16637         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16638         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16639
16640 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16641
16642         * sysdeps/x86_64/dla.h: Move to ...
16643         * sysdeps/x86_64/fpu/dla.h: ...here.
16644         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16645         situations.  Use __builtin_fma only for gcc 4.6 and up.
16646
16647         * config.make.in: Add have-mfma4 entry.
16648         * configure.in: Substitute libc_cv_cc_fma4.
16649         * math/Makefile (dbl-only-routines): Add sincostab.
16650         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16651         Use __sincostab not sincos.
16652         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16653         name is a macro.
16654         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16655         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16656         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16657         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16658         using __copysign.
16659         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16660         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16661         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16662         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16663         and __inv.
16664         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16665         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16666         __copysign.
16667         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16668         define aliases when function name is a macro.
16669         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16670         sysdeps/ieee754/dbl-64/sincos.tbl.
16671         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16672         fma4-enabled routines.
16673         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16674         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16675         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16676         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16677         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16678         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16679         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16680         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16681         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16682         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16683         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16684         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16685         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16686         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16687         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16688         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16689         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16690         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16691         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16692         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16693         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16694         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16695         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16696         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16697         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16698         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16699         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16700         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16701         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16702         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16703
16704         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16705         rename.
16706         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16707         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16708         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16709         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16710         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16711         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16712         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16713         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16714
16715 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16716
16717         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16718
16719 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16720
16721         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16722
16723         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16724         prediction.
16725         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16726
16727         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16728         Remove unused variable magic_bits.
16729         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16730
16731         * string/strnlen.c: Define and use STRNLEN macro.
16732         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16733         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16734         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16735         * wcsmbs/wcslen.c: Define and use WCSLEN.
16736         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16737         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16738         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16739         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16740         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16741         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16742         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16743
16744 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16745
16746         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16747         strnlen-sse2-no-bsf.
16748         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16749         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16750         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16751         Add strnlen support.
16752         (USE_AS_STRNLEN): New macro.
16753         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16754         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16755         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16756         * sysdeps/x86_64/wcslen.S: New file.
16757
16758 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16759
16760         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16761         XMM-moves are used for copying on small sizes.
16762
16763 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16764
16765         * wcsmbs/Makefile (strop-tests): Add wcschr.
16766         * wcsmbs/test-wcschr.c: New file.
16767         * string/test-strchr.c: Update.
16768         Add wcschr support.
16769         (WIDE): New macro.
16770
16771 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16772
16773         * wcsmbs/Makefile (strop-tests): Add wcslen.
16774         * wcsmbs/test-wcslen.c: New file.
16775         * string/test-strlen.c: Update.
16776         Add wcslen support.
16777         (WIDE): New macro.
16778
16779 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16780
16781         * po/it.po: Update from translation team.
16782
16783 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16784
16785         * sysdeps/x86_64/wcscmp.S: Update.
16786         Fix wrong comparison semantics.
16787         wcscmp shall use signed comparison not unsigned.
16788         Don't use substraction to avoid overflow bug.
16789         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16790         * wcsmbc/wcscmp.c: Likewise.
16791         * string/test-strcmp.c: Likewise.
16792         Add new tests to check cases with negative values.
16793
16794 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16795
16796         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16797         * sysdeps/x86_64/dla.h: ...here.  New file.
16798         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16799         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16800         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16801         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16802         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16803         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16804         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16805         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16806         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16807
16808 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16809
16810         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16811         __ynl_finite aliases.
16812
16813 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16814
16815         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16816
16817         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16818         define DLA_FMA.
16819         [DLA_FMA] (EMULV): Use DLA_FMA.
16820         [DLA_FMA] (MUL12): Use EMULV.
16821         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16822         that are not needed.
16823         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16824         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16825         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16826         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16827         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16828         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16829         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16830
16831 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16832
16833         * math/s_nan.c: Undef __nan.
16834         * math/s_nanf.c: Undef __nanf.
16835         * math/s_nanl.c: Undef __nanl.
16836         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16837         "math_private.h".
16838
16839 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16840
16841         * math/s_catan.c: Add branch predictions.
16842         * math/s_catanf.c: Likewise.
16843         * math/s_catanh.c: Likewise.
16844         * math/s_catanhf.c: Likewise.
16845         * math/s_catanhl.c: Likewise.
16846         * math/s_catanl.c: Likewise.
16847         * math/s_cexp.c: Likewise.
16848         * math/s_cexpf.c: Likewise.
16849         * math/s_cexpl.c: Likewise.
16850         * math/s_clog.c: Likewise.
16851         * math/s_clog10.c: Likewise.
16852         * math/s_clog10f.c: Likewise.
16853         * math/s_clog10l.c: Likewise.
16854         * math/s_clogf.c: Likewise.
16855         * math/s_clogl.c: Likewise.
16856         * math/s_csqrt.c: Likewise.
16857         * math/s_csqrtf.c: Likewise.
16858         * math/s_csqrtl.c: Likewise.
16859         * math/s_ctanf.c: Likewise.
16860         * math/s_ctanh.c: Likewise.
16861         * math/s_ctanhf.c: Likewise.
16862         * math/s_ctanhl.c: Likewise.
16863         * math/s_ctanl.c: Likewise.
16864
16865         * math/math_private.h: Define __nan, __nanf, __nanl.
16866         * math/s_cacosh.c: Include <math_private.h>.
16867         * math/s_cacoshl.c: Likewise.
16868         * math/s_casinh.c: Likewise.
16869         * math/s_casinhf.c: Likewise.
16870         * math/s_casinhl.c: Likewise.
16871         * math/s_ccos.c: Rely entire on ccosh.
16872         * math/s_ccosf.c: Rely entire on ccoshf.
16873         * math/s_ccosl.c: Rely entirely on ccoshl.
16874         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16875         Remove tests for FE_INVALID.
16876         * math/s_ccoshf.c: Likewise.
16877         * math/s_ccoshl.c: Likewise.
16878         * math/s_csin.c: Likewise.
16879         * math/s_csinf.c: Likewise.
16880         * math/s_csinh.c Likewise.
16881         * math/s_csinhf.c: Likewise.
16882         * math/s_csinhl.c: Likewise.
16883         * math/s_csinl.c: Likewise.
16884         * math/s_ctan.c: Likewise.
16885         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16886         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16887         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16888
16889 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16890
16891         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16892         compilation problems.
16893
16894         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16895         __builtin_expect.
16896
16897 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16898
16899         * sysdeps/i386/configure.in: Test for -mfma4 option.
16900         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16901         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16902         COMMON_CPUID_INDEX_80000001.
16903         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16904         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16905         use it if FMA3 is not supported.
16906         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16907
16908         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16909         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16910
16911 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16912
16913         [BZ #12892]
16914         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16915         it would create a cycle with a link time dependency.
16916
16917 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16918
16919         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16920         instruction.
16921         * string/Makefile (strop-tests): Add rawmemchr.
16922         * string/test-rawmemchr.c: New file.
16923
16924         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16925         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16926         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16927         when compiling str{,n}casecmp and when AVX is available.  Hook up
16928         new optimized code in initializers.
16929
16930 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16931
16932         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16933         __feraiseexcept instead of feraiseexcept.
16934
16935 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16936
16937         * math/math_private.h: Define defaults for libc_fetestexcept and
16938         libc_feupdateenv.
16939         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16940         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16941         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16942         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16943         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16944         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16945         libc_fetestexcept and libc_feupdateenv.
16946
16947         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16948         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16949         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16950         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16951         libc_feholdexcept_setround.
16952
16953         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16954         Add s_nearbyint-c and s_nearbyintf-c.
16955         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16956         nearbyintf inlines.
16957         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16958         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16959         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16960         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16961
16962         * math/math_private.h: Define defaults for libc_fegetround,
16963         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16964         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16965         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16966         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16967         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16968         standard functions.
16969         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16970         Remove comments and hacks for old compiler versions.
16971         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16972         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16973         libc_feholdexceptl.
16974
16975 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16976
16977         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16978         (__feraiseexcept_renamed): Add __NTH.
16979         (feraiseexcept): Add __NTH.  Rename local variables to fix
16980         namespace violations.
16981
16982 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16983
16984         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16985
16986         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16987
16988         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16989         recently added interfaces.
16990         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16991
16992         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16993         about macro parameter expansion.
16994
16995         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
16996         __NO_MATH_INLINES is defined.  Cleanups.
16997
16998         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
16999         and __floorf is target has SSE4.1.
17000         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
17001         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
17002         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
17003         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
17004
17005         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
17006         name.
17007         (floorf): Likewise.
17008
17009         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
17010
17011 2011-10-17  Andreas Schwab  <schwab@redhat.com>
17012
17013         * misc/sys/cdefs.h: Fix last change.
17014
17015         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
17016         database lookup.
17017
17018 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
17019
17020         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
17021
17022         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
17023         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17024         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
17025         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17026         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17027         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
17028         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17029         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17030         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
17031         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
17032         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
17033         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
17034         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
17035         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
17036         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
17037         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
17038         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
17039         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
17040         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
17041         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
17042         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
17043         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
17044
17045         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
17046         ceil, ceilf, floor, floorf.
17047
17048         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
17049         Perform IRELATIVE relocations last.
17050
17051         * elf/do-rel.h: Add another parameter nrelative, replacing the
17052         local variable with the same name.  Change name of the function
17053         to end in Rel or Rela (uppercase).
17054         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
17055         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
17056         elf_dynamic_do_##reloc function.
17057
17058 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17059
17060         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
17061         is sufficient, at least on modern CPUs.
17062
17063         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
17064
17065         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
17066         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
17067
17068         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
17069         __expl_finite.
17070         * math/bits/math-finite.h: Add entries for exp.
17071         * math/e_expl.c: Add __*_finite alias.
17072         * sysdeps/i386/fpu/e_exp.S: Likewise.
17073         * sysdeps/i386/fpu/e_expf.S: Likewise.
17074         * sysdeps/i386/fpu/e_expl.c: Likewise.
17075         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17076         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17077         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17078         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17079         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17080         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17081         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17082
17083         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17084         is sufficient, at least on modern CPUs.
17085
17086         * ctype/ctype-info.c (__ctype_init): Define.
17087         * include/ctype.h (__ctype_init): Declare.
17088         (__ctype_b_loc): The variable is always initialized.
17089         (__ctype_toupper_loc): Likewise.
17090         (__ctype_tolower_loc): Likewise.
17091         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17092         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17093
17094 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17095
17096         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17097
17098         * configure.in: Also look in $cxxmachine/include for C++ system
17099         headers.
17100
17101 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17102
17103         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17104         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17105         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17106         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17107         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17108         (USE_AS_WMEMCMP): New macro.
17109         Fixing indents.
17110         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17111         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17112         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17113         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17114         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17115         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17116         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17117         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17118         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17119         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17120         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17121         (USE_AS_WMEMCMP): New macro.
17122         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17123         * sysdeps/string/test-memcmp.c: Update.
17124         Fix simple_wmemcmp.
17125         Add new tests.
17126         * wcsmbs/wmemcmp.c: Update.
17127         (WMEMCMP): New macro.
17128         Fix overflow bug.
17129
17130 2011-10-12  Andreas Jaeger  <aj@suse.de>
17131
17132         [BZ #13268]
17133         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17134
17135 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17136
17137         * libio/iofwide.c (do_length): Avoid warning.
17138
17139         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17140
17141 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17142
17143         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17144
17145         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17146         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17147         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17148         * sysdeps/i386/i686/fpu/e_log.S: New file.
17149         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17150         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17151
17152         * ctype/ctype.h: Add support for inlined isXXX functions when
17153         compiling C++ code.
17154
17155 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17156
17157         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17158
17159         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17160
17161 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17162
17163         [BZ #13291]
17164         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17165
17166 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17167
17168         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17169         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17170         feraiseexcept.
17171
17172         * sysdeps/x86_64/memrchr.S: Check for zero size.
17173
17174         * string/stratcliff.c: Add memrchr tests.
17175
17176 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17177
17178         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17179         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17180         rawmemchr-sse2 rawmemchr-sse2-bsf.
17181         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17182         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17183         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17184         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17185         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17186         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17187         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17188         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17189         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17190         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17191         * string/memrchr.c (MEMRCHR): New macro.
17192
17193 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17194
17195         Add integration with gcc's -ffinite-math-only and optimize wrapper
17196         functions in libm.
17197         * Versions.def: Define GLIBC_2.15 version for libm.
17198         * math/Makefile (headers): Add bits/math-finite.h.
17199         * math/bits/math-finite.h: New file.
17200         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17201         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17202         * math/e_acoshl.c: Add __*_finite alias.
17203         * math/e_acosl.c: Likewise.
17204         * math/e_asinl.c: Likewise.
17205         * math/e_atan2l.c: Likewise.
17206         * math/e_atanhl.c: Likewise.
17207         * math/e_coshl.c: Likewise.
17208         * math/e_exp10.c: Likewise.
17209         * math/e_exp10f.c: Likewise.
17210         * math/e_exp10l.c: Likewise.
17211         * math/e_exp2l.c: Likewise.
17212         * math/e_fmodl.c: Likewise.
17213         * math/e_gammal_r.c: Likewise.
17214         * math/e_hypotl.c: Likewise.
17215         * math/e_j0l.c: Likewise.
17216         * math/e_j1l.c: Likewise.
17217         * math/e_jnl.c: Likewise.
17218         * math/e_lgammal_r.c: Likewise.
17219         * math/e_log10l.c: Likewise.
17220         * math/e_log2l.c: Likewise.
17221         * math/e_logl.c: Likewise.
17222         * math/e_powl.c: Likewise.
17223         * math/e_sinhl.c: Likewise.
17224         * math/e_sqrtl.c: Likewise.
17225         * math/e_scalb.c: Completely rewritten and optimized.
17226         * math/e_scalbf.c: Likewise.
17227         * math/e_scalbl.c: Likewise.
17228         * math/w_acos.c: Likewise.
17229         * math/w_acosf.c: Likewise.
17230         * math/w_acosl.c: Likewise.
17231         * math/w_acosh.c: Likewise.
17232         * math/w_acoshf.c: Likewise.
17233         * math/w_acoshl.c: Likewise.
17234         * math/w_asin.c: Likewise.
17235         * math/w_asinf.c: Likewise.
17236         * math/w_asinl.c: Likewise.
17237         * math/w_atan2.c: Likewise.
17238         * math/w_atan2f.c: Likewise.
17239         * math/w_atan2l.c: Likewise.
17240         * math/w_atanh.c: Likewise.
17241         * math/w_atanhf.c: Likewise.
17242         * math/w_atanhl.c: Likewise.
17243         * math/w_exp10.c: Likewise.
17244         * math/w_exp10f.c: Likewise.
17245         * math/w_exp10l.c: Likewise.
17246         * math/w_fmod.c: Likewise.
17247         * math/w_fmodf.c: Likewise.
17248         * math/w_fmodl.c: Likewise.
17249         * math/w_j0.c: Likewise.
17250         * math/w_j0f.c: Likewise.
17251         * math/w_j0l.c: Likewise.
17252         * math/w_j1.c: Likewise.
17253         * math/w_j1f.c: Likewise.
17254         * math/w_j1l.c: Likewise.
17255         * math/w_jn.c: Likewise.
17256         * math/w_jnf.c: Likewise.
17257         * math/w_log.c: Likewise.
17258         * math/w_logf.c: Likewise.
17259         * math/w_logl.c: Likewise.
17260         * math/w_log10.c: Likewise.
17261         * math/w_log10f.c: Likewise.
17262         * math/w_log10l.c: Likewise.
17263         * math/w_log2.c: Likewise.
17264         * math/w_log2f.c: Likewise.
17265         * math/w_log2l.c: Likewise.
17266         * math/w_pow.c: Likewise.
17267         * math/w_powf.c: Likewise.
17268         * math/w_powl.c: Likewise.
17269         * math/w_remainder.c: Likewise.
17270         * math/w_remainderf.c: Likewise.
17271         * math/w_remainderl.c: Likewise.
17272         * math/w_scalb.c: Likewise.
17273         * math/w_scalbf.c: Likewise.
17274         * math/w_scalbl.c: Likewise.
17275         * math/w_sqrt.c: Likewise.
17276         * math/w_sqrtf.c: Likewise.
17277         * math/w_sqrtl.c: Likewise.
17278         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17279         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
17280         used.
17281         * math/math_private.h: Declare __kernel_standard_f.
17282         * math/w_cosh.c: Remove cruft and optimize a bit.
17283         * math/w_coshf.c: Likewise.
17284         * math/w_coshl.c: Likewise.
17285         * math/w_exp2.c: Likewise.
17286         * math/w_exp2f.c: Likewise.
17287         * math/w_exp2l.c: Likewise.
17288         * math/w_hypot.c: Likewise.
17289         * math/w_hypotf.c: Likewise.
17290         * math/w_hypotl.c: Likewise.
17291         * math/w_lgamma.c: Likewise.
17292         * math/w_lgamma_r.c: Likewise.
17293         * math/w_lgammaf.c: Likewise.
17294         * math/w_lgammaf_r.c: Likewise.
17295         * math/w_lgammal.c: Likewise.
17296         * math/w_lgammal_r.c: Likewise.
17297         * math/w_sinh.c: Likewise.
17298         * math/w_sinhf.c: Likewise.
17299         * math/w_sinhl.c: Likewise.
17300         * math/w_tgamma.c: Likewise.
17301         * math/w_tgammaf.c: Likewise.
17302         * math/w_tgammal.c: Likewise.
17303         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17304         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17305         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17306         Minor optimizations.  Pretty printing.  Remove cruft.
17307         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17308         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17309         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17310         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17311         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17312         * sysdeps/i386/fpu/e_asin.S: Likewise.
17313         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17314         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17315         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17316         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17317         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17318         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17319         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17320         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17321         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17322         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17323         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17324         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17325         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17326         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17327         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17328         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17329         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17330         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17331         * sysdeps/i386/fpu/e_log.S: Likewise.
17332         * sysdeps/i386/fpu/e_log10.S: Likewise.
17333         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17334         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17335         * sysdeps/i386/fpu/e_log2.S: Likewise.
17336         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17337         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17338         * sysdeps/i386/fpu/e_logf.S: Likewise.
17339         * sysdeps/i386/fpu/e_logl.S: Likewise.
17340         * sysdeps/i386/fpu/e_pow.S: Likewise.
17341         * sysdeps/i386/fpu/e_powf.S: Likewise.
17342         * sysdeps/i386/fpu/e_powl.S: Likewise.
17343         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17344         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17345         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17346         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17347         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17348         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17349         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17350         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17351         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17352         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17353         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17354         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17355         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17356         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17357         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17358         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17359         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17360         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17361         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17362         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17363         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17364         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17365         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17366         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17367         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17368         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17369         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17370         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17371         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17372         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17373         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17374         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17375         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17376         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17377         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17378         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17379         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17380         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17381         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17382         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17383         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17384         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17385         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17386         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17387         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17388         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17389         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17390         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17391         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17392         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17393         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17394         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17395         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17396         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17397         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17398         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17399         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17400         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17401         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17402         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17403         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17404         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17405         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17406         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17407         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17408         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17409         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17410         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17411         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17412         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17413         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17414         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17415         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17416         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17417         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17418         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17419         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17420         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17421         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17422         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17423         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17424         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17425         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17426         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17427         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17428         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17429         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17430         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17431         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17432         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17433         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17434         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17435         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17436         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17437         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17438         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17439         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17440         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17441         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17442         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17443         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17444         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17445         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17446         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17447         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17448         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17449         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17450         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17451         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17452         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17453         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17454         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17455         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17456         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17457         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17458         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17459         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17460         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17461         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17462         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17463         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17464         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17465         (__isnanf): Likewise.
17466         (__isinf_ns): Likewise.
17467         (__isinf_nsf): Likewise.
17468         (__finite): Likewise.
17469         (__finitef): Likewise.
17470         (__ieee754_sqrt): Define as macro.
17471         (__ieee754_sqrtf): Define as macro.
17472         (__ieee754_sqrtl): Define as macro.
17473         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17474         inlined copy.
17475         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17476         __FINITE_MATH_ONLY__ consistent.
17477         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17478
17479 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17480
17481         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17482         of rawmemchr.
17483
17484         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17485
17486 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17487
17488         * po/ja.po: Update from translation team.
17489
17490 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17491
17492         * locale/programs/locarchive.c (prepare_address_space): New function.
17493         (create_archive, enlarge_archive, open_archive): Use it.
17494
17495         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17496         inside [SHARED], where it is used.
17497
17498         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17499
17500         * nss/getent.c (netgroup_keys): Remove unused variable.
17501         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17502
17503 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17504
17505         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17506         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17507         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17508         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17509         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17510         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17511         * math/Makefile (libm-calls): Add s_isinf_ns.
17512         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17513         * math/multc3.c: Likewise.
17514         * math/s_casin.c: Likewise.
17515         * math/s_casinf.c: Likewise.
17516         * math/s_casinl.c: Likewise.
17517         * math/s_ccos.c: Likewise.
17518         * math/s_ccosf.c: Likewise.
17519         * math/s_ccosl.c: Likewise.
17520         * math/s_ctan.c: Likewise.
17521         * math/s_ctanf.c: Likewise.
17522         * math/s_ctanh.c: Likewise.
17523         * math/s_ctanhf.c: Likewise.
17524         * math/s_ctanhl.c: Likewise.
17525         * math/s_ctanl.c: Likewise.
17526         * math/w_fmod.c: Likewise.
17527         * math/w_fmodf.c: Likewise.
17528         * math/w_fmodl.c: Likewise.
17529         * math/w_remainder.c: Likewise.
17530         * math/w_remainderf.c: Likewise.
17531         * math/w_remainderl.c: Likewise.
17532         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17533         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17534         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17535         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17536         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17537         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17538         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17539         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17540
17541         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17542         of the number.
17543         * stdio-common/printf_fphex.c: Likewise.
17544         * stdio-common/printf_size.c: Likewise.
17545
17546         * math/e_exp10.c: Include math_private.h using <...> not "...".
17547         * math/e_exp10f.c: Likewise.
17548         * math/e_exp10l.c: Likewise.
17549         * math/e_exp2l.c: Likewise.
17550         * math/e_j0l.c: Likewise.
17551         * math/e_j1l.c: Likewise.
17552         * math/e_jnl.c: Likewise.
17553         * math/e_lgammal_r.c: Likewise.
17554         * math/e_rem_pio2l.c: Likewise.
17555         * math/e_scalb.c: Likewise.
17556         * math/e_scalbf.c: Likewise.
17557         * math/e_scalbl.c: Likewise.
17558         * math/k_cosl.c: Likewise.
17559         * math/k_sinl.c: Likewise.
17560         * math/k_tanl.c: Likewise.
17561         * math/s_cacoshf.c: Likewise.
17562         * math/s_catan.c: Likewise.
17563         * math/s_catanf.c: Likewise.
17564         * math/s_catanh.c: Likewise.
17565         * math/s_catanhf.c: Likewise.
17566         * math/s_catanhl.c: Likewise.
17567         * math/s_catanl.c: Likewise.
17568         * math/s_ccosh.c: Likewise.
17569         * math/s_ccoshf.c: Likewise.
17570         * math/s_ccoshl.c: Likewise.
17571         * math/s_cexp.c: Likewise.
17572         * math/s_cexpf.c: Likewise.
17573         * math/s_cexpl.c: Likewise.
17574         * math/s_clog.c: Likewise.
17575         * math/s_clog10.c: Likewise.
17576         * math/s_clog10f.c: Likewise.
17577         * math/s_clog10l.c: Likewise.
17578         * math/s_clogf.c: Likewise.
17579         * math/s_clogl.c: Likewise.
17580         * math/s_csin.c: Likewise.
17581         * math/s_csinf.c: Likewise.
17582         * math/s_csinh.c: Likewise.
17583         * math/s_csinhf.c: Likewise.
17584         * math/s_csinhl.c: Likewise.
17585         * math/s_csinl.c: Likewise.
17586         * math/s_csqrt.c: Likewise.
17587         * math/s_csqrtf.c: Likewise.
17588         * math/s_csqrtl.c: Likewise.
17589         * math/s_ctan.c: Likewise.
17590         * math/s_ctanf.c: Likewise.
17591         * math/s_ctanh.c: Likewise.
17592         * math/s_ctanhf.c: Likewise.
17593         * math/s_ctanhl.c: Likewise.
17594         * math/s_ctanl.c: Likewise.
17595         * math/s_ldexp.c: Likewise.
17596         * math/s_ldexpf.c: Likewise.
17597         * math/s_ldexpl.c: Likewise.
17598         * math/s_significand.c: Likewise.
17599         * math/s_significandf.c: Likewise.
17600         * math/s_significandl.c: Likewise.
17601         * math/w_acos.c: Likewise.
17602         * math/w_acosf.c: Likewise.
17603         * math/w_acosh.c: Likewise.
17604         * math/w_acoshf.c: Likewise.
17605         * math/w_acoshl.c: Likewise.
17606         * math/w_acosl.c: Likewise.
17607         * math/w_asin.c: Likewise.
17608         * math/w_asinf.c: Likewise.
17609         * math/w_asinl.c: Likewise.
17610         * math/w_atan2.c: Likewise.
17611         * math/w_atan2f.c: Likewise.
17612         * math/w_atan2l.c: Likewise.
17613         * math/w_atanh.c: Likewise.
17614         * math/w_atanhf.c: Likewise.
17615         * math/w_atanhl.c: Likewise.
17616         * math/w_cosh.c: Likewise.
17617         * math/w_coshf.c: Likewise.
17618         * math/w_coshl.c: Likewise.
17619         * math/w_dremf.c: Likewise.
17620         * math/w_exp10.c: Likewise.
17621         * math/w_exp10f.c: Likewise.
17622         * math/w_exp10l.c: Likewise.
17623         * math/w_exp2.c: Likewise.
17624         * math/w_exp2f.c: Likewise.
17625         * math/w_fmod.c: Likewise.
17626         * math/w_fmodf.c: Likewise.
17627         * math/w_fmodl.c: Likewise.
17628         * math/w_hypot.c: Likewise.
17629         * math/w_hypotf.c: Likewise.
17630         * math/w_hypotl.c: Likewise.
17631         * math/w_j0.c: Likewise.
17632         * math/w_j0f.c: Likewise.
17633         * math/w_j0l.c: Likewise.
17634         * math/w_j1.c: Likewise.
17635         * math/w_j1f.c: Likewise.
17636         * math/w_j1l.c: Likewise.
17637         * math/w_jn.c: Likewise.
17638         * math/w_jnf.c: Likewise.
17639         * math/w_jnl.c: Likewise.
17640         * math/w_lgamma.c: Likewise.
17641         * math/w_lgamma_r.c: Likewise.
17642         * math/w_lgammaf.c: Likewise.
17643         * math/w_lgammaf_r.c: Likewise.
17644         * math/w_lgammal.c: Likewise.
17645         * math/w_lgammal_r.c: Likewise.
17646         * math/w_log.c: Likewise.
17647         * math/w_log10.c: Likewise.
17648         * math/w_log10f.c: Likewise.
17649         * math/w_log10l.c: Likewise.
17650         * math/w_log2.c: Likewise.
17651         * math/w_log2f.c: Likewise.
17652         * math/w_log2l.c: Likewise.
17653         * math/w_logf.c: Likewise.
17654         * math/w_logl.c: Likewise.
17655         * math/w_pow.c: Likewise.
17656         * math/w_powf.c: Likewise.
17657         * math/w_powl.c: Likewise.
17658         * math/w_remainder.c: Likewise.
17659         * math/w_remainderf.c: Likewise.
17660         * math/w_remainderl.c: Likewise.
17661         * math/w_scalb.c: Likewise.
17662         * math/w_scalbf.c: Likewise.
17663         * math/w_scalbl.c: Likewise.
17664         * math/w_sinh.c: Likewise.
17665         * math/w_sinhf.c: Likewise.
17666         * math/w_sinhl.c: Likewise.
17667         * math/w_sqrt.c: Likewise.
17668         * math/w_sqrtf.c: Likewise.
17669         * math/w_sqrtl.c: Likewise.
17670         * math/w_tgamma.c: Likewise.
17671         * math/w_tgammaf.c: Likewise.
17672         * math/w_tgammal.c: Likewise.
17673
17674         * po/ja.po: Update from translation team.
17675
17676 2011-09-29  Andreas Jaeger  <aj@suse.de>
17677
17678         [BZ #13179]
17679         * sunrpc/netname.c (netname2host): Fix logic.
17680
17681         [BZ #6779]
17682         [BZ #6783]
17683         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17684         correctly.
17685         * math/w_remainder.c (__remainder): Likewise.
17686         * math/w_remainderf.c (__remainderf): Likewise.
17687         * math/libm-test.inc (remainder_test): Add test cases.
17688
17689 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17690
17691         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17692         sdiv_qrnnd.
17693
17694 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17695
17696         * string/test-memcmp.c: Avoid unncessary #defines.
17697         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17698
17699 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17700
17701         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17702         Use new sse2 version for core i3 - i7 as it's faster
17703         than sse42 version.
17704         (bit_Prefer_PMINUB_for_stringop): New.
17705         * sysdeps/x86_64/rawmemchr.S: Update.
17706         Replace with faster SSE2 version.
17707         * sysdeps/x86_64/memrchr.S: New file.
17708         * sysdeps/x86_64/memchr.S: Update.
17709         Replace with faster SSE2 version.
17710
17711 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17712
17713         * elf/dl-load.c (lose): Add cast to avoid warning.
17714
17715 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17716
17717         * po/ca.po: Update from translation team.
17718
17719         * inet/getnetgrent_r.c: Hook up nscd.
17720         * nscd/Makefile (routines): Add nscd_netgroup.
17721         (nscd-modules): Add netgroupcache.
17722         (CFLAGS-netgroupcache.c): Define.
17723         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17724         (cache_search): Add const to second parameter.
17725         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17726         INNETGR.
17727         (dbs): Add netgrdb entry.
17728         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17729         (verify_persistent_db): Handle netgrdb.
17730         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17731         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17732         GETFDNETGR.
17733         (netgroup_response_header): Define.
17734         (innetgroup_response_header): Define.
17735         (datahead): Add netgroup_response_header and innetgroup_response_header
17736         elements.
17737         * nscd/nscd.conf: Add entries for netgroup cache.
17738         * nscd/nscd.h (dbtype): Add netgrdb.
17739         (_PATH_NSCD_NETGROUP_DB): Define.
17740         (netgroup_iov_disabled): Declare.
17741         (xmalloc, xcalloc, xrealloc): Move declarations here.
17742         (cache_search): Adjust prototype.
17743         Add netgroup-related prototypes.
17744         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17745         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17746         (__nscd_innetgr): Declare.
17747         * nscd/selinux.c (perms): Use access_vector_t as element type and
17748         add netgroup-related initializers.
17749         * nscd/netgroupcache.c: New file.
17750         * nscd/nscd_netgroup.c: New file.
17751         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17752         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17753         For four parameters use innetgr.
17754         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17755         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17756         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17757         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17758
17759         * nscd/connections.c (register_traced_file): Don't register file
17760         for disabled databases.
17761
17762 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17763
17764         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17765
17766         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17767         from tree and freeing node.
17768
17769 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17770
17771         * nss/nsswitch.c (__nss_database_lookup): Handle
17772         nss_parse_service_list out of memory case.
17773
17774 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17775
17776         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17777         out of memory case.
17778
17779 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17780
17781         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17782         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17783         pass it down.
17784         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17785         elf_machine_rela, elf_machine_lazy_rel.
17786         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17787         (ELF_DYNAMIC_DO_REL): Likewise.
17788         (ELF_DYNAMIC_DO_RELA): Likewise.
17789         (ELF_DYNAMIC_RELOCATE): Likewise.
17790         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17791         to ELF_DYNAMIC_DO_REL.
17792         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17793         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17794         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17795         elf_machine_rela.
17796         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17797         skip_ifunc, don't call ifunc function if non-zero.
17798         (elf_machine_rela): Likewise.
17799         (elf_machine_lazy_rel): Likewise.
17800         (elf_machine_lazy_rela): Likewise.
17801         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17802         (elf_machine_lazy_rel): Likewise.
17803         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17804         Likewise.
17805         (elf_machine_lazy_rel): Likewise.
17806         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17807         Likewise.
17808         (elf_machine_lazy_rel): Likewise.
17809         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17810         (elf_machine_lazy_rel): Likewise.
17811         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17812         (elf_machine_lazy_rel): Likewise.
17813         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17814         (elf_machine_lazy_rel): Likewise.
17815         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17816         (elf_machine_lazy_rel): Likewise.
17817         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17818         (elf_machine_lazy_rel): Likewise.
17819         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17820         (elf_machine_lazy_rel): Likewise.
17821
17822 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17823
17824         * nss/nss_files/files-init.c (_nss_files_init): Use static
17825         initialization for all the *_traced_file variables.
17826
17827 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17828
17829         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17830
17831 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17832
17833         [BZ #13226]
17834         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17835
17836 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17837
17838         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17839         Reread the line before reparsing it.
17840
17841 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17842
17843         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17844
17845 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17846             Maxim Kuvyrkov  <maxim@codesourcery.com>
17847             Joseph Myers  <joseph@codesourcery.com>
17848
17849         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17850         if needed for __stack_chk_guard.
17851
17852 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17853
17854         * sysdeps/posix/spawni.c (script_execute): Always define it.
17855         It will be optimized away if unused.
17856         (maybe_script_execute): New function.
17857         (__spawni): Call it.
17858
17859         * Makerules: Don't include tls.make.
17860         (config-tls): Always set to thread.
17861         * tls.make.c: File removed.
17862
17863 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17864
17865         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17866         * config.make.in (CPPFLAGS-config): New substituted variable.
17867
17868 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17869
17870         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17871
17872         [BZ #13192]
17873         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17874         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17875
17876 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17877
17878         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17879         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17880         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17881         (CALL_FAIL): Likewise.
17882         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17883         (CALL_FAIL): Macro removed.
17884         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17885
17886 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17887
17888         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17889         for __FINITE_MATH_ONLY__ == 1.
17890
17891 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17892
17893         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17894         __ieee754_sqrt instead of sqrt.
17895         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17896         __ieee754_sqrtf instead of sqrtf.
17897         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17898         __floorf instead of floorf.
17899         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17900         __floorf, __truncf instead of floorf, truncf.
17901
17902 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17903
17904         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17905
17906         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17907         __extern_always_inline.
17908         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17909         32-bit.
17910
17911 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17912
17913         * elf/rtld.c (dl_main): Also relocate in dependency order when
17914         doing symbol dependency testing.
17915
17916 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17917
17918         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17919         Always define `refsym'.
17920
17921 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17922
17923         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17924         (__FD_ELT): Renamed from __FDELT.
17925         * misc/bits/select2.h (__FD_ELT): Likewise.
17926         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17927         __FD_MASK instead of __FDELT, __FDMASK.
17928         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17929         Likewise.
17930         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17931         Likewise.
17932
17933         * elf/Makefile (gen-ldd): Fix pattern.
17934
17935         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17936         (init_tls): Likewise.
17937
17938 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17939
17940         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17941
17942 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17943
17944         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17945         `struct cmsghdr *' instead of `void *'.
17946         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17947         Likewise.
17948
17949 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17950
17951         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17952         if non-absolute.
17953         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17954         ldd_rewrite_script.
17955
17956 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17957
17958         * configure.in: Remove --with-tls option.
17959         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17960         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17961         out in case it is missing.
17962         * sysdeps/ia64/elf/configure.in: Likewise.
17963         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17964         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17965         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17966         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17967         * sysdeps/sh/elf/configure.in: Likewise.
17968         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17969         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17970         * sysdeps/x86_64/elf/configure.in: Likewise.
17971         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17972         * sysdeps/mach/hurd/tls.h: Likewise.
17973
17974         [BZ #13067]
17975         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17976
17977         [BZ #13090]
17978         * configure.in: Fix use of AC_INIT.
17979
17980         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17981
17982 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17983
17984         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17985         __set_errno.
17986         * malloc/hooks.c: Likewise.
17987
17988         [BZ #11929]
17989         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17990         variables statically.
17991         (narenas): Initialize.
17992         (list_lock): Initialize.
17993         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17994         initializtion of main_arena and list_lock.  Small cleanups.
17995         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
17996         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
17997         Add initializers to main_arena and mp_.
17998         (malloc_state): Remove pagesize member.  Change all users to use
17999         GLRO(dl_pagesize).
18000
18001         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
18002         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
18003         is always initialized.
18004
18005         * malloc/malloc.c: Removed unused configurations and dead code.
18006         * malloc/arena.c: Likewise.
18007         * malloc/hooks.c: Likewise.
18008         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
18009
18010         * include/tls.h: Removed.  USE___THREAD must always be defined.
18011         * bits/libc-tsd.h: Don't handle !USE___THREAD.
18012         * elf/dl-libc.c: Likewise.
18013         * elf/dl-tsd.c: Likewise.
18014         * include/errno.h: Likewise.
18015         * include/netdb.h: Likewise.
18016         * include/resolv.h: Likewise.
18017         * inet/herrno-loc.c: Likewise.
18018         * inet/herrno.c: Likewise.
18019         * malloc/arena.c: Likewise.
18020         * malloc/hooks.c: Likewise.
18021         * malloc/malloc.c: Likewise.
18022         * resolv/res-state.c: Likewise.
18023         * resolv/res_libc.c: Likewise.
18024         * sysdeps/i386/dl-machine.h: Likewise.
18025         * sysdeps/ia64/dl-machine.h: Likewise.
18026         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
18027         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
18028         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
18029         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
18030         * sysdeps/sh/dl-machine.h: Likewise.
18031         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18032         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18033         * sysdeps/unix/i386/sysdep.S: Likewise.
18034         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
18035         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
18036         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
18037         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
18038         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
18039         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
18040         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
18041         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18042         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18043         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
18044         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18045         * sysdeps/x86_64/dl-machine.h: Likewise.
18046         * tls.make.c: Likewise.
18047
18048         * configure.in: Remove --with-__thread option.  Make tests for
18049         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
18050         tls_model attribute fail if no support is available.  Remove
18051         USE_IN_LIBIO.
18052         * Makeconfig: Adjust for dropped configure option.  All features are
18053         now mandatory.
18054         * Makerules: Likewise.
18055         * Versions.def: Likewise.
18056         * argp/argp-fmtstream.c: Likewise.
18057         * argp/argp-fmtstream.h: Likewise.
18058         * argp/argp-help.c: Likewise.
18059         * assert/assert.c: Likewise.
18060         * config.h.in: Likewise.
18061         * config.make.in: Likewise.
18062         * configure: Likewise.
18063         * configure.in: Likewise.
18064         * csu/Versions: Likewise.
18065         * csu/init.c: Likewise.
18066         * elf/tst-audit2.c: Likewise.
18067         * elf/tst-tls10.c: Likewise.
18068         * elf/tst-tls10.h: Likewise.
18069         * elf/tst-tls11.c: Likewise.
18070         * elf/tst-tls12.c: Likewise.
18071         * elf/tst-tls14.c: Likewise.
18072         * elf/tst-tlsmod11.c: Likewise.
18073         * elf/tst-tlsmod12.c: Likewise.
18074         * elf/tst-tlsmod13.c: Likewise.
18075         * elf/tst-tlsmod13a.c: Likewise.
18076         * elf/tst-tlsmod14a.c: Likewise.
18077         * elf/tst-tlsmod15b.c: Likewise.
18078         * elf/tst-tlsmod16a.c: Likewise.
18079         * elf/tst-tlsmod16b.c: Likewise.
18080         * elf/tst-tlsmod7.c: Likewise.
18081         * elf/tst-tlsmod8.c: Likewise.
18082         * elf/tst-tlsmod9.c: Likewise.
18083         * gmon/gmon.c: Likewise.
18084         * grp/fgetgrent_r.c: Likewise.
18085         * grp/putgrent.c: Likewise.
18086         * hurd/fopenport.c: Likewise.
18087         * include/libc-symbols.h: Likewise.
18088         * include/tls.h: Likewise.
18089         * intl/gettextP.h: Likewise.
18090         * intl/loadinfo.h: Likewise.
18091         * locale/global-locale.c: Likewise.
18092         * locale/localeinfo.h: Likewise.
18093         * mach/devstream.c: Likewise.
18094         * malloc/arena.c: Likewise.
18095         * malloc/set-freeres.c: Likewise.
18096         * misc/err.c: Likewise.
18097         * misc/getttyent.c: Likewise.
18098         * misc/mntent_r.c: Likewise.
18099         * posix/getopt.c: Likewise.
18100         * posix/wordexp.c: Likewise.
18101         * pwd/fgetpwent_r.c: Likewise.
18102         * resolv/Versions: Likewise.
18103         * resolv/res_hconf.c: Likewise.
18104         * shadow/fgetspent_r.c: Likewise.
18105         * shadow/putspent.c: Likewise.
18106         * stdio-common/printf_fphex.c: Likewise.
18107         * stdio-common/tmpfile.c: Likewise.
18108         * stdlib/abort.c: Likewise.
18109         * stdlib/fmtmsg.c: Likewise.
18110         * sunrpc/auth_unix.c: Likewise.
18111         * sunrpc/clnt_perr.c: Likewise.
18112         * sunrpc/clnt_tcp.c: Likewise.
18113         * sunrpc/clnt_udp.c: Likewise.
18114         * sunrpc/clnt_unix.c: Likewise.
18115         * sunrpc/openchild.c: Likewise.
18116         * sunrpc/svc_simple.c: Likewise.
18117         * sunrpc/svc_tcp.c: Likewise.
18118         * sunrpc/svc_udp.c: Likewise.
18119         * sunrpc/svc_unix.c: Likewise.
18120         * sunrpc/xdr.c: Likewise.
18121         * sunrpc/xdr_array.c: Likewise.
18122         * sunrpc/xdr_rec.c: Likewise.
18123         * sunrpc/xdr_ref.c: Likewise.
18124         * sunrpc/xdr_stdio.c: Likewise.
18125
18126 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18127
18128         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18129
18130 2011-07-03  Andreas Jaeger  <aj@suse.de>
18131
18132         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18133         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18134         regenerate with gen-libm-tests.pl.
18135
18136 2010-05-12  Petr Baudis  <pasky@suse.cz>
18137
18138         [BZ #11589]
18139         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18140         around j0() zero points by switching to j1().
18141         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18142         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18143         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18144         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18145
18146 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18147
18148         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18149         instead of 0.
18150         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18151         instead of 0.                              .
18152         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18153         Patch in part by Pavel Roskin <proski@gnu.org>.
18154
18155         [BZ #13138]
18156         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18157         realloc.
18158         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18159         Free memory block if necessary.
18160
18161         [BZ #12847]
18162         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18163         be NULL.  Don't lock in this case.
18164
18165 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18166
18167         * elf/elf.h (ELFOSABI_GNU): New macro.
18168         (ELFOSABI_LINUX): Define to that.
18169
18170 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18171
18172         * string/strncat.c (strncat): Undef the symbol in case it has been
18173         defined in bits/string.h.
18174
18175 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18176
18177         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18178
18179         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18180         link map.
18181
18182 2011-08-17  Andreas Jaeger  <aj@suse.de>
18183
18184         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18185
18186 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18187             Ian Lance Taylor  <iant@google.com>
18188
18189         * math/libm-test.inc (lround_test): New testcase.
18190         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18191
18192 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18193
18194         * Makefile: Remove support for automatic cvs check-ins.
18195         * Makerules: Likewise.
18196         * config.make.in: Likewise.
18197         * configure.in: Likewise.
18198         * intl/Makefile: Likewise.
18199         * locale/Makefile: Likewise.
18200         * po/Makefile: Likewise.
18201         * posix/Makefile: Likewise.
18202         * sysdeps/gnu/Makefile: Likewise.
18203         * sysdeps/mach/hurd/Makefile: Likewise.
18204         * sysdeps/sparc/sparc32/Makefile: Likewise.
18205
18206         [BZ #13118]
18207         * posix/Makefile (bug-regex32-ENV): Define.
18208         Patch by John Stanley <jpsinthemix@verizon.net>.
18209
18210         * misc/Makefile (headers): Add bits/select2.h.
18211         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18212         * misc/bits/select2.h: New file.
18213         * include/bits/select2.h: New file.
18214         * debug/Makefile (routines): Add fdelt_chk.
18215         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18216         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18217         FD_ISSET.
18218         * debug/fdelt_chk.c: New file.
18219
18220         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18221         * wcsmbs/test-wmemcmp.c: Likewise.
18222         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18223         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18224
18225 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18226
18227         * string/Makefile (strop-tests): Add memcmp.
18228         * string/test-wmemcmp.c: New file.
18229         * string/test-memcmp.c: Add wmemcmp support.
18230
18231 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18232
18233         [BZ #13153]
18234         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18235         2011-07-19 change.
18236
18237         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18238         garbage value in a __mach_port_mod_refs call in the cases of the
18239         task-self and thread-self ports.
18240
18241 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18242
18243         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18244
18245 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18246
18247         * elf/dl-load.c (lose): Check for non-null L.
18248
18249 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18250
18251         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18252
18253         * elf/dl-libc.c (dlerror_run): Pass back error code from
18254         dl_catch_error.
18255
18256         [BZ #13123]
18257         * elf/dl-load.c (lose): Free l_origin if it is valid.
18258
18259         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18260         names.
18261         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18262         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18263         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18264         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18265         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18266         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18267
18268 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18269
18270         * sysdeps/powerpc/fpu/e_hypot.c: New file.
18271         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18272         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18273         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18274         * sysdeps/powerpc/fpu/k_cosf.c: New file.
18275         * sysdeps/powerpc/fpu/k_sinf.c: New file.
18276         * sysdeps/powerpc/fpu/s_cosf.c: New file.
18277         * sysdeps/powerpc/fpu/s_sinf.c: New file.
18278         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18279         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18280
18281 2011-08-15  Alan Modra  <amodra@gmail.com>
18282
18283         [BZ #13092]
18284         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18285         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18286         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
18287         ppc_mcount to static-only-routines.
18288         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18289         __mcount_internal.
18290         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18291         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18292
18293 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18294
18295         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18296         for finite and infinity parameters.
18297
18298 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18299
18300         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18301         and add nop instructions for throughput optimization.
18302         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18303
18304 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18305
18306         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18307         aligned copy for power7 with vector-scalar instructions.
18308         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18309
18310 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18311
18312         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18313         AVX check.
18314
18315 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18316
18317         [BZ #13144]
18318         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18319         last change.
18320
18321 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18322
18323         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18324         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18325         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18326         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18327         clock_gettime.
18328
18329 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18330
18331         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18332         Forgot to demangle the pointer.
18333
18334         * sysdeps/i386/sysdep.h: Define atom_text_section.
18335         * sysdeps/x86_64/sysdep.h: Likewise.
18336         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18337         section with atom_text_section.
18338         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18339         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18340         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18341         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18342         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18343
18344         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18345         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18346         already be defined.  Change to take two parameters and don't assign
18347         result to variable.  Adjust all users.
18348         Define INTERNAL_GETTIME if not already defined.
18349         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18350         call.
18351         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18352         HAVE_CLOCK_GETTIME_VSYSCALL.
18353         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18354
18355         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18356         gettimeofday vsyscall, just use time.
18357
18358 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18359
18360         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18361         <errno.h>.
18362
18363 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18364
18365         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18366         syscall on x86-64.
18367         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18368         syscall.
18369         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18370         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18371         syscall if possible.
18372
18373 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18374
18375         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18376         e_ident.  Don't pass to find_mapsXX.
18377         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18378
18379 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18380
18381         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18382         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18383         * sysdeps/x86_64/multiarch/strchr.S: Update.
18384         Check bit_slow_BSF bit.
18385         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18386         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18387         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18388
18389 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18390
18391         [BZ #13134]
18392         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18393         before glibc 2.15.
18394         (tryshell): Define.
18395         (__spawni): Change last parameter to be flag.  Test
18396         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18397         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18398         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18399         * posix/spawni.c: Likewise.
18400         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18401         * posix/spawnp.c: Likewise.  Change normal version to use
18402         SPAWN_XFLAGS_USE_PATH.
18403         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18404         SPAWN_XFLAGS_TRY_SHELL.
18405
18406         [BZ #13150]
18407         * posix/glob.h: Remove gcc 1.x support.
18408
18409         [BZ #13068]
18410         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18411
18412 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18413
18414         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18415         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18416         strrchr-sse2-bsf
18417         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18418         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18419         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18420         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18421         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18422         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18423
18424 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18425
18426         * sysdeps/x86_64/wcscmp.S: New file.
18427
18428         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18429         wcscmp-c wcscmp-sse2
18430         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18431         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18432         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18433         * wcsmbs/wcscmp.c: Allow renaming.
18434
18435 2011-09-05  David S. Miller  <davem@davemloft.net>
18436
18437         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18438         stack slot, rather than the struct return pointer slot.
18439         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18440         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18441         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18442         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18443
18444 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18445
18446         * po/ja.po: Update from translation team.
18447
18448         [BZ #13144]
18449         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18450         kernel in 64-bit binaries.
18451
18452 2011-09-01  David S. Miller  <davem@davemloft.net>
18453
18454         * elf/elf.h (HWCAP_SPARC_*): Move to..
18455         * sysdeps/sparc/sysdep.h: this new file and add new values.
18456         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18457         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18458         _DL_HWCAP_COUNT to 24.
18459         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18460         entries.
18461         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18462         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18463         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18464         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18465         instead of magic constants.
18466         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18467
18468 2011-08-31  David S. Miller  <davem@davemloft.net>
18469
18470         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18471         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18472         Reimplement to do errno handling inline.
18473         (SYSCALL_ERROR_HANDLER): New macro.
18474         (__SYSCALL_STRING): Do not do errno handling in asm.
18475         (__CLONE_SYSCALL_STRING): Delete.
18476         (__INTERNAL_SYSCALL_STRING): Delete.
18477         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18478         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18479         (PSEUDO): Reimplement to do errno handling inline.
18480         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18481         (SYSCALL_ERROR_HANDLER): New macro.
18482         (__SYSCALL_STRING): Do not do errno handling in asm.
18483         (__CLONE_SYSCALL_STRING): Delete.
18484         (__INTERNAL_SYSCALL_STRING): Delete.
18485         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18486         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18487         i386.
18488         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18489         (inline_syscall*): Add 'err' argument.
18490         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18491         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18492         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18493         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18494
18495         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18496         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18497
18498 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18499
18500         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18501
18502 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18503
18504         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18505         directive.
18506
18507 2011-08-24  David S. Miller  <davem@davemloft.net>
18508
18509         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18510
18511 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18512
18513         * elf/Makefile: Add rules to build and run unload8 test.
18514         * elf/unload8.c: New file.
18515         * elf/unload8mod1.c: New file.
18516         * elf/unload8mod1x.c: New file.
18517         * elf/unload8mod2.c: New file.
18518         * elf/unload8mod3.c: New file.
18519
18520         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18521         it wasn't used.
18522
18523 2011-08-23  David S. Miller  <davem@davemloft.net>
18524
18525         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18526         subtract stack bias.
18527         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18528         %sp not %fp in calculations.
18529         (_JMPBUF_UNWINDS_ADJ): Likewise.
18530
18531         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18532         (aio_suspend): Call it to force an exception region around the
18533         AIO_MISC_WAIT() invocation.
18534
18535 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18536
18537         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18538         backslash.
18539
18540 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18541
18542         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18543         protection macro.
18544         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18545         and <dl-machine.h>.
18546         (Elf64_FuncDesc): Remove.
18547
18548 2011-08-22  David S. Miller  <davem@davemloft.net>
18549
18550         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18551         sigaltstack check, add missing cfi directives.
18552         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18553         missing cfi directives, and sigaltstack handling.
18554
18555 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18556
18557         [BZ #11724]
18558         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18559         object is seen twice.
18560         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18561
18562         * elf/Makefile (distribute): Add tst-initorder2.c.
18563         (tests): Add tst-initorder2.
18564         (modules-names): Add tst-initorder2a tst-initorder2b
18565         tst-initorder2c tst-initorder2d.  Add rules to build them.
18566         ($(objpfx)tst-initorder2.out): New rule.
18567         * elf/tst-initorder2.c: New file.
18568         * elf/tst-initorder2.exp: New file.
18569
18570 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18571
18572         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18573
18574         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18575         dependencies back to end of function.
18576
18577         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18578         $(elfobjdir)/ld.so.
18579
18580 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18581
18582         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18583         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18584         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18585         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18586         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18587         of __vdso_gettimeofday.
18588         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18589         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18590         attribute_hidden.
18591         (_libc_vdso_platform_setup): Remove initialization of
18592         __vdso_gettimeofday and __vdso_time.
18593
18594 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18595
18596         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18597         and fgetc_unlocked.
18598         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18599         getc_unlocked.
18600
18601         * elf/dl-open.c (add_to_global): Report additions to the global scope
18602         for LD_DEBUG=scopes.
18603         (dl_open_worker): Also print scope of newly loaded dependencies.
18604         (_dl_show_scope): Indicate if there is no scope.
18605
18606         [BZ #13114]
18607         * stdio-common/Makefile (tests): Add bug24.
18608         * stdio-common/bug24.c: New file.
18609
18610 2011-08-19  Andreas Jaeger  <aj@suse.de>
18611
18612         [BZ #13114]
18613         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18614         non-existant file when using close-on-exec mode.
18615
18616 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18617
18618         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18619         the very first instruction.
18620
18621         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18622         the CFI state in the end.
18623         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18624         inclusion of dl-trampoline.h.
18625         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18626
18627 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18628
18629         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18630         expectations for long double.
18631
18632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18633         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18634
18635 2011-08-14  David S. Miller  <davem@davemloft.net>
18636
18637         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18638         artificual limit depends upon the system page size.
18639
18640 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18641
18642         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18643         * resolv/Makefile: Define CFLAGS-libresolv.
18644
18645 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18646
18647         * nss/makedb.c (compute_tables): Make variables used in nested
18648         function static.
18649
18650 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18651
18652         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18653         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18654         if buffer was too small.
18655
18656         * elf/pldd.c (main): Attach to all threads in the process.
18657         Rewrite /proc handling to use *at functions.
18658
18659 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18660
18661         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18662         specifies first scope to show.
18663         (dl_open_worker): Update callers.  Move printing scope of new
18664         object to before the relocation.
18665         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18666         * sysdeps/generic/ldsodefs.h: Update declaration.
18667
18668         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18669         string for the scope number.
18670
18671 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18672
18673         * nscd/servicescache.c (cache_addserv): Make sure written is always
18674         initialized.
18675
18676 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18677
18678         * sysdeps/i386/i486/bits/atomic.h
18679         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18680         statement expression, so as to suppress "set but not used" warning.
18681         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18682
18683         * string/strncat.c (STRNCAT): Use prototype definition.
18684
18685         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18686         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18687         -Iprograms here.
18688         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18689         (localedef-modules): Add localedef.
18690         (locale-modules): Add locale.
18691
18692         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18693         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18694         to avoid a warning.
18695
18696 2011-08-14  David S. Miller  <davem@davemloft.net>
18697
18698         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18699         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18700
18701 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18702
18703         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18704         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18705         * elf/rtld.c (dl_main): Set l_name of vDSO.
18706         Call _dl_show_scope when DL_DEBUG_SCOPES.
18707         (process_dl_debug): Recognize scopes flag and also set it for all.
18708         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18709         Declare _dl_show_scope.
18710
18711         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18712         (do_dlopen): Pass caller_dlopen to dl_open.
18713         (__libc_dlopen_mode): Initialize caller_dlopen.
18714
18715         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18716         of libc.  Make tolower call locale-independent.  Optimize a bit by
18717         using isdigit instead of isalnum.
18718         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18719
18720 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18721
18722         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18723         was a dependency or dynamically loaded.
18724
18725 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18726
18727         * intl/l10nflist.c: Allow architecture-specific pop function.
18728         * sysdeps/x86_64/l10nflist.c: New file.
18729
18730         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18731         classification.
18732
18733 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18734
18735         * include/dirent.h: Add libc_hidden_proto for scandirat and
18736         scandirat64.  Don't declare __scandirat64.
18737         * dirent/scandirat.c: Add libc_hidden_def.
18738         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18739         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18740
18741 2011-08-10  David S. Miller  <davem@davemloft.net>
18742
18743         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18744         enum.
18745         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18746         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18747         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18748
18749 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18750
18751         * Versions.def [libc]: Add GLIBC_2.15.
18752         * dirent/Makefile (routines): Add scandirat and scandirat64.
18753         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18754         GLIBC_2.15.
18755         * dirent/dirent.h: Declare scandirat and scandirat64.
18756         * dirent/scandirat.c: New file.
18757         * dirent/scandirat64.c: New file.
18758         * sysdeps/wordsize-64/scandirat.c: New file.
18759         * sysdeps/wordsize-64/scandirat64.c: New file.
18760         * dirent/opendir.c: Define opendirat.
18761         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18762         using scandirat.
18763         * dirent/scandir64.c: Adjust for scandir.c change.
18764         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18765         __scandirat64, and __scandir_cancel_handler.
18766         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18767         additional parameter and use openat instead of open (outside of ld.so).
18768         Add new __opendir as wrapper around __opendirat.
18769         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18770         here without requiring old scandirat implementation.
18771
18772 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18773
18774         * dirent/scandir.c (cancel_handler): Renamed to
18775         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18776         defined.  Adjust users.
18777         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18778         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18779
18780 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18781
18782         * string/test-string.h (IMPL): Use __STRING to expand name and then
18783         stringify it.
18784
18785         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18786         of cleanups.
18787
18788 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18789
18790         * string/Makefile: Update.
18791         (strop-tests): Append strncat.
18792         * string/test-wcscmp.c: New file.
18793         New comprehensive test for wcscmp.
18794         * string/test-strcmp.c: Update.
18795         (WIDE): New define.
18796
18797 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18798
18799         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18800         line.
18801
18802 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18803
18804         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18805         encoding to ACE if AI_IDN.
18806
18807 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18808
18809         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18810         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18811
18812 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18813
18814         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18815         Fix overflow bug in strncat.
18816         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18817
18818         * string/test-strncat.c: Update.
18819         Add new tests for checking overflow bugs.
18820
18821 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18822
18823         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18824         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18825         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18826         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18827         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18828         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18829         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18830         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18831         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18832
18833         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18834         (USE_AS_STRCAT): Define.
18835         Add strcat and strncat support.
18836         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18837
18838 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18839
18840         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18841         __n bigger than INT_MAX+1.
18842         (__strncmp_g): Likewise.
18843
18844 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18845
18846         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18847         * libio/stido.h: Likewise.
18848
18849         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18850         (AF_NFC): Define.
18851         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18852         (AF_NFC): Define.
18853
18854         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18855         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18856         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18857         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18858         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18859
18860         [BZ #13021]
18861         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18862         installed.
18863
18864         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18865         typo.
18866         (_dl_x86_64_save_sse): Likewise.
18867
18868 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18869
18870         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18871         OSXSAVE.
18872         (_dl_x86_64_save_sse): Likewise.
18873
18874         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18875
18876         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18877
18878 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18879
18880         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18881         change.
18882         (_dl_x86_64_save_sse): Use correct AVX check.
18883
18884 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18885
18886         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18887         bug in strncpy/strncat.
18888         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18889
18890 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18891
18892         * string/tester.c (test_strcat): Add tests for different alignments
18893         of source and destination.
18894         (test_strncat): Likewise.
18895
18896 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18897
18898         [BZ #12852]
18899         * posix/glob.c (glob): Check passed in values before using them in
18900         expressions to avoid some overflows.
18901         (glob_in_dir): Likewise.
18902
18903         [BZ #13007]
18904         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18905         check for AVX enablement so that we don't crash with old kernels and
18906         new hardware.
18907         * elf/tst-audit4.c: Add same checks here.
18908         * elf/tst-audit6.c: Likewise.
18909
18910         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18911
18912 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18913
18914         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18915
18916 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18917
18918         * po/cs.po: Update from translation team.
18919         * po/bg.po: Likewise.
18920
18921 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18922
18923         * misc/sys/cdefs.h: Add support for const attribute.
18924         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18925         to gnu_dev_{major,minor,makedev} functions.
18926
18927 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18928
18929         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18930
18931 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18932
18933         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18934         strlen results.
18935
18936 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18937
18938         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18939         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18940         register in order to avoid conflicts with the soft frame pointer
18941         being held in r11 when necessary.
18942         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18943         (INTERNAL_VSYSCALL_NCS): Likewise.
18944
18945 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18946
18947         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18948         * elf/dl-fini.c (_dl_fini): Adjust caller.
18949         * elf/dl-close.c (_dl_close_worker): Likewise.
18950         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18951
18952 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18953
18954         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18955         "aux_cache->nlibs < 0".
18956
18957         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18958         in the reload-count case.
18959
18960 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18961
18962         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18963         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18964         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18965         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18966         * sysdeps/x86_64/multiarch/strcat.S: New file.
18967         * sysdeps/x86_64/multiarch/strncat.S: New file.
18968         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18969         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18970         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18971         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18972         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18973         (USE_AS_STRCAT): Define.
18974         Add strcat and strncat support.
18975         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18976         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18977         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18978         * string/strncat.c: Update.
18979         (USE_AS_STRNCAT): Define.
18980         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18981         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18982         and i7.
18983         * sysdeps/x86_64/multiarch/init-arch.h
18984         (bit_Prefer_PMINUB_for_stringop): New.
18985         (index_Prefer_PMINUB_for_stringop): Likewise.
18986         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18987         bit_Prefer_PMINUB_for_stringop.
18988
18989 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18990
18991         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18992         buffer64.
18993         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18994         of casting of buffer.
18995         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
18996         buffer32 and buffer64.
18997         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
18998         writes instead of casting of buffer.
18999         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
19000         buffer32.
19001         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
19002         casting of buffer.
19003
19004 2011-07-19  Andreas Schwab  <schwab@redhat.com>
19005
19006         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
19007
19008 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
19009
19010         * nscd/nscd.c (termination_handler): Don't do anything for a database
19011         if it has not yet been initialized.
19012
19013 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19014
19015         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19016
19017 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
19018
19019         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19020
19021 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19022
19023         * po/nl.po: Update from translation team.
19024         * po/sv.po: Likewise.
19025
19026 2011-07-16  Roland McGrath  <roland@hack.frob.com>
19027
19028         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
19029         now disallowed by GCC.
19030
19031         * configure.in (use-default-link): Default to yes if a test -shared
19032         link meets our qualifications.
19033         * configure: Regenerated.
19034
19035         * config.make.in (output-format): New variable.
19036         * configure.in: Check for ld --print-output-format support.
19037         * configure: Regenerated.
19038         * Makerules ($(common-objpfx)format.lds)
19039         [$(output-format) != unknown]: Just use $(output-format),
19040         instead of the linker-script munging.
19041
19042 2011-07-14  Roland McGrath  <roland@hack.frob.com>
19043
19044         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
19045         of $(common-objpfx)shlib.lds.
19046         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
19047
19048         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
19049         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
19050
19051         * configure.in (-z relro check): Adjust test code to add a large
19052         writable data section after it.
19053         * configure: Regenerated.
19054
19055 2011-07-11  Roland McGrath  <roland@hack.frob.com>
19056
19057         * configure.in (-z relro check): Fix test code to make the variable
19058         truly const.
19059         * configure: Regenerated.
19060
19061 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
19062
19063         * nscd/nscd.h (struct traced_file): Define.
19064         (struct database_dyn): Remove inotify_descr, reset_res, and filename
19065         elements.  Add traced_files.
19066         (inotify_fd): Declare.
19067         (register_traced_file): Declare.
19068         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
19069         (inotify_fd): Export.
19070         (resolv_conf_descr): Remove.
19071         (nscd_init): Move inotify descriptor creation to main.
19072         Don't register files for notification here.
19073         (register_traced_file): New function.
19074         (invalidate_cache): Don't use reset_res to determine whether to call
19075         res_init, go through the list of registered files.
19076         (main_loop_poll): The inotify descriptors are now stored in the
19077         structures for the traced files.
19078         (main_loop_epoll): Likewise
19079         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
19080         to __nss_disable_nscd.
19081         * nscd/cache.c (prune_cache): There is no single inotify descriptor
19082         for a database anymore.  Check the records for all the registered
19083         files instead.
19084         * nss/Makefile (libnss_files-routines): Add files-init.
19085         (libnss_db-routines): Add db-init.
19086         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19087         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19088         * nss/nss_db/db-init.c: New file.
19089         * nss/nss_files/files-init.c: New file.
19090         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19091         __nss_lookup_function.
19092         (__nss_lookup_function): Call nss_load_library.
19093         (nss_load_all_libraries): New function.
19094         (__nss_disable_nscd): Take parameter with callback function for files
19095         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19096         used for the cached services.
19097         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19098         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19099         options for features to all the files in nscd.
19100
19101         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19102
19103 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19104
19105         * csu/elf-init.c (__libc_csu_init): Comment typo.
19106
19107 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19108
19109         * po/pl.po: Update from translation team.
19110         * po/ja.po: Likewise.
19111         * po/ru.po: Likewise.
19112         * po/ko.po: Likewise.
19113         * po/fr.po: Likewise.
19114
19115 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19116
19117         * configure.in (.ctors/.dtors header and trailer check):
19118         Use an empirical test on a built program.
19119         * configure: Regenerated.
19120
19121         * configure.in (-z relro check): Use an empirical test on a built DSO.
19122         Detect, but do not require, on ia64.
19123         * configure: Regenerated.
19124
19125         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19126         Update tests that use readelf to use $READELF instead.
19127         * configure: Regenerated.
19128
19129 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19130
19131         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19132         if the result is not used.
19133
19134 2011-07-05  Andreas Jaeger  <aj@suse.de>
19135
19136         [BZ#9696]
19137         * stdlib/tst-strtod.c: Add testcase.
19138
19139 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19140
19141         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19142         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19143         The latter has a higher limit.  Take additional parameter to pass to
19144         the new function.
19145         (__pathconf): Pass file to __statfs_link_max.
19146         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19147         __statfs_link_max.
19148         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19149         __statfs_link_max.
19150
19151         [BZ #12868]
19152         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19153         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19154         Handle Lustre.
19155         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19156         (__statfs_filesize_max): Likewise.
19157         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19158
19159 2011-07-05  Andreas Jaeger  <aj@suse.de>
19160
19161         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19162
19163 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19164
19165         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19166         `status' variable.
19167         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19168         Likewise.
19169
19170 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19171
19172         * Makefile (strop-tests): Add strncat.
19173         * string/test-strncat.c: New file.
19174
19175 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19176
19177         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19178
19179 2011-06-21  Andreas Jaeger  <aj@suse.de>
19180
19181         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19182         Copy rule from iconvdata/Makefile.
19183
19184 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19185
19186         [BZ #12922]
19187         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19188         but no long options are defined, just return 'W'.
19189
19190 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19191
19192         [BZ #9696]
19193         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19194
19195 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19196
19197         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19198         netgroups to read.
19199         (innetgr): Likewise.
19200
19201 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19202
19203         * config.make.in (install_root): Default to $(DESTDIR).
19204
19205 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19206
19207         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19208
19209 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19210
19211         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19212
19213         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19214         containing directory rather than embedding absolute directory names.
19215
19216         * scripts/check-local-headers.sh: Rewritten using awk.
19217         Match by word, not by line.  Print error messages for matches.
19218         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19219
19220         * Makerules [shlib-lds-flags empty]:
19221         ($(common-objpfx)libc_pic.opts): New target.
19222         ($(common-objpfx)libc_pic.os.clean): New target.
19223         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19224
19225         * config.make.in (OBJCOPY): New variable.
19226         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19227         * configure: Regenerated.
19228
19229         * config.make.in (use-default-link): New variable.
19230         * configure.in (use_default_link): Grok --with-default-link to set it.
19231         * configure: Regenerated.
19232         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19233         (shlib-lds, shlib-lds-flags): Define to empty.
19234
19235         * Makerules (shlib-lds): New variable.
19236         (shlib-lds-flags): New variable.
19237         (build-shlib, build-moduile, build-module-asneeded): Use it.
19238         ($(common-objpfx)libc.so): Use $(shlib-lds).
19239         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19240         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19241
19242         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19243         DT_FLAGS/DT_FLAGS_1 with zero flags.
19244
19245         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19246         linker script munging.
19247
19248 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19249
19250         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19251         as 128-bit value.
19252         * crypt/sha512.c (sha512_process_block): Perform total addition using
19253         128-bit if possible.
19254         (__sha512_finish_ctx): Likewise.
19255         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19256         as 64-bit value.
19257         * crypt/sha256.c (SWAP64): Define.
19258         (sha256_process_block): Perform total addition using 64-bit if
19259         possible.
19260         (__sha256_finish_ctx): Likewise.
19261
19262 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
19263
19264         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
19265         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19266         * nscd/hstcache.c (cache_addhst): Likewise.
19267         * nscd/grpcache.c (cache_addgr): Likewise.
19268         * nscd/aicache.c (addhstaiX): Likewise
19269         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19270
19271 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
19272
19273         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19274         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19275         * nscd/hstcache.c (cache_addhst): Likewise.
19276         * nscd/grpcache.c (cache_addgr): Likewise.
19277         * nscd/aicache.c (addhstaiX): Likewise
19278
19279 2011-07-01  Andreas Schwab  <schwab@redhat.com>
19280
19281         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19282         domain only when needed.
19283
19284 2011-06-30  Andreas Schwab  <schwab@redhat.com>
19285
19286         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19287         is always restored.
19288
19289 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19290
19291         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19292         are re-adding the entry.
19293         * nscd/servicescache.c (cache_addserv): Likewise.
19294
19295 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19296
19297         * sysdeps/generic/dl-irel.h: fix protection against multiple
19298         inclusions.
19299         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19300
19301 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19302
19303         [BZ #12935]
19304         * malloc/memusage.sh: Fix quoting in message.
19305         * debug/xtrace.sh: Likewise.
19306
19307         * configure.in: Remove support for --experimental-malloc option, make
19308         it the default.
19309         * config.make.in: Likewise.
19310         * malloc/Makefile: Likewise.
19311
19312 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19313
19314         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19315         two-byte characters.
19316
19317 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19318
19319         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19320         AC_CACHE_CHECK invocation.
19321         * configure: Regenerated.
19322
19323         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19324
19325 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19326
19327         [BZ #12350]
19328         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19329         bit from old_res_options.
19330
19331         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19332
19333         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19334         value type for setfct.
19335
19336 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19337
19338         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19339         __gettimeofday instead of gettimeofday.
19340
19341 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19342
19343         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19344
19345 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19346
19347         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19348
19349         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19350         info.
19351
19352 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19353
19354         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19355         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19356         strcpy-sse2-unaligned strncpy-sse2-unaligned
19357         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19358         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19359         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19360         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19361         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19362         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19363         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19364         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19365         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19366         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19367         (STRCPY): Support SSE2 and SSSE3 versions.
19368
19369 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19370
19371         [BZ #12874]
19372         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19373         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19374         kernels which artificially limit size of requests.
19375
19376 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19377
19378         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19379         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19380         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19381         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19382         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19383         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19384         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19385         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19386         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19387         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19388         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19389         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19390         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19391         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19392         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19393         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19394         Enable unaligned load optimization for Intel Core i3, i5 and i7
19395         processors.
19396         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19397         Define.
19398         (index_Fast_Unaligned_Load): Define.
19399         (HAS_FAST_UNALIGNED_LOAD): Define.
19400
19401 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19402
19403         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19404
19405 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19406
19407         [BZ #12907]
19408         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19409         until it is clear that the information is realy needed.
19410         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19411
19412 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19413
19414         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19415
19416 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19417
19418         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19419         /sys/devices/system/cpu/online if it is usable.
19420
19421         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19422         reading the information from the /proc filesystem to once a second.
19423
19424 2011-06-21  Andreas Jaeger  <aj@suse.de>
19425
19426         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19427         NULL after inclusion of kernel headers.
19428
19429 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19430
19431         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19432         calls to internal_setent.
19433
19434         [BZ #12885]
19435         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19436         addresses using gethostbyname4_r ignore IPv4 addresses.
19437
19438         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19439         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19440
19441         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19442
19443 2011-06-20  David S. Miller  <davem@davemloft.net>
19444
19445         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19446         inclusions.
19447         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19448
19449         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19450         (elf_irel): Use it.
19451         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19452         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19453         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19454         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19455         * sysdeps/x86_64/dl-irel.h: Likewise.
19456
19457         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19458         * elf/dl-sym.c: Likewise.
19459
19460 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19461
19462         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19463         need to dereference resplen2.
19464
19465 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19466
19467         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19468
19469 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19470
19471         * Makeconfig: Define vardbdir and inst_vardbdir.
19472         * nss/Makefile: Add rules to install db-Makefile.
19473
19474         * nss/nss_db/db-XXX.c: Cleanup.
19475
19476         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19477         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19478         GLIBC_PRIVATE.
19479         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19480         * nss/makedb.c: Implement -g option to specify that value strings
19481         are generated and should not be added to table iterated over for
19482         get*ent calls.
19483         * nss/nss_db/db-initgroups.c: New file.
19484
19485         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19486         interface.
19487
19488         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19489         (internal_getgrouplist): Adjust to name change.
19490         Update use_initgroups_entry if this is not the first call.
19491         * nss/databases.def: Add initgroups entry.
19492
19493         * nss/makedb.c (compute_tables): Check result of multiple hash table
19494         sizes to minimize maximum chain length.
19495
19496 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19497
19498         * Versions.def: Add entry for libnss_db.
19499         * shlib-versions: Likewise.
19500         * nss/Makefile: Add rules to build libnss_db.
19501         * nss/Versions: Add libnss_db information.  Organize libnss_files
19502         entries better.
19503         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19504         makedb progra.  Some minor improvements to generate smaller files.
19505         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19506         here from...
19507         * nss/makedb.c: ...here.
19508         Improve database format to be smaller and require less memory at
19509         runtime.
19510         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19511         db anymore.
19512         * nss/nss_db/db-netgrp.c: Likewise.
19513         * nss/nss_db/db-open.c: Likewise.
19514         * nss/nss_files/flies-XXX.x: Adjust comments.
19515         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19516         * nss/nss_files/files-grp.c: Likewise.
19517         * nss/nss_files/files-hosts.c: Likewise.
19518         * nss/nss_files/files-network.c: Likewise.
19519         * nss/nss_files/files-proto.c: Likewise.
19520         * nss/nss_files/files-pwd.c: Likewise.
19521         * nss/nss_files/files-rpc.c: Likewise.
19522         * nss/nss_files/files-service.c: Likewise.
19523         * nss/nss_files/files-sgrp.c: Likewise.
19524         * nss/nss_files/files-spwd.c: Likewise.
19525         * nss/nss_db/db-alias.c: Removed.
19526         * nss/nss_db/dummy-db.h: Removed.
19527
19528 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19529
19530         * nss/makedb.c: Rewritten to not use database library.
19531         * nss/Makefile: Update to build new makedb program.
19532
19533 2011-06-14  Andreas Jaeger  <aj@suse.de>
19534
19535         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19536         memset declaration.
19537
19538 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19539
19540         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19541         tmpbuf.
19542
19543 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19544
19545         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19546         * elf/Makefile ($(objpfx)ld.so): Likewise.
19547
19548         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19549         Don't list ld.so twice in dependencies.
19550
19551         * posix/bug-regex31.c: Include <stdlib.h>.
19552
19553         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19554
19555         * nis/nss_compat/compat-spwd.c
19556         (getspent_next_nss_netgr): Remove unused variable.
19557         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19558
19559         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19560         nonmembers" output to use the right array.
19561
19562         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19563
19564         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19565
19566         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19567         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19568         * catgets/gencat.c (read_input_file): Likewise.
19569         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19570
19571         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19572         variable definition inside #if's controlling its use.
19573
19574         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19575
19576         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19577
19578         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19579
19580         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19581         unreachable code.
19582
19583         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19584
19585         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19586         * configure: Regenerated.
19587
19588         * Makerules: Revert last change.
19589         * elf/Makefile: Likewise.
19590
19591 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19592
19593         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19594         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19595         (reloc-link): Likewise.
19596
19597 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19598
19599         * elf/Makefile: Add rules to build pldd.
19600         * elf/pldd.c: New file.
19601         * elf/pldd-xx.c: New file.
19602
19603 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19604
19605         * version.h: Update for 2.15 development version.
19606
19607 2011-06-07  David S. Miller  <davem@davemloft.net>
19608
19609         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19610         ifuncs.
19611         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19612         elf_machine_lazy_rel): Likewise.
19613         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19614         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19615         elf_machine_lazy_rel): Likewise.
19616         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19617         dl_hwcap via passed in argument.
19618         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19619         Likewise.
19620
19621 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19622
19623         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19624
19625 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19626
19627         [BZ #12849]
19628         * manual/fdl-1.1.texi: New file, verbatim from:
19629         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19630         * manual/lgpl-2.1.texi: New file, verbatim from:
19631         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19632         * manual/Makefile (licenses): New variable, list those new file names.
19633         (texis): Use it.
19634         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19635
19636         * manual/fdl.texi: File removed.
19637         * manual/lesser.texi: File removed.
19638         * manual/libc.texinfo (Copying, Documentation License):
19639         Use new @include file names, put @appendix directive before @include.
19640
19641 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19642
19643         [BZ #12841]
19644         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19645         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19646         (mq_open): Add __NTH.
19647
19648 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19649
19650         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19651         Assume Intel Core i3/i5/i7 processor if AVX is available.
19652
19653 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19654
19655         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19656         typo.
19657
19658 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19659
19660         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19661         memory.  Use alloca_account.  Fix memory leak when retrying.
19662
19663 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19664
19665         * version.h (RELEASE): Bump for 2.14 release.
19666         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19667
19668         * config.make.in (RANLIB): Remove entry.
19669
19670 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19671
19672         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19673         (libc.pot): Work around missing support for .ksh extension in xgettext.
19674
19675         [BZ #12684]
19676         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19677         if both request failed.
19678         (send_dg): In case of server errors clear resplen or *resplen2.
19679
19680         [BZ #12454]
19681         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19682         when there are multiple maps.
19683         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19684         (_dl_fini): Remove test here.
19685
19686         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19687
19688 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19689
19690         [BZ #12350]
19691         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19692         bit from old_res_options.
19693         (gaih_inet): Likewise.
19694
19695         [BZ #11099]
19696         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19697         as signed.
19698
19699         * resolv/res_init.c (res_setoptions): Make the code more compact.
19700
19701         [BZ #11558]
19702         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19703         set RES_USEVC.
19704
19705         [BZ #11634]
19706         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19707
19708         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19709
19710         [BZ #11781]
19711         * malloc/malloc.h: Declare malloc hook variables as volatile.
19712
19713         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19714         in last patch.
19715
19716         [BZ #11799]
19717         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19718         raise in the comment.
19719         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19720         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19721         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19722
19723 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19724
19725         [BZ #12811]
19726         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19727         grow the buffers more if it already has to be sufficient.
19728         (build_wcs_upper_buffer): Likewise.
19729         * posix/regexec.c (check_matching): Likewise.
19730         (clean_state_log_if_needed): Likewise.
19731         (extend_buffers): Don't enlarge buffers beyond size of the input
19732         buffer.
19733         Patches mostly by Emil Wojak <emil@wojak.eu>.
19734         * posix/bug-regex32.c: New file.
19735         * posix/Makefile (tests): Add bug-regex32.
19736
19737         * locale/findlocale.c (_nl_find_locale): Return right away if
19738         _nl_explode_name failed.
19739         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19740
19741         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19742
19743         * debug/xtrace.sh: Unify messages.
19744         * malloc/memusage.sh: Likewise.
19745
19746         [BZ #12813]
19747         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19748         time symbol from vDSO.  Substitute with vsyscall if not available.
19749         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19750         __vdso_time.
19751
19752         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19753         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19754         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19755         Add sendmmsg and internal_sendmmsg.
19756         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19757         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19758         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19759
19760         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19761         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19762         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19763
19764 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19765
19766         [BZ #12813]
19767         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19768         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19769         available.
19770         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19771         __vdso_getcpu.
19772
19773         [BZ #12814]
19774         * iconvdata/Makefile (tests): Add bug-iconv9.
19775         * iconvdata/bug-iconv9.c: New file.
19776
19777 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19778
19779         [BZ #12814]
19780         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19781
19782 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19783
19784         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19785         (struct user_regs_struct): Change intcs field back to cs.
19786
19787 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19788
19789         * po/ja.po: Update from translation team.
19790
19791 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19792
19793         [BZ #12795]
19794         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19795         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19796
19797 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19798
19799         * stdlib/longlong.h: Update from GCC.
19800
19801 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19802
19803         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19804         parameter name.
19805         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19806         Add parameter name.
19807         (__sysconf): Pass it down.
19808
19809 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19810
19811         [BZ #12671]
19812         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19813         some situations.
19814         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19815         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19816         add in in __libc_use_alloca calls.  Adjust callers.
19817         (glob): Use malloc in some situations.
19818
19819         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19820         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19821         pltexit.
19822
19823 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19824
19825         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19826         and CLOCK_BOOTTIME_ALARM.
19827
19828         [BZ #12782]
19829         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19830         is returned.
19831
19832         * string/_strerror.c (__strerror_r): Print negative errors as signed
19833         numbers.
19834
19835         [BZ #12777]
19836         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19837         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19838         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19839
19840         * configure.in: Fix typo in redirection and correct removal of test
19841         files in two cases.
19842
19843         [BZ #12788]
19844         * locale/setlocale.c (new_composite_name): Fix test to check for
19845         identical name of all categories.
19846
19847         [BZ #12792]
19848         * libio/filedoalloc.c (local_isatty): New function.
19849         (_IO_file_doallocate): Use local_isatty.
19850         * stdio-common/perror.c (perror): In case a new stream is used
19851         forward the stream error.
19852         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19853         error flag.
19854
19855 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19856
19857         [BZ #11869]
19858         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19859         alloca.
19860         * include/alloca.h (extend_alloca_account): Define.
19861
19862         [BZ #11857]
19863         * posix/regex.h: Fix comments with documentation of user-accessible
19864         fields after compilation and describe correct free'ing of pattern
19865         after re_compile_pattern.
19866         Patch by Reuben Thomas <rrt@sc3d.org>.
19867
19868 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19869
19870         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19871         and -mno-altivec to prevent the compiler from using Altivec and/or
19872         VSX instructions when the corresponding registers are not available.
19873
19874 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19875
19876         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19877
19878 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19879
19880         * libio/freopen.c (freopen): Use __dup2, not dup2.
19881         * libio/freopen64.c (freopen64): Likewise.
19882
19883 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19884
19885         [BZ #12775]
19886         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19887         * math/Makefile (tests): Add test-powl.
19888         (CFLAGS-test-powl.c): Define.
19889         * math/test-powl.c: New file.
19890
19891 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19892
19893         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19894
19895 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19896
19897         [BZ #11837]
19898         * iconvdata/gb18030.c: Update to GB18020-2005.
19899
19900 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19901
19902         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19903         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19904         Patch by Aharon Robbins <arnold@skeeve.com>.
19905
19906         [BZ #11892]
19907         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19908         on the stack.
19909
19910         [BZ #11895]
19911         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19912         through underflows.
19913
19914         [BZ #12766]
19915         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19916         point to strings before performing equality test for error_one_per_line
19917         mode.
19918
19919         [BZ #11697]
19920         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19921
19922         [BZ #11820]
19923         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19924         (struct user_fpregs_struct): Avoid __uint*_t types.
19925
19926         [BZ #6420]
19927         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19928         symbol info.  Use it instead of calling _dl_addr locally.
19929         (lock_and_info): New function.
19930         (tr_freehook): Call lock_and_info and pass symbol info as additional
19931         parameter to tr_where.
19932         (tr_mallochook): Likewise.
19933         (tr_reallochook): Likewise.
19934         (tr_memalignhook): Likewise.
19935
19936         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19937         used and couldn't be at all thread-safe.
19938
19939 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19940
19941         * libio/freopen.c (freopen): Don't close old file descriptor
19942         before the new one is opened.  Instead dup the new file descriptor
19943         to the old one after the new stream is created.
19944         * libio/freopen64.c (freopen64): Likewise.
19945         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19946         * libio/fileops.c (_IO_new_file_close_it): Handle new
19947         _IO_FLAGS2_NOCLOSE flag.
19948         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19949         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19950         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19951         _IO_FLAGS2_NOCLOSE flag.
19952         * include/unistd.h: Add hidden_proto for dup3.
19953         Define __have_dup3.
19954         * io/dup3.c: Define hidden symbol.
19955         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19956
19957         [BZ #7101]
19958         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19959         when an incomplete long option is used.
19960         * posix/tst-getopt_long1.c: New file.
19961         * posix/Makefile (tests): Add tst-getopt_long1.
19962
19963         [BZ #10138]
19964         * scripts/config.guess: Update from autoconf-2.68.
19965         * scripts/config.sub: Likewise.
19966
19967         [BZ #10157]
19968         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19969         tests into ...
19970         (has_cpuclock): ...this.  New function.
19971         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19972         macro here based on has_cpuclock code.
19973
19974         [BZ #10149]
19975         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19976         First byte (not low byte) is now always NUL.
19977         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19978
19979         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19980         Use non-cancelable interfaces.
19981
19982         [BZ #9809]
19983         * locale/iso-639.def: Add entry for Sorani.
19984
19985         [BZ #11901]
19986         * include/stdlib.h: Move include protection to the right place.
19987         Define abort_msg_s.  Declare __abort_msg with it.
19988         * stdlib/abort.c (__abort_msg): Adjust type.
19989         * assert/assert.c (__assert_fail_base): New function.  Majority
19990         of code from __assert_fail.  Allocate memory for __abort_msg with
19991         mmap.
19992         (__assert_fail): Now call __assert_fail_base.
19993         * assert/assert-perr.c: Remove bulk of implementation.  Use
19994         __assert_fail_base.
19995         * include/assert.hL Declare __assert_fail_base.
19996         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
19997         mmap.
19998         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
19999
20000 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
20001
20002         [BZ #11952]
20003         [BZ #12453]
20004         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
20005         until all modules are registered in the DTV.
20006         * elf/Makefile: Add rules to build and run tst-tls19.
20007         * elf/tst-tls19.c: New file.
20008         * elf/tst-tls19mod1.c: New file.
20009         * elf/tst-tls19mod2.c: New file.
20010         * elf/tst-tls19mod3.c: New file.
20011         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
20012
20013         [BZ #12083]
20014         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
20015         correctly.
20016
20017         [BZ #12601]
20018         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
20019         two-byte sequence errors.
20020         * iconvdata/Makefile (tests): Add bug-iconv8.
20021         * iconvdata/bug-iconv8.c: New file.
20022
20023         [BZ #12626]
20024         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
20025         buf2 definition.
20026
20027         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
20028
20029         [BZ #12432]
20030         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
20031         (dummy_getcfa): New function.
20032         (init): Get _Unwind_GetCFA address, use dummy if not found.
20033         (backtrace_helper): In recursion check, also check whether CFA changes.
20034         (__backtrace): Completely initialize arg.
20035
20036         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
20037         storing incomplete byte sequence in state object.  Avoid testing for
20038         guaranteed too small input if we know there is enough data available.
20039
20040 2011-05-11  Andreas Schwab  <schwab@redhat.com>
20041
20042         * Makeconfig (+link-pie): Indent.
20043         * Rules (binaries-pie): Define if $(have-fpie) and
20044         $(build-shared).
20045         (binaries-shared): Also filter out $(binaries-pie).
20046         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
20047         * nscd/Makefile (others-pie): Add nscd.
20048         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
20049         ($(objpfx)nscd): Remove command override.
20050         * login/Makefile (others-pie): Add pt_chown.
20051         ($(objpfx)pt_chown): Remove command override.
20052         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
20053         remove command overrides.
20054
20055 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
20056
20057         * libio/tst_putwc.c: Fix error messages.
20058
20059         [BZ #12724]
20060         * libio/fileops.c (_IO_new_file_close_it): Always flush when
20061         currently writing and seek to current position when not.
20062         * libio/Makefile (tests): Add bug-fclose1.
20063         * libio/bug-fclose1.c: New file.
20064
20065 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
20066
20067         [BZ #12511]
20068         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
20069         don't set DF_1_NODELETE here.
20070         (do_lookup_x): When entering new entry test for copy relocation
20071         and if necessary set DF_1_NODELETE flag.
20072         * elf/tst-unique4.cc: New file.
20073         * elf/tst-unique4.h: New file.
20074         * elf/tst-unique4lib.cc: New file.
20075         * elf/Makefile: Add rules to build and run tst-unique4.
20076         Patch by Piotr Bury <pbury@goahead.com>.
20077
20078 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20079
20080         [BZ #12052]
20081         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20082
20083         [BZ #12625]
20084         * misc/mntent_r.c (addmntent): Flush the stream after the output
20085
20086         [BZ #12393]
20087         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20088         (is_trusted_path_normalize): Skip initial colon.  Append slash
20089         to empty buffer.  Duplicate is_trusted_path code but allow
20090         constructed patch to be prefix.
20091         (is_dst): Allow $ORIGIN followed by /.
20092         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20093         Correct testing of result of is_trusted_path_normalize
20094         (decompose_rpath): Fix warning.
20095
20096 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20097
20098         [BZ #11257]
20099         * grp/initgroups.c (internal_getgrouplist): When we found the service
20100         list through the initgroups entry in nsswitch.conf do not always
20101         continue on a successful lookup.  Don't always use the
20102         __nss_group_database value if it is set.
20103         * nss/nsswitch.conf (initgroups): Change action for successful db
20104         lookup to continue for compatibility.
20105
20106 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20107
20108         [BZ #11532]
20109         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20110         and CP774 modules.
20111         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20112         and CP774 modules.
20113         * iconvdata/tst-tables.sh: Likewise.
20114         * iconvdata/cp770.c: New file.
20115         * iconvdata/cp771.c: New file.
20116         * iconvdata/cp772.c: New file.
20117         * iconvdata/cp773.c: New file.
20118         * iconvdata/cp774.c: New file.
20119         * iconvdata/testdata/CP770: New file.
20120         * iconvdata/testdata/CP770..UTF8: New file.
20121         * iconvdata/testdata/CP771: New file.
20122         * iconvdata/testdata/CP771..UTF8: New file.
20123         * iconvdata/testdata/CP772: New file.
20124         * iconvdata/testdata/CP772..UTF8: New file.
20125         * iconvdata/testdata/CP773: New file.
20126         * iconvdata/testdata/CP773..UTF8: New file.
20127         * iconvdata/testdata/CP774: New file.
20128         * iconvdata/testdata/CP774..UTF8: New file.
20129
20130         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20131         END CHARMAP line.
20132         * iconvdata/gen-8bit-gap.sh: Likewise.
20133         * iconvdata/gen-8bit.sh: Likewise.
20134
20135         * locale/iso-639.def: Add ary entry.
20136
20137         [BZ #11258]
20138         * locale/C-translit.h.in: Add U20A1 transliteration.
20139
20140         [BZ #12178]
20141         * locale/iso-639.def: Add wae entry.
20142         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20143
20144         [BZ #12545]
20145         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20146         for n.
20147
20148         [BZ #12711]
20149         * locale/C-translit.h.in: Add entry for U20B9.
20150         Patch by pravin.d.s@gmail.com.
20151
20152 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20153
20154         [BZ #12713]
20155         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20156         ENAMETOOLONG use generic getcwd.
20157         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20158         in rtld.  Use *stat64.
20159         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20160         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20161         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20162         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20163         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20164         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20165         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20166         __fstatat64 macros.
20167         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20168         * dirent/rewinddir.c: Add libc_hidden_def.
20169         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20170         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20171
20172         * include/dirent.h (__alloc_dir): Add flags parameter.
20173         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20174         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20175         __alloc_dir.
20176         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20177         from fdopendir if O_CLOEXEC is already set.
20178
20179 2011-03-15  Alan Modra  <amodra@gmail.com>
20180
20181         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20182         l_tls_firstbyte_offset non-zero.  Save padding offset in
20183         l_tls_firstbyte_offset for later use.
20184         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20185         freeing static tls block.
20186
20187 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20188
20189         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20190         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20191         being defined by the kernel headers.
20192
20193 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20194
20195         [BZ #12734]
20196         * resolv/resolv.h: Define RES_NOTLDQUERY.
20197         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20198         no-tld-query and set RES_NOTLDQUERY.
20199         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20200         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20201         modern BIND to search name as TLD unless forbidden.
20202
20203 2011-05-07  Petr Baudis  <pasky@suse.cz>
20204             Ulrich Drepper  <drepper@gmail.com>
20205
20206         [BZ #12393]
20207         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20208         (is_trusted_path): ...to here.
20209         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20210         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20211         using is_trusted_path_normalize() in setuid scripts.
20212
20213 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20214
20215         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20216         __BEGIN/__END_DECLS.
20217
20218 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20219
20220         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20221         NSS_STATUS_NOTFOUND if no record was found.
20222
20223 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20224
20225         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20226         (headers-not-in-tirpc): Remove rpc/netdb.h
20227         * resolv/netdb.h: Revert last change.
20228
20229 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20230
20231         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20232         circular dependency between libgcc.a and libc.a.
20233
20234 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20235
20236         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20237         * nis/Makefile: Don't install rpcsvc/*.
20238         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20239         instead of <rpc/types.h>.
20240         (MAXHOSTNAMELEN): Define.
20241
20242 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20243
20244         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20245
20246 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20247
20248         [BZ #12714]
20249         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20250         gethostbyname4_r when IPv6 results are possible.
20251
20252 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20253
20254         [BZ #12723]
20255         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20256         _PC_PIPE_BUF handling.
20257
20258 2011-04-30  Bruno Haible  <bruno@clisp.org>
20259
20260         [BZ #12717]
20261         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20262         * resolv/netdb.h (getnameinfo): Change type of flags parameter
20263         to 'int'.
20264         * inet/getnameinfo.c (getnameinfo): Likewise.
20265
20266 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
20267
20268         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20269         to groups setting in database lookup.
20270         * nss/nsswitch.conf: Add initgroups entry.
20271
20272 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
20273
20274         [BZ #12685]
20275         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20276         mode string.
20277         Patch by Eric Blake <eblake@redhat.com>.
20278
20279 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20280
20281         * sunrpc/Makefile (need-export-routines): Add svc_run.
20282         (routines): Remove svc_run.
20283         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20284         * sunrpc/clnt_perr.c (clnt_perrno): Export.
20285         * sunrpc/svc_run.c (svc_run): Likewise.
20286         * sunrpc/svc_udp.c (svcudp_create): Likewise.
20287
20288 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
20289
20290         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20291         problem in reallocation in last patch.
20292
20293 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20294
20295         * sunrpc/Makefile: Move inclusion of Rules.
20296
20297 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20298
20299         * nss/nss_files/files-initgroups.c: New file.
20300         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20301         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20302         _nss_files_initgroups_dyn.
20303
20304 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20305
20306         * elf/elf.h (R_ARM_IRELATIVE): Define.
20307
20308 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20309
20310         * po/ru.po: Update from translation team.
20311
20312 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20313
20314         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20315         dependencies.
20316
20317 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20318
20319         [BZ #12653]
20320         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20321         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20322         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20323         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20324         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20325
20326 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20327
20328         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20329         differing bytes.
20330         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20331         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20332         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20333
20334 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20335
20336         [BZ #12420]
20337         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20338         storing it.
20339         * stdlib/bug-getcontext.c: New file.
20340         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20341
20342 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20343
20344         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20345         instructions into .machine "z9-109".
20346         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20347         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20348
20349 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20350
20351         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20352         between environment variables and auxiliary vector.
20353
20354 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20355
20356         * Makefile: Add rules to build linkobj/libc.so.
20357         * include/libc-symbols.h: Define libc_hidden_nolink.
20358         * include/rpc/auth.h: Mark functions which are to be hidden.
20359         * include/rpc/auth_des.h: Likewise.
20360         * include/rpc/auth_unix.h: Likewise.
20361         * include/rpc/clnt.h: Likewise.
20362         * include/rpc/des_crypt.h: Likewise.
20363         * include/rpc/key_prot.h: Likewise.
20364         * include/rpc/pmap_clnt.h: Likewise.
20365         * include/rpc/pmap_prot.h: Likewise.
20366         * include/rpc/pmap_rmt.h: Likewise.
20367         * include/rpc/rpc_msg.h: Likewise.
20368         * include/rpc/svc.h: Likewise.
20369         * include/rpc/svc_auth.h: Likewise.
20370         * include/rpc/xdr.h: Likewise.
20371         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20372         * nss/Makefile: Likewise.
20373         * sunrpc/Makefile: Don't install headers.  Build library with normal
20374         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20375         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20376         for the compat linking library.  Remove use of INTDEF/INTUSE.
20377         * sunrpc/auth_none.c: Likewise.
20378         * sunrpc/auth_unix.c: Likewise.
20379         * sunrpc/authdes_prot.c: Likewise.
20380         * sunrpc/authuxprot.c: Likewise.
20381         * sunrpc/clnt_gen.c: Likewise.
20382         * sunrpc/clnt_perr.c: Likewise.
20383         * sunrpc/clnt_raw.c: Likewise.
20384         * sunrpc/clnt_simp.c: Likewise.
20385         * sunrpc/clnt_tcp.c: Likewise.
20386         * sunrpc/clnt_udp.c: Likewise.
20387         * sunrpc/clnt_unix.c: Likewise.
20388         * sunrpc/des_crypt.c: Likewise.
20389         * sunrpc/des_soft.c: Likewise.
20390         * sunrpc/get_myaddr.c: Likewise.
20391         * sunrpc/key_call.c: Likewise.
20392         * sunrpc/key_prot.c: Likewise.
20393         * sunrpc/netname.c: Likewise.
20394         * sunrpc/pm_getmaps.c: Likewise.
20395         * sunrpc/pm_getport.c: Likewise.
20396         * sunrpc/pmap_clnt.c: Likewise.
20397         * sunrpc/pmap_prot.c: Likewise.
20398         * sunrpc/pmap_prot2.c: Likewise.
20399         * sunrpc/pmap_rmt.c: Likewise.
20400         * sunrpc/publickey.c: Likewise.
20401         * sunrpc/rpc_cmsg.c: Likewise.
20402         * sunrpc/rpc_common.c: Likewise.
20403         * sunrpc/rpc_dtable.c: Likewise.
20404         * sunrpc/rpc_prot.c: Likewise.
20405         * sunrpc/rpc_thread.c: Likewise.
20406         * sunrpc/rtime.c: Likewise.
20407         * sunrpc/svc.c: Likewise.
20408         * sunrpc/svc_auth.c: Likewise.
20409         * sunrpc/svc_authux.c: Likewise.
20410         * sunrpc/svc_raw.c: Likewise.
20411         * sunrpc/svc_run.c: Likewise.
20412         * sunrpc/svc_simple.c: Likewise.
20413         * sunrpc/svc_tcp.c: Likewise.
20414         * sunrpc/svc_udp.c: Likewise.
20415         * sunrpc/svc_unix.c: Likewise.
20416         * sunrpc/svcauth_des.c: Likewise.
20417         * sunrpc/xcrypt.c: Likewise.
20418         * sunrpc/xdr.c: Likewise.
20419         * sunrpc/xdr_array.c: Likewise.
20420         * sunrpc/xdr_float.c: Likewise.
20421         * sunrpc/xdr_intXX_t.c: Likewise.
20422         * sunrpc/xdr_mem.c: Likewise.
20423         * sunrpc/xdr_rec.c: Likewise.
20424         * sunrpc/xdr_ref.c: Likewise.
20425         * sunrpc/xdr_sizeof.c: Likewise.
20426         * sunrpc/xdr_stdio.c: Likewise.
20427
20428 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20429
20430         [BZ #12650]
20431         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20432         * sysdeps/ia64/dl-tls.h: Likewise.
20433         * sysdeps/powerpc/dl-tls.h: Likewise.
20434         * sysdeps/s390/dl-tls.h: Likewise.
20435         * sysdeps/sh/dl-tls.h: Likewise.
20436         * sysdeps/sparc/dl-tls.h: Likewise.
20437         * sysdeps/x86_64/dl-tls.h: Likewise.
20438         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20439
20440 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20441
20442         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20443         rpath element also skip the following colon.
20444         (expand_dynamic_string_token): Add is_path parameter and pass
20445         down to DL_DST_REQUIRED and _dl_dst_substitute.
20446         (decompose_rpath): Call expand_dynamic_string_token with
20447         non-zero is_path.  Ignore empty rpaths.
20448         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20449         with zero is_path.
20450
20451 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20452
20453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20454         Make cancelable.
20455
20456 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20457
20458         [BZ #12655]
20459         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20460         Patch by Filipe David Manana <fdmanana@apache.org>.
20461
20462 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20463
20464         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20465         Maintain aligned stack.
20466         (CHECK_RSP): Remove unused macro.
20467
20468 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20469
20470         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20471         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20472
20473 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20474
20475         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20476
20477         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20478
20479 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20480
20481         [BZ #12518]
20482         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20483         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20484         * sysdeps/x86_64/memmove.c: New file.
20485         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20486         (memcpy): Renamed to ...
20487         (__new_memcpy): This.
20488         (memcpy): Provide GLIBC_2_14 memcpy.
20489         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20490         (memcpy): Provide GLIBC_2_2_5 memcpy.
20491
20492 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20493
20494         [BZ #12631]
20495         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20496
20497 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20498
20499         * misc/syncfs.c: New file.
20500         * misc/Makefile (routines): Add syncfs.
20501         * posix/unistd.h: Declare syncfs.
20502         * sysdeps/unix/syscalls.list: Add syncfs.
20503
20504 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20505
20506         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20507         open_by_handle_at.
20508         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20509         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20510         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20511         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20512         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20513         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20514         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20515
20516 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20517
20518         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20519         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20520         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20521         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20522         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20523         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20524         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20525
20526         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20527         sync_file_range.c with -fexceptions.
20528         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20529         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20530         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20531         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20532         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20533         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20534         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20535         sync_file_range as cancellation point
20536         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20537         now a wrapper around __call_sync_file_range with cancellation handling.
20538         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20539         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20540         function name to __call_sync_file_range.
20541         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20542         Add call_sync_file_range.
20543
20544 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20545
20546         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20547         bits/timex.h.
20548
20549 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20550
20551         * iconv/iconv.h: Fix typo in comment.
20552         * io/fcntl.h: Likewise.
20553         * libio/stdio.h: Likewise.
20554         * posix/spawn.h: Likewise.
20555         * posix/unistd.h: Likewise.
20556         * stdlib/stdlib.h: Likewise.
20557         * time/time.h: Likewise.
20558         * wcsmbs/wchar.h: Likewise.
20559
20560         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20561         open_by_handle): Add.
20562         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20563         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20564         Augment a few comments.
20565         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20566         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20567         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20568         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20569         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20570         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20571         open_by_handle.
20572
20573         * io/fcntl.h (AT_EMPTY_PATH): Define.
20574
20575 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20576
20577         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20578         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20579         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20580         to...
20581         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20582         * Versions.def: Add GLIBC_2.14.
20583         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20584         Export.
20585
20586 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20587
20588         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20589         round counter.
20590         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20591
20592 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20593
20594         [BZ #12597]
20595         * string/test-strncmp.c (do_page_test): New function.
20596         (check2): Likewise.
20597         (test_main): Call check2.
20598         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20599
20600 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20601
20602         [BZ #12587]
20603         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20604         Handle cache information in CPU leaf 4.
20605         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20606
20607 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20608
20609         [BZ #12583]
20610         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20611         character representation.
20612         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20613
20614 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20615
20616         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20617         END(__isnan) to END(__isnanf) to match function entry point/label
20618         EALIGN(__isnanf,...).
20619
20620 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20621
20622         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20623
20624 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20625
20626         [BZ #12510]
20627         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20628         copy from the symbol referenced in the relocation to initialize the
20629         used variable.
20630         Patch by Piotr Bury <pbury@goahead.com>.
20631         * elf/Makefile: Add rules to build and tst-unique3.
20632         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20633         * elf/tst-unique3.cc: New file.
20634         * elf/tst-unique3.h: New file.
20635         * elf/tst-unique3lib.cc: New file.
20636         * elf/tst-unique3lib2.cc: New file.
20637
20638         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20639
20640 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20641
20642         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20643         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20644         to _start.
20645
20646 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20647
20648         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20649         to-be-loaded object along a path to loader is ld.so.
20650
20651 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20652             Ulrich Drepper  <drepper@gmail.com>
20653
20654         * sysdeps/x86_64/memset.S: After aligning destination, code
20655         branches to different locations depending on the value of
20656         misalignment, when multiarch is enabled. Fix this.
20657
20658 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20659
20660         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20661         Set _x86_64_preferred_memory_instruction for AMD processsors.
20662         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20663         Set bit_Prefer_SSE_for_memop for AMD processors.
20664
20665 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20666
20667         * libio/fmemopen.c (fmemopen): Optimize a bit.
20668
20669 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20670
20671         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20672
20673 2011-03-03  Roland McGrath  <roland@redhat.com>
20674
20675         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20676
20677 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20678
20679         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20680         __bzero_ultra1 instead of __memset_ultra1.
20681
20682 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20683             Ulrich Drepper  <drepper@gmail.com>
20684
20685         [BZ #12509]
20686         * include/link.h (struct link_map): Add l_orig_initfini.
20687         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20688         returning unsuccessfully.
20689         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20690         close of a file loaded at startup, restore the original l_initfini
20691         list.
20692         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20693         list, store the pointer.
20694         * elf/Makefile ($(objpfx)noload-mem): New rule.
20695         (noload-ENV): Define.
20696         (tests): Add $(objpfx)noload-mem.
20697         * elf/noload.c: Include <memcheck.h>.
20698         (main): Call mtrace.  Close all opened handles.
20699
20700 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20701
20702         [BZ #12454]
20703         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20704         dependencies are missing.
20705
20706 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20707
20708         Fix __if_freereq crash: Unlike the generic version which uses free,
20709         Hurd needs munmap.
20710         * sysdeps/mach/hurd/ifreq.h: New file.
20711
20712 2011-01-27  Petr Baudis  <pasky@suse.cz>
20713             Ulrich Drepper  <drepper@gmail.com>
20714
20715         [BZ 12445]#
20716         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20717         to extend_alloca().
20718         * stdio-common/bug23.c: New file.
20719         * stdio-common/Makefile (tests): Add bug23.
20720
20721 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20722             Ulrich Drepper  <drepper@gmail.com>
20723
20724         [BZ #12489]
20725         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20726         before performing relro protection.  At old place add assertion
20727         to make sure nothing changed.
20728
20729 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20730             Glauber de Oliveira Costa  <glommer@gmail.com>
20731
20732         * elf/elf.h: Add new ARM TLS relocs.
20733
20734 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20735
20736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20737         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20738         cast from r3.
20739         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20740         'tests' variable.
20741         * sysdeps/wordsize-64/tst-writev.c: New file.
20742
20743 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20744
20745         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20746         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20747         insns in _dl_start to prevent a TOC reference before relocs are
20748         resolved.
20749
20750 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20751
20752         [BZ #12469]
20753         * Makeconfig: Remove RANLIB definition.
20754         * Makerules: Don't use RANLIB.
20755         * aclocal.m4: Remove ranlib test.
20756         * configure.in: No need to check for ranlib.
20757         * elf/rtld-Rules: Don't use RANLIB.
20758
20759 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20760
20761         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20762         protection macro.
20763         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20764         inclusion protection macro.
20765
20766         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20767         SIGRTMIN and SIGRTMAX and print information in that case only when
20768         SIGRTMIN is defined.
20769
20770 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20771
20772         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20773         arginfo fn returning -1.
20774
20775         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20776         and thousands string is zero terminated.
20777
20778 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20779
20780         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20781         sysdeps/unix/sysv/linux/bits/socket.h.
20782
20783 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20784
20785         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20786         (__CPU_COUNT): Remove old macros.
20787         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20788         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20789         (__CPU_ALLOC, __CPU_FREE): Add macros.
20790         (__sched_cpualloc, __sched_cpufree): Add declarations.
20791
20792 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20793
20794         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20795         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20796         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20797         (readdhstai): Return value of addhstaiX call.
20798         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20799         (addgrbyX): Return value returned by cache_addgr.
20800         (readdgrbyname): Return value returned by addgrbyX.
20801         (readdgrbygid): Likewise.
20802         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20803         (addpwbyX): Return value returned by cache_addpw.
20804         (readdpwbyname): Return value returned by addhstbyX.
20805         (readdpwbyuid): Likewise.
20806         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20807         (addservbyX): Return value returned by cache_addserv.
20808         (readdservbyname): Return value returned by addservbyX:
20809         (readdservbyport): Likewise.
20810         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20811         (addhstbyX): Return value returned by cache_addhst.
20812         (readdhstbyname): Return value returned by addhstbyX.
20813         (readdhstbyaddr): Likewise.
20814         (readdhstbynamev6): Likewise.
20815         (readdhstbyaddrv6): Likewise.
20816         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20817         (readdinitgroups): Return value returned by addinitgroupsX.
20818         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20819         (prune_cache): Keep track of timeout value of re-added entries.
20820         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20821         * nscd/nscd.h: Adjust prototypes of readd* functions.
20822
20823 2011-02-04  Roland McGrath  <roland@redhat.com>
20824
20825         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20826         (nis_stats): Likewise.
20827         * nis/nis_modify.c (nis_modify): Likewise.
20828         * nis/nis_remove.c (nis_remove): Likewise.
20829         * nis/nis_add.c (nis_add): Likewise.
20830
20831         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20832
20833         * posix/fnmatch_loop.c: Add some consts.
20834
20835         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20836
20837 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20838
20839         [BZ #12460]
20840         * config.make.in (config-cflags-novzeroupper): Define.
20841         * configure.in: Substitute libc_cv_cc_novzeroupper.
20842         * elf/Makefile (AVX-CFLAGS): Define.
20843         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20844         (CFLAGS-tst-auditmod4a.c): Likewise.
20845         (CFLAGS-tst-auditmod4b.c): Likewise.
20846         (CFLAGS-tst-auditmod6b.c): Likewise.
20847         (CFLAGS-tst-auditmod6c.c): Likewise.
20848         (CFLAGS-tst-auditmod7b.c): Likewise.
20849         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20850
20851 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20852
20853         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20854         function to the callback.
20855         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20856
20857 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20858
20859         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20860         of errno.
20861
20862 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20863
20864         [BZ #11724]
20865         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20866         of constructors.
20867         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20868         of destructors.
20869         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20870
20871         [BZ #11724]
20872         * elf/Makefile: Add rules to build and run new test.
20873         * elf/tst-initorder.c: New file.
20874         * elf/tst-initorder.exp: New file.
20875         * elf/tst-initordera1.c: New file.
20876         * elf/tst-initordera2.c: New file.
20877         * elf/tst-initordera3.c: New file.
20878         * elf/tst-initordera4.c: New file.
20879         * elf/tst-initorderb1.c: New file.
20880         * elf/tst-initorderb2.c: New file.
20881         * elf/tst-order-a1.c: New file.
20882         * elf/tst-order-a2.c: New file.
20883         * elf/tst-order-a3.c: New file.
20884         * elf/tst-order-a4.c: New file.
20885         * elf/tst-order-b1.c: New file.
20886         * elf/tst-order-b2.c: New file.
20887         * elf/tst-order-main.c: New file.
20888         New test case by George Gensure <werkt0@gmail.com>.
20889
20890 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20891
20892         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20893         decoding ACE if AI_CANONIDN.
20894
20895 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20896
20897         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20898
20899 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20900
20901         * version.h (RELEASE): Bump for 2.13 release.
20902         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20903
20904         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20905
20906         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20907         MADV_NOHUGEPAGE.
20908         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20909         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20910         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20911         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20912         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20913         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20914
20915         * posix/getconf.c: Update copyright year.
20916         * catgets/gencat.c: Likewise.
20917         * csu/version.c: Likewise.
20918         * debug/catchsegv.sh: Likewise.
20919         * debug/xtrace.sh: Likewise.
20920         * elf/ldconfig.c: Likewise.
20921         * elf/ldd.bash.in: Likewise.
20922         * elf/sprof.c (print_version): Likewise.
20923         * iconv/iconv_prog.c: Likewise.
20924         * iconv/iconvconfig.c: Likewise.
20925         * locale/programs/locale.c: Likewise.
20926         * locale/programs/localedef.c: Likewise.
20927         * malloc/memusage.sh: Likewise.
20928         * malloc/mtrace.pl: Likewise.
20929         * nscd/nscd.c (print_version): Likewise.
20930         * nss/getent.c: Likewise.
20931
20932         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20933         PF_CAIF, and PF_ALG.
20934         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20935
20936 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20937
20938         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20939         (modules-names): Use them.
20940         (ifunc-test-modules, ifunc-pie-tests): Define.
20941         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20942         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20943         (test-extras): Likewise.
20944         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20945         $(compile-command.c).
20946         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20947         (all-built-dso): Define.
20948         (check-textrel.out, check-execstack.out): Depend on it.
20949
20950         * configure.in: Don't override --enable-multi-arch.
20951
20952 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20953
20954         [BZ #6812]
20955         * nscd/hstcache.c (tryagain): Define.
20956         (cache_addhst): Return tryagain not notfound for temporary errors.
20957         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20958         failed.
20959
20960 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20961
20962         [BZ #10563]
20963         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20964         to make the syscall.
20965         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20966
20967         [BZ #12378]
20968         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20969         and fall back to matching as normal character if the string ends before
20970         the matching ']' is found.  This is what POSIX requires.
20971         * posix/testfnm.c: Adjust test result.
20972         * posix/globtest.sh: Adjust test result.  Add new test.
20973         * posix/tst-fnmatch.input: Likewise.
20974         * posix/tst-fnmatch2.c: Add new test.
20975
20976 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20977
20978         * elf/Makefile (check-execstack): Revert last change.  Depend on
20979         check-execstack.h.
20980         (check-execstack.h): New target.
20981         (generated): Add check-execstack.h.
20982         * elf/check-execstack.c: Include "check-execstack.h".
20983         (main): Revert last change.
20984         (handle_file): Return zero if GNU_STACK is absent and
20985         DEFAULT_STACK_PERMS doesn't include PF_X.
20986
20987 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20988
20989         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20990         in child fails because the descriptor is already closed.
20991         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20992         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20993         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20994
20995         [BZ #12397]
20996         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
20997         syscall.
20998
20999         [BZ #10484]
21000         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
21001         temporary buffer used to handle multi lookups locally.
21002         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
21003
21004 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21005
21006         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
21007         loader is ld.so.
21008
21009 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
21010
21011         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
21012         alignment for SSE2.
21013
21014 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21015
21016         [BZ #12394]
21017         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
21018         characters.  When rounding increased number of integer digits recompute
21019         number of groups.
21020         * stdio-common/tst-grouping.c: New file.
21021         * stdio-common/Makefile: Add rules to build and run tst-grouping.
21022
21023 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
21024
21025         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
21026         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
21027
21028         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
21029         void.
21030         * bits/select.h: Likewise.
21031
21032 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
21033
21034         * po/ja.po: Update from translation team.
21035
21036 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
21037
21038         [BZ #11155]
21039         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
21040         implementation just like for lxstat, fxstatat, et al.
21041
21042 2010-12-27  Jim Meyering  <meyering@redhat.com>
21043
21044         [BZ #12348]
21045         * posix/regexec.c (build_trtable): Return failure indication upon
21046         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21047
21048 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
21049
21050         [BZ #12201]
21051         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
21052         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
21053         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
21054         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
21055
21056         [BZ #12207]
21057         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
21058
21059         [BZ #12204]
21060         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
21061         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
21062
21063 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21064
21065         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
21066         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
21067         script has SORT_BY_INIT_PRIORITY.
21068         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
21069         NO_CTORS_DTORS_SECTIONS is defined.
21070         * elf/soinit.c: Likewise.
21071         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
21072         NO_CTORS_DTORS_SECTIONS is defined.
21073         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21074         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21075         * sysdeps/sh/init-first.c: Likewise.
21076         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21077
21078 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
21079
21080         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21081         always use the slow path.
21082
21083 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
21084
21085         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21086         similar rule which adds the sysdep directories to the header search in
21087         order to pick up the correct platform stackinfo.h.
21088         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21089         perform test if it is, otherwise return successfully without testing.
21090         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21091         DEFAULT_STACK_PERMS define in stackinfo.h.
21092         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21093         defined in stackinfo.h.
21094         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21095         DEFAULT_STACK_PERMS defined in stackinfo.h.
21096         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21097         * sysdeps/ia64/stackinfo.h: Likewise.
21098         * sysdeps/s390/stackinfo.h: Likewise.
21099         * sysdeps/sh/stackinfo.h: Likewise.
21100         * sysdeps/sparc/stackinfo.h: Likewise.
21101         * sysdeps/x86_64/stackinfo.h: Likewise.
21102         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21103         PF_X for powerpc64.  Retain PF_X for powerpc32.
21104
21105 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21106
21107         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21108         accurately.
21109         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21110         GETDENTS_64BIT_ALIGNED.
21111
21112 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21113
21114         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21115
21116 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21117
21118         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21119         _GNU_SOURCE.
21120
21121         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21122         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21123         Remove __restrict.
21124         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21125         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21126
21127 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21128
21129         [BZ #11655]
21130         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21131         are initialized.
21132
21133 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21134
21135         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21136
21137 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21138
21139         * po/it.po: Update from translation team.
21140
21141 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21142
21143         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21144         unused codes.
21145
21146 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21147
21148         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21149
21150 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21151
21152         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21153         specially.
21154         (gaih_getanswer_slice): Likewise.
21155
21156 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21157
21158         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21159
21160 2010-05-31  Petr Baudis  <pasky@suse.cz>
21161
21162         [BZ #11149]
21163         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21164         silently even in the chroot mode.
21165
21166 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21167
21168         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21169         last patch a bit.  Pretty printing
21170
21171 2010-05-31  Petr Baudis <pasky@suse.cz>
21172
21173         [BZ #10085]
21174         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21175         initialization of skip_initgroups_dyn.
21176
21177 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21178
21179         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21180         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21181
21182 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21183
21184         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21185
21186 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21187
21188         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21189         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21190         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21191         ($(objpfx)tst-fnmatch-mem): New rule.
21192         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21193         * posix/tst-fnmatch.c (main): Call mtrace.
21194
21195 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21196
21197         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21198         Support Intel processor model 6 and model 0x2c.
21199
21200 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21201
21202         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21203           signed comparison.
21204
21205 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21206
21207         [BZ #12205]
21208         * string/test-strncasecmp.c (check_result): New function.
21209         (do_one_test): Use it.
21210         (check1): New function.
21211         (test_main): Use it.
21212         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21213         Support strcasecmp and strncasecmp.
21214
21215 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21216
21217         [BZ #12194]
21218         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21219         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21220
21221 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21222
21223         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21224         IFUNC support.
21225         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21226         memset-x86-64.
21227         * sysdeps/x86_64/multiarch/bzero.S: New file.
21228         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21229         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21230         * sysdeps/x86_64/multiarch/memset.S: New file.
21231         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21232         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21233         Set bit_Prefer_SSE_for_memop for Intel processors.
21234         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21235         Define.
21236         (index_Prefer_SSE_for_memop): Define.
21237         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21238
21239 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21240
21241         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21242         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21243
21244 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21245
21246         [BZ #12191]
21247         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21248         (__x86_64_raw_data_cache_size_half): Likewise.
21249         (__x86_64_raw_shared_cache_size): Likewise.
21250         (__x86_64_raw_shared_cache_size_half): Likewise.
21251
21252         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21253         (__x86_64_raw_data_cache_size_half): Likewise.
21254         (__x86_64_raw_shared_cache_size): Likewise.
21255         (__x86_64_raw_shared_cache_size_half): Likewise.
21256         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21257         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21258         and __x86_64_raw_shared_cache_size_half.  Round
21259         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21260         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21261         to multiple of 256 bytes.
21262
21263 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
21264
21265         [BZ #12167]
21266         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21267         of inacessible symlinks.  Verify result of symlink before returning it.
21268         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21269         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21270
21271 2010-10-28  Erich Ritz  <erichritz@gmail.com>
21272
21273         * math/math.h (isinf): Fix typo in comment.
21274
21275 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
21276
21277         * po/da.po: Update from translation team.
21278
21279 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
21280
21281         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21282         is added to the list.
21283
21284 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21285             Ulrich Drepper  <drepper@gmail.com>
21286
21287         * elf/dl-object.c (_dl_new_object): Don't append the new object to
21288         the global list here.  Move code to...
21289         (_dl_add_to_namespace_list): ...here.  New function.
21290         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21291         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21292         * elf/dl-load.c (lose): Don't remove the element from the list.
21293         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21294         (_dl_map_object): Likewise.
21295
21296 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21297
21298         [BZ #12159]
21299         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21300         into all bytes of SSE register.
21301         Patch by Richard Li <richardpku@gmail.com>.
21302
21303 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21304
21305         [BZ #12140]
21306         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21307         perturbing.
21308
21309 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21310
21311         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21312         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21313         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21314         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21316         submachine.
21317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21318
21319 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21320
21321         * include/dlfcn.h (__RTLD_SECURE): Define.
21322         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21323         mode & __RTLD_SECURE instead.
21324         (open_path): Rename preloaded parameter to secure.
21325         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21326         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21327         * elf/dl-deps.c (openaux): Likewise.
21328         * elf/rtld.c (struct map_args): Remove is_preloaded.
21329         (map_doit): Don't use it.
21330         (dl_main): Likewise.
21331         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21332         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21333
21334 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21335
21336         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21337         (sysd-rules-targets): Remove duplicates.
21338         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21339         rtld-%.$o dependency.
21340
21341 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21342
21343         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21344         _dl_map_object do it.
21345
21346 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21347
21348         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21349         fast fma builtins, define the macros in the C99 standard.
21350         (FP_FAST_FMAF): Likewise.
21351         (FP_FAST_FMAL): Likewise.
21352         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21353
21354         * bits/mathdef.h: Update copyright year.
21355         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21356
21357 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21358
21359         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21360         builtins, define the macros in the C99 standard.
21361         (FP_FAST_FMAF): Likewise.
21362         (FP_FAST_FMAL): Likewise.
21363         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21364         multiply/add.
21365         (FP_FAST_FMAF): Likewise.
21366
21367 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21368
21369         [BZ #3268]
21370         * math/libm-test.inc (fma_test): Some new testcases.
21371         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21372         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21373         y and infinite z.  Do multiplication by C already in long double.
21374         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21375         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21376         y and infinite z.  Do bitwise or of inexact bit into u.d.
21377         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21378         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21379         * sysdeps/i386/fpu/s_fma.S: Removed.
21380         * sysdeps/i386/fpu/s_fmal.S: Removed.
21381
21382 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21383
21384         [BZ #3268]
21385         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21386         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21387         computation is not scheduled after fetestexcept.  Fix value
21388         of minimum denormal long double.
21389
21390 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21391
21392         [BZ #3268]
21393         * math/libm-test.inc (fma_test): Add some more tests.
21394         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21395         correctly.
21396
21397 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21398
21399         * scripts/data/localplt-s390-linux-gnu.data: New file.
21400         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21401
21402 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21403
21404         [BZ #3268]
21405         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21406         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21407         instead of dbl-64.
21408         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21409         inlines.
21410         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21411         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21412         if one of x and y is very large and the other is subnormal.
21413         * sysdeps/s390/fpu/s_fmaf.c: New file.
21414         * sysdeps/s390/fpu/s_fma.c: New file.
21415         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21416         * sysdeps/powerpc/fpu/s_fma.S: New file.
21417         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21418         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21419         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21420
21421 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21422
21423         [BZ #3268]
21424         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21425         fma tests.
21426         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21427         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21428         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21429         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21430         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21431         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21432         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21433
21434 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21435
21436         [BZ #12078]
21437         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21438         * posix/bug-regex31.input: Add test case.
21439
21440 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21441
21442         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21443         * posix/bug-regex31.input: New file.
21444
21445         [BZ #12078]
21446         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21447         (parse_sub_exp): Fix last change, use postorder.
21448
21449         * posix/bug-regex31.c: New file.
21450         * posix/Makefile: Add rules to build and run bug-regex31.
21451
21452         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21453
21454         [BZ #12078]
21455         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21456
21457         [BZ #12108]
21458         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21459         to have entries in sys_siglist.
21460
21461         [BZ #12093]
21462         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21463         be NULL.
21464
21465 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21466
21467         [BZ #3268]
21468         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21469         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21470         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21471         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21472         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21473         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21474         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21475         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21476         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21477         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21478         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21479         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21480         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21481         * math/ftestexcept.c (fetestexcept): Likewise.
21482         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21483         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21484         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21485         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21486         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21487         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21488         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21489
21490 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21491
21492         [BZ #12107]
21493         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21494         newline.
21495
21496 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21497
21498         * string/bug-strstr1.c: New file.
21499         * string/Makefile: Add rules to build and run bug-strstr1.
21500
21501 2010-10-05  Eric Blake  <eblake@redhat.com>
21502
21503         [BZ #12092]
21504         * string/str-two-way.h (two_way_long_needle): Always clear memory
21505         when skipping input due to the shift table.
21506
21507 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21508
21509         [BZ #12005]
21510         * malloc/mcheck.c: Handle large requests.
21511
21512         [BZ #12077]
21513         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21514         for strncmp and strncasecmp.
21515         * string/stratcliff.c: Add tests for strcmp and strncmp.
21516         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21517
21518 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21519
21520         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21521         __set_fpscr.
21522
21523 2010-09-30  Andreas Jaeger  <aj@suse.de>
21524
21525         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21526         (CGROUP_SUPER_MAGIC): Define.
21527         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21528         Handle btrfs and cgroup file systems.
21529         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21530         Likewise.
21531
21532 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21533
21534         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21535         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21536
21537 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21538
21539         [BZ #12067]
21540         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21541         trying to locate the ELF header.
21542
21543 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21544
21545         [BZ #11611]
21546         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21547         Mask out sign-bit copies when constructing f_fsid.
21548
21549 2010-09-24  Petr Baudis <pasky@suse.cz>
21550
21551         * debug/stack_chk_fail_local.c: Add missing licence exception.
21552         * debug/warning-nop.c: Likewise.
21553
21554 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21555
21556         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21557         implementing getdents64 using getdents syscall, set d_type if
21558         __ASSUME_GETDENTS32_D_TYPE.
21559
21560 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21561
21562         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21563         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21564
21565 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21566
21567         [BZ #12037]
21568         * posix/unistd.h: Undo change of feature selection for ftruncate from
21569         2010-01-11.
21570
21571 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21572
21573         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21574         detection.
21575
21576 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21577
21578         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21579         fanotify_mark.
21580         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21581
21582 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21583
21584         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21585         variables after CHECK_SP call.
21586         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21587
21588 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21589             Ulrich Drepper  <drepper@redhat.com>
21590
21591         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21592         re-relocationg ld.so.
21593         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21594         _dl_init_paths call.
21595         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21596         here anymore.
21597
21598 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21599
21600         * resolv/res_init.c (__res_vinit): Count the default server we added.
21601
21602 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21603             Ulrich Drepper  <drepper@redhat.com>
21604
21605         [BZ #11968]
21606         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21607         (____longjmp_chk): Use %ebx for saving value across system call.
21608         Add unwind info.
21609
21610 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21611
21612         * manual/Makefile: Don't mix pattern rules with normal rules.
21613
21614 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21615
21616         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21617         operation.
21618         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21619         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21620         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21621         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21622         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21623         Likewise.
21624
21625 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21626
21627         [BZ #11979]
21628         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21629         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21630
21631 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21632
21633         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21634         * sysdeps/x86_64/addmul_1.S: Likewise.
21635         * sysdeps/x86_64/lshift.S: Likewise.
21636         * sysdeps/x86_64/mul_1.S: Likewise.
21637         * sysdeps/x86_64/rshift.S: Likewise.
21638         * sysdeps/x86_64/sub_n.S: Likewise.
21639         * sysdeps/x86_64/submul_1.S: Likewise.
21640
21641 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21642
21643         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21644         Define __sched_param instead of SCHED_* and sched_param when
21645         <bits/sched.h> is included with __need_schedparam defined.
21646         * bits/sched.h [__need_schedparam]
21647         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21648         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21649         (__defined_schedparam): Define to 1.
21650         (__sched_param): New structure, identical to sched_param.
21651         (__need_schedparam): Undefine.
21652
21653 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21654
21655         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21656         (epoll_create1): Declare.
21657
21658         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21659
21660 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21661
21662         [BZ #7066]
21663         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21664         shifting retval into place.
21665
21666 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21667
21668         * nis/rpcsvc/nis.h: Update copyright notice.
21669         * nis/rpcsvc/nis.x: Likewise.
21670         * nis/rpcsvc/nis_callback.h: Likewise.
21671         * nis/rpcsvc/nis_callback.x: Likewise.
21672         * nis/rpcsvc/nis_object.x: Likewise.
21673         * nis/rpcsvc/nis_tags.h: Likewise.
21674         * nis/rpcsvc/yp.h: Likewise.
21675         * nis/rpcsvc/yp.x: Likewise.
21676         * nis/rpcsvc/ypupd.h: Likewise.
21677         * nis/yp_xdr.c: Likewise.
21678         * nis/ypupdate_xdr.c: Likewise.
21679
21680         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21681         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21682         (pmap_getport): Use __libc_rpc_getport.
21683         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21684         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21685         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21686
21687 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21688
21689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21690         fanotify_mark.
21691
21692 2010-08-27  Roland McGrath  <roland@redhat.com>
21693
21694         * sysdeps/i386/i686/multiarch/Makefile
21695         (CFLAGS-varshift.c): New variable.
21696
21697 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21698
21699         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21700         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21701
21702         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21703
21704         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21705
21706 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21707
21708         * sysdeps/x86_64/strlen.S: Unroll the loop.
21709         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21710         strlen-sse2 strlen-sse2-bsf.
21711         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21712         __strlen_no_bsf if bit_Slow_BSF is set.
21713         (__strlen_sse42): Removed.
21714         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21715         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21716
21717 2010-08-25  Roland McGrath  <roland@redhat.com>
21718
21719         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21720         * sysdeps/x86_64/multiarch/varshift.c: New file.
21721         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21722         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21723         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21724         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21725
21726 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21727
21728         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21729         strlen-sse2 strlen-sse2-bsf.
21730         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21731         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21732         (__strlen_sse2): Removed.
21733         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21734         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21735         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21736         bit_Slow_BSF for Atom.
21737         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21738         (index_Slow_BSF): Define.
21739         (HAS_SLOW_BSF): Define.
21740
21741 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21742
21743         [BZ #10851]
21744         * resolv/res_init.c (__res_vinit): When no server address at all
21745         is given default to loopback.
21746
21747 2010-08-24  Roland McGrath  <roland@redhat.com>
21748
21749         * configure.in: Remove config-name.h generation.
21750         * configure: Regenerated.
21751         * config-name.in: File removed.
21752         * scripts/config-uname.sh: New file.
21753         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21754         ($(objdir)config-name.h): New target.
21755
21756         * sunrpc/rpc_parse.h: Avoid nested comment.
21757
21758 2010-08-24  Richard Henderson  <rth@redhat.com>
21759             Ulrich Drepper  <drepper@redhat.com>
21760             H.J. Lu  <hongjiu.lu@intel.com>
21761
21762         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21763         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21764         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21765         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21766         _mm_alignr_epi8 with _mm_loadu_si128.
21767         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21768         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21769         (__m128i_shift_right): Removed.
21770         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21771         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21772         * sysdeps/x86_64/multiarch/varshift.h: New file.
21773         * sysdeps/x86_64/multiarch/varshift.S: New file.
21774
21775 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21776
21777         * configure.in: Move assembler checks to before sysdep dir checking.
21778
21779 2010-08-20  Petr Baudis  <pasky@suse.cz>
21780
21781         * LICENSES: Sync the sunrpc license.
21782
21783 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21784
21785         * sunrpc/auth_des.c: Update copyright notice once again.
21786         * sunrpc/auth_none.c: Likewise.
21787         * sunrpc/auth_unix.c: Likewise.
21788         * sunrpc/authdes_prot.c: Likewise.
21789         * sunrpc/authuxprot.c: Likewise.
21790         * sunrpc/bindrsvprt.c: Likewise.
21791         * sunrpc/clnt_gen.c: Likewise.
21792         * sunrpc/clnt_perr.c: Likewise.
21793         * sunrpc/clnt_raw.c: Likewise.
21794         * sunrpc/clnt_simp.c: Likewise.
21795         * sunrpc/clnt_tcp.c: Likewise.
21796         * sunrpc/clnt_udp.c: Likewise.
21797         * sunrpc/clnt_unix.c: Likewise.
21798         * sunrpc/des_crypt.c: Likewise.
21799         * sunrpc/des_soft.c: Likewise.
21800         * sunrpc/get_myaddr.c: Likewise.
21801         * sunrpc/getrpcport.c: Likewise.
21802         * sunrpc/key_call.c: Likewise.
21803         * sunrpc/key_prot.c: Likewise.
21804         * sunrpc/openchild.c: Likewise.
21805         * sunrpc/pm_getmaps.c: Likewise.
21806         * sunrpc/pm_getport.c: Likewise.
21807         * sunrpc/pmap_clnt.c: Likewise.
21808         * sunrpc/pmap_prot.c: Likewise.
21809         * sunrpc/pmap_prot2.c: Likewise.
21810         * sunrpc/pmap_rmt.c: Likewise.
21811         * sunrpc/rpc/auth.h: Likewise.
21812         * sunrpc/rpc/auth_unix.h: Likewise.
21813         * sunrpc/rpc/clnt.h: Likewise.
21814         * sunrpc/rpc/des_crypt.h: Likewise.
21815         * sunrpc/rpc/key_prot.h: Likewise.
21816         * sunrpc/rpc/netdb.h: Likewise.
21817         * sunrpc/rpc/pmap_clnt.h: Likewise.
21818         * sunrpc/rpc/pmap_prot.h: Likewise.
21819         * sunrpc/rpc/pmap_rmt.h: Likewise.
21820         * sunrpc/rpc/rpc.h: Likewise.
21821         * sunrpc/rpc/rpc_des.h: Likewise.
21822         * sunrpc/rpc/rpc_msg.h: Likewise.
21823         * sunrpc/rpc/svc.h: Likewise.
21824         * sunrpc/rpc/svc_auth.h: Likewise.
21825         * sunrpc/rpc/types.h: Likewise.
21826         * sunrpc/rpc/xdr.h: Likewise.
21827         * sunrpc/rpc_clntout.c: Likewise.
21828         * sunrpc/rpc_cmsg.c: Likewise.
21829         * sunrpc/rpc_common.c: Likewise.
21830         * sunrpc/rpc_cout.c: Likewise.
21831         * sunrpc/rpc_dtable.c: Likewise.
21832         * sunrpc/rpc_hout.c: Likewise.
21833         * sunrpc/rpc_main.c: Likewise.
21834         * sunrpc/rpc_parse.c: Likewise.
21835         * sunrpc/rpc_parse.h: Likewise.
21836         * sunrpc/rpc_prot.c: Likewise.
21837         * sunrpc/rpc_sample.c: Likewise.
21838         * sunrpc/rpc_scan.c: Likewise.
21839         * sunrpc/rpc_scan.h: Likewise.
21840         * sunrpc/rpc_svcout.c: Likewise.
21841         * sunrpc/rpc_tblout.c: Likewise.
21842         * sunrpc/rpc_util.c: Likewise.
21843         * sunrpc/rpc_util.h: Likewise.
21844         * sunrpc/rpcinfo.c: Likewise.
21845         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21846         * sunrpc/rpcsvc/key_prot.x: Likewise.
21847         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21848         * sunrpc/rpcsvc/mount.x: Likewise.
21849         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21850         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21851         * sunrpc/rpcsvc/rex.x: Likewise.
21852         * sunrpc/rpcsvc/rstat.x: Likewise.
21853         * sunrpc/rpcsvc/rusers.x: Likewise.
21854         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21855         * sunrpc/rpcsvc/spray.x: Likewise.
21856         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21857         * sunrpc/rtime.c: Likewise.
21858         * sunrpc/svc.c: Likewise.
21859         * sunrpc/svc_auth.c: Likewise.
21860         * sunrpc/svc_authux.c: Likewise.
21861         * sunrpc/svc_raw.c: Likewise.
21862         * sunrpc/svc_run.c: Likewise.
21863         * sunrpc/svc_simple.c: Likewise.
21864         * sunrpc/svc_tcp.c: Likewise.
21865         * sunrpc/svc_udp.c: Likewise.
21866         * sunrpc/svc_unix.c: Likewise.
21867         * sunrpc/svcauth_des.c: Likewise.
21868         * sunrpc/xcrypt.c: Likewise.
21869         * sunrpc/xdr.c: Likewise.
21870         * sunrpc/xdr_array.c: Likewise.
21871         * sunrpc/xdr_float.c: Likewise.
21872         * sunrpc/xdr_mem.c: Likewise.
21873         * sunrpc/xdr_rec.c: Likewise.
21874         * sunrpc/xdr_ref.c: Likewise.
21875         * sunrpc/xdr_sizeof.c: Likewise.
21876         * sunrpc/xdr_stdio.c: Likewise.
21877
21878         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21879         handling.
21880
21881 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21882
21883         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21884
21885 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21886
21887         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21888         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21889         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21890         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21891         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21892         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21893         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21894         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21895         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21896         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21897         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21898         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21899         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21900         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21901
21902 2010-07-26  Anton Blanchard  <anton@samba.org>
21903
21904         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21905         * malloc/arena.c (heap_trim): Likewise.
21906
21907 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21908
21909         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21910         here.  Not...
21911         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21912         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21913
21914 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21915
21916         * sysdeps/i386/elf/Makefile: New file.
21917
21918 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21919
21920         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21921         from fanotify_init.
21922         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21923         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21924
21925 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21926
21927         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21928         of strncasecmp_l.
21929         * sysdeps/multiarch/strcmp.S: Likewise.
21930
21931 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21932
21933         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21934         strncase_l-nonascii.
21935         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21936         Add strncase_l-ssse3.
21937         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21938         * sysdeps/x86_64/strcmp.S: Likewise.
21939         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21940         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21941         * sysdeps/x86_64/strncase.S: New file.
21942         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21943         * sysdeps/x86_64/strncase_l.S: New file.
21944         * string/Makefile (strop-tests): Add strncasecmp.
21945         * string/test-strncasecmp.c: New file.
21946
21947         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21948         warning.
21949
21950         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21951         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21952
21953 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21954
21955         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21956
21957 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21958
21959         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21960         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21961         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21962
21963 2010-05-01  Alan Modra  <amodra@gmail.com>
21964
21965         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21966         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21967         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21968         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21969         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21970         tidying.  Don't tail-call __sigjmp_save for static lib.
21971         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21972         save location.
21973         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21974         (CALL_MCOUNT): Add eh info, and nop after bl.
21975         (TAIL_CALL_SYSCALL_ERROR): New macro.
21976         (PSEUDO_RET): Use it.
21977         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21978         Correct save location of integer regs and cr.
21979         (_dl_profile_resolve): Correct cr save location.  Delete nops
21980         after bl when SHARED.  Reduce cfi size a little by better
21981         placement of cfi directives.
21982         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21983         make a stack frame.  Instead use parm save area as a temp.
21984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21985         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21987         Don't make a stack frame for parent, use parm save area.
21988         Increase child stack frame to 112 bytes.  Don't save unused reg,
21989         and adjust reg usage.  Set up cfi on error recovery and
21990         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21991         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21992         (__makecontext): Add dummy nop after jump to exit.
21993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21994         Use correct parm save area and cr save, reduce stack frame.
21995         Correct cfi for possible PSEUDO_RET frame setup.
21996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
21997         Branch to local label emitted by PSEUDO_RET rather than
21998         __syscall_error.
21999
22000 2010-08-12  Andreas Schwab  <schwab@redhat.com>
22001
22002         [BZ #11904]
22003         * locale/programs/locale.c (print_assignment): New function.
22004         (show_locale_vars): Use it.
22005
22006 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
22007
22008         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
22009         field.
22010         (struct statfs64): Likewise.
22011         (_STATFS_F_FLAGS): Define.
22012         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
22013         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22014         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
22015         (ST_VALID): Define locally.
22016         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
22017         __statvfs_getflags, use the provided value.
22018         * sysdeps/unix/sysv/linux/kernel-features.h: Define
22019         __ASSUME_STATFS_F_FLAGS.
22020
22021         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
22022
22023         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
22024         Add sys/fanotify.h.
22025         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
22026         fanotify_mask for GLIBC_2.13.
22027         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
22028         fanotify_init and fanotify_mark.
22029         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22030         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
22031
22032         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
22033         Add prlimit.
22034         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
22035         prlimit64 for GLIBC_2.13.
22036         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
22037         prlimit64.
22038         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
22039         syscall.
22040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
22041         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22042         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
22043         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
22044         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
22045         add prlimit alias.
22046         * sysdeps/unix/sysv/linux/prlimit.c: New file.
22047
22048         [BZ #11903]
22049         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
22050         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
22051
22052         * nss/Makefile: Add rules to build and run tst-nss-test1.
22053         * shlib-versions: Add entry for libnss_test1.
22054         * nss/nss_test1.c: New file.
22055         * nss/tst-nss-test1.c: New file.
22056
22057         * nss/nsswitch.c (__nss_database_custom): Define new variable.
22058         (__nss_configure_lookup): Set appropriate entry in
22059         __nss_configure_lookup to true.
22060         * nss/nsswitch.h: Define enum with indeces of databases in
22061         databases and __nss_database_custom arrays.  Declare
22062         __nss_database_custom.
22063         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
22064         to avoid using nscd when custom rules are installed.
22065         * nss/getXXbyYY_r.c: Likewise.
22066         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
22067
22068         * nss/nss_files/files-parse.c: Whitespace fixes.
22069
22070 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
22071
22072         [BZ #11883]
22073         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22074         * posix/fnmatch_loop.c: Likewise.
22075
22076 2010-07-17  Andi Kleen  <ak@linux.intel.com>
22077
22078         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22079         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22080         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22081         * Versions.def [GLIBC_2.13]: Add.
22082
22083 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
22084
22085         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22086         Also fail if tpwd after pwuid call is NULL.
22087
22088 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22089
22090         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22091         when converting to ms.
22092
22093 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22094
22095         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22096         EOPNOTSUPP errors with ENOTTY.
22097         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22098         EOPNOTSUPP errors with ENOTTY.
22099
22100 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22101
22102         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22103         Add strcasecmp_l-ssse3.
22104         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22105         strcasecmp.
22106         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22107         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22108         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22109
22110 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22111
22112         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22113
22114         * string/Makefile (strop-tests): Add strcasecmp.
22115         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22116         strcasecmp_l-nonascii.
22117         (gen-as-const-headers): Add locale-defines.sym.
22118         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22119         * sysdeps/x86_64/strcasecmp.S: New file.
22120         * sysdeps/x86_64/strcasecmp_l.S: New file.
22121         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22122         * sysdeps/x86_64/locale-defines.sym: New file.
22123         * string/test-strcasecmp.c: New file.
22124
22125         * string/test-strcasestr.c: Test both ends of the range of characters.
22126         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22127
22128 2010-07-29  Roland McGrath  <roland@redhat.com>
22129
22130         [BZ #11856]
22131         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22132
22133 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22134
22135         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22136         for ld.so.
22137
22138 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22139
22140         * manual/memory.texi (Malloc Tunable Parameters): Document
22141         M_PERTURB.
22142
22143 2010-07-26  Roland McGrath  <roland@redhat.com>
22144
22145         [BZ #11840]
22146         * configure.in (-fgnu89-inline check): Set and substitute
22147         gnu89_inline, not libc_cv_gnu89_inline.
22148         * configure: Regenerated.
22149         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22150
22151 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22152
22153         * string/test-strnlen.c: New file.
22154         * string/Makefile (strop-tests): Add strnlen.
22155         * string/tester.c (test_strnlen): Add a few more test cases.
22156         * string/tst-strlen.c: Better error reporting.
22157
22158         * sysdeps/x86_64/strnlen.S: New file.
22159
22160 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22161
22162         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22163         lower-latency instructions.
22164
22165 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22166
22167         * string/test-strcasestr.c: New file.
22168         * string/test-strstr.c: New file.
22169         * string/Makefile (strop-tests): Add strstr and strcasestr.
22170         * string/str-two-way.h: Don't undefine MAX.
22171         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22172
22173 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22174
22175         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22176         strcasestr-nonascii.
22177         (CFLAGS-strcasestr-nonascii.c): Define.
22178         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22179         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22180         Remove unused attribute.
22181
22182 2010-07-20  Roland McGrath  <roland@redhat.com>
22183
22184         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22185         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22186         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22187         like LD_HWCAP_MASK can disable hwcaps.
22188
22189 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22190
22191         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22192
22193 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22194
22195         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22196         call in strcasestr.
22197         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22198         __strcasestr_sse42_nonascii.
22199         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22200         strcasestr-nonascii.c.
22201         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22202
22203 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22204
22205         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22206         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22207         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22208         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22209
22210 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22211
22212         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22213         fcntl.
22214
22215 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22216
22217         [BZ #11577]
22218         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22219         dl_signal_cerror.
22220
22221 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22222
22223         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22224         _PC_PIPE_BUF using F_GETPIPE_SZ.
22225
22226 2010-07-05  Roland McGrath  <roland@redhat.com>
22227
22228         * manual/arith.texi (Rounding Functions): Fix rint description
22229         implicit in round description.
22230
22231 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22232
22233         * elf/Makefile: Fix linking for a few tests to make recent linker
22234         happy.
22235
22236 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22237
22238         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22239         $(common-objpfx)libc_nonshared.a.
22240
22241 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22242
22243         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22244         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22245         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22246         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22247         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22248         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22249         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22250         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22253         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22265         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22266         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22267         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22268         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22269         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22270         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22271         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22272         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22273         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22274         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22275         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22276         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22291
22292 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22293
22294         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22295         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22296         * string/memmove.c (memmove): Renamed to ...
22297         (MEMMOVE): ...this.  Default to memmove.
22298         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22299         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22300         (END_CHK): Define.
22301         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22302         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22303         mempcpy-ssse3-back memmove-ssse3-back.
22304         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22305         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22306         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22307         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22308         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22309         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22310         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22311         * sysdeps/x86_64/multiarch/memmove.c: New file.
22312         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22313         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22314         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22315         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22316         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22317         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22318         Define.
22319         (index_Fast_Copy_Backward): Define.
22320         (HAS_ARCH_FEATURE): Define.
22321         (HAS_FAST_REP_STRING): Define.
22322         (HAS_FAST_COPY_BACKWARD): Define.
22323
22324 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22325
22326         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22327         Restore proper fallback handling.
22328
22329 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22330
22331         [BZ #11701]
22332         * posix/group_member.c (__group_member): Correct checking loop.
22333
22334         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22335         OOM in getpwuid_r correctly.  Return error number when the caller
22336         should return, otherwise -1.
22337         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22338         call returning > 0 value.
22339         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22340
22341 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22342
22343         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22344         libc_nonshared.a from targets in modules-names.
22345
22346 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22347
22348         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22349         requires it.
22350
22351 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22352
22353         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22354         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22355         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22356         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22357
22358 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22359
22360         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22361
22362 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22363
22364         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22365         and F_GETPIPE_SZ.
22366         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22367         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22368         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22369         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22370         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22371         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22372
22373 2010-06-14  Roland McGrath  <roland@redhat.com>
22374
22375         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22376
22377 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22378
22379         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22380         __REDIRECT followed by __THROW.
22381         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22382         * posix/getopt.h (getopt): Likewise.
22383
22384 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22385
22386         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22387         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22388         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22389         in AT_FLAGS.
22390         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22391         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22392
22393 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22394
22395         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22396
22397 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22398
22399         [BZ #11640]
22400         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22401         Properly check family and model.
22402
22403 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22404
22405         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22406
22407 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22408
22409         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22410
22411 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22412
22413         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22414         symbol reference.
22415
22416 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22417
22418         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22419         symbol reference.
22420
22421 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22422
22423         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22424         and internal_recvmmsg.
22425         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22426         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22427         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22428         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22429
22430         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22431         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22432         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22433
22434 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22435
22436         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22437
22438 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22439
22440         POWER7 optimizations.
22441         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22442         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22443
22444 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22445
22446         * version.h: Update for 2.13 development version.
22447
22448 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22449
22450         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22451         exceptions.  Return 0.
22452
22453 2010-05-07  Roland McGrath  <roland@redhat.com>
22454
22455         * elf/ldconfig.c (main): Add a const.
22456
22457 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22458
22459         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22460         (args_options): Add no-idn option.
22461         (ahosts_keys_int): Add idn_flags to ai_flags.
22462         (parse_option): Handle 'i' option to clear idn_flags.
22463
22464         * malloc/malloc.c (_int_free): Possible race in the most recently
22465         added check.  Only act on the data if no current modification
22466         happened.
22467
22468 See ChangeLog.17 for earlier changes.